/* =========================================================
   PROSPERA TRADING & TRANSIT SOLUTIONS — STYLESHEET
   1. Tokens    2. Base       3. Buttons     4. Layout
   5. Header    6. Hero slider 7. Page hero  8. Bands
   9. Cards     10. Sections  11. Detail pages 12. Contact
   13. Footer   14. Motion    15. Responsive
   ========================================================= */

/* ===== 1. TOKENS ===== */
:root {
    --navy-950: #061024;
    --navy-900: #0A1A33;
    --navy-800: #0F2547;
    --navy-700: #16325E;
    --blue-600: #1F4FA0;
    --blue-100: #D9E4F5;
    --blue-50: #EDF2FA;
    --gold-500: #E0A93B;
    --gold-400: #EDBE5E;
    --gold-700: #8A5F0E;
    --gold-50: #FBF4E6;

    --bg: #FFFFFF;
    --bg-tint: #EDF2FA;
    --line: #DFE6F0;
    --line-strong: #C5CFDD;
    --text-strong: #0B1626;
    --text: #334155;
    --text-muted: #56677D;
    --on-dark: #E6ECF5;
    --on-dark-muted: #A9B6C9;
    --line-dark: rgba(255, 255, 255, 0.12);
    --success: #0F7B4F;
    --danger: #B42318;

    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --fs-xs: 0.8125rem;
    --fs-sm: 0.9375rem;
    --fs-lg: 1.125rem;
    --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
    --fs-h1: clamp(2.25rem, 1.4rem + 3.8vw, 4rem);

    --section-y: clamp(4rem, 3rem + 4vw, 6.5rem);
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 14px 34px -14px rgba(11, 22, 38, 0.28);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 72px;
}

/* ===== 2. BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}

main { overflow-x: clip; } /* keeps slide-in reveals from widening the page; clip (not hidden) keeps sticky working */
p { max-width: 68ch; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--gold-500);
    color: var(--navy-900);
    font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ===== 3. BUTTONS ===== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    overflow: hidden;
    isolation: isolate;
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid transparent;
    border-radius: 999px;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.25s;
}
.btn i { font-size: 0.85em; transition: transform 0.25s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-400); box-shadow: 0 10px 24px -10px rgba(224, 169, 59, 0.8); }
.btn-primary::after { /* light sweep */
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
    transform: translateX(-110%);
    transition: transform 0.7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(110%); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--blue-600); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-outline { color: var(--navy-800); border-color: var(--line-strong); background: #fff; }
.btn-outline:hover { border-color: var(--navy-800); }
.btn-sm { min-height: 42px; padding: 8px 18px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--blue-600); }
.link-arrow i { font-size: 0.75rem; transition: transform 0.25s var(--ease); }
a:hover > .link-arrow i, .link-arrow:hover i { transform: translateX(4px); }

/* ===== 4. LAYOUT ===== */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.section { padding: var(--section-y) 0; }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy-900); color: var(--on-dark); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .section-lead, .section--navy p { color: var(--on-dark-muted); }
.section--navy .eyebrow { color: var(--gold-400); }
.section--pattern { /* subtle grid texture to break up flat colour */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
}

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head--split {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 48px;
}
.section-head--split > div { max-width: 620px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-700);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-title { font-size: var(--fs-h2); margin-bottom: 14px; }
.section-lead { font-size: var(--fs-lg); color: var(--text-muted); }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== 5. HEADER ===== */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-solid {
    background: rgba(10, 26, 51, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line-dark);
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 42px; height: auto; transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; letter-spacing: 0.08em; color: #fff; }
.brand-tag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-400); }

