/* ================================================================
   Al Ghadeer Gardens Landing Theme – main.css
   Premium dark luxury real estate landing page.
   Mobile-first · No external frameworks.
   Palette: deep navy, beige/sand-gold accent, white/off-white text.
   Typography: Poppins throughout.
   ================================================================ */

/* ────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   Overridable from the Dashboard (Al Ghadeer Landing → Branding
   Colors) via an inline <style> block printed in wp_head with
   higher source order — see alghadeer_output_dynamic_styles().
   ──────────────────────────────────────────────────────────────── */
:root {
    /* Palette — deep navy + warm beige/sand-gold accent */
    --clr-primary:        #16264A;
    --clr-primary-deep:   #0B1426;
    --clr-primary-mid:    #1F3360;
    --clr-secondary:      #2A3B66;
    --clr-accent:         #C9A876;
    --clr-accent-hover:   #B8945E;
    --btn-bg:             #C9A876;
    --btn-text:           #0B1426;

    /* Text */
    --clr-white:          #FFFFFF;
    --clr-off-white:      #E9E6DD;
    --clr-muted:          #B9C0CF;
    --clr-dark:           #FFFFFF;
    --clr-dark-muted:     #C7CCDA;

    /* Backgrounds */
    --clr-bg-dark:        #0B1426;
    --clr-bg-dark-alt:    #101B33;
    --clr-bg-light:       #16264A;
    --clr-bg-light-alt:   #1C2E58;
    --clr-bg-final-cta:   #0B1426;

    /* Borders — beige-tinted on every (now-navy) background */
    --bdr-dark:           rgba(201,168,118,0.18);
    --bdr-dark-strong:    rgba(201,168,118,0.35);
    --bdr-light:          rgba(201,168,118,0.15);
    --bdr-light-strong:   rgba(201,168,118,0.30);

    /* Typography — Poppins for everything */
    --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-serif:   'Poppins', system-ui, -apple-system, sans-serif;
    --font-sans:    'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
                    Helvetica, Arial, sans-serif;
    --font-ui:      'Poppins', system-ui, -apple-system, sans-serif;
    --font-numeric: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-body:    'Poppins', system-ui, -apple-system, sans-serif;

    /* Sticky CTA */
    --sticky-cta-h: 62px;

    /* Scale */
    --text-xs:    0.72rem;
    --text-sm:    0.85rem;
    --text-base:  1rem;
    --text-md:    1.1rem;
    --text-lg:    1.35rem;
    --text-xl:    1.75rem;
    --text-2xl:   2.25rem;
    --text-3xl:   clamp(2rem, 4vw, 3rem);
    --text-hero:  clamp(2.4rem, 6vw, 4rem);

    /* Spacing */
    --sp-1:  0.5rem;
    --sp-2:  1rem;
    --sp-3:  1.5rem;
    --sp-4:  2rem;
    --sp-5:  2.5rem;
    --sp-6:  3rem;
    --sp-8:  4rem;
    --sp-12: 6rem;
    --sp-16: 8rem;

    /* Layout */
    --max-w:       1200px;
    --pad-x:       1.25rem;
    --radius-sm:   5px;
    --radius-md:   10px;
    --radius-lg:   18px;
    --radius-full: 9999px;

    /* Transitions */
    --ease:        0.22s ease;

    /* Header */
    --header-h:    70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--clr-dark);
    background: var(--clr-bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
h1,h2,h3,h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
    font-variant-numeric: lining-nums tabular-nums;
}

/* Anchor scroll offset for fixed header */
section[id], div[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ────────────────────────────────────────────────────────────────
   3. LAYOUT
   ──────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

.section-dark    { background: var(--clr-bg-dark);   color: var(--clr-white); }
.section-light   { background: var(--clr-bg-light);  color: var(--clr-dark); }

/* ────────────────────────────────────────────────────────────────
   4. TYPOGRAPHY HELPERS
   ──────────────────────────────────────────────────────────────── */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: var(--sp-1);
}

.section-eyebrow.text-accent-dark { color: var(--clr-secondary); }

.section-heading {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    letter-spacing: -0.02em;
    color: var(--clr-white);
    margin-bottom: var(--sp-2);
    line-height: 1.2;
}
.section-heading.text-dark { color: var(--clr-dark); }

.section-intro {
    font-size: var(--text-base);
    line-height: 1.75;
    max-width: 680px;
    margin-bottom: var(--sp-4);
}
.text-dark-muted  { color: var(--clr-dark-muted); }
.text-accent      { color: var(--clr-accent); }

.section-header-row {
    margin-bottom: var(--sp-5);
}

.disclaimer-text {
    font-size: var(--text-xs);
    line-height: 1.55;
    font-style: italic;
    opacity: 0.65;
}

/* ────────────────────────────────────────────────────────────────
   5. BUTTONS
   ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1.75rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--ease), color var(--ease),
                border-color var(--ease), opacity var(--ease);
    line-height: 1;
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 3px;
}
.btn:active { opacity: 0.88; }

/* ── Primary CTA: filled beige/sand, dark navy text ──
   .btn-primary and .btn-primary-dark both resolve to the same
   filled-beige treatment — the whole site is dark navy now, so the
   old "light bg vs dark bg" button distinction no longer applies. */
