/* ============================================================
   All Phase Renovations — Luxury Design System
   ============================================================ */

:root {
    /* Brand literals (constant in both themes) */
    --navy: #0f1f3d;
    --navy-light: #1a2f57;
    --gold: #c9a35c;
    --gold-dark: #b08d45;
    --white: #ffffff;

    /* Semantic tokens (theme-aware) */
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f7f4ee;
    --text: #1c1c1e;
    --heading: #0f1f3d;
    --muted: #5b6472;
    --border: #e7e2d8;
    --header-bg: rgba(255, 255, 255, 0.96);
    --footer-bg: #1c1c1e;

    --serif: "Playfair Display", Georgia, serif;
    --sans: "Manrope", system-ui, -apple-system, sans-serif;

    --radius: 14px;
    --shadow: 0 20px 45px rgba(15, 31, 61, 0.12);
    --shadow-lg: 0 30px 70px rgba(15, 31, 61, 0.22);
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 76px;
}

[data-theme="dark"] {
    --bg: #0e1219;
    --surface: #171d28;
    --surface-2: #121823;
    --text: #e6e9ef;
    --heading: #f3f6fb;
    --muted: #9aa3b4;
    --border: #283042;
    --header-bg: rgba(16, 20, 28, 0.96);
    --footer-bg: #0a0d13;
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
}

html { background: var(--bg); }
body, .header, .service-card, .testimonial, .field, .fselect__trigger, .fselect__menu, .autocomplete__list { transition: background-color var(--transition), border-color var(--transition), color var(--transition); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* Inline SVG icons */
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -0.15em; }
.icon--fill { fill: currentColor; stroke: none; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--heading); font-weight: 600; }

.section { padding: 96px 0; }
.section--light { background: var(--surface-2); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

/* --- Section heading helper --- */
.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(201,163,92,0.35); }
.btn--outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn--lg { padding: 17px 38px; font-size: 1.05rem; }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar__left { display: flex; gap: 20px; align-items: center; }
.topbar__left a:hover { color: var(--gold); }
.topbar__right { display: flex; gap: 16px; }
.topbar__badge { color: var(--gold); font-weight: 600; }

/* ============================================================
   Header / Nav
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand__name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--heading); }
.brand__logo { height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-weight: 600; font-size: 0.95rem; color: var(--text); position: relative; transition: color var(--transition); }
.nav__link::after {
    content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
    background: var(--gold); transition: width var(--transition);
}
.nav__link:hover { color: var(--heading); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 6px; position: relative; overflow: hidden; }
.nav__cta::after { display: none; }
/* attention-grabbing shine sweep */
.nav__cta::before {
    content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.65), transparent);
    transform: skewX(-22deg); pointer-events: none;
    animation: cta-shine 3.2s ease-in-out infinite;
}
@keyframes cta-shine {
    0% { left: -80%; }
    55% { left: 140%; }
    100% { left: 140%; }
}
@media (prefers-reduced-motion: reduce) { .nav__cta::before { animation: none; } }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--heading); transition: var(--transition); }

/* Theme toggle */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: transparent; border: 1px solid var(--border); color: var(--heading);
    cursor: pointer; margin-left: 16px; transition: var(--transition); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.theme-toggle .icon { width: 1.2em; height: 1.2em; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; height: calc(100vh - var(--header-h)); min-height: 560px; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 1.2s ease, visibility 1.2s ease;
    background-size: cover; background-position: center;
}
.hero__slide.active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero__slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(15,31,61,0.85) 0%, rgba(15,31,61,0.45) 55%, rgba(15,31,61,0.25) 100%);
}
.hero__content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    color: var(--white); max-width: 720px;
}
.hero__content .eyebrow { color: var(--gold); }
.hero__title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); color: var(--white); margin-bottom: 20px; }
.hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,0.9); margin-bottom: 36px; max-width: 560px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); border: 0; cursor: pointer; transition: var(--transition); }
.hero__dot.active { background: var(--gold); width: 28px; border-radius: 999px; }