.nav { display: flex; align-items: center; gap: 18px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s;
}
.nav-link::after { /* underline grows from centre */
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-500);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.menu-toggle { display: none; position: relative; z-index: 2; width: 44px; height: 44px; color: #fff; }
.menu-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s, opacity 0.2s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== 6. HERO SLIDER ===== */
.slider {
    position: relative;
    height: min(100svh, 860px);
    min-height: 600px;
    overflow: hidden;
    color: #fff;
    background: var(--navy-950);
}
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: var(--header-h) 0 48px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease, visibility 1.1s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; overflow: hidden; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.slide.is-active .slide-bg img { animation: kenBurns 14s ease-out both; }
.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 16, 36, 0.92) 0%, rgba(6, 16, 36, 0.72) 48%, rgba(6, 16, 36, 0.3) 100%),
        linear-gradient(0deg, rgba(6, 16, 36, 0.85) 0%, transparent 45%);
}
.slide .container { position: relative; z-index: 1; }
.slide-copy { max-width: 680px; }

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 6px 14px 6px 6px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--on-dark);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}
.slide-badge i {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold-500);
    color: var(--navy-900);
    font-size: 0.72rem;
}
.slide-title { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-bottom: 20px; }
.slide-title .accent { color: var(--gold-400); }
.slide-lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--on-dark); margin-bottom: 32px; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Text of the active slide animates in, piece by piece */
.slide-copy > * { opacity: 0; transform: translateY(26px); }
.slide.is-active .slide-copy > * { animation: slideUp 0.9s var(--ease-out) both; }
.slide.is-active .slide-copy > :nth-child(2) { animation-delay: 0.15s; }
.slide.is-active .slide-copy > :nth-child(3) { animation-delay: 0.3s; }
.slide.is-active .slide-copy > :nth-child(4) { animation-delay: 0.45s; }

.hero-mesh { position: absolute; inset: 0; z-index: 1; overflow: hidden; opacity: 0.3; pointer-events: none; }
.mesh-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-400), transparent); }
.mesh-line:nth-child(1) { width: 60%; top: 22%; left: -10%; }
.mesh-line:nth-child(2) { width: 45%; top: 44%; right: -10%; }
.mesh-line:nth-child(3) { width: 70%; top: 68%; left: -20%; }

/* ===== 7. PAGE HERO (inner pages) ===== */
.page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(380px, 52vh, 520px);
    padding: calc(var(--header-h) + 56px) 0 clamp(2.5rem, 2rem + 3vw, 4rem);
    overflow: hidden;
    color: var(--on-dark);
    background: var(--navy-900);
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenBurns 18s ease-out both; }
.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 16, 36, 0.93) 0%, rgba(6, 16, 36, 0.75) 55%, rgba(6, 16, 36, 0.45) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--gold-500);
    color: var(--navy-900);
    font-size: 1.35rem;
}
.page-hero h1 { max-width: 18ch; margin-bottom: 14px; font-size: clamp(2.125rem, 1.4rem + 3vw, 3.5rem); font-weight: 800; color: #fff; }
.page-hero h1 .accent { color: var(--gold-400); }
.page-hero p { font-size: var(--fs-lg); color: var(--on-dark); }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.breadcrumb { margin-bottom: 18px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: 0.5; }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb [aria-current] { color: #fff; }

/* ===== 8. BANDS (stats, ticker, CTA) ===== */
.stats-band { position: relative; z-index: 2; background: var(--navy-800); color: #fff; }
.stats-band dl { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-band dl > div { padding: 30px 24px; text-align: center; }
.stats-band dl > div + div { border-left: 1px solid var(--line-dark); }
.stats-band dd strong { display: block; font-family: var(--font-display); font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 800; color: var(--gold-400); line-height: 1.1; }
.stats-band dd span { font-size: var(--fs-sm); color: var(--on-dark-muted); }

.ticker { overflow: hidden; padding: 16px 0; background: var(--gold-500); color: var(--navy-900); }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.ticker-track span::after { content: '\25C6'; font-size: 0.6rem; opacity: 0.6; margin-left: 22px; }

.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 3rem + 4vw, 6rem) 0;
    color: var(--on-dark);
    background: var(--navy-900);
}
.cta-band-bg { position: absolute; inset: 0; }
.cta-band-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 26, 51, 0.94) 25%, rgba(10, 26, 51, 0.6) 65%, rgba(31, 79, 160, 0.45) 100%); }
.cta-band .container { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-band h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); color: #fff; margin-bottom: 10px; }
.cta-band p { font-size: var(--fs-lg); color: var(--on-dark-muted); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== 9. CARDS ===== */
.icon-tile {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--navy-800);
    color: var(--gold-400);
    font-size: 1.05rem;
    transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s;
}
.icon-tile--soft { background: var(--blue-50); color: var(--blue-600); }
.icon-tile--gold { background: var(--gold-500); color: var(--navy-900); }

/* Image card: photo on top, copy below (products, services) */
.img-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.img-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.img-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.img-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.img-card:hover .img-card-media img { transform: scale(1.08); }
.img-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 16, 36, 0.55), transparent 55%); }
.img-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.img-card-body h3 { font-size: 1.125rem; margin-bottom: 8px; }
.img-card-body p { flex: 1; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); margin-bottom: 16px; }