.btn-primary,
.btn-primary-dark {
    background: var(--btn-bg, var(--clr-accent));
    color: var(--btn-text, var(--clr-primary-deep));
    border-color: var(--btn-bg, var(--clr-accent));
}
.btn-primary:hover,
.btn-primary-dark:hover {
    background: var(--clr-accent-hover);
    border-color: var(--clr-accent-hover);
}

/* ── Secondary CTA: outlined beige/white, transparent bg ──
   .btn-accent, .btn-outline-light and .btn-outline-dark all resolve
   to the same outlined treatment for the same reason as above. */
.btn-accent,
.btn-outline-light,
.btn-outline-dark {
    background: transparent;
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}
.btn-accent:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover {
    background: var(--clr-accent);
    color: var(--clr-primary-deep);
}

/* Ghost (minimal, small) */
.btn-ghost,
.btn-ghost-dark {
    background: transparent;
    color: var(--clr-accent);
    border-color: rgba(201,168,118,0.4);
    padding: 0.45rem 1rem;
    font-size: var(--text-xs);
}
.btn-ghost:hover,
.btn-ghost-dark:hover {
    background: rgba(201,168,118,0.1);
    color: var(--clr-accent);
}

/* Modifiers */
.btn-sm   { padding: 0.5rem 1.1rem; font-size: var(--text-xs); }
.btn-full { width: 100%; }

/* ────────────────────────────────────────────────────────────────
   6. HEADER
   ──────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--header-h);
    background: rgba(11,20,38,0.97);
    border-bottom: 1px solid var(--bdr-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.site-header.scrolled {
    box-shadow: 0 2px 28px rgba(0,0,0,0.5);
}

/* Header doesn't stick to the viewport (Dashboard toggle) */
.site-header--static {
    position: relative;
}

/* Transparent overlay header on the homepage hero (Dashboard toggle).
   Becomes the normal solid navy header once .scrolled is added by JS. */
.site-header--transparent:not(.scrolled) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(11,20,38,0.55) 0%, rgba(11,20,38,0) 100%);
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.site-header--transparent:not(.scrolled) .nav-link {
    color: rgba(255,255,255,0.92);
}
.site-header--transparent:not(.scrolled) .hamburger-line {
    background: var(--clr-white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--sp-2);
}

.header-logo-link { flex-shrink: 0; display: flex; align-items: center; }

.header-logo-img {
    max-width: 280px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Mobile shows the mobile-logo variant (if provided); desktop shows
   the header-logo variant. Falls back gracefully — header.php only
   renders the variants that actually have an existing image file. */
.header-logo-img--mobile  { display: block; max-width: 160px; max-height: 36px; }
.header-logo-img--desktop { display: none; }

.header-logo-text {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--clr-white);
    white-space: nowrap;
}

/* Desktop nav – hidden on mobile */
.header-nav  { display: none; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.nav-link {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--clr-muted);
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
    transition: color var(--ease), background var(--ease);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--clr-white);
    background: rgba(255,255,255,0.05);
}

/* Header CTA button – hidden on mobile */
.header-cta { display: none; }

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 7px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    transition: background var(--ease);
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); }

.hamburger-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--clr-muted);
    border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 899;
    background: rgba(23,0,10,0.98);
    border-bottom: 1px solid var(--bdr-dark);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.32s ease;
}
.mobile-nav.is-open { max-height: 500px; }

.mobile-nav-list {
    padding: var(--sp-2) var(--pad-x) var(--sp-3);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.7rem 0.5rem;
    font-size: var(--text-sm);
    color: var(--clr-muted);
    border-bottom: 1px solid var(--bdr-dark);
    transition: color var(--ease);
}
.mobile-nav-link:hover { color: var(--clr-accent); }

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    padding-top: var(--sp-2);
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--clr-accent);
    color: var(--clr-dark);
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }

/* ────────────────────────────────────────────────────────────────
   7. HERO SECTION
   ──────────────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-bg--fallback {
    background: linear-gradient(145deg,
        var(--clr-primary-deep) 0%,
        var(--clr-primary)      60%,
        var(--clr-secondary)    100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(23,0,10,0.90) 0%,
        rgba(23,0,10,0.72) 50%,
        rgba(23,0,10,0.45) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-block: var(--sp-12);
    width: 100%;
}

.hero-content {
    max-width: 620px;
}

.hero-eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: var(--sp-2);
    opacity: 0.9;
}

.hero-heading {
    font-family: var(--font-serif);
    font-size: var(--text-hero);
    color: var(--clr-white);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-3);
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    color: var(--clr-accent);
    font-style: italic;
    margin-bottom: var(--sp-3);
    line-height: 1.35;
}

.hero-body {
    font-size: var(--text-base);
    color: var(--clr-muted);
    line-height: 1.75;
    margin-bottom: var(--sp-5);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    align-items: center;
}

/* ────────────────────────────────────────────────────────────────
   8. PROJECT HIGHLIGHTS STRIP
   ──────────────────────────────────────────────────────────────── */
.highlights-section {
    background: var(--clr-bg-dark-alt);
    border-top: 1px solid var(--bdr-dark);
    border-bottom: 1px solid var(--bdr-dark);
    padding-block: var(--sp-4);
}

.highlights-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    row-gap: var(--sp-2);
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    padding: var(--sp-2) var(--sp-3);
    border-right: 1px solid var(--bdr-dark);
    min-width: 130px;
    flex: 1 1 130px;
}