/* Fallback hero when no slides exist */
.hero--fallback { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }

/* ============================================================
   Stats / trust strip
   ============================================================ */
.stats { background: var(--gold); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats__item { padding: 34px 16px; border-right: 1px solid rgba(255,255,255,0.25); }
.stats__item:last-child { border-right: 0; }
.stats__num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.stats__label { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; margin-top: 8px; opacity: 0.95; }

/* ============================================================
   Services grid
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.service-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__img { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-card__img img { transform: scale(1.08); }
.service-card__img--empty { display: grid; place-items: center; font-size: 2.5rem; color: var(--gold); background: var(--surface-2); }
.service-card__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.service-card__body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card__body p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.service-card__link { margin-top: 18px; font-weight: 700; color: var(--gold); display: inline-flex; gap: 6px; transition: gap var(--transition); }
.service-card__link:hover { gap: 12px; }

/* ============================================================
   Why choose us
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.feature { text-align: center; padding: 10px; }
.feature__icon {
    width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%;
    background: rgba(201,163,92,0.15); color: var(--gold);
    display: grid; place-items: center; font-size: 1.8rem;
}
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* ============================================================
   Projects / portfolio grid
   ============================================================ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.project-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.project-card:hover img { transform: scale(1.08); }
.project-card__overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; color: var(--white);
    background: linear-gradient(to top, rgba(15,31,61,0.9), transparent 65%);
}
.project-card__cat { font-size: 0.8rem; color: var(--gold); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.project-card__title { font-family: var(--serif); font-size: 1.3rem; color: var(--white); }
.project-card__placeholder { display: grid; place-items: center; height: 100%; background: var(--navy-light); color: var(--gold); font-size: 2rem; }

/* ============================================================
   Before / After slider
   ============================================================ */
.ba-slider { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); user-select: none; box-shadow: var(--shadow); }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider__after { clip-path: inset(0 0 0 50%); }
.ba-slider__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--white); cursor: ew-resize; }
.ba-slider__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--navy); font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,0.3); font-size: 1.2rem; }
.ba-slider__label { position: absolute; top: 16px; padding: 6px 14px; background: rgba(15,31,61,0.75); color: #fff; font-size: 0.8rem; font-weight: 700; border-radius: 999px; }
.ba-slider__label--before { left: 16px; }
.ba-slider__label--after { right: 16px; }

/* Drag hint — pulsing grip + floating label, auto-nudge until first use */
.ba-slider:not(.interacted) .ba-slider__grip { animation: grip-pulse 1.6s ease-in-out infinite; }
@keyframes grip-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 0 0 rgba(201,163,92,0.6); }
    50% { box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 0 12px rgba(201,163,92,0); }
}
/* smooth movement during the one-time intro demo */
.ba-slider.demo .ba-slider__after,
.ba-slider.demo .ba-slider__handle { transition: clip-path 0.7s ease, left 0.7s ease; }
.ba-slider__hint {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
    background: var(--gold); color: #fff; font-size: 0.82rem; font-weight: 700;
    padding: 8px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    pointer-events: none; white-space: nowrap; z-index: 2;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.ba-slider.interacted .ba-slider__hint { opacity: 0; transform: translateX(-50%) translateY(10px); }
@media (prefers-reduced-motion: reduce) {
    .ba-slider__grip, .ba-slider__handle { animation: none !important; }
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.testimonial {
    background: var(--surface); border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
}
.testimonial__stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial__quote { font-size: 1.02rem; color: var(--text); font-style: italic; margin-bottom: 20px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--gold); font-weight: 700; }
.testimonial__name { font-weight: 700; color: var(--heading); }
.testimonial__loc { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   Testimonials slider (one full-width review at a time)
   ============================================================ */
.tslider { position: relative; max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.tslider__viewport { overflow: hidden; flex: 1; border-radius: var(--radius); }
.tslider__track { display: flex; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.tslide { flex: 0 0 100%; padding: 10px; }
.tslide__card {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
    box-shadow: var(--shadow); padding: 56px 48px 44px; text-align: center;
}
.tslide__card::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}
.tslide__mark {
    position: absolute; top: 6px; left: 28px; font-family: var(--serif);
    font-size: 7rem; line-height: 1; color: var(--gold); opacity: 0.16; pointer-events: none;
}
.tslide__stars { position: relative; color: var(--gold); font-size: 1.4rem; letter-spacing: 5px; margin-bottom: 24px; }
.tslide__quote { position: relative; font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.65rem); line-height: 1.65; color: var(--text); font-style: italic; margin-bottom: 34px; }
.tslide__author { display: flex; align-items: center; justify-content: center; gap: 18px; }
.tslide__avatar {
    width: 104px; height: 104px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: var(--gold); color: #fff; display: grid; place-items: center;
    font-size: 2.4rem; font-weight: 700;
    border: 4px solid var(--surface); box-shadow: 0 0 0 3px var(--gold), 0 12px 26px rgba(201,163,92,0.4);
}
.tslide__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tslide__meta { text-align: left; }
.tslide__name { font-weight: 800; color: var(--heading); font-size: 1.2rem; }
.tslide__loc { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }

@media (max-width: 600px) {
    .tslide__avatar { width: 84px; height: 84px; font-size: 2rem; }
    .tslide__author { flex-direction: column; gap: 12px; }
    .tslide__meta { text-align: center; }
}

.tslider__nav {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border); color: var(--heading);
    font-size: 1.6rem; line-height: 1; cursor: pointer; transition: var(--transition);
    display: grid; place-items: center; box-shadow: var(--shadow);
}
.tslider__nav:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-2px); }
.tslider__dots { position: absolute; bottom: -34px; left: 0; right: 0; display: flex; gap: 9px; justify-content: center; }
.tslider__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; transition: var(--transition); padding: 0; }
.tslider__dot.active { background: var(--gold); width: 26px; border-radius: 999px; }

