/* ================================================================
   Al Fahid Island Theme – main.css
   Coastal wellness master-development landing page.
   Mobile-first · No external frameworks.
   Palette: teal primary, teal accent, light section bg.
   Typography: Poppins throughout.
   ================================================================ */

/* ────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   Overridable from Appearance → Customize (Branding & Colors)
   via an inline <style> block printed in wp_head with higher
   source order — see alghadeer_output_dynamic_styles().
   ──────────────────────────────────────────────────────────────── */
:root {
    /* Palette — teal primary, teal accent */
    --clr-primary:        #006B70;
    --clr-primary-deep:   #034B50;
    --clr-primary-mid:    #006B70;
    --clr-secondary:      #006B70;
    --clr-accent:         #00f4ec;
    --clr-accent-hover:   #00f4ec;
    --clr-teal-light:     #abf4f2;
    --clr-teal-mid:       #6beae4;
    --btn-bg:             #006B70;
    --btn-text:           #FFFFFF;
    --btn-border:         #006B70;

    /* Overlay tone */
    --clr-overlay:        #034B50;

    /* Dashboard-controllable backgrounds */
    --mobile-nav-bg:      #034B50;
    --footer-bg:          #034B50;
    --modal-bg:           #FFFFFF;
    --header-bg:          #034B50;

    /* Overlay Settings — rgb triplet + opacity */
    --hero-overlay-rgb:          1,61,66;
    --hero-overlay-opacity:      0.36;
    --banner-overlay-rgb:        3,75,80;
    --banner-overlay-opacity:    0.50;
    --amenities-overlay-rgb:     3,75,80;
    --amenities-overlay-opacity: 0.90;
    --card-overlay-rgb:          3,75,80;
    --card-overlay-opacity:      0.55;

    /* Extended Fahid Island palette */
    --clr-teal:           #33AEB5;
    --clr-water-blue:     #8CD5DB;

    /* Text */
    --clr-white:          #FFFFFF;
    --clr-off-white:      #F0F9F9;
    --clr-muted:          rgba(255,255,255,0.72);
    --clr-dark:           #FFFFFF;
    --clr-dark-muted:     rgba(255,255,255,0.72);
    --clr-body-text:      #222B2B;
    --clr-muted-text:     #5A6060;

    /* Backgrounds */
    --clr-bg-dark:        #034B50;
    --clr-bg-dark-alt:    #006B70;
    --clr-bg-light:       #F4F9F9;
    --clr-bg-light-alt:   #FFFFFF;
    --clr-bg-final-cta:   #034B50;

    /* Borders */
    --bdr-dark:           rgba(216,206,185,0.16);
    --bdr-dark-strong:    rgba(216,206,185,0.32);
    --bdr-light:          rgba(36,32,25,0.12);
    --bdr-light-strong:   rgba(36,32,25,0.25);

    /* 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;
    --font-button:  'Poppins', system-ui, -apple-system, sans-serif;

    /* Typography Settings — sizes / weights / letter-spacing */
    --font-size-base:         1rem;
    --fw-heading:             700;
    --fw-body:                400;
    --fw-button:              600;
    --fw-numeric:             700;
    --eyebrow-letter-spacing: 0.12em;

    /* 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-10: 5rem;
    --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, body { margin: 0; padding: 0; }

.site-header { border-top: none; }
.hero-section, .project-hero-section { margin-top: 0; border-top: none; }

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: var(--fw-body, 400);
    font-size: var(--font-size-base, 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: var(--fw-heading, 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: var(--eyebrow-letter-spacing, 0.12em);
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: var(--sp-1);
}

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

.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.4rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-button, var(--font-sans));
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    border: 2px solid transparent;
    white-space: nowrap;
    line-height: 1;
}

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

.btn-primary,
.btn-primary-dark {
    background: #006B70;
    color: #ffffff;
    border-color: #006B70;
}
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary-dark:hover,
.btn-primary-dark:focus-visible {
    background: #034B50;
    border-color: #034B50;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0,107,112,0.3);
}

.btn-outline,
.btn-outline-dark {
    background: transparent;
    color: #006B70;
    border-color: #006B70;
}
.btn-outline:hover,
.btn-outline:focus-visible,
.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
    background: #006B70;
    color: #ffffff;
}

/* On dark backgrounds, outline button uses white border */
.section-dark .btn-outline,
.project-hero-section .btn-outline,
.project-final-cta .btn-outline {
    color: #ffffff;
    border-color: rgba(255,255,255,0.7);
}
.section-dark .btn-outline:hover,
.project-hero-section .btn-outline:hover,
.project-final-cta .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ffffff;
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background: rgba(255,255,255,0.15);
    border-color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #006B70;
    border-color: #006B70;
}
.btn-secondary:hover {
    background: #006B70;
    color: #ffffff;
}