.highlight-item:last-child { border-right: none; }

.highlight-value {
    font-family: var(--font-numeric);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--clr-accent);
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.highlight-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--clr-muted);
}

/* ────────────────────────────────────────────────────────────────
   9. OVERVIEW SECTION
   ──────────────────────────────────────────────────────────────── */
.overview-section { padding-block: var(--sp-12); }

/* Text-only variant (image moved out as standalone banner) */
.overview-inner--text-only .overview-text {
    max-width: 720px;
}

.overview-inner {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.overview-text p {
    font-size: var(--text-base);
    color: var(--clr-dark-muted);
    line-height: 1.8;
    margin-bottom: var(--sp-2);
    max-width: 680px;
}

.overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-3);
}

.overview-img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}

/* ────────────────────────────────────────────────────────────────
   10. WHY SECTION
   ──────────────────────────────────────────────────────────────── */
.why-section { padding-block: var(--sp-12); }

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2);
}

.why-card {
    border: 1px solid var(--bdr-dark);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-3);
    transition: background var(--ease), border-color var(--ease);
    background: rgba(255,255,255,0.025);
}

.why-card:hover {
    background: rgba(255,255,255,0.045);
    border-color: var(--bdr-dark-strong);
}

.why-icon {
    width: 36px;
    height: 36px;
    color: var(--clr-accent);
    margin-bottom: var(--sp-2);
    flex-shrink: 0;
}

.why-icon svg { width: 100%; height: 100%; }

.why-title {
    font-family: var(--font-ui);
    font-size: var(--text-md);
    color: var(--clr-white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.why-desc {
    font-size: var(--text-sm);
    color: var(--clr-muted);
    line-height: 1.65;
}

/* ────────────────────────────────────────────────────────────────
   11. UNITS SECTION
   ──────────────────────────────────────────────────────────────── */
.units-section { padding-block: var(--sp-12); }

.units-table-wrap {
    border-radius: var(--radius-md);
    border: 1px solid var(--bdr-light);
    margin-bottom: var(--sp-2);
    overflow: hidden;
}

@media (max-width: 639px) {
    .units-table-wrap {
        border: none;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }
}

.units-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    min-width: 0;
}

.units-table thead {
    background: var(--clr-primary-deep);
    color: var(--clr-white);
}

.units-table thead th {
    padding: 0.9rem 1.25rem;
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.units-table tbody tr {
    border-bottom: 1px solid var(--bdr-light);
    transition: background var(--ease);
}
.units-table tbody tr:hover { background: rgba(22,38,74,0.035); }

.units-table td {
    padding: 1rem 1.25rem;
    color: var(--clr-dark);
    vertical-align: middle;
}

.units-table td strong { color: var(--clr-dark); }

.table-total-row {
    background: var(--clr-bg-light-alt) !important;
}

.units-note { margin-bottom: var(--sp-4); }

.units-cta { text-align: center; }

/* ────────────────────────────────────────────────────────────────
   12. PAYMENT PLAN SECTION
   ──────────────────────────────────────────────────────────────── */
.payment-section { padding-block: var(--sp-12); }

.payment-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--bdr-dark);
    border: 1px solid var(--bdr-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--sp-3);
}

.payment-card {
    background: rgba(255,255,255,0.025);
    padding: var(--sp-6) var(--sp-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    transition: background var(--ease);
}

.payment-card:hover {
    background: rgba(255,255,255,0.04);
}

.payment-card--accent { background: rgba(201,168,118,0.06); }

.payment-card-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-muted);
}

.payment-card-value {
    font-family: var(--font-numeric);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--clr-accent);
    line-height: 1;
    letter-spacing: -0.01em;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.payment-card-note {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.4);
}

.payment-disclaimer { margin-bottom: var(--sp-4); }
.payment-cta        { text-align: center; }

/* ────────────────────────────────────────────────────────────────
   13. AMENITIES SECTION
   ──────────────────────────────────────────────────────────────── */
.amenities-section {
    position: relative;
    overflow: hidden;
    padding-block: var(--sp-12);
    color: var(--clr-white);
}

.amenities-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: saturate(0.6) brightness(0.4);
}

.amenities-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(23,0,10,0.88) 0%,
        rgba(23,0,10,0.82) 100%
    );
}

.amenities-inner {
    position: relative;
    z-index: 2;
}

.amenities-group { margin-bottom: var(--sp-6); }
.amenities-group:last-child { margin-bottom: 0; }

.amenities-group-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--clr-muted);
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-1);
    border-bottom: 1px solid var(--bdr-dark);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-2);
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: var(--sp-4) var(--sp-2);
    border: 1px solid var(--bdr-dark);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
    transition: background var(--ease), border-color var(--ease);
}

.amenity-item:hover {
    background: rgba(255,255,255,0.055);
    border-color: var(--bdr-dark-strong);
}

.amenity-icon {
    width: 32px;
    height: 32px;
    color: var(--clr-white);
    flex-shrink: 0;
}
.amenity-icon svg { width: 100%; height: 100%; }

.amenity-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--clr-off-white);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* ────────────────────────────────────────────────────────────────
   14. LOCATION SECTION
   ──────────────────────────────────────────────────────────────── */
.location-section { padding-block: var(--sp-12); }

.location-layout {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.location-circles-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-3);
}