.img-card--cta { background: var(--navy-900); border-color: var(--navy-900); justify-content: center; padding: 30px 24px; }
.img-card--cta h3 { color: #fff; font-size: 1.25rem; margin: 18px 0 8px; }
.img-card--cta p { color: var(--on-dark-muted); font-size: var(--fs-sm); margin-bottom: 18px; }
.img-card--cta .link-arrow { color: var(--gold-400); }

.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--navy-700); font-size: 0.75rem; font-weight: 600; }

/* Plain card */
.card {
    position: relative;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover .icon-tile { transform: rotate(-8deg) scale(1.08); }
.card .icon-tile { margin-bottom: 18px; }
.card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.card p { font-size: var(--fs-sm); color: var(--text-muted); }

/* Card on navy */
.card--dark { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); }
.card--dark:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(237, 190, 94, 0.45); box-shadow: none; }
.card--dark p { color: var(--on-dark-muted); }

.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; font-weight: 500; color: var(--text-strong); }
.check-list i { margin-top: 5px; font-size: 0.8rem; color: var(--gold-700); }
.section--navy .check-list li { color: #fff; }
.section--navy .check-list i { color: var(--gold-400); }

/* ===== 10. SECTIONS ===== */
/* Split: media + copy */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 2rem + 4vw, 5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split-media { position: relative; isolation: isolate; }
.split-media > img, .logo-panel { width: 100%; aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); object-fit: cover; }
.split-media > img { background: var(--navy-800); }
.logo-panel { display: grid; place-items: center; padding: 10%; aspect-ratio: 1; background: #fff; }
.logo-panel img { width: 100%; height: 100%; object-fit: contain; }
.split-media::before { /* offset frame */
    content: '';
    position: absolute;
    inset: 22px -22px -22px 22px;
    z-index: -1;
    border: 2px solid var(--gold-500);
    border-radius: var(--radius-lg);
}
.split-body h2 { font-size: var(--fs-h2); margin-bottom: 18px; }
.split-body p { margin-bottom: 14px; }
.split-body .check-list { margin: 22px 0 26px; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; }
.step-num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--gold-500);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--navy-900);
    transition: transform 0.35s var(--ease);
}
.step:hover .step-num { transform: scale(1.1); }
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    left: 64px;
    right: -14px;
    border-top: 2px dashed currentColor;
    opacity: 0.3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s var(--ease) 0.3s;
}
.step.is-visible::after { transform: scaleX(1); }
.steps--compact { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
.steps--compact .step:nth-child(2)::after { display: none; }
.step h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.step p { font-size: var(--fs-sm); color: var(--text-muted); }
.section--navy .step p { color: var(--on-dark-muted); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item[open] { border-color: var(--blue-100); box-shadow: 0 8px 20px -14px rgba(11, 22, 38, 0.3); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 16px 20px;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-strong);
    cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\2b';
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-50);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--blue-600);
    transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s;
}
.faq-item[open] summary::after { transform: rotate(135deg); background: var(--gold-500); color: var(--navy-900); }
.faq-body { padding: 0 20px 20px; font-size: var(--fs-sm); color: var(--text-muted); }
.faq-item[open] .faq-body { animation: slideUp 0.4s var(--ease-out); }

/* Zig-zag service rows */
.feature-rows { display: grid; gap: clamp(3.5rem, 2.5rem + 4vw, 6rem); }

/* ===== 11. DETAIL PAGES ===== */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: start; }
.detail-main > section + section { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.detail-main h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); margin-bottom: 16px; }
.detail-main .lead { font-size: var(--fs-lg); color: var(--text); margin-bottom: 14px; }
.detail-main p { margin-bottom: 12px; }

.material-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.material-list li {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--bg-tint);
    border-left: 3px solid var(--gold-500);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-strong);
    transition: transform 0.3s var(--ease), background-color 0.3s;
}
.material-list li:hover { transform: translateX(4px); background: var(--blue-100); }
.material-list i { margin-top: 4px; color: var(--blue-600); }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.app-grid li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-strong);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.app-grid li:hover { border-color: var(--gold-500); box-shadow: 0 8px 18px -12px rgba(11, 22, 38, 0.35); }
.app-grid i { color: var(--gold-700); }