/* .btn-accent kept for header CTA compatibility */
.btn-accent {
    background: #006B70;
    color: #ffffff;
    border-color: #006B70;
}
.btn-accent:hover {
    background: #034B50;
    border-color: #034B50;
    color: #ffffff;
}

/* Ghost (minimal, small) */
.btn-ghost,
.btn-ghost-dark {
    background: transparent;
    color: var(--clr-accent);
    border-color: rgba(0,244,236,0.4);
    padding: 0.45rem 1rem;
    font-size: var(--text-xs);
}
.btn-ghost:hover,
.btn-ghost-dark:hover {
    background: rgba(0,244,236,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: var(--header-bg, #0a1d3d);
    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: var(--header-text-transparent, rgba(255,255,255,0.92));
}
.site-header--transparent:not(.scrolled) .hamburger-line {
    background: var(--header-text-transparent, var(--clr-white));
}
.site-header--transparent:not(.scrolled) .header-logo-text {
    color: var(--header-text-transparent, 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; }

/* Sticky header logo (optional) — only swaps in on scroll when a
   dedicated sticky logo was actually provided (.has-sticky-logo),
   so sites without one keep showing their normal logo on scroll. */
.header-logo-img--sticky { display: none; }
.has-sticky-logo.scrolled .header-logo-img--sticky {
    display: block;
    max-width: 200px;
    max-height: 44px;
}
.has-sticky-logo.scrolled .header-logo-img--desktop,
.has-sticky-logo.scrolled .header-logo-img--mobile {
    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: var(--mobile-nav-bg, #0a1d3d);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    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-white);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    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(var(--hero-overlay-rgb, 18,29,49), var(--hero-overlay-opacity, 0.85)) 0%,
        rgba(var(--hero-overlay-rgb, 18,29,49), calc(var(--hero-overlay-opacity, 0.85) * 0.8)) 50%,
        rgba(var(--hero-overlay-rgb, 18,29,49), calc(var(--hero-overlay-opacity, 0.85) * 0.5)) 100%
    );
}

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

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

/* Hero Text Alignment / Content Width (Customizer: Hero Section) */
.hero-align-center .hero-content {
    margin-inline: auto;
    text-align: center;
}
.hero-align-center .hero-actions { justify-content: center; }

.hero-width-narrow .hero-content { max-width: 480px; }
.hero-width-medium .hero-content { max-width: 620px; }
.hero-width-wide   .hero-content { max-width: 800px; }

.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: var(--fw-numeric, 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(32,35,34,0.04); }

.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); background: var(--clr-bg-dark); }

.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(0,107,112,0.08); }

.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: var(--fw-numeric, 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; }

/* Payment schedule table (detailed milestone view) */
.payment-schedule-wrap { margin-bottom: var(--sp-4); overflow-x: auto; }
.payment-schedule-table {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
    border-collapse: collapse;
}
.payment-schedule-table th,
.payment-schedule-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(215,211,202,0.12);
    font-size: var(--text-sm);
    color: var(--clr-muted);
}
.payment-schedule-table th {
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-accent);
    font-weight: 600;
}
.payment-schedule-table .payment-value {
    font-weight: 700;
    font-size: var(--text-md);
    color: var(--clr-white);
}
.payment-schedule-table .payment-row--handover td {
    color: var(--clr-white);
    border-top: 1px solid rgba(215,211,202,0.20);
}
.payment-schedule-table .payment-row--handover .payment-value {
    color: var(--clr-accent);
    font-size: var(--text-xl);
}
@media (max-width: 480px) {
    .payment-schedule-table thead { display: none; }
    .payment-schedule-table tr { display: flex; justify-content: space-between; align-items: center; }
    .payment-schedule-table td::before { display: none; }
}

