/* The Magnolia — Custom CSS (Tailwind CDN handles utilities; this file handles what CDN cannot) */

/* ── Design tokens (brochure "In Bloom" DNA) ── */
:root {
    /* Backgrounds */
    --bg-navy: #0b1b3b;
    --bg-navy-deep: #0a1530;
    --bg-onyx: #0a0807;
    --bg-espresso: #2a1a0e;
    /* Signature golds */
    --gold: #c9a76a;
    --gold-warm: #d4b483;
    --gold-cream: #e8d4a8;
    --gold-antique: #a8854b;
    /* Amber cinematic */
    --amber: #8b5a2b;
    --bronze: #6b4423;
    /* Neutrals */
    --warm-white: #f5efe6;
    --linen: #ede4d3;
    --stone: #a09890;
    --charcoal: #1f1f1f;
    /* Botanical accent */
    --emerald: #2d4a3e;
    --moss: #4a6b5c;
    /* Typography */
    --font-display: "Cormorant Garamond", "Playfair Display", serif;
    --font-body: "Be Vietnam Pro", system-ui, sans-serif;
    /* Tracking */
    --tracking-loose: 0.25em;
    --tracking-xloose: 0.35em;
    /* Motion */
    --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-bloom: 1200ms;
}

/* ── Body defaults (brochure palette + body font) ── */
body {
    background-color: var(--bg-navy);
    color: var(--warm-white);
    font-family: var(--font-body);
}

/* ── Accessibility: screen-reader only ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Base ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Nav active link ── */
.nav-link {
    position: relative;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 24px;
    height: 1px;
    background-color: var(--gold);
    transition: transform 0.35s var(--ease-silk);
}
.nav-link:hover {
    color: var(--warm-white);
}
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ── Selection ── */
::selection {
    background-color: var(--gold);
    color: var(--bg-navy);
}

/* ── Section padding (replaces min-height: 100vh scroll-snap) ── */
section[id] {
    padding-top: clamp(3.5rem, 8vw, 7rem);
    padding-bottom: clamp(3.5rem, 8vw, 7rem);
}
#hero {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
}
.hero-section {
    overflow-x: clip;
    overflow-y: visible;
}

/* ── Hero building: large, bleeds right, rises from bottom ── */
.hero-building-col {
    position: relative;
    z-index: 25;
    overflow: visible;
}
/* Mobile/tablet: centered, full width within section */
.hero-building-img {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    margin-left: 0;
}
/* Desktop: large, bleeds right */
@media (min-width: 1024px) {
    .hero-building-img {
        width: 175%;
        object-position: bottom right;
        margin-left: 0;
    }
}
/* Manifesto — spacious, building flush bottom */
#manifesto {
    padding-bottom: 0;
    overflow: hidden;
}
.manifesto-building-img {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    margin-left: 0;
}
@media (min-width: 1024px) {
    .manifesto-building-img {
        width: 160%;
        margin-left: -60%;
    }
}

/* Hero heading: white instead of gold */
.hero-heading-white {
    color: var(--warm-white);
}

/* Rise animation */
.building-rise {
    opacity: 0;
    transform: translateY(35%);
    transition:
        opacity 1.6s var(--ease-silk),
        transform 1.6s var(--ease-silk);
    transition-delay: 0.2s;
}
.building-rise.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #0e1f42;
}
::-webkit-scrollbar-thumb {
    background: #c5a55a;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #dfc078;
}

/* ── Hero overlay gradient ── */
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(11, 26, 59, 0.15) 0%,
        rgba(26, 18, 8, 0.5) 50%,
        rgba(11, 26, 59, 0.95) 100%
    );
}

/* ── Hero content width: responsive (single-col mobile fallback) ── */
.hero-content-wrap {
    max-width: 100%;
}
/* Desktop: 55% (original design intent) */
@media (min-width: 1024px) {
    .hero-content-wrap {
        max-width: 55%;
    }
}

/* ── Hero CTA buttons: full-width on mobile only ── */
.btn-hero {
    width: 100%;
    justify-content: center;
}
@media (min-width: 640px) {
    .btn-hero {
        width: auto;
    }
}