.location-circles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3) var(--sp-2);
    row-gap: var(--sp-4);
}

.location-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.circle-time-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 1.5px solid var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,168,118,0.06);
    transition: background var(--ease);
    flex-shrink: 0;
}

.location-circle-item:hover .circle-time-ring {
    background: rgba(201,168,118,0.14);
}

.circle-time-text {
    font-family: var(--font-numeric);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-accent);
    text-align: center;
    letter-spacing: -0.01em;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.circle-place-name {
    font-size: var(--text-xs);
    color: var(--clr-dark-muted);
    text-align: center;
    font-weight: 500;
    line-height: 1.35;
    max-width: 80px;
}

/* Map */
.map-area {
    min-height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--bdr-light);
}

.map-area iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: none;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-6);
    background: var(--clr-bg-light-alt);
    text-align: center;
}

.map-placeholder-pin {
    width: 36px;
    height: 36px;
    color: var(--clr-primary);
}
.map-placeholder-pin svg { width: 100%; height: 100%; }

.map-placeholder-label {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    color: var(--clr-dark);
    font-weight: 700;
}

.map-placeholder-sub {
    font-size: var(--text-sm);
    color: var(--clr-dark-muted);
}

/* ────────────────────────────────────────────────────────────────
   15. GALLERY SECTION
   ──────────────────────────────────────────────────────────────── */
.gallery-section { padding-block: var(--sp-12); }

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: var(--sp-3);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--clr-bg-dark-alt);
}

.gallery-item--featured { aspect-ratio: 16/8; }
.gallery-item:not(.gallery-item--featured) { aspect-ratio: 4/3; }

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.gallery-item:hover .gallery-img { transform: scale(1.03); }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--sp-2) var(--sp-2) var(--sp-1);
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.04em;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--ease);
}

.gallery-item:hover .gallery-caption { opacity: 1; }

.gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(22,38,74,0.2),
        rgba(201,168,118,0.1));
    border: 1px solid var(--bdr-dark);
    border-radius: var(--radius-md);
}

.gallery-placeholder span {
    font-size: var(--text-sm);
    color: var(--clr-muted);
    font-weight: 500;
}

.gallery-note { margin-top: var(--sp-1); }

/* ────────────────────────────────────────────────────────────────
   16. DEVELOPER SECTION
   ──────────────────────────────────────────────────────────────── */
.developer-section { padding-block: var(--sp-12); }

.developer-text p {
    font-size: var(--text-base);
    color: var(--clr-dark-muted);
    line-height: 1.8;
    margin-bottom: var(--sp-2);
    max-width: 700px;
}

/* ────────────────────────────────────────────────────────────────
   17. FAQ SECTION
   ──────────────────────────────────────────────────────────────── */
.faq-section { padding-block: var(--sp-12); }

.faq-list {
    border: 1px solid var(--bdr-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--bdr-dark); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--sp-3) var(--sp-3);
    text-align: left;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--clr-white);
    background: rgba(255,255,255,0.02);
    gap: var(--sp-2);
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
    border: none;
}

.faq-question:hover {
    background: rgba(255,255,255,0.045);
    color: var(--clr-accent);
}

.faq-question[aria-expanded="true"] {
    background: rgba(201,168,118,0.06);
    color: var(--clr-accent);
}

.faq-q-text { flex: 1; }

/* Chevron */
.faq-chevron {
    display: block;
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
}

.faq-chevron::before,
.faq-chevron::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 7px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--ease);
}

.faq-chevron::before { right: 50%; transform: translateY(-50%) rotate(-45deg); transform-origin: right; }
.faq-chevron::after  { left:  50%; transform: translateY(-50%) rotate(45deg);  transform-origin: left; }

.faq-question[aria-expanded="true"] .faq-chevron::before {
    transform: translateY(-50%) rotate(45deg);
}
.faq-question[aria-expanded="true"] .faq-chevron::after {
    transform: translateY(-50%) rotate(-45deg);
}

.faq-answer {
    padding: var(--sp-1) var(--sp-3) var(--sp-3);
    background: rgba(201,168,118,0.04);
}

.faq-answer p {
    font-size: var(--text-sm);
    color: var(--clr-muted);
    line-height: 1.75;
}

/* ────────────────────────────────────────────────────────────────
   18. FINAL CTA SECTION
   ──────────────────────────────────────────────────────────────── */
.final-cta-section {
    background: var(--clr-bg-final-cta);
    padding-block: var(--sp-12);
    padding-bottom: calc(var(--sp-12) + var(--sticky-cta-h) + env(safe-area-inset-bottom, 0px));
    color: var(--clr-white);
}

.final-cta-inner {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.final-cta-body {
    font-size: var(--text-base);
    color: var(--clr-muted);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: var(--sp-3);
}

.final-cta-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.final-cta-checklist li {
    font-size: var(--text-sm);
    color: var(--clr-muted);
    padding-left: 1.2rem;
    position: relative;
}

.final-cta-checklist li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--clr-accent);
}

/* Inline form on light area */
.inline-form-wrap {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ────────────────────────────────────────────────────────────────
   19. FORM STYLES (shared by inline + modal)
   ──────────────────────────────────────────────────────────────── */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.form-group { margin-bottom: var(--sp-2); }

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2);
}

.form-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--clr-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.form-label-opt {
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.7;
}