@media (max-width: 600px) {
    .tslide__card { padding: 34px 22px; }
    .tslider__nav { width: 40px; height: 40px; font-size: 1.3rem; }
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-light)); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 30px; }
.cta-band__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--footer-bg); color: rgba(255,255,255,0.7); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand { color: var(--white); font-size: 1.4rem; margin-bottom: 10px; }
.footer__tag { color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.footer__text { font-size: 0.9rem; line-height: 1.7; }
.footer__col h4 { color: var(--white); font-family: var(--sans); font-size: 1rem; margin-bottom: 18px; }
.footer__col a { display: block; padding: 5px 0; font-size: 0.92rem; transition: color var(--transition); }
.footer__col a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 16px; margin-top: 18px; }
.footer__social a { color: var(--gold); font-weight: 600; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; font-size: 0.85rem; }

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.whatsapp-float {
    position: fixed; bottom: 26px; right: 26px; z-index: 200;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 10px 30px rgba(37,211,102,0.5);
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ============================================================
   Forms / Contact
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.lead-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form .form-group { margin-bottom: 16px; }
.field {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px;
    font-family: var(--sans); font-size: 0.97rem; color: var(--text); background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,163,92,0.15); }
textarea.field { resize: vertical; }
.field-error { display: block; color: #c0392b; font-size: 0.82rem; margin-top: 4px; font-weight: 600; }
.has-error .field, .has-error .fselect__trigger { border-color: #c0392b; background: #fdf6f5; }
.has-error .field:focus { box-shadow: 0 0 0 3px rgba(192,57,43,0.15); }

/* Custom select (frontend) */
.fselect { position: relative; }
.fselect__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-family: var(--sans); font-size: 0.97rem; color: var(--text); cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition); text-align: left; }
.fselect.open .fselect__trigger { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,163,92,0.15); }
.fselect__label.is-placeholder { color: #9aa1ad; }
.fselect__caret { color: var(--muted); transition: transform 0.25s ease; font-size: 0.7rem; }
.fselect.open .fselect__caret { transform: rotate(180deg); color: var(--gold); }
.fselect__menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 260px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.18s ease; }
.fselect.open .fselect__menu { opacity: 1; visibility: visible; transform: none; }
.fselect__option { padding: 11px 13px; border-radius: 8px; font-size: 0.93rem; font-weight: 500; cursor: pointer; transition: all 0.15s ease; }
.fselect__option:hover { background: rgba(201,163,92,0.12); color: var(--gold-dark); }
.fselect__option.selected { background: var(--navy); color: #fff; }

/* Suburb autocomplete */
.autocomplete { position: relative; }
.autocomplete__list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 240px; overflow-y: auto; display: none; }
.autocomplete__list.show { display: block; }
.autocomplete__item { padding: 10px 13px; border-radius: 8px; font-size: 0.92rem; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.autocomplete__item:hover, .autocomplete__item.active { background: rgba(201,163,92,0.12); }
.autocomplete__item .pc { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.autocomplete__empty { padding: 12px 13px; color: var(--muted); font-size: 0.88rem; }

.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.alert--success { background: #e8f6ec; color: #1e7e44; border: 1px solid #b6e2c4; }
.alert--error { background: #fdeaea; color: #c0392b; border: 1px solid #f3c2c2; }

.contact-info { background: var(--surface-2); border-radius: var(--radius); padding: 36px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item span:first-child { font-size: 1.3rem; }
.contact-item strong { display: block; color: var(--heading); font-size: 0.95rem; }
.contact-item a, .contact-item div span { color: var(--muted); }
.contact-item a:hover { color: var(--gold); }

@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; gap: 36px; }
    .lead-form .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--navy-light)); color: var(--white); padding: 70px 0; text-align: center; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: rgba(255,255,255,0.8); margin-top: 12px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 14px; }
.breadcrumb a:hover { color: var(--gold); }

/* ============================================================
   Reveal-on-scroll animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Mobile nav overlay
   ============================================================ */
.nav-overlay {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(15,31,61,0.5); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity var(--transition);
}
.nav-overlay.show { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stats__item:nth-child(2) { border-right: 0; }
    .stats__item { border-bottom: 1px solid rgba(255,255,255,0.25); }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    /* backdrop-filter on the header turns it into the containing block for the
       fixed nav drawer, shrinking it to header height — disable it on mobile. */
    .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
    .nav-toggle { display: flex; z-index: 110; }
    .nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: 82%; max-width: 330px;
        background: var(--surface); flex-direction: column; align-items: stretch; gap: 2px;
        padding: 90px 24px 30px; box-shadow: var(--shadow-lg); transform: translateX(100%);
        transition: transform var(--transition); overflow-y: auto; z-index: 100;
    }
    .nav.open { transform: translateX(0); }
    .nav__link { width: 100%; padding: 15px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
    .nav__link::after { display: none; }
    .nav__cta { width: 100%; justify-content: center; margin-top: 18px; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .brand__name { font-size: 1.15rem; }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 38px; }

    /* Hero */
    .hero { min-height: 88vh; }
    .hero__title { font-size: clamp(2rem, 8.5vw, 3rem); }
    .hero__actions .btn { flex: 1; justify-content: center; }

    /* Two-column detail layouts -> stack */
    .detail-split { grid-template-columns: 1fr !important; }
    .detail-split aside { position: static !important; }
}

@media (max-width: 560px) {
    .footer__grid { grid-template-columns: 1fr; text-align: center; }
    .footer__social { justify-content: center; }
    .stats__grid { grid-template-columns: 1fr 1fr; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .btn--lg { padding: 15px 26px; font-size: 1rem; }
    .cta-band__actions { flex-direction: column; }
    .cta-band__actions .btn { width: 100%; justify-content: center; }
}
