/*
Theme Name: MWT – Makris Water Technologies
Theme URI: https://mwt.gr/
Author: SMakris
Description: Presentation theme for Makris Water Technologies. A light, water-inspired one-page layout with a hero slider, expertise highlights, about, services, technologies, optional team / testimonials / news, and a contact section — all edited from Appearance → Customize → Theme options.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smakris
Tags: one-column, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, translation-ready, blog
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--sm-primary: #f5a93f;
	--sm-secondary: #346bae;
	--sm-tertiary: #13bbea;
	--sm-footer: #0e2c50;
	--sm-footer-bottom: rgba(0, 0, 0, 0.22);
	--sm-ice: #f3f9ff;
	--sm-grey: #f7f7f7;
	--sm-heading: #222222;
	--sm-text: #666666;
	--sm-border: #e6eef8;
	--sm-white: #ffffff;

	--sm-font-heading: "Noto Serif Display", "Playfair Display", Georgia, serif;
	--sm-font-body: "Fira Sans", "PT Sans", "Segoe UI", Arial, sans-serif;

	--sm-container: 1170px;
	--sm-gutter: 15px;
	--sm-radius: 5px;
	--sm-shadow: 0 10px 20px rgba(14, 44, 80, 0.08);
	--sm-ease: 500ms ease;
	--sm-header-offset: 90px;

	/* Small orange wave used under titles. */
	--sm-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33' height='8' viewBox='0 0 33 8'%3E%3Cpath d='M1 5c2.6-4 5.4-4 8 0s5.4 4 8 0 5.4-4 8 0 5.4 4 7 0' fill='none' stroke='%23f5a93f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--sm-white);
	color: var(--sm-text);
	font-family: var(--sm-font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.menu-open,
body.modal-open {
	overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	color: var(--sm-heading);
	font-family: var(--sm-font-heading);
	font-weight: 400;
	line-height: 1.25;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--sm-secondary);
	text-decoration: none;
	transition: color var(--sm-ease), background-color var(--sm-ease), border-color var(--sm-ease);
}

a:hover {
	color: var(--sm-primary);
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	vertical-align: middle;
}

ul,
ol {
	margin: 0 0 1em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--sm-tertiary);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 20px;
	background: var(--sm-white);
	color: var(--sm-heading);
	box-shadow: var(--sm-shadow);
}

.container {
	width: 100%;
	max-width: calc(var(--sm-container) + 2 * var(--sm-gutter));
	margin: 0 auto;
	padding: 0 var(--sm-gutter);
}

.container--narrow {
	max-width: calc(800px + 2 * var(--sm-gutter));
}

section[id] {
	scroll-margin-top: var(--sm-header-offset);
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn,
.wp-block-button__link,
input[type="submit"] {
	position: relative;
	z-index: 1;
	display: inline-block;
	overflow: hidden;
	padding: 17px 37px;
	border: 0;
	border-radius: 30px;
	background: var(--sm-primary);
	color: var(--sm-white);
	font-family: var(--sm-font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: color var(--sm-ease);
}

/* Two slanted panels slide in from the sides on hover. */
.btn::before,
.btn::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: -1;
	width: 75%;
	background: var(--sm-secondary);
	transition: transform 600ms ease;
}

.btn::before {
	left: -10%;
	transform: translateX(-110%) skewX(-20deg);
}

.btn::after {
	right: -10%;
	transform: translateX(110%) skewX(-20deg);
}

.btn:hover,
.btn:focus-visible {
	color: var(--sm-white);
}

.btn:hover::before,
.btn:focus-visible::before,
.btn:hover::after,
.btn:focus-visible::after {
	transform: translateX(0) skewX(-20deg);
}

.wp-block-button__link:hover,
input[type="submit"]:hover {
	background: var(--sm-secondary);
	color: var(--sm-white);
}

.btn--ghost {
	background: var(--sm-secondary);
}

.btn--ghost::before,
.btn--ghost::after {
	background: var(--sm-primary);
}

.btn-outline {
	display: inline-block;
	padding: 10px 35px;
	border: 2px solid var(--sm-tertiary);
	border-radius: 30px;
	color: var(--sm-heading);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
}

.btn-outline:hover,
.btn-outline:focus-visible {
	background: var(--sm-tertiary);
	color: var(--sm-white);
}

.video-pill {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	overflow: hidden;
	padding: 6px 30px 6px 6px;
	border-radius: 30px;
	background: rgba(14, 44, 80, 0.55);
	color: var(--sm-white);
	font-size: 16px;
	font-weight: 700;
	line-height: 48px;
	text-transform: uppercase;
}

.video-pill::before {
	content: "";
	position: absolute;
	inset: 0 0 0 auto;
	z-index: -1;
	width: 0;
	background: var(--sm-primary);
	transition: width var(--sm-ease);
}

.video-pill:hover {
	color: var(--sm-white);
}

.video-pill:hover::before {
	right: auto;
	left: 0;
	width: 100%;
}

.video-pill__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 2px solid var(--sm-white);
	border-radius: 50%;
	font-size: 15px;
}

.icon-btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border-radius: 50%;
	font-size: 17px;
	cursor: pointer;
	transition: all var(--sm-ease);
}

.icon-btn--outline {
	border: 1px solid var(--sm-border);
	background: var(--sm-white);
	color: var(--sm-heading);
}

.icon-btn--outline:hover,
.icon-btn--outline[aria-expanded="true"] {
	border-color: var(--sm-primary);
	background: var(--sm-primary);
	color: var(--sm-white);
}

/* ==========================================================================
   4. Section titles
   ========================================================================== */

.section {
	position: relative;
	padding: 100px 0;
}

.section--grey {
	background: var(--sm-grey);
}

.section--ice {
	background: var(--sm-ice);
}

.sec-title {
	margin-bottom: 50px;
}

.sec-title h1,
.sec-title h2 {
	position: relative;
	margin: 0;
	padding-bottom: 30px;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.2;
}

.sec-title h1::after,
.sec-title h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 33px;
	height: 8px;
	background: var(--sm-wave) no-repeat;
}

.sec-title--center {
	text-align: center;
}

.sec-title--center h1::after,
.sec-title--center h2::after {
	left: 50%;
	transform: translateX(-50%);
}