.required-mark { color: var(--clr-accent); margin-left: 2px; }

.form-control {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--clr-white);
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    transition: border-color var(--ease), box-shadow var(--ease);
    appearance: none;
    -webkit-appearance: none;
}

.form-control::placeholder { color: rgba(255,255,255,0.3); }

.form-control:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(201,168,118,0.18);
}

.form-submit-btn { margin-top: var(--sp-1); }

.btn-loading { display: none; }
.form-submit-btn.is-loading .btn-text    { display: none; }
.form-submit-btn.is-loading .btn-loading { display: block; }

.form-consent-note {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.form-success {
    text-align: center;
    padding: var(--sp-6) var(--sp-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
}

.form-success-check {
    width: 56px;
    height: 56px;
    color: var(--clr-accent);
}
.form-success-check svg { width: 100%; height: 100%; }

.form-success-text {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    color: var(--clr-white);
    line-height: 1.4;
    max-width: 320px;
}

.form-error-msg {
    background: rgba(220,60,60,0.1);
    border: 1px solid rgba(220,60,60,0.3);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: var(--text-sm);
    color: #FF6B6B;
    margin-bottom: var(--sp-2);
}

/* ────────────────────────────────────────────────────────────────
   20. MODALS
   ──────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15,0,8,0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-3) var(--pad-x);
    overflow-y: auto;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* Animation */
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.is-visible { opacity: 1; }

.modal-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--clr-bg-light);
    border-radius: var(--radius-lg);
    padding: var(--sp-6) var(--sp-4);
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
    transform: translateY(20px);
    transition: transform 0.28s ease;
    /* stack within scroll container */
    margin: auto;
}

.modal-overlay.is-visible .modal-box { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: var(--sp-2);
    right: var(--sp-2);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--clr-dark-muted);
    transition: background var(--ease), color var(--ease);
    flex-shrink: 0;
}

.modal-close svg { width: 18px; height: 18px; }

.modal-close:hover {
    background: var(--clr-bg-light-alt);
    color: var(--clr-dark);
}

.modal-close:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 2px;
}

.modal-header { margin-bottom: var(--sp-4); }

.modal-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    color: var(--clr-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: var(--text-sm);
    color: var(--clr-dark-muted);
    line-height: 1.6;
}

/* Modal forms use the same dark-navy form styling as the rest of the
   site (base .form-control below) — no light-mode override needed
   now that every section uses the navy/beige/white palette. */
.modal-form-wrap .form-success-text { color: var(--clr-white); }

/* ────────────────────────────────────────────────────────────────
   21. FOOTER
   ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--clr-primary-deep);
    border-top: 1px solid var(--bdr-dark);
    padding-block: var(--sp-8);
    padding-bottom: calc(var(--sp-8) + var(--sticky-cta-h) + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    align-items: flex-start;
}

.footer-logo-img {
    max-width: 200px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.85;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    color: var(--clr-white);
    font-weight: 700;
}

.footer-disclaimer p {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.38);
    line-height: 1.7;
    max-width: 680px;
}

.footer-copy p {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.22);
}

/* ────────────────────────────────────────────────────────────────
   22. STICKY MOBILE CTA BAR
   Mobile only – two buttons, no WhatsApp/phone
   ──────────────────────────────────────────────────────────────── */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    display: flex;
    flex-direction: row;
    background: var(--clr-primary-deep);
    border-top: 1px solid var(--bdr-dark);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sticky-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--sticky-cta-h);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: none;
    transition: background var(--ease);
    text-align: center;
    padding-inline: var(--sp-2);
}

.sticky-brochure {
    background: rgba(255,255,255,0.05);
    color: var(--clr-off-white);
    border-right: 1px solid var(--bdr-dark);
}
.sticky-brochure:hover { background: rgba(255,255,255,0.09); }

.sticky-register {
    background: var(--clr-accent);
    color: var(--clr-dark);
}
.sticky-register:hover { background: var(--clr-accent-hover); }

/* ────────────────────────────────────────────────────────────────
   23. THANK YOU PAGE
   ──────────────────────────────────────────────────────────────── */
.thankyou-page {
    background: var(--clr-primary-deep);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-block: var(--sp-12);
}

.thankyou-inner {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
}

.thankyou-icon { width: 72px; height: 72px; color: var(--clr-accent); }
.thankyou-icon svg { width: 100%; height: 100%; }

.thankyou-heading {
    font-size: var(--text-hero);
    color: var(--clr-white);
}

.thankyou-body {
    font-size: var(--text-md);
    color: var(--clr-muted);
    line-height: 1.7;
    max-width: 420px;
}

.thankyou-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    justify-content: center;
    margin-top: var(--sp-2);
}

/* ────────────────────────────────────────────────────────────────
   24. RESPONSIVE – TABLET (≥ 640px)
   ──────────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
    :root { --pad-x: 2rem; }

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

    .amenities-grid { grid-template-columns: repeat(3, 1fr); }
    .amenities-grid--community { grid-template-columns: repeat(4, 1fr); }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item--featured { grid-column: 1 / -1; }

    .payment-cards { grid-template-columns: repeat(4, 1fr); }

    .location-circles-grid { grid-template-columns: repeat(4, 1fr); }

    .final-cta-section {
        padding-bottom: var(--sp-12);
    }

    .form-row { grid-template-columns: repeat(2, 1fr); }
}

/* ────────────────────────────────────────────────────────────────
   25. RESPONSIVE – DESKTOP (≥ 960px)
   ──────────────────────────────────────────────────────────────── */
