/*
Theme Name: Aeromatic
Theme URI: https://dora-test-aeromatic.project-in-progress.com/
Author: Aeromatic
Description: Custom responsive theme for Aeromatic, built from the Aeromatic Figma homepage design. Content managed via Advanced Custom Fields.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: aeromatic
*/

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
	--color-primary: #293B86;
	--color-primary-dark: #1F2C66;
	--color-dark: #1F2023;
	--color-gray: #6B7280;
	--color-gray-light: #9CA3AF;
	--color-border: #C7C7C7;
	--color-border-light: #E0E0E0;
	--color-bg-light: #F0F3F7;
	--color-bg-light-2: #F4F4F4;
	--color-white: #FFFFFF;
	--color-accent-blue: #29AAE1;
	--color-accent-green: #2DA44A;
	--color-accent-orange: #F05F3B;
	--color-accent-yellow: #FDB913;

	--font-heading: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

	--container-width: 1200px;
	--section-pad-y: clamp(48px, 7vw, 110px);
	--radius: 6px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 300;
	color: var(--color-dark);
	background: var(--color-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 800;
	line-height: 1.15;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}
p { margin: 0; }
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px; overflow: hidden;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: 24px;
}
.section { padding-block: var(--section-pad-y); position: relative; overflow: hidden; }
.section--dark { background: var(--color-dark); color: var(--color-white); }
.section--light-gray { background: var(--color-bg-light); }
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 14px;
}
.section--dark .eyebrow,
.section--on-dark .eyebrow { color: var(--color-accent-blue); }
.section-heading {
	font-size: clamp(26px, 3.4vw, 42px);
	max-width: 720px;
}
.section-heading--wide { max-width: 900px; }
.section-desc {
	font-weight: 300;
	color: var(--color-gray);
	font-size: 16px;
	line-height: 1.7;
	max-width: 520px;
}
.section--dark .section-desc { color: #C7CAD6; }
.section-head-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	flex-wrap: wrap;
	margin-bottom: 56px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.02em;
	padding: 13px 22px;
	border-radius: 4px;
	border: 1.5px solid transparent;
	transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
	white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); color: var(--color-white); }
.btn-outline { background: transparent; border-color: var(--color-dark); color: var(--color-dark); }
.btn-outline:hover { background: var(--color-dark); color: var(--color-white); }
.btn-white { background: var(--color-white); color: var(--color-primary); }
.btn-white:hover { background: var(--color-bg-light); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: var(--color-white); }
.btn-outline-light:hover { background: var(--color-white); color: var(--color-dark); }
.btn-icon-circle {
	width: 44px; height: 44px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--color-border); background: transparent; color: var(--color-dark);
	transition: background-color .18s ease, color .18s ease;
}
.btn-icon-circle:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--color-border-light);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; padding-block: 16px;
}
.site-logo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-weight: 900; font-size: 24px; color: var(--color-primary); }
.site-logo svg { width: 30px; height: 30px; }
.site-logo img { max-height: 36px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
	display: flex; align-items: center; gap: 4px;
	padding: 8px 14px; font-size: 15px; font-weight: 400; color: var(--color-dark);
	border-radius: 4px; transition: color .15s ease;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--color-primary); }