.supply-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.supply-grid .card { padding: 22px; }
.supply-grid .icon-tile { width: 40px; height: 40px; margin-bottom: 14px; font-size: 0.95rem; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card { padding: 26px; border-radius: var(--radius-lg); background: var(--navy-900); color: var(--on-dark); overflow: hidden; position: relative; }
.side-card::before { content: ''; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(237, 190, 94, 0.3), transparent 70%); }
.side-card h3 { position: relative; color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.side-card p { position: relative; font-size: var(--fs-sm); color: var(--on-dark-muted); margin-bottom: 20px; }
.side-card .btn { position: relative; width: 100%; }
.side-card .side-contact { position: relative; display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: var(--fs-sm); }
.side-card .side-contact i { width: 18px; color: var(--gold-400); }
.side-card .side-contact a:hover { color: var(--gold-400); }

.side-nav { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.side-nav h3 { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 6px 10px;
    margin: 0 -10px;
    border-radius: 8px;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-strong);
    transition: background-color 0.2s, color 0.2s, padding-left 0.25s var(--ease);
}
.side-nav a i { width: 18px; text-align: center; color: var(--blue-600); }
.side-nav a:hover { background: var(--bg-tint); padding-left: 16px; }
.side-nav a[aria-current="page"] { background: var(--navy-900); color: #fff; }
.side-nav a[aria-current="page"] i { color: var(--gold-400); }

/* ===== 12. CONTACT & FORMS ===== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); align-items: start; }

.contact-panel { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 38px); border-radius: var(--radius-lg); background: var(--navy-900); color: var(--on-dark); }
.contact-panel::before { content: ''; position: absolute; width: 300px; height: 300px; right: -130px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(237, 190, 94, 0.25), transparent 70%); }
.contact-panel h3 { position: relative; font-size: 1.25rem; color: #fff; margin-bottom: 6px; }
.contact-panel > p { position: relative; font-size: var(--fs-sm); color: var(--on-dark-muted); margin-bottom: 26px; }
.contact-list { position: relative; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: var(--gold-400); }
.contact-list .label { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--on-dark-muted); }
.contact-list .value { font-size: var(--fs-sm); font-weight: 500; color: #fff; }
.contact-list a.value:hover { color: var(--gold-400); text-decoration: underline; text-underline-offset: 3px; }

.form-card { padding: clamp(24px, 4vw, 38px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.form-card > p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-strong); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 1rem;
    color: var(--text-strong);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
    appearance: none;
    padding-right: 40px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6B80' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field textarea { min-height: 120px; resize: vertical; }
.field ::placeholder { color: #8593A6; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(31, 79, 160, 0.15);
}
.field input:user-invalid { border-color: var(--danger); }

.form-foot { display: grid; gap: 12px; margin-top: 4px; }
.form-note { max-width: none; font-size: var(--fs-xs); text-align: center; color: var(--text-muted); }
.form-status {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #E7F6EE;
    color: var(--success);
    font-size: var(--fs-sm);
    font-weight: 600;
}
.form-status.is-visible { display: flex; animation: slideUp 0.4s var(--ease-out); }

.map-frame { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); filter: saturate(0.85); }

/* About: at a glance + mission */
.glance { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.glance div { padding: 24px 26px; }
.glance div + div { border-left: 1px solid var(--line); }
.glance dt { margin-bottom: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.glance dd { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--text-strong); }
.glance-wrap { position: relative; z-index: 2; margin-top: -48px; }

/* ===== 13. FOOTER ===== */
.site-footer { padding-top: clamp(3rem, 2.5rem + 3vw, 4.5rem); background: var(--navy-950); color: var(--on-dark-muted); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; margin-bottom: 20px; }
.site-footer h4 { margin-bottom: 16px; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.footer-links a { display: inline-flex; padding: 5px 0; color: var(--on-dark-muted); transition: color 0.2s, transform 0.25s var(--ease); }
.footer-links a:hover { color: var(--gold-400); transform: translateX(4px); }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact i { width: 14px; margin-top: 5px; text-align: center; color: var(--gold-400); }
.footer-contact a:hover { color: var(--gold-400); }

.social { display: flex; gap: 8px; }
.social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: var(--on-dark);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: var(--fs-xs);
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold-500);
    color: var(--navy-900);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== 14. MOTION ===== */
@keyframes kenBurns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes meshFloat {
    0%, 100% { transform: translateX(0); opacity: 0.3; }
    50% { transform: translateX(30%); opacity: 1; }
}

.mesh-line { animation: meshFloat 12s ease-in-out infinite; }
.mesh-line:nth-child(2) { animation-delay: 3s; animation-direction: reverse; }
.mesh-line:nth-child(3) { animation-delay: 6s; }

/* Header drops in; page content fades in; fades out when leaving */
/* "backwards" so no transform lingers after the drop-in: a transform would trap the fixed mobile menu */
.js .site-header { animation: slideDown 0.7s var(--ease-out) backwards; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-100%); } }
.js main { animation: fadeIn 0.6s ease both; }
.page-hero .container > * { animation: slideUp 0.9s var(--ease-out) both; }
.page-hero .container > :nth-child(2) { animation-delay: 0.1s; }
.page-hero .container > :nth-child(3) { animation-delay: 0.2s; }
.page-hero .container > :nth-child(4) { animation-delay: 0.3s; }
.page-hero .container > :nth-child(5) { animation-delay: 0.4s; }
body { transition: opacity 0.25s ease; }
body.is-leaving { opacity: 0; }

/* Scroll reveal (JS adds .is-visible; delays set per item for stagger) */
.js .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--delay, 0s);
}
.js .reveal-left { transform: translateX(-48px); }
.js .reveal-right { transform: translateX(48px); }
.js .reveal-zoom { transform: scale(0.94); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal, .slide-copy > * { opacity: 1; transform: none; }
    .hero-mesh { display: none; }
}