@media (min-width: 960px) {
    :root {
        --header-h: 74px;
        --pad-x:    2.5rem;
    }

    /* Header – show desktop elements */
    .header-nav   { display: flex; }
    .header-cta   { display: inline-flex; }
    .nav-toggle   { display: none; }
    .mobile-nav   { display: none; }

    .header-logo-img {
        max-width: 320px;
        max-height: 56px;
    }
    .header-logo-img--mobile  { display: none; }
    .header-logo-img--desktop { display: block; }

    /* Hero – left-aligned content, more space */
    .hero-inner { padding-block: var(--sp-16); }
    .hero-content { max-width: 600px; }

    /* Overview – text-only, centred with generous max-width */
    .overview-inner--text-only {
        max-width: 800px;
    }

    /* Overview – side by side when an optional overview image is set */
    .overview-inner:not(.overview-inner--text-only) {
        flex-direction: row;
        align-items: center;
        gap: var(--sp-12);
    }
    .overview-inner:not(.overview-inner--text-only) .overview-text       { flex: 1 1 55%; }
    .overview-inner:not(.overview-inner--text-only) .overview-image-wrap { flex: 0 0 42%; }

    /* Why – 4 columns */
    .why-grid { grid-template-columns: repeat(4, 1fr); }

    /* Amenities – 3 + 4 columns */
    .amenities-grid--exclusive { grid-template-columns: repeat(3, 1fr); }
    .amenities-grid--community { grid-template-columns: repeat(4, 1fr); }

    /* Location – side by side */
    .location-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--sp-8);
    }
    .location-circles-wrap { flex: 0 0 52%; }
    .map-area              { flex: 1; min-height: 360px; }

    .map-placeholder     { min-height: 360px; }
    .map-area iframe     { min-height: 360px; }

    /* Gallery – 3-column editorial grid */
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-item--featured { grid-column: span 2; }

    /* Final CTA – side by side */
    .final-cta-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--sp-12);
    }
    .final-cta-copy    { flex: 1 1 50%; }
    .final-cta-form-wrap { flex: 0 0 46%; max-width: 480px; }

    /* Footer – hide space for sticky bar */
    .site-footer { padding-bottom: var(--sp-8); }

    /* Hide sticky mobile CTA on desktop */
    .sticky-mobile-cta { display: none; }
    .gallery-dots      { display: none; }

    /* Highlights – no wrapping */
    .highlights-list { flex-wrap: nowrap; }
    .highlight-item { border-right: 1px solid var(--bdr-dark); }
}

/* ────────────────────────────────────────────────────────────────
   26. UTILITIES
   ──────────────────────────────────────────────────────────────── */
.hide-mobile { display: none; }
[hidden]     { display: none !important; }

/* ────────────────────────────────────────────────────────────────
   27. REDUCED MOTION + PRINT
   ──────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-header, .sticky-mobile-cta,
    .modal-overlay, .hero-actions,
    .final-cta-form-wrap { display: none !important; }
    body { font-size: 11pt; color: #000; background: #fff; }
}

/* ────────────────────────────────────────────────────────────────
   28. BROCHURE STORYTELLING BANNERS
   ──────────────────────────────────────────────────────────────── */
.brochure-banner {
    padding-block: var(--sp-6);
}

.brochure-banner-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.14);
    object-fit: contain;
}

/* Override .overview-img for brochure storytelling images */
.brochure-storytelling-img {
    object-fit: contain;
    aspect-ratio: auto;
    height: auto;
    max-height: none;
}

/* ────────────────────────────────────────────────────────────────
   29. MOBILE UNITS TABLE – PREMIUM STACKED CARDS
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 639px) {
    /* Disable table display */
    .units-table,
    .units-table thead,
    .units-table tbody,
    .units-table th,
    .units-table td,
    .units-table tr { display: block; width: 100%; }

    .units-table thead { display: none; }

    /* Each row = premium card */
    .units-table tbody tr {
        border: 1px solid var(--bdr-light);
        border-radius: var(--radius-md);
        margin-bottom: 12px;
        padding: var(--sp-3);
        background: var(--clr-white);
        box-shadow: 0 2px 12px rgba(22,38,74,0.06);
    }

    /* Unit Type = card heading */
    .units-table td[data-label="Unit Type"] {
        display: block;
        font-family: var(--font-ui);
        font-size: var(--text-md);
        font-weight: 700;
        color: var(--clr-dark);
        padding: 0 0 var(--sp-2) 0;
        border-bottom: 1px solid rgba(22,38,74,0.08);
        margin-bottom: var(--sp-2);
    }
    .units-table td[data-label="Unit Type"] strong { font-weight: 700; }
    .units-table td[data-label="Unit Type"]::before { display: none; }

    /* Units and Area = data rows */
    .units-table td[data-label="Units"],
    .units-table td[data-label="Area"] {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.35rem 0;
        border: none;
        color: var(--clr-dark);
        font-family: var(--font-ui);
        font-variant-numeric: lining-nums tabular-nums;
    }

    .units-table td[data-label="Units"]::before,
    .units-table td[data-label="Area"]::before {
        content: attr(data-label);
        font-size: var(--text-xs);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--clr-dark-muted);
        flex-shrink: 0;
    }

    /* Details button row */
    .units-table td[data-label="Details"] {
        display: block;
        padding: var(--sp-2) 0 0 0;
        border: none;
        margin-top: var(--sp-1);
    }
    .units-table td[data-label="Details"]::before { display: none; }
    .units-table td[data-label="Details"] .btn {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: var(--text-xs);
        border-color: var(--clr-primary);
        color: var(--clr-primary);
    }

    /* Total row */
    .table-total-row {
        background: var(--clr-bg-light-alt) !important;
        border-radius: var(--radius-md) !important;
        box-shadow: none !important;
        padding: var(--sp-2) var(--sp-3) !important;
    }

    .table-total-row td {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0;
        border: none;
        font-family: var(--font-ui);
        font-size: var(--text-sm);
        font-weight: 700;
        color: var(--clr-dark);
    }

    .table-total-row td:not(:first-child) { display: none; }

    .table-total-row td:first-child::after {
        content: " · 217 Total Units";
        font-weight: 600;
        color: var(--clr-dark-muted);
    }
}