.sec-title--left h1::after,
.sec-title--left h2::after {
	left: 0;
}

.sec-title--right {
	text-align: right;
}

.sec-title--right h1::after,
.sec-title--right h2::after {
	right: 0;
}

/* Title left, intro text right, divided by a blue rule. */
.split-title {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	margin-bottom: 60px;
}

.split-title__heading {
	position: relative;
	padding-right: 50px;
}

.split-title__heading .sec-title {
	margin: 0;
}

.split-title__heading::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -2px;
	width: 3px;
	height: 70px;
	background: var(--sm-secondary);
	transform: translateY(-50%);
}

.split-title__text {
	padding: 0 120px 0 50px;
}

.split-title__text p {
	margin: 0;
}

/* ==========================================================================
   5. Header
   ========================================================================== */

.topbar {
	background: var(--sm-ice);
	padding: 14px 0;
	color: #333;
	font-size: 14px;
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 30px;
}

.topbar__info {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar__info i {
	margin-right: 8px;
	color: var(--sm-secondary);
}

.topbar__info a {
	color: #333;
}

.topbar__info a:hover {
	color: var(--sm-primary);
}

.topbar__phone {
	font-weight: 700;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar__social a {
	color: #2f3753;
	font-size: 15px;
}

.topbar__social a:hover {
	color: var(--sm-primary);
}

.header-main {
	position: sticky;
	top: 0;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background: var(--sm-white);
	box-shadow: 0 10px 10px rgba(0, 0, 0, 0.06);
}

.header-main__inner {
	display: flex;
	align-items: center;
	gap: 30px;
	min-height: 90px;
}

.site-branding {
	flex-shrink: 0;
	padding: 14px 0;
}

.site-branding .custom-logo {
	display: block;
	width: auto;
	max-height: 62px;
}

.text-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--sm-heading);
}

.text-logo:hover {
	color: var(--sm-heading);
}

.text-logo__mark {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50% 50% 50% 0;
	background: linear-gradient(135deg, var(--sm-tertiary), var(--sm-secondary));
	color: var(--sm-white);
	font-size: 20px;
	transform: rotate(-45deg);
}

.text-logo__mark i {
	transform: rotate(45deg);
}

.text-logo__words {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.text-logo__name {
	font-family: var(--sm-font-heading);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.text-logo__sub {
	margin-top: 3px;
	color: var(--sm-secondary);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.text-logo--footer,
.text-logo--footer:hover {
	color: var(--sm-white);
}

.text-logo--footer .text-logo__sub {
	color: var(--sm-tertiary);
}

/* Desktop menu */

.main-nav {
	margin-left: auto;
}

.main-nav .navigation {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav .navigation > li {
	position: relative;
	padding: 0 16px;
}

.main-nav .navigation > li > a {
	position: relative;
	display: block;
	padding: 32px 0;
	color: var(--sm-heading);
	font-size: 16px;
	font-weight: 500;
	line-height: 26px;
}

.main-nav .navigation > li > a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--sm-primary);
	transform: scaleX(0);
	transition: transform var(--sm-ease);
}

.main-nav .navigation > li:hover > a,
.main-nav .navigation > li:focus-within > a,
.main-nav .navigation > .current-menu-item > a,
.main-nav .navigation > .current-menu-ancestor > a {
	color: var(--sm-primary);
}

.main-nav .navigation > li:hover > a::after,
.main-nav .navigation > li:focus-within > a::after,
.main-nav .navigation > .current-menu-item > a::after,
.main-nav .navigation > .current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.main-nav .menu-item-has-children > a {
	padding-right: 16px;
}

.main-nav .navigation > .menu-item-has-children > a::before {
	content: "\f107";
	position: absolute;
	top: 50%;
	right: 0;
	font-family: "Font Awesome 6 Free";
	font-size: 12px;
	font-weight: 900;
	transform: translateY(-50%);
}

.main-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	width: 240px;
	margin: 0;
	padding: 0;
	border-top: 3px solid var(--sm-primary);
	background: var(--sm-white);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);
	transition: all var(--sm-ease);
}

.main-nav .sub-menu .sub-menu {
	top: -3px;
	left: 100%;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-nav .sub-menu li {
	position: relative;
	border-bottom: 1px solid #f0f3f8;
}

.main-nav .sub-menu a {
	display: block;
	padding: 11px 22px;
	color: var(--sm-heading);
	font-size: 15px;
}

.main-nav .sub-menu li:hover > a,
.main-nav .sub-menu li:focus-within > a {
	background: var(--sm-primary);
	color: var(--sm-white);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.header-search {
	position: relative;
}

.header-search__panel {
	position: absolute;
	top: calc(100% + 20px);
	right: 0;
	z-index: 20;
	width: 320px;
	padding: 15px;
	border-top: 3px solid var(--sm-primary);
	background: var(--sm-white);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: none;
	cursor: pointer;
}

.menu-toggle__bar {
	display: block;
	height: 2px;
	background: var(--sm-primary);
}

.menu-toggle__bar:nth-child(2) {
	width: 70%;
	margin-left: auto;
}

/* Mobile panel */

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 999;
	visibility: hidden;
}

.mobile-menu.is-open {
	visibility: visible;
}

.mobile-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	transition: opacity var(--sm-ease);
}

.mobile-menu.is-open .mobile-menu__backdrop {
	opacity: 1;
}

.mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(320px, 88vw);
	overflow-y: auto;
	padding: 70px 0 30px;
	background: var(--sm-footer);
	transform: translateX(100%);
	transition: transform var(--sm-ease);
}

.mobile-menu.is-open .mobile-menu__panel {
	transform: translateX(0);
}

.mobile-menu__close {
	position: absolute;
	top: 18px;
	right: 20px;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	color: var(--sm-white);
	font-size: 22px;
	cursor: pointer;
}

.mobile-menu__close:hover {
	color: var(--sm-primary);
}

.mobile-menu__logo {
	padding: 0 25px 30px;
}

.mobile-navigation {
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	list-style: none;
}

.mobile-navigation li {
	position: relative;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-navigation a {
	display: block;
	padding: 12px 60px 12px 25px;
	color: var(--sm-white);
	font-size: 15px;
}

.mobile-navigation a:hover,
.mobile-navigation .current-menu-item > a {
	color: var(--sm-primary);
}

.mobile-navigation .sub-menu {
	display: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.15);
	list-style: none;
}