/* ────────────────────────────────────────────────────────────────
   13. AMENITIES SECTION
   ──────────────────────────────────────────────────────────────── */
.amenities-section {
    position: relative;
    overflow: hidden;
    padding-block: var(--sp-12);
    background: rgb(var(--amenities-overlay-rgb, 10,29,61));
    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(var(--amenities-overlay-rgb, 10,29,61), var(--amenities-overlay-opacity, 0.88)) 0%,
        rgba(var(--amenities-overlay-rgb, 10,29,61), calc(var(--amenities-overlay-opacity, 0.88) * 0.93)) 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(0,244,236,0.06);
    transition: background var(--ease);
    flex-shrink: 0;
}

.location-circle-item:hover .circle-time-ring {
    background: rgba(0,244,236,0.14);
}

.circle-time-text {
    font-family: var(--font-numeric);
    font-size: 0.9rem;
    font-weight: var(--fw-numeric, 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(var(--card-overlay-rgb, 10,29,61), var(--card-overlay-opacity, 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(3,75,80,0.2),
        rgba(0,244,236,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;
}

/* Optional developer image — only rendered when set in the Customizer */
.developer-inner:has(.developer-image-wrap) {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.developer-image-wrap img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    aspect-ratio: 4/3;
}
@media (min-width: 960px) {
    .developer-inner:has(.developer-image-wrap) {
        flex-direction: row;
        align-items: center;
        gap: var(--sp-8);
    }
}

/* ────────────────────────────────────────────────────────────────
   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(0,244,236,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(0,244,236,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: #00f4ec;
    box-shadow: 0 0 0 3px rgba(0,244,236,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: #00f4ec;
}
.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);
}

/* Per-field inline error */
.field-error-msg {
    font-size: var(--text-xs);
    color: #FF6B6B;
    margin-top: 0.3rem;
    line-height: 1.4;
}

.form-group--has-error .form-control,
fieldset.form-group--has-error .form-control {
    border-color: #FF6B6B;
}

/* ── SELECT FIELD — definitive fix ──────────────────────────── */
select,
select.form-control,
.form-group select,
.form-control[type="select"],
select[name="preferred_unit_type"],
select[name="buyer_type"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #ffffff !important;
    background-image: 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='%23006B70' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 8px !important;
    padding-right: 2.75rem !important;
    cursor: pointer;
}
select.form-control:focus {
    border-color: #00f4ec;
    box-shadow: 0 0 0 3px rgba(0,244,236,0.2);
    outline: none;
}

select.form-control option[value=""][disabled] { color: #9A9488; }

/* Buyer type pill radios */
.form-group-pills { border: none; padding: 0; margin: 0 0 var(--sp-2); }
.form-group-pills .form-label { margin-bottom: 0.6rem; }

.buyer-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.buyer-type-option {
    cursor: pointer;
    flex-shrink: 0;
}

.buyer-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.buyer-type-option span {
    display: inline-block;
    padding: 0.45rem 1rem;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 2rem;
    font-size: var(--text-sm);
    font-family: var(--font-body);
    color: rgba(255,255,255,0.75);
    background: transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    user-select: none;
    line-height: 1.3;
}

.buyer-type-option:hover span {
    border-color: var(--clr-accent);
    color: #fff;
}

.buyer-type-option input[type="radio"]:checked + span {
    background: #006B70;
    border-color: #006B70;
    color: #fff;
}

.buyer-type-option input[type="radio"]:focus-visible + span {
    outline: 2px solid var(--clr-accent);
    outline-offset: 2px;
}

/* Modal overrides for buyer type pills */
.modal-box .buyer-type-option span {
    border-color: rgba(0,107,112,0.25);
    color: var(--clr-body-text, #242019);
}
.modal-box .buyer-type-option:hover span {
    border-color: #006B70;
    color: #242019;
}
.modal-box .buyer-type-option input[type="radio"]:checked + span {
    background: #006B70;
    border-color: #006B70;
    color: #fff;
}
/* Modal-specific override (same rules, must not be overridden by modal styles) */
.modal-box select,
.modal-box select.form-control,
.modal-box .form-group select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #ffffff !important;
    background-image: 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='%23006B70' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 8px !important;
    padding-right: 2.75rem !important;
}
.modal-box select.form-control option { color: #222B2B; background: #ffffff; }
.modal-box .field-error-msg { color: #CC4444; }
.modal-box .form-group--has-error .form-control,
.modal-box fieldset.form-group--has-error .form-control { border-color: #CC4444; }

/* ────────────────────────────────────────────────────────────────
   20. MODALS
   ──────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(32,35,34,0.72);
    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(--modal-bg, 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 uses a white/light background — override text colors for legibility */
.modal-box { color: var(--clr-body-text, #242019); }
.modal-title { color: var(--clr-body-text, #242019); }
.modal-subtitle { color: var(--clr-muted-text, #6F6A5E); }
.modal-close { color: var(--clr-muted-text, #6F6A5E); }
.modal-box .form-label { color: var(--clr-body-text, #242019); }
.modal-box .form-control {
    background: #ffffff;
    color: var(--clr-body-text, #242019);
    border-color: rgba(0,107,112,0.25);
}
.modal-box .form-control::placeholder { color: #9A9488; }
.modal-box .form-control:focus { border-color: #00f4ec; box-shadow: 0 0 0 3px rgba(0,244,236,0.2); }
.modal-box .form-consent-note { color: var(--clr-muted-text, #5A6060); }
.modal-box .required-mark { color: #00f4ec; }
.modal-box .btn-primary {
    background: #006B70;
    color: #FFFFFF;
    border-color: #006B70;
}
.modal-box .btn-primary:hover { background: #034B50; }
.modal-form-wrap .form-success-text { color: var(--clr-body-text, #222B2B); }
.modal-box .form-success { color: var(--clr-body-text, #222B2B); }
.modal-box .form-success-check { color: #00f4ec; }
.modal-box .form-error-msg { color: #c0392b; }

/* ────────────────────────────────────────────────────────────────
   21. FOOTER
   ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg, 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: #006B70;
    color: #ffffff;
}
.sticky-register:hover { background: #034B50; }

/* ────────────────────────────────────────────────────────────────
   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: rgba(255,255,255,0.05);
        box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    }

    /* 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(255,255,255,0.12);
        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"],
    .units-table td[data-label="Starting Price"] {
        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,
    .units-table td[data-label="Starting Price"]::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-accent);
        color: var(--clr-accent);
    }

    /* 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(var(--card-overlay-rgb, 10,29,61), calc(var(--card-overlay-opacity, 0.65) * 1.1)) 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(0,244,236,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;
    }
}

/* Location / masterplan mobile overflow fix */
@media (max-width: 768px) {
    .location-section .location-layout {
        display: block !important;
        grid-template-columns: unset !important;
    }
    .map-area {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .location-map-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ────────────────────────────────────────────────────────────────
   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. FAHID ISLAND — SECTION OVERRIDES
   ──────────────────────────────────────────────────────────────── */

/* Why cards on a light section background */
.why-card--light {
    background: rgba(32,35,34,0.04);
    border-color: var(--bdr-light);
}
.why-card--light:hover {
    background: rgba(32,35,34,0.08);
    border-color: var(--bdr-light-strong);
}
.why-card--light .why-icon  { color: var(--clr-white); }
.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(var(--banner-overlay-rgb, 18,29,49), calc(var(--banner-overlay-opacity, 0.4) * 0.25)) 0%,
        rgba(var(--banner-overlay-rgb, 18,29,49), var(--banner-overlay-opacity, 0.4)) 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: var(--eyebrow-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: var(--fw-numeric, 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; }

/* ────────────────────────────────────────────────────────────────
   38. MOBILE SECTION SPACING REDUCTION
   Major sections used padding-block: var(--sp-12) (96px). On mobile
   that reads as too much dead space — reduce to 60px. Hero, the
   sticky CTA bar, full-width banners, and the Final CTA section
   (which has its own calc()-based sticky-bar offset) are
   intentionally excluded so they keep their existing behaviour.
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .overview-section,
    .why-section,
    .units-section,
    .payment-section,
    .amenities-section,
    .location-section,
    .gallery-section,
    .developer-section,
    .faq-section,
    .finishes-section,
    .story-section,
    .lifestyle-section,
    .thankyou-page {
        padding-top: var(--section-pad-mobile, 60px);
        padding-bottom: var(--section-pad-mobile, 60px);
    }
}

/* ── PROJECT CARDS SECTION ─────────────────────────────────── */
.projects-section {
    background: var(--clr-bg-light);
    padding: var(--sp-10) 0;
}
/* ── RESIDENCES SECTION FORCED CONTRAST ─────────────────────── */
section.projects-section,
.projects-section {
    background-color: #034B50 !important;
}
section.projects-section .section-eyebrow,
.projects-section .section-eyebrow,
.projects-section p.section-eyebrow {
    color: #00f4ec !important;
}
section.projects-section .section-heading,
.projects-section .section-heading,
.projects-section h2 {
    color: #ffffff !important;
}
section.projects-section .section-copy,
.projects-section .section-copy,
.projects-section p.section-copy,
.projects-section > .container > p {
    color: rgba(255,255,255,0.82) !important;
}

.project-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .project-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .project-cards-grid { grid-template-columns: 1fr; }
}

.project-card {
    background: #fff;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(3,75,80,0.08);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s;
}
.project-card:hover { box-shadow: 0 6px 32px rgba(3,75,80,0.15); }

.project-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e0eeee;
}
.project-card-image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.project-card:hover .project-card-image-wrap img { transform: scale(1.04); }

.project-card-logo-wrap {
    padding: 1.25rem 1.25rem 0;
    display: flex;
    align-items: center;
    min-height: 52px;
}
.project-card-logo-wrap img {
    max-height: 44px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
}

.project-card-body {
    padding: 1rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.project-card-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--clr-primary-deep);
    line-height: 1.25;
    font-family: var(--font-heading);
    margin: 0;
}

.project-card-price {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--clr-accent);
    letter-spacing: 0.02em;
}

.project-card-desc {
    font-size: var(--text-sm);
    color: var(--clr-muted-text);
    line-height: 1.55;
    margin: 0;
}

.project-card-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    padding-top: 0.25rem;
}
.project-card-fact {
    font-size: 0.72rem;
    color: var(--clr-primary-deep);
    background: rgba(0,107,112,0.07);
    border-radius: 2rem;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}

.project-card-cta {
    margin-top: auto;
    padding-top: 1rem;
}
.project-card-cta .btn {
    width: 100%;
    justify-content: center;
}

/* ── PROJECT DETAIL SECTIONS ────────────────────────────────── */
.project-detail-section {
    padding: var(--sp-10) 0;
}
.project-detail-section.section-dark {
    background: var(--clr-bg-dark);
    color: #fff;
}
.project-detail-section.section-light {
    background: var(--clr-bg-light);
}
.project-detail-section.section-white {
    background: #fff;
}

.project-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 768px) {
    .project-detail-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.project-detail-image-wrap {
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e0eeee;
}
.project-detail-image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.project-detail-logo {
    max-height: 52px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.25rem;
    display: block;
}

.project-detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}
.project-detail-fact {
    min-width: 120px;
}
.project-detail-fact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.65;
    display: block;
    margin-bottom: 0.2rem;
}
.project-detail-fact-value {
    font-size: var(--text-base);
    font-weight: 700;
    display: block;
}

.project-unit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    margin-top: 1rem;
}
.project-unit-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    background: rgba(0,107,112,0.1);
    color: var(--clr-primary-deep);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.section-dark .project-unit-table th {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}
.project-unit-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(0,107,112,0.08);
    vertical-align: middle;
}
.section-dark .project-unit-table td {
    border-bottom-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}
.project-unit-table tr:last-child td { border-bottom: none; }

.project-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
}
.project-amenity-tag {
    background: rgba(0,107,112,0.08);
    color: var(--clr-primary-deep);
    border-radius: 0.4rem;
    padding: 0.45rem 0.75rem;
    font-size: var(--text-sm);
    line-height: 1.3;
}
.section-dark .project-amenity-tag {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

.project-sustainability-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.project-sustainability-badge {
    background: rgba(0,107,112,0.12);
    border: 1px solid rgba(0,107,112,0.3);
    color: var(--clr-primary-deep);
    border-radius: 2rem;
    padding: 0.35rem 0.9rem;
    font-size: var(--text-sm);
    font-weight: 600;
}
.section-dark .project-sustainability-badge {
    color: #fff;
    background: rgba(0,244,236,0.12);
    border-color: rgba(0,244,236,0.3);
}

/* ── ISLAND HIGHLIGHTS GRID ─────────────────────────────────── */
.island-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
@media (max-width: 768px) {
    .island-highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ── ISLAND HIGHLIGHTS MOBILE ────────────────────────────────── */
@media (max-width: 480px) {
    .island-highlights-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    .island-highlight-value {
        font-size: 1.35rem !important;
    }
    .island-highlight-label {
        font-size: 0.7rem !important;
    }
    /* Last item spans full width if odd count */
    .island-highlight-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}
.island-highlight-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md, 12px);
    padding: 1.5rem;
    text-align: center;
}
.island-highlight-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-accent);
    line-height: 1.1;
    display: block;
    font-family: var(--font-heading);
}
.island-highlight-label {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.75);
    display: block;
    margin-top: 0.4rem;
    line-height: 1.4;
}

/* ── SUSTAINABILITY SECTION ──────────────────────────────────── */
.sustainability-section {
    background: var(--clr-bg-dark);
    color: #fff;
    padding: var(--sp-10) 0;
}
.island-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}
.island-cert-badge {
    background: rgba(0,244,236,0.12);
    border: 1.5px solid rgba(0,244,236,0.35);
    color: #fff;
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-size: var(--text-sm);
    font-weight: 600;
}

.island-highlights-section {
    background: var(--clr-bg-dark);
    padding: var(--sp-10) 0;
}

/* ── CONTRAST FIXES ─────────────────────────────────────────── */
.section-dark .section-heading,
.island-highlights-section .section-heading,
.sustainability-section .section-heading,
.lifestyle-section .section-heading,
.gallery-section .section-heading,
.amenities-section .section-heading {
    color: #ffffff;
}
.section-dark .section-copy,
.island-highlights-section .section-copy,
.sustainability-section .section-copy,
.lifestyle-section .section-copy {
    color: rgba(255,255,255,0.82);
}
.section-dark .section-eyebrow,
.island-highlights-section .section-eyebrow,
.sustainability-section .section-eyebrow,
.lifestyle-section .section-eyebrow,
.gallery-section .section-eyebrow,
.amenities-section .section-eyebrow {
    color: #00f4ec;
}
.section-dark .section-intro,
.lifestyle-section .section-intro {
    color: rgba(255,255,255,0.75);
}
/* projects-section contrast now handled by !important block above */

/* ── PROJECT PAGE ────────────────────────────────────────────── */
.project-hero-section {
    position: relative;
    background-color: var(--clr-primary-deep);
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
}
.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3,75,80,0.55);
    z-index: 1;
}
.project-hero-inner {
    position: relative;
    z-index: 2;
    padding: 8rem 0 5rem;
    max-width: 780px;
    color: #fff;
}
.project-breadcrumb {
    margin-bottom: 2rem;
}
.project-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    align-items: center;
}
.project-breadcrumb ol li + li::before {
    content: '/';
    margin-right: 0.6rem;
    opacity: 0.5;
}
.project-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.project-breadcrumb a:hover {
    color: #00f4ec;
}
.project-breadcrumb li[aria-current="page"] {
    color: rgba(255,255,255,0.95);
}
.project-hero-logo-wrap {
    margin-bottom: 1.5rem;
}
.project-hero-logo {
    max-height: 64px;
    max-width: 260px;
    width: auto;
    object-fit: contain;
    display: block;
}
.project-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
}
.project-hero-tagline {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.85);
    margin: 0 0 0.75rem;
    max-width: 620px;
}
.project-hero-price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: #00f4ec;
    margin: 0 0 2rem;
    letter-spacing: 0.02em;
}
.project-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.project-overview-section,
.project-units-section,
.project-services-section {
    padding: var(--sp-10) 0;
}
.project-amenities-section {
    padding: var(--sp-10) 0;
}
.project-sustainability-section {
    padding: var(--sp-10) 0;
}
.island-context-section {
    padding: var(--sp-10) 0;
}
.project-final-cta {
    padding: var(--sp-10) 0;
}
.section-white { background: #fff; }
.section-light { background: var(--clr-bg-light, #F4F9F9); }
.section-dark  { background: var(--clr-bg-dark, #034B50); color: #fff; }
@media (max-width: 768px) {
    .project-hero-section { min-height: 70vh; }
    .project-hero-inner { padding: 6rem 0 4rem; }
}

/* ── UNIT TYPES TABLE (project page) ────────────────────────── */
.project-units-section {
    background: #fff;
    padding: var(--sp-10, 4rem) 0;
}
.project-units-section .section-header-row {
    margin-bottom: 2rem;
}
.project-unit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
}
.project-unit-table thead tr {
    background: #006B70;
    color: #ffffff;
}
.project-unit-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: #006B70;
    border: none;
}
.project-unit-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0,107,112,0.1);
    vertical-align: middle;
    color: #222B2B;
}
.project-unit-table td strong {
    color: #034B50;
    font-weight: 600;
}
.project-unit-table tbody tr:hover {
    background: rgba(0,107,112,0.04);
}
.project-unit-table tbody tr:last-child td {
    border-bottom: none;
}
@media (max-width: 600px) {
    .project-unit-table th,
    .project-unit-table td {
        padding: 0.65rem 0.6rem;
        font-size: 0.82rem;
    }
}

/* ── AMENITY ICON GRID ───────────────────────────────────────── */
.amenities-icon-grid {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}
.amenity-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}
.amenity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    flex-shrink: 0;
}
.amenity-icon svg {
    width: 100%;
    height: 100%;
}
.amenity-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.35;
    max-width: 130px;
}
@media (max-width: 480px) {
    .amenities-icon-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .amenity-icon { width: 40px; height: 40px; }
    .amenity-label { font-size: 0.72rem; }
}

/* ── STICKY HEADER SCROLL OFFSET ────────────────────────────────────────────
   Fix 7 */
:root {
    --header-height: 72px;
    --mobile-header-height: 64px;
}
section[id],
div[id].section-anchor {
    scroll-margin-top: var(--header-height);
}
@media (max-width: 768px) {
    section[id],
    div[id].section-anchor {
        scroll-margin-top: var(--mobile-header-height);
    }
}

/* ── MOBILE OVERFLOW PREVENTION ─────────────────────────────────────────────
   Fix 6 */
@media (max-width: 480px) {
    .container {
        overflow-x: hidden;
    }
    table {
        display: block;
        overflow-x: auto;
    }
}

/* ── BOTTOM SAFE AREA FOR MOBILE CTA BAR ─────────────────────────────────────
   Fix 8 */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    .project-page body,
    body.project-page {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

/* ── MOBILE MODAL ─────────────────────────────────────────────────────────────
   Fix 10 */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 1rem 0.75rem;
        align-items: flex-end;
    }
    .modal-box {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 1rem 1rem 0 0;
        padding: 1.5rem 1.25rem 2rem;
    }
    .modal-close {
        top: 1rem;
        right: 1rem;
    }
}

/* ── PROJECT CARDS MOBILE ─────────────────────────────────────────────────────
   Fix 11 */
@media (max-width: 480px) {
    .project-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .project-card-image-wrap {
        aspect-ratio: 16/9;
    }
    .project-card-cta .btn {
        width: 100%;
    }
}