/* ── Header logo: scale by breakpoint ── */
.header-logo {
    height: 34px;
}
@media (min-width: 768px) {
    .header-logo {
        height: 38px;
    }
}
@media (min-width: 1024px) {
    .header-logo {
        height: 42px;
    }
}

/* ── Footer logo ── */
.footer-logo {
    height: 52px;
}
@media (min-width: 768px) {
    .footer-logo {
        height: 64px;
    }
}

/* ── Bronze gradient ── */
.bg-bronze-gradient {
    background: linear-gradient(135deg, #1a1208 0%, #3d2b15 40%, #2a1d10 100%);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ── Transition delay utilities ── */
.delay-100 {
    transition-delay: 100ms;
}
.delay-200 {
    transition-delay: 200ms;
}
.delay-300 {
    transition-delay: 300ms;
}
.delay-400 {
    transition-delay: 400ms;
}
.delay-500 {
    transition-delay: 500ms;
}
.delay-600 {
    transition-delay: 600ms;
}
.delay-700 {
    transition-delay: 700ms;
}
.delay-800 {
    transition-delay: 800ms;
}

/* ── Gold line ── */
.gold-line {
    display: block;
    width: 3rem;
    height: 1px;
    background-color: #c5a55a;
    transform-origin: left;
}

/* ── Animate pulse ring (floating buttons + video play) ── */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}
.animate-pulse-ring {
    animation: pulse-ring 2s ease-out infinite;
}

/* ── Bounce down indicator ── */
@keyframes bounce-down {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}
.animate-bounce-down {
    animation: bounce-down 1.8s ease-in-out infinite;
}

/* ── Gold line draw ── */
@keyframes line-draw {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}
.animate-line-draw {
    animation: line-draw 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* ── [x-cloak] hide before Alpine init ── */
[x-cloak] {
    display: none !important;
}

/* ── Mobile menu item — staggered slide-in + hover ── */
.mobile-menu-item {
    transition:
        padding-left 0.3s ease,
        background 0.3s ease;
}
.mobile-menu-item:hover,
.mobile-menu-item:active {
    padding-left: 0.75rem;
    background: linear-gradient(
        to right,
        rgba(197, 165, 90, 0.08),
        transparent
    );
}

/* ── Tab states ── */
.tab-active {
    color: #f5f0e8;
    border-bottom: 2px solid #c5a55a;
}
.tab-inactive {
    color: #a89f90;
    border-bottom: 2px solid transparent;
}
.tab-inactive:hover {
    color: #ede8dc;
}

/* ── Section component shortcuts ── */
.section-wrap {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
@media (min-width: 768px) {
    .section-wrap {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media (min-width: 1024px) {
    .section-wrap {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.section-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: var(--tracking-xloose);
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
    .section-eyebrow {
        margin-bottom: 1rem;
    }
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4.2vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--gold);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ── Buttons ── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: var(--gold);
    color: var(--bg-navy);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: var(--tracking-loose);
    text-transform: uppercase;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-gold:hover:not(:disabled) {
    background-color: var(--gold-warm);
    transform: translateY(-2px);
}
.btn-gold:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: var(--tracking-loose);
    text-transform: uppercase;
    border: 1px solid var(--gold);
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    cursor: pointer;
}
.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--bg-navy);
}

/* ── Dark input ── */
.input-dark {
    width: 100%;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #1e3461;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--warm-white);
    outline: none;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}
.input-dark::placeholder {
    color: var(--stone);
}
.input-dark:focus {
    border-bottom-color: var(--gold);
}
.input-dark option {
    background: #152a52;
    color: var(--warm-white);
}

/* ── Register form (compact: name + phone + submit) ── */
.register-form {
    background: rgba(14, 31, 66, 0.6);
    border: 1px solid rgba(30, 52, 97, 0.5);
    padding: 1.5rem;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .register-form {
        padding: 2rem;
    }
}
.register-form__title {
    margin-bottom: 1.25rem;
}
.register-form__title h3 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: var(--tracking-loose);
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1.4;
}
.register-form__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.register-form__body--inline {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}
.register-form__body--inline .register-form__field {
    flex: 1;
}
.register-form__body--inline .register-form__submit {
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .register-form__body--inline {
        flex-direction: column;
    }
}
.register-form--inline {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 1.5rem;
}

/* ── Overview info table ── */
.overview-table {
    border-collapse: collapse;
}
.overview-table tr {
    border-bottom: 1px solid rgba(30, 52, 97, 0.5);
}
.overview-table tr:last-child {
    border-bottom: none;
}
.overview-table td {
    padding: 0.875rem 0.875rem;
    vertical-align: top;
}
.overview-table__label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
    padding-right: 1.5rem;
    width: 1%;
}
.overview-table__value {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--warm-white);
    line-height: 1.6;
}
@media (max-width: 639px) {
    .overview-table,
    .overview-table td {
        display: block;
        width: 100%;
    }
    .overview-table__label {
        padding-right: 0;
        padding-bottom: 0.25rem;
        white-space: normal;
    }
}