.mobile-navigation .sub-menu a {
	padding-left: 40px;
}

.mobile-navigation .is-expanded > .sub-menu {
	display: block;
}

.submenu-toggle {
	position: absolute;
	top: 4px;
	right: 10px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--sm-white);
	cursor: pointer;
	transition: transform var(--sm-ease);
}

.is-expanded > .submenu-toggle {
	transform: rotate(90deg);
}

.mobile-menu__social {
	padding: 30px 25px 0;
}

.mobile-menu__social a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: var(--sm-white);
	font-size: 13px;
}

.mobile-menu__social a:hover {
	background: var(--sm-tertiary);
	color: var(--sm-white);
}

/* ==========================================================================
   6. Search form
   ========================================================================== */

.search-form {
	position: relative;
	display: flex;
}

.search-form__field,
.search-form input[type="search"] {
	width: 100%;
	height: 50px;
	padding: 10px 60px 10px 20px;
	border: 1px solid var(--sm-border);
	border-radius: 25px;
	background: var(--sm-white);
	transition: border-color var(--sm-ease);
}

.search-form__field:focus {
	border-color: var(--sm-primary);
	outline: none;
}

.search-form__submit {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--sm-primary);
	color: var(--sm-white);
	cursor: pointer;
}

.search-form__submit:hover {
	background: var(--sm-secondary);
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, #f8fcff 0%, #e6f4fc 55%, #d4ecf9 100%);
}

.hero__track {
	display: grid;
}

.hero__slide {
	position: relative;
	grid-area: 1 / 1;
	padding: 110px 0 210px;
	background-position: center;
	background-size: cover;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1000ms ease, visibility 1000ms;
}

.hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.hero__slide--image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.65) 45%, rgba(255, 255, 255, 0) 75%);
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 40px;
}

.hero__content {
	max-width: 620px;
}

.hero__subtitle {
	position: relative;
	display: inline-block;
	margin: 0 0 12px;
	padding-left: 43px;
	color: var(--sm-secondary);
	font-size: 18px;
	font-weight: 500;
}

.hero__subtitle::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 33px;
	height: 8px;
	background: var(--sm-wave) no-repeat;
	transform: translateY(-50%);
}

.hero__title {
	margin: 0 0 48px;
	font-size: clamp(38px, 5.4vw, 70px);
	font-weight: 700;
	line-height: 1.12;
}

.hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Staggered entrance of the active slide's content. */
.hero__subtitle,
.hero__title,
.hero__buttons,
.hero__art {
	opacity: 0;
	transition: opacity 1000ms ease, transform 1000ms ease;
}

.hero__subtitle {
	transform: translateY(-40px);
}

.hero__title {
	transform: translateX(-50px);
}

.hero__buttons {
	transform: translateY(40px);
}

.hero__art {
	transform: translateY(40px);
}

.is-active .hero__subtitle,
.is-active .hero__title,
.is-active .hero__buttons,
.is-active .hero__art {
	opacity: 1;
	transform: none;
}

.is-active .hero__subtitle {
	transition-delay: 300ms;
}

.is-active .hero__title {
	transition-delay: 600ms;
}

.is-active .hero__buttons {
	transition-delay: 900ms;
}

.is-active .hero__art {
	transition-delay: 500ms;
}

.hero__art img {
	display: block;
	width: clamp(260px, 32vw, 420px);
	animation: sm-float 6s ease-in-out infinite;
}

.hero__bubbles i {
	position: absolute;
	bottom: 120px;
	border-radius: 50%;
	background: rgba(19, 187, 234, 0.12);
	animation: sm-rise 12s linear infinite;
}

.hero__bubbles i:nth-child(1) { left: 6%; width: 40px; height: 40px; animation-delay: 0s; }
.hero__bubbles i:nth-child(2) { left: 28%; width: 18px; height: 18px; animation-delay: 3s; }
.hero__bubbles i:nth-child(3) { left: 48%; width: 60px; height: 60px; animation-delay: 6s; background: rgba(52, 107, 174, 0.08); }
.hero__bubbles i:nth-child(4) { left: 70%; width: 24px; height: 24px; animation-delay: 1.5s; }
.hero__bubbles i:nth-child(5) { left: 88%; width: 34px; height: 34px; animation-delay: 8s; background: rgba(245, 169, 63, 0.15); }

.hero__wave {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	z-index: 2;
	height: 120px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 70c120-30 240-30 360 0s240 30 360 0 240-30 360 0 240 30 360 0v50H0z' fill='%2313bbea' fill-opacity='.15'/%3E%3Cpath d='M0 86c160-34 320-34 480 0s320 34 480 0 320-34 480 0v34H0z' fill='%23ffffff'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

/* Arrows sit bottom-right; on wide screens they move to the sides (see responsive). */
.hero__arrow {
	position: absolute;
	bottom: 130px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	background: var(--sm-primary);
	color: var(--sm-white);
	font-size: 16px;
	cursor: pointer;
	transition: background-color var(--sm-ease);
}

.hero__arrow:hover {
	background: var(--sm-secondary);
}

.hero__arrow--prev {
	right: calc(max(var(--sm-gutter), (100% - var(--sm-container)) / 2) + 60px);
}

.hero__arrow--next {
	right: max(var(--sm-gutter), (100% - var(--sm-container)) / 2);
}

@media (min-width: 1400px) {
	.hero__arrow {
		top: 45%;
		bottom: auto;
		transform: translateY(-50%);
	}

	.hero__arrow--prev {
		right: auto;
		left: 30px;
	}

	.hero__arrow--next {
		right: 30px;
	}
}

/* ==========================================================================
   8. Expertise (features)
   ========================================================================== */

.features {
	padding-bottom: 120px;
}

.grid {
	display: grid;
	gap: 30px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.feature-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 34px 15px 0;
	border: 1px solid #f1f1f1;
	background: var(--sm-grey);
	text-align: center;
}

.feature-card__icon {
	display: inline-grid;
	place-items: center;
	width: 130px;
	height: 130px;
	margin-bottom: 40px;
	border-radius: 50%;
	background: var(--sm-white);
	box-shadow: 0 0 20px 1px rgba(225, 225, 225, 0.8);
}

.feature-card__icon span {
	display: grid;
	place-items: center;
	width: 102px;
	height: 102px;
	border: 1px solid #f8f8f8;
	border-radius: 50%;
	background: var(--sm-white);
	box-shadow: 0 0 20px 1px rgba(225, 225, 225, 0.5);
	color: #818181;
	font-size: 42px;
	transition: all var(--sm-ease);
}

.feature-card:hover .feature-card__icon span {
	background: var(--sm-primary);
	color: var(--sm-white);
	animation: sm-pulse 1s infinite;
}

.feature-card__title {
	margin-bottom: 29px;
	font-size: 22px;
}

.feature-card__count {
	position: relative;
	bottom: -23px;
	display: inline-grid;
	place-items: center;
	width: 45px;
	height: 45px;
	margin-top: auto;
	border-radius: 50%;
	background: var(--sm-primary);
	box-shadow: 0 5px 10px 0 #ccc;
	color: var(--sm-white);
	font-size: 22px;
	font-weight: 700;
}

/* ==========================================================================
   9. About
   ========================================================================== */

.about__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 50px;
}

