/* ==========================================================================
   Automated Fusion Inc. — site styles
   1. Tokens          6. Hero & page hero     11. Gallery, videos, lightbox
   2. Base            7. Stats band           12. Testimonials
   3. Layout          8. Sections & headings  13. Contact form & map
   4. Buttons         9. Content blocks       14. CTA panel
   5. Header & nav    10. Services & equipment 15. Footer
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --ink: #101623;          /* navy: dark sections, headings */
    --ink-2: #1B2333;        /* raised surfaces on navy */
    --blue: #0A6FC2;         /* logo blue: buttons, stats band, CTA */
    --blue-dark: #075A9F;
    --sky: #4FB8F5;          /* logo light blue: accents on dark */
    --white: #FFFFFF;
    --grey: #F4F5F7;         /* light section background */
    --line: #DCDFE4;
    --text: #1E2430;
    --muted: #5B6472;

    --font-head: "Geist", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;

    --step--1: 0.8125rem;
    --step-0: 1rem;
    --step-1: 1.1875rem;
    --step-2: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    --step-3: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
    --step-4: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);

    --wrap: 1280px;
    --gutter: clamp(16px, 3.5vw, 40px);
    --section: clamp(72px, 9vw, 120px);
    --r-sm: 6px;
    --r: 16px;
    --r-lg: 24px;
    --header-h: 104px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
h3 { font-size: var(--step-1); letter-spacing: -0.015em; line-height: 1.25; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-sm);
}
.skip-link:focus { top: 16px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.prose { max-width: 64ch; color: var(--muted); }
.prose .lead { color: var(--text); }
.lead { font-size: var(--step-1); line-height: 1.55; }
.note { padding: 14px 16px; border-radius: var(--r-sm); background: var(--grey); color: var(--muted); font-size: var(--step--1); }

.rounded-img { width: 100%; border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; }
.rounded-img--contain { object-fit: contain; background: #fff; border: 1px solid var(--line); }

/* 4. Buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent; border-radius: var(--r-sm);
    font: 500 0.875rem/1.2 var(--font-body);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn .icon { width: 15px; height: 15px; transition: transform 0.15s; }
.btn:hover .icon:last-child { transform: translateX(2px); }
.btn--large { padding: 14px 22px; font-size: 0.9375rem; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--light { background: var(--grey); color: var(--ink); border-color: var(--line); }
.btn--light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--ink); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 50%; background: #fff;
    color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 5. Header & nav ---------------------------------------------------------- */
/* Transparent over the dark hero; turns white once the page scrolls */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: background-color 0.25s, box-shadow 0.25s;
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height 0.25s; }
.site-header.is-scrolled .site-header__inner { height: 84px; }
@media (max-width: 1020px) { .site-header__inner, .site-header.is-scrolled .site-header__inner { height: 84px; } }

.brand { flex: none; display: block; position: relative; }
.brand img { width: auto; height: 88px; }
.site-header.is-scrolled .brand img { height: 72px; }
.brand img { transition: height 0.25s; }
.brand__dark { position: absolute; inset: 0; opacity: 0; }

.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 2px; }
.site-nav__item { position: relative; }
.site-nav__link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 12px; border-radius: 999px;
    background: none; border: 0;
    font: 500 0.875rem var(--font-body); color: #fff;
    text-decoration: none; cursor: pointer;
}
.site-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.site-nav__link .icon { width: 14px; height: 14px; transition: transform 0.2s; }
.site-nav__item.is-active > .site-nav__link { background: rgba(255, 255, 255, 0.16); }

.site-nav__actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.header-phone:hover { color: var(--sky); }
.social-dot {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 0.6875rem; font-weight: 600; text-decoration: none;
}

.sub-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
    padding: 8px; background: #fff; border-radius: var(--r);
    box-shadow: 0 20px 50px -16px rgba(16, 22, 35, 0.35);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-size: 0.9375rem; text-decoration: none; }
.sub-menu a:hover, .sub-menu a[aria-current] { background: var(--grey); color: var(--blue); }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.has-sub.is-open > .sub-toggle .icon { transform: rotate(180deg); }