/* ── Amenity card ── */
.card-amenity {
    background-color: #0e1f42;
    border: 1px solid #1e3461;
    padding: 0.875rem 1rem;
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}
@media (min-width: 768px) {
    .card-amenity {
        padding: 1.25rem 1.5rem;
    }
}
@media (min-width: 1024px) {
    .card-amenity {
        padding: 1.5rem 1.75rem;
    }
}
.card-amenity:hover {
    border-color: #c5a55a;
    transform: translateY(-4px);
}

/* ── Stats numbers: scale on mobile ── */
.stat-number {
    font-size: 1.75rem;
    line-height: 1.1;
}
.stat-star {
    font-size: 1rem;
}
@media (min-width: 640px) {
    .stat-number {
        font-size: 2.25rem;
    }
    .stat-star {
        font-size: 1.25rem;
    }
}

/* ── Product area numbers: scale on mobile ── */
.product-area-num {
    font-size: 2rem;
    line-height: 1.1;
}
.product-area-unit {
    font-size: 1rem;
}
@media (min-width: 640px) {
    .product-area-num {
        font-size: 2.5rem;
    }
    .product-area-unit {
        font-size: 1.15rem;
    }
}
@media (min-width: 1024px) {
    .product-area-num {
        font-size: 2.75rem;
    }
    .product-area-unit {
        font-size: 1.25rem;
    }
}