.about__text {
	margin-bottom: 40px;
}

.about__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: about;
}

.about__list li {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 45px;
	padding-left: 60px;
	color: var(--sm-heading);
	font-family: var(--sm-font-heading);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	counter-increment: about;
}

.about__list li::before {
	content: counter(about);
	position: absolute;
	top: 50%;
	left: 0;
	display: grid;
	place-items: center;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: var(--sm-secondary);
	color: var(--sm-white);
	font-size: 16px;
	font-weight: 400;
	transform: translateY(-50%);
}

.media-box {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 420px;
	overflow: hidden;
	border-radius: var(--sm-radius);
	background: linear-gradient(140deg, var(--sm-secondary) 0%, #2a8fd0 55%, var(--sm-tertiary) 100%);
	background-position: center;
	background-size: cover;
	box-shadow: var(--sm-shadow);
}

/* Soft wave pattern on the branded panel. */
.media-box:not(.media-box--image)::before {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 45%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' preserveAspectRatio='none'%3E%3Cpath d='M0 60c75-40 150-40 225 0s150 40 225 0 100-30 150-15V200H0z' fill='%23fff' fill-opacity='.08'/%3E%3Cpath d='M0 110c75-35 150-35 225 0s150 35 225 0 100-25 150-10V200H0z' fill='%23fff' fill-opacity='.1'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.media-box__brand {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 360px;
	padding: 40px 30px;
	color: var(--sm-white);
	text-align: center;
}

.media-box__icon {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	margin-bottom: 24px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	font-size: 40px;
}

.media-box__name {
	font-family: var(--sm-font-heading);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.media-box__tag {
	margin-top: 10px;
	opacity: 0.85;
}

.media-box__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: var(--sm-white);
	color: var(--sm-heading);
	font-size: 28px;
	transform: translate(-50%, -50%);
	animation: sm-ring 3s infinite;
}

.media-box__play:hover {
	color: var(--sm-primary);
}

/* ==========================================================================
   10. Services
   ========================================================================== */

.services {
	padding-bottom: 70px;
}

.card-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.card-row > * {
	flex: 0 1 calc((100% - 60px) / 3);
	min-width: 0;
}

.service-card {
	overflow: hidden;
	margin-bottom: 30px;
	border-radius: var(--sm-radius);
	background: var(--sm-white);
	box-shadow: var(--sm-shadow);
	text-align: center;
	transition: transform var(--sm-ease), box-shadow var(--sm-ease);
}

.service-card:hover {
	box-shadow: 0 20px 40px rgba(14, 44, 80, 0.14);
	transform: translateY(-6px);
}

.service-card__image {
	position: relative;
	overflow: hidden;
}

.service-card__image::after {
	content: "";
	position: absolute;
	inset: -100% 0 auto;
	height: 100%;
	background: rgba(19, 187, 234, 0.55);
	transition: top var(--sm-ease), inset var(--sm-ease);
}

.service-card:hover .service-card__image::after {
	inset: 0;
}

.service-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 36 / 25;
	object-fit: cover;
	transition: transform var(--sm-ease);
}

.service-card:hover .service-card__image img {
	transform: scale(1.05);
}

.service-card__icon {
	position: relative;
	display: grid;
	place-items: center;
	height: 170px;
	background: linear-gradient(135deg, var(--sm-ice) 0%, #dcf0fb 100%);
	color: var(--sm-secondary);
	font-size: 54px;
	transition: all var(--sm-ease);
}

.service-card__icon::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 30px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 30' preserveAspectRatio='none'%3E%3Cpath d='M0 15c45-15 90-15 135 0s90 15 135 0 60-10 90-5v20H0z' fill='%23fff'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.service-card:hover .service-card__icon {
	background: linear-gradient(135deg, var(--sm-tertiary) 0%, var(--sm-secondary) 100%);
	color: var(--sm-white);
}

.service-card__body {
	padding: 30px 30px 40px;
}

.service-card__title {
	margin-bottom: 15px;
	font-size: 22px;
	font-weight: 700;
}

.service-card__body p {
	margin-bottom: 25px;
}

/* ==========================================================================
   11. Technologies (composition)
   ========================================================================== */

.composition__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 360px) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	margin-bottom: 70px;
}

.composition__col {
	display: flex;
	flex-direction: column;
	gap: 90px;
}

.element {
	position: relative;
}

.element--left {
	padding-right: 105px;
	text-align: right;
}

.element--right {
	padding-left: 105px;
}

.element__symbol {
	position: absolute;
	top: 0;
	display: grid;
	place-items: center;
	width: 80px;
	height: 80px;
	border: 2px solid rgba(19, 187, 234, 0.35);
	border-radius: 50% 50% 50% 0;
	background: var(--sm-white);
	box-shadow: var(--sm-shadow);
	color: var(--sm-tertiary);
	font-size: 24px;
	font-weight: 500;
}

.element--left .element__symbol {
	right: 0;
	border-radius: 50% 0 50% 50%;
}

.element--right .element__symbol {
	left: 0;
	border-radius: 0 50% 50% 50%;
}