/* ────────────────────────────────────────────────────────────────
   30. MOBILE GALLERY CAROUSEL
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 639px) {
    .gallery-section .container {
        padding-inline: 0;
    }

    /* Section header keeps padding */
    .gallery-section .section-header-row,
    .gallery-section .gallery-note,
    .gallery-section .gallery-dots {
        padding-inline: var(--pad-x);
    }

    .gallery-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding-bottom: var(--sp-1);
        scrollbar-width: none;
        grid-template-columns: unset;
    }

    .gallery-grid::-webkit-scrollbar { display: none; }

    .gallery-item,
    .gallery-item--featured {
        flex: 0 0 92%;
        scroll-snap-align: start;
        aspect-ratio: 4/3;
        border-radius: 0;
        margin-right: 8px;
    }

    .gallery-item:first-child { margin-left: var(--pad-x); }
    .gallery-item:last-child  { margin-right: var(--pad-x); }

    .gallery-caption {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
        padding: var(--sp-3) var(--sp-2) var(--sp-2);
    }
}

/* Gallery dots – mobile */
.gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: var(--sp-2);
    min-height: 14px;
    flex-wrap: wrap;
}

.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(201,168,118,0.28);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
}

.gallery-dot.is-active {
    width: 20px;
    background: var(--clr-accent);
}

.gallery-dot:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 2px;
}

/* ────────────────────────────────────────────────────────────────
   31. NUMERIC / UI FONT CONSISTENCY
   ──────────────────────────────────────────────────────────────── */
.payment-card-label,
.payment-card-note,
.highlight-label,
.amenities-group-label,
.amenities-label,
.location-circles-label,
.circle-place-name,
.units-table,
.units-table th,
.units-table td,
.btn,
.form-label,
.form-control,
.nav-link,
.mobile-nav-link,
.faq-question,
.badge,
.section-eyebrow,
.disclaimer-text {
    font-family: var(--font-ui);
}

/* Numeric elements get tabular lining figures */
.units-table td[data-label="Units"],
.units-table td[data-label="Area"],
.table-total-row td {
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ────────────────────────────────────────────────────────────────
   32. MOBILE FULL-BLEED IMAGES & CINEMATIC LAYOUT
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── BROCHURE BANNER SECTIONS: truly full-width on mobile ──
       The banner div is a direct child of <main>, so there is no
       horizontal container padding to fight. We zero out the inner
       .container padding and let the img fill 100% of the banner.   */
    .brochure-banner {
        padding-top:    var(--sp-10);   /* 5rem — clear editorial break */
        padding-bottom: 0;
        padding-inline: 0;
    }

    .brochure-banner .container {
        padding-inline: 0;
        max-width: 100%;
        width: 100%;
    }

    .brochure-banner-img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        object-fit: contain; /* never crop — text is baked into image */
    }

    /* New-chapter banner (right after highlights strip):
       Compact top spacing since highlights already provide context. */
    .highlights-section + .brochure-banner--new-chapter {
        padding-top: var(--sp-6);   /* 3rem — tight editorial follow-on */
    }

    /* Bring-family banner (right after overview section):
       Large gap so it reads as a clear transition, not a stacked image. */
    .overview-section + .brochure-banner {
        padding-top: var(--sp-12);  /* 6rem — strong deliberate separation */
        border-top: 1px solid var(--bdr-light);
    }

    /* Section headings slightly smaller on narrow viewports */
    .section-heading {
        font-size: clamp(1.6rem, 5vw, 2.25rem);
    }

    /* Map – full bleed on mobile */
    .map-area {
        width:       calc(100% + 2 * var(--pad-x));
        margin-left: calc(-1 * var(--pad-x));
        margin-right:calc(-1 * var(--pad-x));
        border-radius: 0;
    }
}

/* ────────────────────────────────────────────────────────────────
   33. GLOBAL REFINEMENTS
   ──────────────────────────────────────────────────────────────── */

/* Payment card labels always Poppins, never serif */
.payment-card,
.payment-card * {
    font-family: var(--font-ui);
}