.primary-nav .menu-item-has-children > a svg { width: 14px; height: 14px; }
.primary-nav .sub-menu {
	position: absolute; margin-top: 8px; background: var(--color-white);
	border: 1px solid var(--color-border-light); border-radius: 6px; padding: 8px;
	min-width: 200px; box-shadow: 0 12px 30px rgba(0,0,0,.08);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.menu-item-has-children { position: relative; }
.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { padding: 8px 10px; border-radius: 4px; }
.primary-nav .sub-menu a:hover { background: var(--color-bg-light); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
	display: none; background: none; border: 0; width: 40px; height: 40px;
	align-items: center; justify-content: center; color: var(--color-primary);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ==========================================================================
   Hero / Banner
   ========================================================================== */
.hero { position: relative; color: var(--color-white); overflow: hidden; background: var(--color-dark); }
.hero__slide {
	position: relative;
	min-height: min(760px, 90vh);
	display: flex; align-items: flex-end;
	background-size: cover; background-position: center;
}
.hero__slide::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(15,17,22,.88) 0%, rgba(15,17,22,.35) 55%, rgba(15,17,22,.55) 100%);
}
.hero__slide--placeholder { background-image: linear-gradient(135deg, #20242c 0%, #2b3040 45%, #34405f 100%); }
.hero__content { position: relative; z-index: 2; width: 100%; padding-block: 60px 72px; }
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--color-white); opacity: .9; margin-bottom: 18px;
}
.hero__eyebrow svg { width: 16px; height: 16px; color: var(--color-accent-blue); }
.hero__grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.hero__heading { font-size: clamp(34px, 5.4vw, 64px); max-width: 640px; }
.hero__heading span { display: block; }
.hero__heading .accent { color: var(--color-accent-blue); }
.hero__aside { max-width: 340px; display: flex; flex-direction: column; gap: 20px; }
.hero__desc { font-size: 15px; line-height: 1.7; color: #E4E6EC; font-weight: 300; }
.hero__badge {
	position: absolute; top: 40px; right: 5%; z-index: 3;
	width: 128px; height: 128px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,.5); color: var(--color-white);
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	background: rgba(20,22,28,.25); backdrop-filter: blur(4px);
}
.hero__badge strong { font-family: var(--font-heading); font-size: 26px; line-height: 1; }
.hero__badge span { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; max-width: 90px; margin-top: 6px; }
.hero__dots { display: flex; flex-direction: column; gap: 10px; position: absolute; right: 40px; top: 50%; transform: translateY(-50%); z-index: 3; }
.hero__dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); border: 0; padding: 0; }
.hero__dots button.is-active { background: var(--color-white); }

/* ==========================================================================
   Expertise section
   ========================================================================== */