/* Dashed connector towards the centre image. */
.element__symbol::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 50px;
	border-top: 2px dashed rgba(52, 107, 174, 0.3);
}

.element--left .element__symbol::after {
	left: calc(100% + 10px);
}

.element--right .element__symbol::after {
	right: calc(100% + 10px);
}

.element__name {
	margin-bottom: 2px;
	font-size: 22px;
	font-weight: 700;
}

.element__value {
	margin-bottom: 10px;
	color: var(--sm-primary);
	font-weight: 700;
}

.element__text {
	margin: 0;
}

.composition__image {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 380px;
}

.composition__ring {
	position: absolute;
	inset: 0;
	margin: auto;
	width: min(100%, 380px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(19, 187, 234, 0.18) 0%, rgba(19, 187, 234, 0) 70%);
	animation: sm-zoom-fade 5s infinite linear;
}

.composition__image img {
	position: relative;
	width: 100%;
	max-width: 320px;
}

.composition__steps-title {
	margin-bottom: 30px;
	font-size: 26px;
	text-align: center;
}

.composition__values {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: 945px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.composition__value {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0 10px;
	text-align: center;
}

/* Vertical wave divider between items. */
.composition__value + .composition__value::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -5px;
	width: 11px;
	height: 50px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='50' viewBox='0 0 11 50'%3E%3Cpath d='M5.5 1c-4 3-4 6 0 9s4 6 0 9-4 6 0 9 4 6 0 9-4 6 0 9' fill='none' stroke='%2313bbea' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
	transform: translateY(-50%);
}

.composition__value-small {
	order: 2;
	color: var(--sm-primary);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.composition__value-name {
	order: 1;
	color: var(--sm-heading);
	font-family: var(--sm-font-heading);
	font-size: 22px;
	font-weight: 700;
}

/* ==========================================================================
   12. Carousel
   ========================================================================== */

.carousel {
	--per-view: 3;
	position: relative;
}

.carousel__viewport {
	overflow: hidden;
	margin: 0 -15px;
}

.carousel__track {
	display: flex;
	transition: transform 700ms ease;
}

.carousel__slide {
	flex: 0 0 calc(100% / var(--per-view));
	min-width: 0;
	padding: 0 15px;
}

.carousel__nav {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 30px;
}

.carousel__arrow {
	display: grid;
	place-items: center;
	width: 45px;
	height: 45px;
	border: 0;
	border-radius: 50%;
	background: var(--sm-white);
	box-shadow: 0 10px 30px #e3e8ee;
	color: var(--sm-heading);
	cursor: pointer;
	transition: all var(--sm-ease);
}

.carousel__arrow:hover {
	background: var(--sm-primary);
	color: var(--sm-white);
}

.carousel.is-static .carousel__nav,
.carousel.is-static .carousel__dots {
	display: none;
}

.carousel__dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 50px;
}

.carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--sm-primary);
	opacity: 0.5;
	cursor: pointer;
	transition: all var(--sm-ease);
}

.carousel__dot[aria-current="true"] {
	width: 30px;
	opacity: 1;
}

/* ==========================================================================
   13. Team
   ========================================================================== */

.team-card {
	position: relative;
	margin-bottom: 30px;
	text-align: center;
}

.team-card__photo {
	position: relative;
	overflow: hidden;
	background: #000;
	aspect-ratio: 9 / 10;
}

.team-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all var(--sm-ease);
}

.team-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	background: linear-gradient(140deg, var(--sm-secondary), var(--sm-tertiary));
	color: rgba(255, 255, 255, 0.45);
	font-size: 90px;
	transition: opacity var(--sm-ease);
}

.team-card:hover .team-card__placeholder,
.team-card:focus-within .team-card__placeholder {
	opacity: 0.2;
}

.team-card:hover .team-card__photo img,
.team-card:focus-within .team-card__photo img {
	opacity: 0.2;
	transform: scale(1.05);
}

.team-card__overlay {
	position: absolute;
	top: 45%;
	left: 0;
	width: 100%;
	padding: 20px 40px;
	color: var(--sm-white);
	transform: translateY(-50%);
}

.team-card__overlay p,
.team-card__social {
	opacity: 0;
	transition: all var(--sm-ease);
}

.team-card__overlay p {
	transform: translateY(-20px);
}

.team-card__social {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	transform: translateY(20px);
}

.team-card:hover .team-card__overlay p,
.team-card:hover .team-card__social,
.team-card:focus-within .team-card__overlay p,
.team-card:focus-within .team-card__social {
	opacity: 1;
	transform: none;
}

.team-card__social a {
	color: var(--sm-white);
	font-size: 17px;
}

.team-card__social a:hover {
	color: var(--sm-primary);
}

.team-card__info {
	position: relative;
	margin: -56px 30px 0;
	padding: 27px 30px 30px;
	overflow: hidden;
	background: var(--sm-white);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.team-card__info::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 0;
	background: var(--sm-secondary);
	transition: height var(--sm-ease);
}

.team-card:hover .team-card__info::before,
.team-card:focus-within .team-card__info::before {
	height: 100%;
}

.team-card__name,
.team-card__role {
	position: relative;
	transition: color var(--sm-ease);
}

.team-card__name {
	margin-bottom: 6px;
	font-size: 22px;
	font-weight: 700;
}

.team-card__role {
	margin: 0;
	color: #999;
	font-size: 14px;
	text-transform: uppercase;
}

.team-card:hover .team-card__name,
.team-card:hover .team-card__role,
.team-card:focus-within .team-card__name,
.team-card:focus-within .team-card__role {
	color: var(--sm-white);
}

/* ==========================================================================
   14. Testimonials
   ========================================================================== */