.site-header.is-scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.site-header.is-scrolled .brand__light { opacity: 0; }
.site-header.is-scrolled .brand__dark { opacity: 1; }
.site-header.is-scrolled .site-nav__link,
.site-header.is-scrolled .header-phone,
.site-header.is-scrolled .nav-toggle { color: var(--ink); }
.site-header.is-scrolled .site-nav__link:hover { background: var(--grey); }
.site-header.is-scrolled .site-nav__item.is-active > .site-nav__link { background: var(--grey); color: var(--blue); }
.site-header.is-scrolled .social-dot { background: var(--grey); color: var(--ink); }

.nav-toggle {
    display: none; margin-left: auto; align-items: center; gap: 10px;
    padding: 8px 4px; background: none; border: 0;
    font: 500 0.9375rem var(--font-body); color: #fff; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 1180px) {
    .header-phone { display: none; }
}
@media (max-width: 1020px) {
    .nav-toggle { display: inline-flex; }
    .brand img, .site-header.is-scrolled .brand img { height: 66px; }
    .site-nav {
        position: absolute; top: calc(100% - 4px); left: var(--gutter); right: var(--gutter);
        display: none; flex-direction: column; align-items: stretch; gap: 16px;
        padding: 12px 16px 20px;
        background: #fff; border-radius: var(--r);
        box-shadow: 0 24px 60px -20px rgba(16, 22, 35, 0.45);
        max-height: calc(100svh - var(--header-h) - 16px); overflow-y: auto;
    }
    .site-nav.is-open { display: flex; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav__link, .site-header.is-scrolled .site-nav__link {
        width: 100%; justify-content: space-between; padding: 14px 4px; border-radius: 0;
        font-size: 1rem; color: var(--ink); border-bottom: 1px solid var(--line);
    }
    .site-nav__link:hover, .site-nav__item.is-active > .site-nav__link { background: none; color: var(--blue); }
    .sub-menu {
        position: static; display: none; min-width: 0; padding: 4px 0 8px 8px;
        box-shadow: none; opacity: 1; visibility: visible; transform: none;
    }
    .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
    .has-sub.is-open > .sub-menu { display: block; }
    .header-phone { display: inline-flex; color: var(--ink); }
    .site-nav__actions { justify-content: space-between; flex-wrap: wrap; }
    .social-dot { background: var(--grey); color: var(--ink); }
}

/* 6. Hero & page hero ------------------------------------------------------ */
.eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 0 0 18px;
    color: var(--muted); font-size: 0.75rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.02em;
}
.eyebrow .icon { width: 13px; height: 13px; color: var(--blue); }
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }
.eyebrow--light .icon { color: var(--sky); }