.expertise__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.expertise__cta { margin-top: 28px; margin-bottom: 34px; }
.expertise__body p { color: var(--color-gray); font-size: 16px; line-height: 1.8; font-weight: 300; margin-bottom: 16px; }
.card-stack { position: relative; min-height: 300px; }
.card-stack__item {
	position: absolute; inset: 0; background: var(--color-white);
	border: 1px solid var(--color-border-light); border-radius: 4px; padding: 34px;
	opacity: 0; visibility: hidden; transition: opacity .4s ease;
}
.card-stack__item.is-active { opacity: 1; visibility: visible; position: relative; }
.card-stack__icon { width: 44px; height: 44px; margin-bottom: 22px; color: var(--color-primary); }
.card-stack__title { font-family: var(--font-heading); font-weight: 700; text-transform: none; font-size: 19px; margin-bottom: 10px; letter-spacing: 0; }
.card-stack__desc { color: var(--color-gray); font-size: 15px; line-height: 1.7; font-weight: 300; }
.card-stack__corner { position: absolute; width: 20px; height: 20px; border: 3px solid var(--color-primary); }
.card-stack__corner--tl { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.card-stack__corner--br { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

/* ==========================================================================
   Products
   ========================================================================== */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; position: relative; padding: 24px; }
.products-grid::before, .products-grid::after,
.products-grid .corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--color-primary); pointer-events: none; }
.products-grid::before { content: ""; top: 0; left: 0; border-right: 0; border-bottom: 0; }
.products-grid::after { content: ""; bottom: 0; right: 0; border-left: 0; border-top: 0; }
.product-card { position: relative; border-radius: 4px; overflow: hidden; background: var(--color-dark); aspect-ratio: 16/10; }
.product-card__media { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s ease; }
.product-card:hover .product-card__media { transform: scale(1.06); }
.product-card__media--placeholder { background-image: linear-gradient(135deg, #2a2f3a 0%, #40506e 100%); }
.product-card__overlay { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: linear-gradient(0deg, rgba(10,11,14,.85) 0%, rgba(10,11,14,0) 55%); }
.product-card__title { color: var(--color-white); font-family: var(--font-heading); font-size: 15px; letter-spacing: .04em; margin-bottom: 14px; max-width: 75%; }
.product-card__link {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
	background: var(--color-primary); color: var(--color-white);
	padding: 9px 16px; font-size: 12px; font-weight: 600; letter-spacing: .05em; border-radius: 3px;
}
.product-card__link svg { width: 13px; height: 13px; }

/* ==========================================================================
   Industries (tilted cards)
   ========================================================================== */
.industries-track { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; padding-top: 20px; }
.industry-card {
	position: relative; width: 260px; aspect-ratio: 3/4; border-radius: 4px; overflow: hidden;
	background-size: cover; background-position: center; flex-shrink: 0;
	box-shadow: 0 30px 60px rgba(0,0,0,.35);
	transition: transform .35s ease;
}
.industry-card:nth-child(odd) { transform: rotate(-4deg); }
.industry-card:nth-child(even) { transform: rotate(3deg); }
.industry-card:hover { transform: rotate(0deg) translateY(-6px); z-index: 2; }
.industry-card--placeholder { background-image: linear-gradient(160deg, #262b35 0%, #3a465c 100%); }
.industry-card__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; background: linear-gradient(0deg, rgba(8,9,12,.75) 0%, rgba(8,9,12,0) 45%); }
.industry-card__know-more {
	align-self: flex-end; display: inline-flex; align-items: center; gap: 6px;
	background: rgba(255,255,255,.14); color: var(--color-white); border: 1px solid rgba(255,255,255,.4);
	padding: 7px 12px; font-size: 11px; letter-spacing: .06em; border-radius: 3px; backdrop-filter: blur(3px);
}
.industry-card__label { color: var(--color-white); font-family: var(--font-heading); font-size: 17px; text-transform: none; letter-spacing: 0; }

/* ==========================================================================
   Process
   ========================================================================== */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--color-border-light); }
.process-step { padding: 30px; border-right: 1px solid var(--color-border-light); border-bottom: 1px solid var(--color-border-light); }
.process-step:nth-child(3n) { border-right: 0; }
.process-grid .process-step:nth-last-child(-n+3) { border-bottom: 0; }
.process-step__icon { width: 30px; height: 30px; color: var(--color-dark); margin-bottom: 16px; }
.process-step__title { font-family: var(--font-heading); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 16px; margin-bottom: 8px; }
.process-step__desc { color: var(--color-gray); font-size: 14px; line-height: 1.65; font-weight: 300; }

/* ==========================================================================
   Testimonials / Clientele (dark)
   ========================================================================== */
.testimonials { position: relative; }
.testimonials__watermark {
	position: absolute; left: -0.02em; top: 40%; transform: translateY(-50%);
	font-family: var(--font-heading); font-weight: 800; font-size: clamp(70px, 12vw, 180px);
	color: rgba(255,255,255,.04); white-space: nowrap; pointer-events: none; text-transform: uppercase;
}
.testimonials__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.testimonial-card { border: 1px solid rgba(255,255,255,.18); padding: 34px; }
.testimonial-card__name { font-family: var(--font-heading); text-transform: none; letter-spacing: 0; font-size: 17px; margin-bottom: 14px; }
.testimonial-card__quote { color: #C7CAD6; font-size: 14px; line-height: 1.8; font-weight: 300; }
.testimonial-card__nav { display: flex; border-top: 1px solid rgba(255,255,255,.18); margin-top: 26px; }
.testimonial-card__nav button { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 0; background: none; border: 0; color: var(--color-white); }
.testimonial-card__nav button:first-child { border-right: 1px solid rgba(255,255,255,.18); }
.testimonial-card__nav svg { width: 18px; height: 18px; }
.clientele-panel { border: 1px solid rgba(255,255,255,.18); padding: 34px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.logo-grid__item { background: var(--color-white); border-radius: 4px; height: 68px; display: flex; align-items: center; justify-content: center; color: var(--color-dark); font-family: var(--font-heading); font-weight: 700; font-size: 13px; opacity: .85; }
.logo-grid__item img { max-height: 34px; max-width: 80%; }

/* ==========================================================================
   Insights / Blog
   ========================================================================== */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid var(--color-border-light); padding-top: 40px; position: relative; }
.insight-card__media { aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; background-size: cover; background-position: center; margin-bottom: 18px; }
.insight-card__media--placeholder { background-image: linear-gradient(150deg, #e7ebf1 0%, #cfd6e2 100%); }
.insight-card__meta { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-gray-light); margin-bottom: 10px; }
.insight-card__title { font-family: var(--font-heading); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 18px; line-height: 1.4; margin-bottom: 10px; }
.insight-card__excerpt { color: var(--color-gray); font-size: 14px; line-height: 1.7; font-weight: 300; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner { border: 1px solid var(--color-border-light); }
.cta-banner__inner { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; }
.cta-banner__art { padding: 50px; display: flex; align-items: center; justify-content: center; position: relative; min-height: 220px; }
.cta-banner__art svg { width: 150px; height: 150px; color: var(--color-primary); }
.cta-banner__rays { position: absolute; bottom: 24px; left: 24px; width: 90px; height: 60px; }
.cta-banner__content { padding: 50px; border-left: 1px solid var(--color-border-light); }
.cta-banner__desc { color: var(--color-gray); font-size: 15px; line-height: 1.75; font-weight: 300; max-width: 560px; margin-block: 16px 26px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-dark); color: var(--color-white); position: relative; overflow: hidden; padding-block: 64px 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-heading); font-weight: 900; font-size: 28px; color: var(--color-white); display: inline-flex; align-items: center; gap: 6px; }
.footer-logo svg { width: 34px; height: 34px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; margin-bottom: 16px; color: var(--color-white); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #9AA0AE; font-weight: 300; }
.footer-col a:hover { color: var(--color-white); }
.back-to-top { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.3); display: inline-flex; align-items: center; justify-content: center; color: var(--color-white); }
.footer-divider { height: 3px; background: linear-gradient(90deg, var(--color-accent-orange), var(--color-accent-yellow), var(--color-accent-green), var(--color-accent-blue)); margin-block: 30px; border: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.footer-bottom-left { display: flex; flex-direction: column; gap: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 15px; height: 15px; }
.footer-tagline { font-size: 13px; color: #9AA0AE; font-weight: 300; max-width: 320px; }
.footer-phone { font-size: 13px; color: #9AA0AE; }
.footer-certs { display: flex; gap: 10px; }
.footer-certs span { width: 56px; height: 56px; border-radius: 4px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; font-size: 9px; text-align: center; font-weight: 700; letter-spacing: .03em; padding: 4px; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: #9AA0AE; }
.footer-legal ul { display: flex; gap: 22px; }
.footer-legal a:hover { color: var(--color-white); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.expertise__grid { grid-template-columns: 1fr; }
	.cta-banner__inner { grid-template-columns: 1fr; }
	.cta-banner__content { border-left: 0; border-top: 1px solid var(--color-border-light); }
	.process-grid { grid-template-columns: repeat(2, 1fr); }
	.process-step:nth-child(3n) { border-right: 1px solid var(--color-border-light); }
	.process-step:nth-child(2n) { border-right: 0; }
	.process-grid .process-step:nth-last-child(-n+3) { border-bottom: 1px solid var(--color-border-light); }
	.process-grid .process-step:nth-last-child(-n+2) { border-bottom: 0; }
	.testimonials__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	.primary-nav { position: fixed; inset: 72px 0 0 0; background: var(--color-white); flex-direction: column; justify-content: flex-start; padding: 20px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
	.primary-nav.is-open { transform: translateX(0); }
	.primary-nav ul { flex-direction: column; width: 100%; align-items: stretch; gap: 0; }
	.primary-nav > ul > li { border-bottom: 1px solid var(--color-border-light); }
	.primary-nav a { padding: 16px 8px; width: 100%; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 14px; display: none; }
	.menu-item-has-children.is-expanded .sub-menu { display: block; }
	.nav-toggle { display: inline-flex; }
	.header-cta .btn span { display: none; }
	.products-grid { grid-template-columns: 1fr; }
	.insights-grid { grid-template-columns: 1fr; }
	.logo-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-cols { gap: 36px; }
}

@media (max-width: 600px) {
	.container { padding-inline: 18px; }
	:root { --section-pad-y: 56px; }
	.hero__grid { flex-direction: column; align-items: flex-start; }
	.hero__badge { width: 96px; height: 96px; top: 20px; right: 20px; }
	.hero__badge strong { font-size: 19px; }
	.hero__dots { display: none; }
	.expertise__cta { margin-bottom: 22px; }
	.process-grid { grid-template-columns: 1fr; }
	.process-step { border-right: 0 !important; border-bottom: 1px solid var(--color-border-light) !important; }
	.industry-card { width: 78vw; }
	.section-head-row { margin-bottom: 34px; }
	.cta-banner__art, .cta-banner__content { padding: 32px 24px; }
	.footer-top { flex-direction: column; }
	.footer-legal { flex-direction: column; align-items: flex-start; }
}