.testimonial {
	margin: 40px 10px 10px;
	padding: 0 50px 50px;
	border-radius: 20px;
	background: var(--sm-white);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.testimonial__photo {
	width: 80px;
	height: 80px;
	margin: -40px 0 26px;
	border: 4px solid var(--sm-white);
	border-radius: 50%;
	object-fit: cover;
	box-shadow: var(--sm-shadow);
}

.testimonial:not(:has(.testimonial__photo)) {
	padding-top: 40px;
}

.testimonial__quote {
	margin: 0 0 14px;
}

.testimonial__mark {
	display: block;
	margin-bottom: 8px;
	color: var(--sm-heading);
	font-size: 24px;
}

.testimonial__name {
	display: block;
	color: var(--sm-secondary);
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
}

.testimonial__location {
	display: block;
	color: var(--sm-primary);
	font-size: 15px;
	font-style: italic;
}

/* ==========================================================================
   15. News cards
   ========================================================================== */

.news-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--sm-white);
	box-shadow: 0 10px 20px #dfe2eb;
}

.news-card__image {
	display: block;
	overflow: hidden;
	background: var(--sm-footer);
	aspect-ratio: 360 / 243;
}

.news-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all var(--sm-ease);
}

.news-card:hover .news-card__image img {
	opacity: 0.25;
	transform: scale(1.05);
}

.news-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	background: linear-gradient(135deg, var(--sm-tertiary), var(--sm-secondary));
	color: rgba(255, 255, 255, 0.6);
	font-size: 54px;
}

.news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 30px;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	margin: 0 0 12px;
	padding: 0;
	font-size: 14px;
	list-style: none;
}

.post-meta i {
	margin-right: 6px;
	color: var(--sm-primary);
}

.post-meta a {
	color: var(--sm-heading);
}

.news-card__title {
	margin-bottom: 18px;
	font-size: 23px;
	line-height: 1.35;
}

.news-card__title a {
	color: var(--sm-heading);
}

.news-card__title a:hover {
	color: var(--sm-primary);
}

.news-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 13px;
	border-top: 1px solid #eef1f5;
	font-size: 14px;
}

.news-card__author a {
	color: var(--sm-primary);
}

.news-card__more {
	color: var(--sm-text);
	font-weight: 500;
}

/* ==========================================================================
   16. Contact
   ========================================================================== */

.contact__intro {
	max-width: 700px;
	margin: -20px auto 50px;
	text-align: center;
}

.contact-card {
	padding: 40px 25px 35px;
	border: 1px solid #f1f1f1;
	border-radius: var(--sm-radius);
	background: var(--sm-grey);
	text-align: center;
	transition: all var(--sm-ease);
}

.contact-card:hover {
	background: var(--sm-white);
	box-shadow: var(--sm-shadow);
}

.contact-card__icon {
	display: inline-grid;
	place-items: center;
	width: 80px;
	height: 80px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--sm-white);
	box-shadow: 0 0 20px 1px rgba(225, 225, 225, 0.8);
	color: var(--sm-secondary);
	font-size: 28px;
	transition: all var(--sm-ease);
}

.contact-card:hover .contact-card__icon {
	background: var(--sm-primary);
	color: var(--sm-white);
}

.contact-card h3 {
	font-size: 22px;
	font-weight: 700;
}

.contact-card p {
	margin: 0;
}

.contact-card a {
	color: var(--sm-heading);
}

.contact-card a:hover {
	color: var(--sm-primary);
}

.company-details {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 28px;
	margin: 0;
	font-size: 14px;
}

.contact__company {
	margin-top: 40px;
}

.company-details strong {
	color: var(--sm-heading);
}

/* ==========================================================================
   17. Footer
   ========================================================================== */

.site-footer {
	position: relative;
	margin-top: 60px;
	background: var(--sm-footer);
	color: rgba(255, 255, 255, 0.85);
}

.footer-wave {
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: 60px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30c120-26 240-26 360 0s240 26 360 0 240-26 360 0 240 26 360 0v30H0z' fill='%230e2c50'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.footer-top {
	padding: 50px 0 60px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.footer-top__inner--social-only {
	justify-content: center;
}

.subscribe-form {
	position: relative;
	flex: 0 1 650px;
}

.subscribe-form input[type="email"] {
	width: 100%;
	height: 60px;
	padding: 10px 200px 10px 30px;
	border: 3px solid var(--sm-white);
	border-radius: 30px;
	background: var(--sm-white);
	color: var(--sm-heading);
	font-size: 17px;
}

.subscribe-form input[type="email"]:focus {
	border-color: var(--sm-primary);
	outline: none;
}

.subscribe-form .btn {
	position: absolute;
	top: 0;
	right: 0;
	padding: 17px 44px;
}

.footer-social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: var(--sm-white);
	font-size: 13px;
}

.footer-social a:hover {
	background: var(--sm-tertiary);
	color: var(--sm-white);
}

.footer-widgets {
	padding: 80px 0 70px;
}

.footer-widgets__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px 50px;
}

.footer-col--about {
	grid-column: span 1;
}

.footer-widget + .footer-widget {
	margin-top: 30px;
}

.footer-logo {
	margin-bottom: 20px;
}

.footer-logo .custom-logo {
	max-width: 200px;
	height: auto;
}

.site-footer .widget-title {
	position: relative;
	margin-bottom: 28px;
	padding-bottom: 12px;
	color: var(--sm-white);
	font-size: 24px;
}

.site-footer .widget-title::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 30px;
	height: 2px;
	background: var(--sm-tertiary);
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer li {
	margin-bottom: 8px;
}

.site-footer a {
	color: var(--sm-white);
}

.site-footer a:hover {
	color: var(--sm-primary);
}

.footer-list--contact li {
	display: flex;
	gap: 12px;
}

.footer-list--contact i {
	width: 16px;
	margin-top: 6px;
	color: var(--sm-tertiary);
	text-align: center;
}

.footer-company {
	flex-direction: column;
	justify-content: flex-start;
	margin-top: 18px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
}

.footer-company strong {
	color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
	padding: 28px 0;
	background: var(--sm-footer-bottom);
	color: #a5a9b0;
	font-size: 14px;
	text-align: center;
}

.footer-bottom .copyright {
	margin: 0;
}

.footer-bottom a {
	color: #a5a9b0;
}

.scroll-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	background: var(--sm-secondary);
	color: var(--sm-white);
	font-size: 22px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all var(--sm-ease);
}

.scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.scroll-top:hover {
	background: var(--sm-primary);
}

/* ==========================================================================
   18. Inner pages
   ========================================================================== */