.hero {
    --hero-h: clamp(640px, 100svh, 940px);
    position: relative; isolation: isolate;
    display: flex; align-items: flex-end;
    min-height: var(--hero-h);
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__poster { width: 100%; height: 100%; object-fit: cover; }
.hero__media iframe {
    position: absolute; top: 50%; left: 50%;
    width: max(100%, calc(var(--hero-h) * 16 / 9));
    height: max(100%, 56.25vw);
    /* scaled up so YouTube's edge overlays fall outside the hero */
    transform: translate(-50%, -50%) scale(1.3);
    border: 0; pointer-events: none;
    opacity: 0; transition: opacity 0.8s ease;
}
.hero__media iframe.is-ready { opacity: 1; }
.hero__shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(16, 22, 35, 0.7) 0%, rgba(16, 22, 35, 0) 22%),
        linear-gradient(90deg, rgba(16, 22, 35, 0.85) 0%, rgba(16, 22, 35, 0.45) 55%, rgba(16, 22, 35, 0.2) 100%),
        linear-gradient(0deg, rgba(16, 22, 35, 0.75) 0%, rgba(16, 22, 35, 0) 40%);
}
.hero__content { padding-block: calc(var(--header-h) + 64px) 48px; }
.hero__title { max-width: 15ch; color: #fff; font-size: var(--step-4); line-height: 1.04; }
.hero__lead { max-width: 48ch; margin: 24px 0 0; font-size: 1.0625rem; color: rgba(255, 255, 255, 0.85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__clients { margin-top: clamp(56px, 9vw, 110px); }
.hero__clients p { margin-bottom: 14px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); }
.hero__clients ul { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.hero__clients li { font-family: var(--font-head); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; color: #fff; }

.hero__pause {
    position: absolute; right: var(--gutter); bottom: 48px; z-index: 3;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
    background: rgba(16, 22, 35, 0.4); color: #fff; font: 500 0.8125rem var(--font-body); cursor: pointer;
    backdrop-filter: blur(6px);
}
.hero__pause:hover { background: rgba(16, 22, 35, 0.75); }

@media (prefers-reduced-motion: no-preference) {
    .hero .eyebrow, .hero__title, .hero__lead, .hero__actions { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    .hero__title { animation-delay: 0.08s; }
    .hero__lead { animation-delay: 0.16s; }
    .hero__actions { animation-delay: 0.24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

@media (max-width: 700px) {
    .hero__pause { top: calc(var(--header-h) + 8px); bottom: auto; }
    .hero__pause span { display: none; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__clients li { font-size: 1rem; }
}

.page-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: flex-end;
    min-height: clamp(420px, 56svh, 560px);
    background: var(--ink); color: #fff;
}
/* Photo is turned black-and-white and toned navy-to-blue, so raw site photos read as one set */
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.9); }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: #1D5E9C; mix-blend-mode: multiply;
}
.page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(16, 22, 35, 0.96) 0%, rgba(16, 22, 35, 0.85) 38%, rgba(16, 22, 35, 0.35) 75%, rgba(16, 22, 35, 0.1) 100%),
        linear-gradient(0deg, rgba(16, 22, 35, 0.7) 0%, rgba(16, 22, 35, 0) 45%),
        linear-gradient(180deg, rgba(16, 22, 35, 0.6) 0%, rgba(16, 22, 35, 0) 30%);
}
.page-hero__content { padding-block: calc(var(--header-h) + 48px) clamp(48px, 6vw, 72px); }
.page-hero__title { max-width: 18ch; color: #fff; font-size: var(--step-4); line-height: 1.05; }
.page-hero__lead { max-width: 52ch; margin-top: 20px; color: rgba(255, 255, 255, 0.85); font-size: 1.0625rem; }

/* 7. Stats band ------------------------------------------------------------ */
.stats { background: var(--blue); color: #fff; }
/* items and atoms evenly spaced edge to edge, all vertically centred */
.stats__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding-block: 28px;
}
.stats__item { display: flex; align-items: center; gap: 12px; margin: 0; }
.stats__item strong { flex: none; font-family: var(--font-head); font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stats__item span { max-width: 14ch; font-size: 0.8125rem; line-height: 1.35; color: rgba(255, 255, 255, 0.88); }
.stats__sep { display: grid; place-items: center; }
.stats__sep .icon { width: 26px; height: 26px; color: rgba(255, 255, 255, 0.45); }
@media (max-width: 1200px) {
    .stats__sep { display: none; }
    .stats__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 460px) { .stats__inner { grid-template-columns: 1fr; } }

/* 8. Sections & headings --------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tight-top { padding-top: 0; }
.section--grey { background: var(--grey); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, 0.72); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); align-items: end; gap: 24px 64px; }
.section-head--split .btn { justify-self: end; }
.section-head--center { max-width: 760px; margin-inline: auto; text-align: center; }
.section-head__text { margin: 0; color: var(--muted); }
.section--dark .section-head__text { color: rgba(255, 255, 255, 0.72); }
.section-head--center .section-head__text { margin-top: 20px; }
@media (max-width: 860px) {
    .section-head--split { grid-template-columns: 1fr; }
    .section-head--split .btn { justify-self: start; }
}

.section-title { font-size: var(--step-3); }
.section-title + .prose { margin-top: 28px; }
.section-title--small { font-size: var(--step-2); margin-bottom: 16px; }

/* 9. Content blocks -------------------------------------------------------- */
/* Our story: tall photo beside heading, small photo and text */
.story { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.story__tall { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: var(--r); }
.story__main { display: flex; flex-direction: column; }
.story__main .section-title { margin-bottom: 36px; }
.story__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: auto; }
.story__row img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: var(--r); }
.story__text { display: flex; flex-direction: column; color: var(--muted); font-size: 0.9375rem; }
.story__text .btn { align-self: flex-end; margin-top: auto; }
.story .prose { max-width: none; }
@media (max-width: 960px) {
    .story, .story__row { grid-template-columns: 1fr; }
    .story__tall { min-height: 0; aspect-ratio: 4 / 3; }
    .story__text .btn { align-self: flex-start; margin-top: 16px; }
}

/* Numbered rows (services list) */
.rows { border-top: 1px solid var(--line); counter-reset: none; }
.rows li {
    display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; align-items: center;
    padding: 28px 16px; border-bottom: 1px solid var(--line);
}
.rows__num { font-family: var(--font-head); font-size: 1.375rem; color: #A3AAB5; }
.rows h3 { font-size: var(--step-2); font-weight: 500; }
.rows p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 760px) {
    .rows li { grid-template-columns: 1fr; padding-inline: 0; }
}

/* Industries on navy */
/* Industries: compact band, heading left and a 2x2 list right */
.industries-band { padding-block: clamp(56px, 6vw, 80px); }
.industries-band__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 6vw, 80px); align-items: center; }
.industries-band .section-title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.industries-band .section-head__text { margin-top: 16px; }
.industries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.industries li {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: 12px; background: var(--ink-2);
    color: #fff; font-family: var(--font-head); font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25;
}
.industries .icon { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: rgba(79, 184, 245, 0.12); color: var(--sky); }
@media (max-width: 860px) { .industries-band__inner { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .industries { grid-template-columns: 1fr; } }

/* Why choose us bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento__card { position: relative; display: flex; flex-direction: column; padding: 24px; background: #fff; border-radius: var(--r); }
.bento__card h3 { max-width: 14ch; margin-bottom: 16px; padding-right: 40px; }
.bento__card p { color: var(--muted); font-size: 0.875rem; }
.bento__num { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-size: 1.5rem; color: #E4E7EC; }
.bento__card--wide { grid-column: span 2; flex-direction: row; gap: 24px; }
.bento__card--wide img { width: 46%; object-fit: cover; border-radius: 10px; }
.bento__card--wide > div { position: relative; flex: 1; }
.bento__card--wide .bento__num { top: 0; right: 0; }
.bento__card--tall { grid-row: span 2; }
.bento__card--tall img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 24px; }
.bento__card--tall .bento__num { display: none; }
.bento__card--tall h3 { max-width: none; padding-right: 0; }
.bento__card--tall .btn { align-self: flex-start; margin-top: auto; }
.bento__card--tall p { margin-bottom: 24px; }
@media (max-width: 1060px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento__card--tall { grid-row: auto; }
}
@media (max-width: 620px) {
    .bento { grid-template-columns: 1fr; }
    .bento__card--wide { grid-column: auto; flex-direction: column; }
    .bento__card--wide img { width: 100%; aspect-ratio: 16 / 10; }
}

/* Advantages on navy */
.advantages { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; }
.advantages > div { padding: 24px; border-radius: var(--r); background: var(--ink-2); }
.advantages dt { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: var(--step-2); font-weight: 500; color: #fff; letter-spacing: -0.02em; }
.advantages dt .icon { width: 22px; height: 22px; color: var(--sky); }
.advantages dd { margin: 10px 0 0; font-size: 0.9375rem; }

/* Values (About, on navy) */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.values li { padding: 28px 24px; border-radius: var(--r); background: var(--ink-2); }
.values .icon { width: 40px; height: 40px; padding: 9px; border-radius: 8px; background: rgba(79, 184, 245, 0.12); color: var(--sky); }
.values h3 { margin: 24px 0 10px; }
.values p { font-size: 0.9375rem; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* Two side-by-side cards (Consultation page) */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo__card { overflow: hidden; border-radius: var(--r-lg); background: var(--grey); }
.duo__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.duo__body { padding: clamp(24px, 3vw, 40px); color: var(--muted); }
.duo__body .btn { margin-top: 12px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* 10. Services & equipment ------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile {
    position: relative; isolation: isolate; display: flex; align-items: flex-end;
    aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r);
    color: #fff; text-decoration: none; background: var(--ink);
}
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(16, 22, 35, 0.92) 0%, rgba(16, 22, 35, 0.15) 55%, rgba(16, 22, 35, 0.35) 100%); }
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.05); }
.tile__num { position: absolute; top: 18px; left: 20px; font-family: var(--font-head); font-size: 1rem; }
.tile__body { display: block; padding: 22px 20px; }
.tile__title { display: block; font-family: var(--font-head); font-size: var(--step-2); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.tile__text { display: block; margin-top: 8px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); line-height: 1.5; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 4 / 3; } }