/* ── Video play button: scale on mobile ── */
.play-btn {
    width: 4rem;
    height: 4rem;
}
.play-btn-icon {
    width: 1.5rem;
    height: 1.5rem;
}
@media (min-width: 640px) {
    .play-btn {
        width: 5rem;
        height: 5rem;
    }
    .play-btn-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* ── Video corner accents: scale on mobile ── */
.video-corner {
    width: 0.875rem;
    height: 0.875rem;
}
@media (min-width: 640px) {
    .video-corner {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* ── Reasons accordion: responsive padding-left ── */
/* ── Reason cards (grid layout) ── */
.reason-card {
    border: 1px solid rgba(30, 52, 97, 0.5);
    padding: 1.5rem;
    background: rgba(14, 31, 66, 0.3);
}
@media (min-width: 768px) {
    .reason-card {
        padding: 2rem;
    }
}
.reason-card--full {
    border-color: rgba(201, 167, 106, 0.35);
    background: rgba(14, 31, 66, 0.5);
}
.reason-card__num {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.reason-card__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--warm-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.625rem;
    line-height: 1.4;
}
.reason-card__desc {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--linen);
    line-height: 1.7;
}

/* Legacy reason styles (keep for compatibility) */
.reason-num {
    font-size: 1.75rem;
    width: 2.5rem;
    min-width: 2.5rem;
}
@media (min-width: 768px) {
    .reason-num {
        font-size: 2.25rem;
        width: 3rem;
        min-width: 3rem;
    }
}
@media (min-width: 1024px) {
    .reason-num {
        font-size: 2.5rem;
        width: 3.5rem;
        min-width: 3.5rem;
    }
}

/* Accordion body indented to align with text, not number */
.reason-body {
    padding-left: 3rem;
}
@media (min-width: 768px) {
    .reason-body {
        padding-left: 3.75rem;
    }
}
@media (min-width: 1024px) {
    .reason-body {
        padding-left: 4rem;
    }
}

/* ── Mobile bottom bar clearance:
   Prevent page content from being hidden under the fixed bottom bar on mobile/tablet ── */
@media (max-width: 1023px) {
    main,
    footer {
        /* Bottom bar height ~52px, add extra safety */
        padding-bottom: 0;
    }
    footer {
        margin-bottom: 52px;
    }
}

/* ── Popup modal: safe on very small screens ── */
@media (max-width: 400px) {
    .btn-outline-gold,
    .btn-gold {
        padding: 0.75rem 1.25rem;
        font-size: 0.7rem;
    }
}

/* ──────────────────────────────────────────────
   Utility classes (extracted from inline styles)
   ────────────────────────────────────────────── */

/* Micro caps label (replaces 10px/0.2em inline repeats) */
.micro-cap {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Navy-soft border (replaces border-color:#1E3461 inline repeats) */
.border-navy-soft {
    border-color: #1e3461;
}

/* Corner accents — gold L-brackets on 4 corners of the parent
   Apply `.corner-accents-gold` to a `position: relative` parent. */
.corner-accents-gold {
    position: relative;
}
.corner-accents-gold > .corner {
    position: absolute;
    width: 1rem;
    height: 1rem;
    z-index: 10;
    pointer-events: none;
}
@media (min-width: 640px) {
    .corner-accents-gold > .corner {
        width: 1.25rem;
        height: 1.25rem;
    }
}
.corner-accents-gold > .corner.tl {
    top: 0;
    left: 0;
    border-top: 2px solid #c5a55a;
    border-left: 2px solid #c5a55a;
}
.corner-accents-gold > .corner.tr {
    top: 0;
    right: 0;
    border-top: 2px solid #c5a55a;
    border-right: 2px solid #c5a55a;
}
.corner-accents-gold > .corner.bl {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid #c5a55a;
    border-left: 2px solid #c5a55a;
}
.corner-accents-gold > .corner.br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid #c5a55a;
    border-right: 2px solid #c5a55a;
}

/* Gradient backgrounds */
.bg-white {
    background-color: #fff;
}
.bg-navy-dark {
    background-color: #0b1a3b;
}
.bg-navy-mid {
    background-color: #0e1f42;
}
.bg-navy-light {
    background-color: #152a52;
}
.bg-amenities-gradient {
    background: linear-gradient(to bottom, rgba(21, 42, 82, 0.2), #0b1a3b);
}
.bg-location-overlay {
    background: linear-gradient(
        to top,
        rgba(11, 26, 59, 0.8) 0%,
        transparent 60%
    );
}

/* Location connection row — hover border gold (replaces inline onmouseover/onmouseout) */
.location-row {
    transition: border-color 0.3s ease;
}
.location-row:hover {
    border-color: var(--gold);
}

/* ──────────────────────────────────────────────
   Typography patterns (brochure DNA) — Vietnamese-first
   ────────────────────────────────────────────── */
.eyebrow {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: var(--tracking-xloose);
    text-transform: uppercase;
    color: var(--gold);
    font-size: 12px;
    line-height: 1.4;
}
.heading-display {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--gold);
    line-height: 1.15;
}
.subtitle-caps {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: var(--tracking-loose);
    text-transform: uppercase;
    color: var(--gold-cream);
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.5;
}
@media (max-width: 479px) {
    .subtitle-caps {
        letter-spacing: 0.15em;
    }
}

/* Amenity slider responsive aspect ratio */
.amenity-slider {
    aspect-ratio: 21/9;
}
@media (min-width: 640px) {
    .amenity-slider {
        aspect-ratio: 16/9;
    }
}
@media (min-width: 1024px) {
    .amenity-slider {
        aspect-ratio: 16/7;
    }
}
.body-copy {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--warm-white);
    line-height: 1.65;
    font-size: clamp(15px, 1.1vw, 17px);
}

/* ──────────────────────────────────────────────
   Hero — cinematic glass-slat overlay
   ────────────────────────────────────────────── */
.hero-slats {
    background-image: repeating-linear-gradient(
        90deg,
        rgba(10, 8, 7, 0.18) 0 1px,
        transparent 1px 8.333%
    );
    pointer-events: none;
}
.hero-gradient {
    background: radial-gradient(
        ellipse at center bottom,
        rgba(42, 26, 14, 0.5) 0%,
        rgba(11, 27, 59, 0.85) 55%,
        rgba(10, 8, 7, 0.95) 100%
    );
    pointer-events: none;
}

/* Scroll indicator — quatrefoil pulse */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    pointer-events: none;
}
.scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
    animation: bloom-pulse 4s ease-in-out infinite;
}
@keyframes bloom-pulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ──────────────────────────────────────────────
   Manifesto + Partners + Footer-legal backgrounds
   ────────────────────────────────────────────── */