.page-banner {
	position: relative;
	overflow: hidden;
	padding: 80px 0 100px;
	background: linear-gradient(120deg, #f8fcff 0%, #e6f4fc 60%, #d4ecf9 100%);
	text-align: center;
}

.page-banner::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 50px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50' preserveAspectRatio='none'%3E%3Cpath d='M0 25c160-22 320-22 480 0s320 22 480 0 320-22 480 0v25H0z' fill='%23ffffff'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.page-banner__title {
	margin-bottom: 12px;
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 700;
}

.breadcrumb {
	color: var(--sm-text);
	font-size: 15px;
}

.breadcrumb a {
	color: var(--sm-secondary);
}

.breadcrumb .sep {
	margin: 0 10px;
	color: var(--sm-primary);
}

.layout {
	display: grid;
	gap: 50px;
}

.has-sidebar .layout {
	grid-template-columns: minmax(0, 1fr) 320px;
}

.archive-description {
	margin-bottom: 40px;
}

.single-post__image {
	margin: 0 0 30px;
	overflow: hidden;
	border-radius: var(--sm-radius);
}

.single-post__image img {
	display: block;
	width: 100%;
}

.single-post__title {
	margin-bottom: 25px;
	font-size: clamp(28px, 3.5vw, 40px);
	font-weight: 700;
}

.single-post__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: 40px;
	padding-top: 25px;
	border-top: 1px solid #eef1f5;
	font-size: 15px;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.tag-list span {
	color: var(--sm-heading);
	font-weight: 700;
}

.tag-list a {
	padding: 4px 14px;
	border-radius: 20px;
	background: var(--sm-ice);
	color: var(--sm-text);
	font-size: 14px;
}

.tag-list a:hover {
	background: var(--sm-primary);
	color: var(--sm-white);
}