/* Slightly tighter payment card on mobile */
@media (max-width: 639px) {
    .payment-card {
        padding: var(--sp-4) var(--sp-3);
    }
    .payment-card-value {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

/* Why section card title: use UI font (not serif) */
.why-card .why-title {
    font-family: var(--font-ui);
    font-weight: 600;
}

/* Amenity labels – UI font */
.amenity-label {
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 600;
}

/* Improve highlight strip: add vertical separator lines cleanly */
@media (max-width: 639px) {
    .highlight-item {
        border-right: none;
        border-bottom: 1px solid var(--bdr-dark);
        flex: 1 1 48%;
    }
    .highlight-item:nth-child(odd)  { border-right: 1px solid var(--bdr-dark); }
    .highlight-item:last-child      { border-bottom: none; border-right: none; }
    .highlight-value {
        font-size: var(--text-lg);
    }
}

/* Mobile sticky bar: ensure no content bleed */
body {
    scroll-padding-bottom: var(--sticky-cta-h);
}

/* Focus states: use accent outline globally */
*:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 3px;
}

/* ────────────────────────────────────────────────────────────────
   34. AL GHADEER GARDENS — NEW SECTIONS
   ──────────────────────────────────────────────────────────────── */

/* Why cards on a light section background */
.why-card--light {
    background: rgba(22,38,74,0.03);
    border-color: var(--bdr-light);
}
.why-card--light:hover {
    background: rgba(22,38,74,0.06);
    border-color: var(--bdr-light-strong);
}
.why-card--light .why-icon  { color: var(--clr-primary); }
.why-card--light .why-title { color: var(--clr-dark); }
.why-card--light .why-desc  { color: var(--clr-dark-muted); }

/* Story / Lifestyle sections — simple centred statement sections */
.story-section,
.lifestyle-section {
    padding-block: var(--sp-12);
    text-align: center;
}
.story-section .section-header-row,
.lifestyle-section .section-header-row {
    max-width: 760px;
    margin-inline: auto;
}
.story-section .section-intro,
.lifestyle-section .section-intro {
    margin-inline: auto;
    margin-bottom: 0;
}

/* Exquisite Finishes */
.finishes-section { padding-block: var(--sp-12); }

.finishes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
}

.finishes-scheme-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--clr-dark);
    margin-bottom: var(--sp-2);
}

.finishes-scheme-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.finishes-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
}

.finishes-img--main {
    grid-column: 1 / -1;
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
}

/* Amenities — single grid (no exclusive/community split) */
.amenities-grid {
    grid-template-columns: repeat(2, 1fr);
}
.amenity-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Location benefit cards (replace circle/minutes layout) */
.location-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2);
}

.location-benefit-card {
    padding: var(--sp-3);
    border: 1px solid var(--bdr-light);
    border-radius: var(--radius-md);
    background: rgba(22,38,74,0.03);
}

.location-benefit-title {
    font-family: var(--font-ui);
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--clr-dark);
    margin-bottom: 0.4rem;
}

.location-benefit-desc {
    font-size: var(--text-sm);
    color: var(--clr-dark-muted);
    line-height: 1.6;
}

.location-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ────────────────────────────────────────────────────────────────
   35. RESPONSIVE — TABLET / DESKTOP FOR NEW SECTIONS
   ──────────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
    .finishes-grid { grid-template-columns: repeat(2, 1fr); }
    .amenities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
    .amenities-grid { grid-template-columns: repeat(4, 1fr); }

    .location-layout {
        flex-direction: row;
        align-items: stretch;
        gap: var(--sp-8);
    }
    .location-benefits-wrap { flex: 0 0 48%; }
    .location-benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .map-area { flex: 1; min-height: 360px; }
}

/* ────────────────────────────────────────────────────────────────
   36. FULL-WIDTH IMAGE BANNERS
   4 editorial transitions placed via alghadeer_render_full_banner().
   Full bleed on mobile, no boxed container on desktop.
   ──────────────────────────────────────────────────────────────── */
.full-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.full-banner-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.full-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11,20,38,0.10) 0%,
        rgba(11,20,38,0.55) 100%
    );
}

.full-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-inline: var(--pad-x);
    line-height: normal;
}

.full-banner-heading {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--clr-white);
    margin-bottom: 0.4rem;
}

.full-banner-subtext {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.85);
    max-width: 520px;
}

@media (min-width: 640px) {
    .full-banner-img { height: 380px; }
}

@media (min-width: 960px) {
    .full-banner-img { height: 480px; }
    .full-banner-heading { font-size: var(--text-3xl); }
}

/* ────────────────────────────────────────────────────────────────
   37. THANK YOU PAGE — PROJECT SNAPSHOT
   ──────────────────────────────────────────────────────────────── */
.thankyou-eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: var(--sp-1);
}

.thankyou-snapshot {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-2);
    width: 100%;
    max-width: 520px;
    margin-top: var(--sp-2);
    padding: var(--sp-3);
    border: 1px solid var(--bdr-dark);
    border-radius: var(--radius-md);
    background: var(--clr-bg-dark-alt);
}

.thankyou-snapshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: var(--sp-2);
}

.thankyou-snapshot-value {
    font-family: var(--font-numeric);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--clr-accent);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.thankyou-snapshot-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-muted);
}

@media (min-width: 640px) {
    .thankyou-snapshot { grid-template-columns: repeat(4, 1fr); }
}

.thankyou-cta-row .btn { min-width: 160px; }