/* ===== 15. RESPONSIVE ===== */
@media (min-width: 768px) {
    .container { padding: 0 32px; }
}

@media (max-width: 1100px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail { grid-template-columns: minmax(0, 1fr) 300px; }
    .nav-link { padding: 8px 10px; }
    .nav-link::after { left: 10px; right: 10px; }
}

@media (max-width: 960px) {
    :root { --header-h: 64px; }

    .menu-toggle { display: block; }
    .nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 28px;
        padding: calc(var(--header-h) + 12px) 28px 28px;
        background: var(--navy-950);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .menu-open .nav { opacity: 1; visibility: visible; }
    .site-header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; } /* blur would confine the fixed menu to the header */
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list li { opacity: 0; transform: translateY(16px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
    .menu-open .nav-list li { opacity: 1; transform: none; }
    .menu-open .nav-list li:nth-child(2) { transition-delay: 0.05s; }
    .menu-open .nav-list li:nth-child(3) { transition-delay: 0.1s; }
    .menu-open .nav-list li:nth-child(4) { transition-delay: 0.15s; }
    .menu-open .nav-list li:nth-child(5) { transition-delay: 0.2s; }
    .nav-link { width: 100%; padding: 12px 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; border-bottom: 1px solid var(--line-dark); }
    .nav-link::after { display: none; }
    .nav-link.active { color: var(--gold-400); }
    .header-cta { width: 100%; }

    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .stats-band dl { grid-template-columns: repeat(2, 1fr); }
    .stats-band dl > div:nth-child(3) { border-left: 0; }
    .stats-band dl > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }

    .split, .faq-layout, .contact-grid, .detail { grid-template-columns: 1fr; }
    .split--reverse > :first-child { order: 0; }
    .split-media { max-width: 520px; }
    .sidebar { position: static; grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
    .step:nth-child(2)::after { display: none; }
    .glance { grid-template-columns: repeat(2, 1fr); }
    .glance div:nth-child(3) { border-left: 0; }
    .glance div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
    .grid--2, .grid--3, .grid--4, .form-row, .glance, .material-list, .supply-grid, .sidebar { grid-template-columns: 1fr; }
    .form-row { gap: 0; }
    .brand-tag { display: none; }

    /* Stack slides in one grid cell so the slider grows to fit the tallest slide */
    .slider { display: grid; height: auto; min-height: 0; }
    .slide { position: relative; grid-area: 1 / 1; padding: calc(var(--header-h) + 36px) 0 64px; }
    .slide-badge { font-size: 0.75rem; }
    .slide-actions .btn { flex: 1 1 100%; }

    .split-media::before { inset: 12px -10px -12px 12px; }
    .steps { grid-template-columns: 1fr; row-gap: 26px; }
    .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
    .step-num { grid-row: span 2; margin: 0; }
    .step::after { display: none; }

    .glance div + div { border-left: 0; border-top: 1px solid var(--line); }
    .glance-wrap { margin-top: -32px; }
    .cta-band .actions, .cta-band .actions .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
    .map-frame { height: 300px; }
}