.post-navigation {
	margin-top: 40px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 20px 25px;
	border-radius: var(--sm-radius);
	background: var(--sm-grey);
	color: var(--sm-heading);
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation .nav-label {
	display: block;
	color: var(--sm-primary);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.post-navigation .nav-title {
	font-family: var(--sm-font-heading);
	font-size: 18px;
}

.pagination {
	margin-top: 50px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 50px;
	height: 50px;
	padding: 0 10px;
	border: 1px solid var(--sm-border);
	border-radius: 50%;
	color: var(--sm-heading);
	font-weight: 700;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	border-color: var(--sm-primary);
	background: var(--sm-primary);
	color: var(--sm-white);
}

.sidebar-widget {
	margin-bottom: 40px;
	padding: 30px;
	background: var(--sm-grey);
}

.sidebar-widget .widget-title {
	position: relative;
	margin-bottom: 22px;
	padding-bottom: 12px;
	font-size: 22px;
}

.sidebar-widget .widget-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 33px;
	height: 8px;
	background: var(--sm-wave) no-repeat;
}

.sidebar-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar-widget li {
	padding: 8px 0;
	border-bottom: 1px solid #e9edf2;
}

.sidebar-widget li a {
	color: var(--sm-heading);
}

.sidebar-widget li a:hover {
	color: var(--sm-primary);
}

.no-results {
	padding: 40px;
	background: var(--sm-grey);
	text-align: center;
}

.no-results .search-form {
	max-width: 420px;
	margin: 20px auto 0;
}

.error-404 {
	text-align: center;
}

.error-404__code {
	margin: 0;
	color: var(--sm-secondary);
	font-family: var(--sm-font-heading);
	font-size: clamp(110px, 20vw, 200px);
	font-weight: 700;
	line-height: 1;
}

.error-404__code i {
	margin: 0 6px;
	color: var(--sm-tertiary);
	font-size: 0.7em;
}

.error-404__title {
	font-size: clamp(28px, 4vw, 40px);
}

.error-404__search {
	max-width: 420px;
	margin: 30px auto;
}

/* Comments */

.comments {
	margin-top: 60px;
}

.comments__title,
.comment-reply-title {
	font-size: 28px;
}

.comment-list {
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	padding-left: 40px;
	list-style: none;
}

.comment-body {
	position: relative;
	margin-bottom: 25px;
	padding: 25px 25px 25px 110px;
	background: var(--sm-grey);
}

.comment-body .avatar {
	position: absolute;
	top: 25px;
	left: 25px;
	border-radius: 50%;
}

.comment-meta {
	margin-bottom: 10px;
	font-size: 14px;
}

.comment-author .fn {
	color: var(--sm-heading);
	font-family: var(--sm-font-heading);
	font-size: 18px;
	font-style: normal;
}

.comment-author .says {
	display: none;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea,
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content textarea,
.entry-content select {
	width: 100%;
	padding: 12px 18px;
	border: 1px solid var(--sm-border);
	border-radius: var(--sm-radius);
	background: var(--sm-white);
	transition: border-color var(--sm-ease);
}

.comment-respond input:focus,
.comment-respond textarea:focus,
.entry-content input:focus,
.entry-content textarea:focus {
	border-color: var(--sm-primary);
	outline: none;
}

/* ==========================================================================
   19. Entry content (blocks)
   ========================================================================== */

.entry-content > * + * {
	margin-top: 1.2em;
}

.entry-content h2 { font-size: 34px; margin-top: 1.4em; }
.entry-content h3 { font-size: 27px; margin-top: 1.3em; }
.entry-content h4 { font-size: 22px; }

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content blockquote,
.wp-block-quote {
	margin: 1.5em 0;
	padding: 25px 30px;
	border-left: 4px solid var(--sm-primary);
	background: var(--sm-ice);
	color: var(--sm-heading);
	font-family: var(--sm-font-heading);
	font-size: 20px;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 10px 14px;
	border: 1px solid var(--sm-border);
}

.entry-content th {
	background: var(--sm-ice);
	color: var(--sm-heading);
}

.entry-content figure {
	margin-left: 0;
	margin-right: 0;
}

.wp-caption-text,
.wp-element-caption,
figcaption {
	color: #888;
	font-size: 14px;
	text-align: center;
}

.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin-right: auto; margin-left: auto; }

.entry-content .alignwide {
	width: min(1170px, 100vw - 30px);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content--full > .alignwide,
.entry-content--full > .alignfull {
	margin-left: 50%;
}

.entry-content--full > :not(.alignwide):not(.alignfull) {
	max-width: var(--sm-container);
	margin-right: auto;
	margin-left: auto;
	padding: 0 var(--sm-gutter);
}

.has-orange-color { color: #f5a93f; }
.has-blue-color { color: #346bae; }
.has-cyan-color { color: #13bbea; }
.has-navy-color { color: #0e2c50; }
.has-ice-color { color: #f3f9ff; }
.has-dark-color { color: #222; }
.has-white-color { color: #fff; }
.has-orange-background-color { background-color: #f5a93f; }
.has-blue-background-color { background-color: #346bae; }
.has-cyan-background-color { background-color: #13bbea; }
.has-navy-background-color { background-color: #0e2c50; }
.has-ice-background-color { background-color: #f3f9ff; }
.has-dark-background-color { background-color: #222; }
.has-white-background-color { background-color: #fff; }

.page-links {
	margin-top: 30px;
	font-weight: 700;
}

.sticky .news-card__title::before {
	content: "\f08d";
	margin-right: 8px;
	color: var(--sm-primary);
	font-family: "Font Awesome 6 Free";
	font-size: 0.7em;
	font-weight: 900;
}

/* ==========================================================================
   20. Video modal
   ========================================================================== */

.video-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 20px;
}

.video-modal[hidden] {
	display: none;
}

.video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 15, 30, 0.9);
}

.video-modal__dialog {
	position: relative;
	width: min(960px, 100%);
}

.video-modal__frame {
	aspect-ratio: 16 / 9;
	background: #000;
}

.video-modal__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-modal__close {
	position: absolute;
	top: -48px;
	right: 0;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	color: var(--sm-white);
	font-size: 26px;
	cursor: pointer;
}

/* ==========================================================================
   21. Reveal on scroll (only when JS is running)
   ========================================================================== */

.js .reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 1000ms ease, transform 1000ms ease;
	transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal--left { transform: translateX(-50px); }
.js .reveal--right { transform: translateX(50px); }
.js .reveal--up { transform: translateY(60px); }
.js .reveal--flip { transform: perspective(800px) rotateY(60deg); }

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   22. Keyframes
   ========================================================================== */

@keyframes sm-pulse {
	0% { box-shadow: 0 0 0 0 rgba(245, 169, 63, 0.5); }
	70% { box-shadow: 0 0 0 18px rgba(245, 169, 63, 0); }
	100% { box-shadow: 0 0 0 0 rgba(245, 169, 63, 0); }
}

@keyframes sm-ring {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
	70% { box-shadow: 0 0 0 30px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes sm-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-18px); }
}

@keyframes sm-rise {
	0% { opacity: 0; transform: translateY(0) scale(0.6); }
	15% { opacity: 1; }
	100% { opacity: 0; transform: translateY(-460px) scale(1.1); }
}

@keyframes sm-zoom-fade {
	0%, 100% { opacity: 1; transform: scale(0.92); }
	50% { opacity: 0.6; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition-duration: 1ms !important;
		transition-delay: 0ms !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   23. Responsive
   ========================================================================== */

@media (max-width: 1199px) {
	.main-nav .navigation > li {
		padding: 0 11px;
	}

	.split-title__text {
		padding-right: 0;
	}

	.element--left,
	.element--right {
		padding-left: 95px;
		padding-right: 0;
		text-align: left;
	}

	.element--left .element__symbol {
		right: auto;
		left: 0;
		border-radius: 0 50% 50% 50%;
	}

	.element__symbol::after {
		display: none;
	}
}

@media (max-width: 1099px) {
	:root {
		--sm-header-offset: 76px;
	}

	.main-nav {
		display: none;
	}

	.header-actions {
		margin-left: auto;
	}

	.menu-toggle {
		display: flex;
	}

	.header-main__inner {
		min-height: 76px;
	}

	.grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 60px;
	}

	.card-row > * {
		flex-basis: calc((100% - 30px) / 2);
	}

	.composition__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.composition__image {
		grid-column: 1 / -1;
		grid-row: 1;
		min-height: 300px;
	}

	.composition__image img {
		max-width: 260px;
	}

	.has-sidebar .layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 991px) {
	.section {
		padding: 80px 0;
	}

	.hero__slide {
		padding: 80px 0 170px;
	}

	.hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__art {
		display: none;
	}

	.hero__arrow {
		bottom: 110px;
	}

	.split-title {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.split-title__heading {
		padding-right: 0;
	}

	.split-title__heading::after {
		display: none;
	}

	.split-title .sec-title--right {
		text-align: left;
	}

	.split-title .sec-title--right h2::after {
		right: auto;
		left: 0;
	}

	.split-title__text {
		padding: 0;
	}

	.about__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.media-box {
		min-height: 340px;
	}

	.grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.composition__values {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 30px;
	}

	.composition__value:nth-child(odd)::before {
		display: none;
	}
}

@media (max-width: 767px) {
	.topbar__inner {
		justify-content: center;
		text-align: center;
	}

	.topbar__info {
		justify-content: center;
		gap: 4px 18px;
	}

	.topbar__info li:nth-child(3) {
		display: none;
	}

	.header-search__panel {
		position: fixed;
		top: auto;
		right: 15px;
		left: 15px;
		width: auto;
		margin-top: 20px;
	}

	.text-logo__name {
		font-size: 26px;
	}

	.text-logo__sub {
		font-size: 10px;
	}

	.grid--2,
	.grid--3,
	.grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.card-row > * {
		flex-basis: 100%;
	}

	.about__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.composition__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.composition__col {
		gap: 50px;
	}

	.testimonial {
		padding: 0 25px 35px;
	}

	.subscribe-form input[type="email"] {
		padding-right: 30px;
	}

	.subscribe-form .btn {
		position: static;
		width: 100%;
		margin-top: 12px;
	}

	.post-navigation .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-navigation .nav-next {
		text-align: left;
	}

	.scroll-top {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 480px) {
	.hero__buttons .btn,
	.hero__buttons .video-pill {
		justify-content: center;
		width: 100%;
	}

	.composition__values {
		grid-template-columns: minmax(0, 1fr);
	}

	.composition__value::before {
		display: none;
	}

	.comment-body {
		padding-left: 25px;
	}

	.comment-body .avatar {
		position: static;
		margin-bottom: 10px;
	}
}