.bg-navy-deep {
    background-color: var(--bg-navy-deep);
}
.bg-onyx {
    background-color: var(--bg-onyx);
}
.bg-espresso {
    background-color: var(--bg-espresso);
}

/* Partner card */
.partner-card {
    position: relative;
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(201, 167, 106, 0.25);
    background: rgba(10, 21, 48, 0.4);
    transition:
        border-color 0.35s var(--ease-silk),
        transform 0.35s var(--ease-silk);
}
.partner-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* Footer legal links */
.footer-link {
    color: var(--linen);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: var(--gold);
}

/* ──────────────────────────────────────────────
   Form card / inline / consent — Commit 3
   ────────────────────────────────────────────── */
.form-card {
    position: relative;
    padding: 1.25rem;
    border: 1px solid #1e3461;
    background: #152a52;
}
@media (min-width: 768px) {
    .form-card {
        padding: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .form-card {
        padding: 2rem;
    }
}
.form-card-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
}
.form-card-title {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--warm-white);
    font-size: 1.1rem;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}
.form-card-sub {
    font-family: var(--font-body);
    color: var(--stone);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.form-card-hotline {
    margin-top: 1rem;
}
.form-hotline-link {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.form-hotline-link:hover {
    color: var(--gold-warm);
}

.form-inline-wrap {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid #1e3461;
    background: #152a52;
}
@media (min-width: 768px) {
    .form-inline-wrap {
        margin-top: 1.5rem;
        padding: 1.25rem;
    }
}
.form-inline-caption {
    font-family: var(--font-body);
    color: var(--stone);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
    .form-inline-caption {
        margin-bottom: 1rem;
    }
}

.form-error {
    color: #ef4444;
    font-size: 0.72rem;
    font-family: var(--font-body);
}
.form-consent {
    grid-column: 1 / -1;
    font-size: 12px;
    line-height: 1.45;
    color: var(--linen);
    font-family: var(--font-body);
}
.form-consent span {
    color: var(--linen);
}
.form-trust {
    margin-top: 0.5rem;
    font-size: 10px;
    color: var(--stone);
    letter-spacing: 0.02em;
}

/* ──────────────────────────────────────────────
   Amenity cards — 12-item layout
   ────────────────────────────────────────────── */
.card-amenity {
    /* override of earlier rule — structured number / divider / title / desc */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.amenity-num {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: 0.02em;
}
@media (min-width: 768px) {
    .amenity-num {
        font-size: 1.75rem;
    }
}
.amenity-line {
    width: 1.5rem;
    margin: 0.5rem 0 0.625rem;
}
.amenity-title {
    font-family: var(--font-body);
    font-weight: 500;
    color: #f5efe6;
    font-size: 13px;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}
@media (min-width: 768px) {
    .amenity-title {
        font-size: 14px;
    }
}
.amenity-desc {
    font-family: var(--font-body);
    color: var(--stone);
    font-size: 0.8125rem;
    line-height: 1.5;
}
@media (min-width: 768px) {
    .amenity-desc {
        font-size: 0.875rem;
    }
}

/* ──────────────────────────────────────────────
   Product tabs — 5 tabs, wrap on mobile, horizontal row on desktop
   ────────────────────────────────────────────── */
.product-tabs-bar {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #1e3461;
    position: relative;
}
@media (min-width: 768px) {
    .product-tabs-bar {
        margin-bottom: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .product-tabs-bar {
        margin-bottom: 2rem;
    }
}
.product-tabs-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}
@media (min-width: 1024px) {
    .product-tabs-row {
        justify-content: center;
    }
}
.product-tab-btn {
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.625rem;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}
@media (min-width: 768px) {
    .product-tab-btn {
        padding: 0.75rem 1rem;
        font-size: 11px;
        letter-spacing: 0.12em;
    }
}
@media (min-width: 1024px) {
    .product-tab-btn {
        padding: 0.875rem 1.25rem;
    }
}

.product-image-wrap {
    aspect-ratio: 16 / 10;
    position: relative;
    max-width: 100%;
}
@media (max-width: 1023px) {
    .product-image-wrap {
        aspect-ratio: 16/9;
    }
}
.product-image {
    opacity: 0.85;
}
.product-info {
    margin-top: 0.25rem;
}
@media (min-width: 1024px) {
    .product-info {
        margin-top: 0;
    }
}
.product-name {
    font-family: var(--font-display);
    color: #f5efe6;
    font-size: 1.35rem;
    line-height: 1.15;
    margin-bottom: 0.25rem;
}
@media (min-width: 768px) {
    .product-name {
        font-size: 1.6rem;
    }
}
.product-tagline {
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--stone);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}
.product-area-line {
    margin-bottom: 0.375rem;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold);
}
.product-bedrooms {
    font-family: var(--font-body);
    color: var(--gold-cream);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.product-desc {
    font-family: var(--font-body);
    color: #f5efe6;
    line-height: 1.6;
    font-size: 14px;
    margin-top: 0.75rem;
}
.product-features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}
.product-features li {
    font-family: var(--font-body);
    color: var(--linen);
    line-height: 1.7;
    font-size: 14px;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.375rem;
}
.product-features li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 10px;
    top: 3px;
}
@media (min-width: 768px) {
    .product-desc {
        font-size: 15px;
    }
}