.equipment { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.equipment__item { display: flex; flex-direction: column; padding: 12px 12px 24px; background: #fff; border-radius: var(--r); }
.equipment__image { aspect-ratio: 1; margin-bottom: 20px; overflow: hidden; border-radius: 10px; background: #fff; }
.equipment__image img { width: 100%; height: 100%; object-fit: contain; }
.equipment__item h3, .equipment__item p { padding-inline: 12px; }
.equipment__item h3 { margin-bottom: 8px; }
.equipment__item p { color: var(--muted); font-size: 0.875rem; }
.equipment__item .btn { align-self: flex-start; margin: auto 12px 0; }
.equipment__item p { margin-bottom: 20px; }

/* 11. Gallery, videos, lightbox -------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.gallery-grid a { display: block; overflow: hidden; border-radius: 10px; background: var(--ink-2); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

.gallery-grid--masonry { display: block; columns: 4 240px; column-gap: 8px; }
.gallery-grid--masonry li { break-inside: avoid; margin-bottom: 8px; }
.gallery-grid--masonry img { aspect-ratio: auto; }
@media (max-width: 520px) { .gallery-grid--masonry { columns: 2; column-gap: 6px; } .gallery-grid--masonry li { margin-bottom: 6px; } }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 16px; }
.video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.video:hover img { opacity: 1; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.95); color: var(--ink);
}
.video__play .icon { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.video:hover .video__play { background: var(--blue); color: #fff; }
.video__title { margin-top: 12px; color: #fff; font-family: var(--font-head); font-weight: 500; }

.lightbox {
    width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
    border: 0; background: rgba(10, 14, 22, 0.95); color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox figure { grid-column: 2; margin: 0; padding: 64px 0 24px; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 140px); margin-inline: auto; border-radius: 10px; }
.lightbox figcaption { margin-top: 12px; color: rgba(255, 255, 255, 0.75); font-size: var(--step--1); }
.lightbox .icon-btn { margin: 0 12px; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.lightbox .icon-btn:hover { background: #fff; color: var(--ink); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 600px) {
    .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
    .lightbox figure { grid-column: 1 / -1; grid-row: 1; padding-inline: 8px; }
    .lightbox [data-lb-prev] { grid-row: 2; justify-self: start; margin-bottom: 24px; }
    .lightbox [data-lb-next] { grid-row: 2; justify-self: end; margin-bottom: 24px; }
}

/* 12. Testimonials --------------------------------------------------------- */
.quotes__controls { display: flex; align-items: center; gap: 12px; }
.quotes__count { min-width: 4.5em; text-align: center; color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }

.quotes {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(calc(100% - 2 * var(--gutter)), 620px); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain;
    padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
    scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
}
.quotes::-webkit-scrollbar { display: none; }

.quote-card {
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    margin: 0; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--r-lg); background: var(--grey);
}
.quote-card__mark { height: 40px; font-family: var(--font-head); font-size: 4.5rem; line-height: 1; color: var(--blue); }
.quote-card blockquote { margin: 12px 0 0; }
.quote-card blockquote p { color: var(--ink); font-family: var(--font-head); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; letter-spacing: -0.01em; }
.quote-card figcaption { margin-top: auto; padding-top: 28px; }
.quote-card figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.quote-card figcaption span { color: var(--muted); font-size: var(--step--1); }

.quotes__more { margin-top: 32px; }

.testimonial-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.quote-full { margin: 0; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--grey); }
.quote-full blockquote { margin: 0; color: var(--text); }
.quote-full blockquote p { font-size: 1rem; }
.quote-full blockquote p:first-child::before { content: "“"; display: block; height: 0.6em; margin-bottom: 12px; font-family: var(--font-head); font-size: 3.5rem; line-height: 1; color: var(--blue); }
.quote-full figcaption { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-full figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.quote-full figcaption span { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 860px) { .testimonial-list { grid-template-columns: 1fr; } }

/* 13. Contact form & map --------------------------------------------------- */
.contact-section { background: var(--grey); }
.contact-section__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-section__intro > p:not(.eyebrow) { margin-top: 24px; color: var(--muted); max-width: 44ch; }
.contact-section__form > .section-title { margin-bottom: 28px; }
.contact-section--form-first .contact-section__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.contact-section--form-first .contact-section__intro { order: 2; }
@media (max-width: 860px) {
    .contact-section__grid,
    .contact-section--form-first .contact-section__grid { grid-template-columns: 1fr; }
}

.contact-list li { display: flex; align-items: flex-start; gap: 12px; padding-block: 5px; }
.contact-list .icon { margin-top: 0.25em; color: var(--blue); }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.contact-list--large { margin-top: 28px; font-size: 1.0625rem; }
.contact-list--large li { align-items: center; gap: 14px; padding-block: 8px; }
.contact-list--large .icon { width: 40px; height: 40px; margin: 0; padding: 10px; border-radius: 50%; background: #fff; }

.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: var(--r-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field span { font-size: var(--step--1); font-weight: 500; color: var(--ink); }
.field input, .field textarea {
    width: 100%; padding: 13px 14px;
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--grey); color: var(--text); font: inherit;
    transition: border-color 0.15s, background-color 0.15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(10, 111, 194, 0.15); }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__notice { margin: 0; padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.form__notice--ok { background: #E3F4EA; color: #1C5B36; }
.form__notice--error { background: #FBE8E6; color: #8A2318; }

.page-contact .contact-section + .section { background: var(--grey); padding-bottom: var(--section); }
.map { overflow: hidden; border-radius: var(--r-lg); line-height: 0; background: var(--line); }
.map iframe { width: 100%; height: clamp(320px, 40vw, 460px); border: 0; }

/* 14. CTA panel ------------------------------------------------------------ */
.cta-section { padding-top: 0; }
.cta-section:first-child, .section--grey + .cta-section, .contact-section + .cta-section { padding-top: var(--section); }
.cta-panel {
    position: relative; overflow: hidden;
    padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
    border-radius: var(--r-lg);
    background-color: var(--blue);
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.3px);
    background-size: 18px 18px;
    color: #fff; text-align: center;
}
.cta-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(10, 111, 194, 0) 0%, var(--blue) 75%); opacity: 0.7; pointer-events: none; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel__title { max-width: 18ch; margin-inline: auto; color: #fff; font-size: var(--step-4); line-height: 1.05; }
.cta-panel__text { max-width: 50ch; margin: 20px auto 0; color: rgba(255, 255, 255, 0.88); }
.cta-panel__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* 15. Footer --------------------------------------------------------------- */
.site-footer { background: var(--grey); color: var(--muted); font-size: 0.875rem; }
.site-footer__grid {
    display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1.2fr; gap: 40px;
    padding-block: clamp(56px, 6vw, 80px) 40px;
}
.site-footer__brand img { width: 168px; margin-bottom: 16px; }
.site-footer__brand p { max-width: 34ch; }
.site-footer__title { margin-bottom: 16px; font-size: 0.8125rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.site-footer__col li { padding-block: 4px; }
.site-footer__col a { color: var(--ink); text-decoration: none; }
.site-footer__col a:hover { color: var(--blue); text-decoration: underline; }
.site-footer__disclaimer { padding-block: 24px; border-top: 1px solid var(--line); }
.site-footer__disclaimer p { max-width: 110ch; font-size: 0.8125rem; }
.site-footer__bar { background: var(--ink); color: rgba(255, 255, 255, 0.65); padding-block: 18px; font-size: 0.8125rem; }
.site-footer__bar a { color: #fff; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