/* Lazy image opacity fallback (replaces inline style) */
.loading-lazy-opacity {
    opacity: 0.7;
}

/* ──────────────────────────────────────────────
   Commit 4 — inline-style extraction utilities
   ────────────────────────────────────────────── */
/* Anchors default no underline across whole page (brand pattern) */
a {
    text-decoration: none;
}

/* Micro caps variants (tiny uppercase labels, different tracking) */
.micro-cap-xxs {
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.micro-cap-sm {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.micro-cap-loose {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.micro-cap-xl {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Trust / disclaimer text (replaces font-size:0.7–0.78rem inline repeats) */
.text-trust {
    font-size: 0.72rem;
}
.text-hint {
    font-size: 0.75rem;
}
.text-hint-sm {
    font-size: 0.7rem;
}
.text-hint-md {
    font-size: 0.78rem;
}
.text-hint-lg {
    font-size: 0.8rem;
}
.text-13 {
    font-size: 13px;
}
.text-14 {
    font-size: 14px;
}
.text-body-disclaimer {
    font-size: 11px;
    line-height: 1.6;
}

/* Small thin divider dot/line used in stats row */
.stat-divider-v {
    width: 1px;
    background: #1e3461;
}
.stat-bullet {
    width: 0.375rem;
    height: 0.375rem;
    min-width: 6px;
    min-height: 6px;
    border-radius: 9999px;
    background: var(--gold);
}

/* Info-row label fixed width (replaces width:5.5rem inline) */
.info-label {
    width: 5.5rem;
    flex-shrink: 0;
}

/* Backgrounds that were inline */
.bg-navy-glass {
    background-color: rgba(11, 26, 59, 0.97);
    backdrop-filter: blur(12px);
}
.bg-navy-panel {
    background-color: rgba(14, 31, 66, 0.6);
}
.bg-navy-dim {
    background-color: rgba(11, 26, 59, 0.4);
}
.bg-navy-tile {
    background: rgba(21, 42, 82, 0.5);
    border-color: rgba(30, 52, 97, 0.3);
}
.bg-popup-backdrop {
    background: rgba(0, 0, 0, 0.3);
}

/* Headline clamp sizes used in hero/manifesto/partners */
.txt-clamp-hero {
    font-size: clamp(1.6rem, 7vw, 5.5rem);
    letter-spacing: 0.02em;
}
.txt-clamp-lg {
    font-size: clamp(1.875rem, 4.5vw, 3.5rem);
}
.txt-clamp-md {
    font-size: clamp(1.875rem, 4vw, 3rem);
}
.txt-clamp-sm {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* Section aspect-ratio helpers */
.ratio-16-9 {
    aspect-ratio: 16 / 9;
}
.ratio-16-9-min {
    aspect-ratio: 16 / 9;
    min-height: 220px;
}

/* Legend numeral (muted gold italic large number used in accordion/location) */
.numeral-faint {
    color: rgba(197, 165, 90, 0.2);
}
.numeral-fainter {
    color: rgba(197, 165, 90, 0.1);
}

/* Manifesto pull-quote */
.manifesto-quote {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--gold-cream);
    font-weight: 400;
    font-style: italic;
    max-width: 36rem;
    line-height: 1.55;
    margin-left: auto;
    margin-right: auto;
}

/* Floating CTA bubble (desktop rail + mobile bottom bar) */
.floating-rail {
    right: 1.5rem;
    bottom: 7rem;
    z-index: 40;
}
.floating-cta {
    background: var(--bg-onyx);
    color: var(--gold);
    border: 1px solid var(--gold);
}
.mobile-ctabar {
    background: var(--bg-onyx);
    border-top: 1px solid var(--gold);
}
.mobile-ctabar a {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.2em;
    min-height: 52px;
}
.mobile-ctabar a + a {
    border-left: 1px solid rgba(201, 167, 106, 0.35);
}

/* Simple gold 1 px border */
.border-gold-1 {
    border: 1px solid var(--gold);
}

/* Horizontal thin bar used on top of form-card + modal */
.bar-gold-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
}

/* Hotline link alignment helper */
.text-stone-c {
    color: var(--stone);
}
.text-linen-c {
    color: var(--linen);
}
.text-gold-cream-c {
    color: var(--gold-cream);
}

/* Header / Footer logo defaults (replaces inline style="width:auto") */
.header-logo,
.footer-logo,
.mobile-logo {
    width: auto;
}
.mobile-logo {
    height: 36px;
}
.footer-logo-sm {
    height: 44px;
}

/* Modal close button positioning */
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--stone);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.modal-close:hover {
    color: var(--warm-white);
}

/* Constrained modal panel */
.modal-panel {
    max-width: 30rem;
    background: #0e1f42 !important;
    border: 1px solid var(--gold) !important;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(201, 167, 106, 0.2);
}

/* Hero body copy (linen color + max-width) */
.hero-body {
    color: var(--linen);
    max-width: 30rem;
}

/* Smartland band */
.smartland-year {
    font-size: 1.75rem;
}
.smartland-year-sub {
    font-size: 1.1rem;
}
.smartland-title {
    font-size: 1.35rem;
    max-width: 40rem;
}
.smartland-body {
    font-size: 0.78rem;
    max-width: 40rem;
}

/* Location view highlight */
.loc-highlight-text {
    font-size: 0.78rem;
}

/* Connection legend numeral */
.conn-num {
    font-size: 1.25rem;
}
.conn-text {
    font-size: 14px;
}

/* Reason accordion title */
.reason-title {
    font-size: 1rem;
    line-height: 1.4;
}

/* Page title anchors to sections */
.title-clamp-48 {
    max-width: 48rem;
}
.title-clamp-40 {
    max-width: 40rem;
}
.title-clamp-36 {
    max-width: 36rem;
}
.title-clamp-32 {
    max-width: 32rem;
}
.title-clamp-30 {
    max-width: 30rem;
}
.title-clamp-26 {
    max-width: 26rem;
}

/* Video max-width wrapper */
.video-wrap {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile-menu nav label sizes */
.menu-num {
    font-size: 11px;
    letter-spacing: 0.25em;
}
.menu-label {
    font-size: 1.3rem;
    line-height: 1.1;
}

/* Header CTA (smaller padding) */
.btn-gold.btn-sm {
    font-size: 11px;
    padding: 0.75rem 1.5rem;
}

/* Footer body links column */
.footer-links {
    line-height: 1.8;
}

/* ── Hotline CTA button ── */
.hotline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.2rem);
    letter-spacing: 0.05em;
    color: var(--bg-navy);
    background: var(--gold);
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.hotline-btn:hover {
    background-color: var(--gold-warm);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 167, 106, 0.35);
}
.hotline-btn::before {
    content: "✆";
    font-size: 1.3em;
}
