/* =========================================================
   Yellowstone Tattvam — "Prestige Nature Narrative" theme
   Deep Forest / Brass / Cream — Refined Minimalism
   ========================================================= */

:root {
    --deep-forest: #01261f;
    --deep-forest-2: #1a3c34;
    --brass: #c5a059;
    --brass-light: #e9c176;
    --cream: #f9f7f2;
    --cream-2: #f0eded;
    --charcoal-text: #2d2d2d;
    --on-surface-variant: #5a5f5c;
    --outline-variant: rgba(197, 160, 89, 0.3);
    --line-on-dark: rgba(197, 160, 89, 0.35);

    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --container: 1320px;
    --radius: 0.25rem;
    --section-gap: 140px;
    --transition: 0.4s cubic-bezier(.4,0,.2,1);
}

/* ---------- Page load transition ---------- */
html.is-loading body { opacity: 0; }
html.is-loaded body { opacity: 1; transition: opacity 0.6s ease; }

.hero-media, .page-hero-media { overflow: hidden; }
.hero-media img, .page-hero-media img { will-change: transform; }

/* ---------- Curtain-wipe image reveal ---------- */
.media-curtain { position: relative; overflow: hidden; }

/* Case A: data-animate lives on the media element itself */
.media-curtain.animate-armed::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--brass);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.85s cubic-bezier(.65,0,.35,1) 0.1s;
    z-index: 2;
    pointer-events: none;
}
.media-curtain.animate-armed.is-visible::after { transform: scaleX(0); }

/* Case B: data-animate lives on an ancestor (amenity rows / teaser cards) */
.amenity-row.animate-armed .media-curtain::after,
.amenity-teaser-card.animate-armed .media-curtain::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--brass);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.85s cubic-bezier(.65,0,.35,1) 0.15s;
    z-index: 2;
    pointer-events: none;
}
.amenity-row.animate-armed.is-visible .media-curtain::after,
.amenity-teaser-card.animate-armed.is-visible .media-curtain::after {
    transform: scaleX(0);
}

/* ---------- Brand name highlight ---------- */
.brand-highlight { color: var(--brass); font-weight: 700; }

/* ---------- Pull quote ---------- */
.pull-quote {
    max-width: 780px;
    text-align: center;
    margin: 90px auto 0;
    position: relative;
}
.pull-quote-mark {
    display: block;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--brass);
    opacity: 0.5;
    margin-bottom: -18px;
}
.pull-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: var(--deep-forest);
    line-height: 1.4;
    margin: 0;
}

/* ---------- Photo placeholder (real photo not yet uploaded) ---------- */
.photo-placeholder {
    width: 100%; height: 100%; min-height: 200px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--deep-forest) 0%, var(--deep-forest-2) 100%);
    color: var(--brass);
    text-align: center;
    padding: 20px;
}
.photo-placeholder svg { width: 34px; height: 34px; opacity: 0.85; }
.photo-placeholder span {
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(249,247,242,0.7);
    max-width: 200px;
}

.gallery-item-empty { cursor: default; }
.gallery-item-empty:hover img { transform: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--charcoal-text);
    line-height: 1.65;
    font-size: 16px;
}

img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--deep-forest);
    font-weight: 600;
    margin: 0 0 16px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h2.section-title, section h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 500; }

p { margin: 0 0 16px; color: var(--on-surface-variant); }
a { color: inherit; text-decoration: none; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    color: var(--brass);
    font-weight: 600;
    margin-bottom: 14px;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--brass);
    flex-shrink: 0;
}
.eyebrow.center, .section-title.center { text-align: center; }
.eyebrow.center { justify-content: center; }
.center { text-align: center; }

/* ---------- Buttons: hover-slide fill ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 34px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: 1px solid transparent;
    text-transform: uppercase;
    overflow: hidden;
    z-index: 0;
    transition: color var(--transition), transform 0.25s ease-out;
    font-family: var(--font-body);
}
.btn-sm { padding: 11px 22px; font-size: 0.72rem; }
.btn-block { width: 100%; }

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
    z-index: -1;
}

.btn-gold {
    background: var(--deep-forest);
    color: var(--brass-light);
    border-color: var(--deep-forest);
}
.btn-gold::before { background: var(--brass); }
.btn-gold:hover { color: var(--deep-forest); }

.btn-outline-gold {
    border-color: var(--brass);
    color: var(--deep-forest);
    background: transparent;
}
.btn-outline-gold::before { background: var(--brass); }
.btn-outline-gold:hover { color: var(--deep-forest); }

.btn-ghost {
    color: var(--cream);
    border-color: rgba(249,247,242,0.5);
    background: transparent;
}
.btn-ghost::before { background: var(--cream); }
.btn-ghost:hover { color: var(--deep-forest); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
    background: rgba(249,247,242,0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(1,38,31,0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
    transition: height var(--transition);
}
.site-header.is-scrolled .header-inner { height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
    font-family: var(--font-display); font-size: 1.2rem;
    color: var(--cream);
    transition: color var(--transition);
}
.site-header.is-scrolled .brand-text strong { color: var(--deep-forest); }
.brand-text em {
    font-style: normal; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
    color: var(--brass);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0; padding: 0;
}
.main-nav a {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    color: var(--cream);
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition);
}
.site-header.is-scrolled .main-nav a { color: var(--deep-forest); }
.main-nav a::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--brass);
    transition: width var(--transition);
}
.main-nav a:hover { color: var(--brass); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.is-active { color: var(--brass); }
.main-nav a.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-actions .btn-outline-gold {
    color: var(--cream);
    border-color: var(--brass);
    transition: color var(--transition), border-color var(--transition);
}
.header-actions .btn-outline-gold::before { background: var(--brass); }
.header-actions .btn-outline-gold:hover { color: var(--deep-forest); }
.site-header.is-scrolled .header-actions .btn-outline-gold { color: var(--deep-forest); }
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer;
}
.menu-toggle span { width: 26px; height: 2px; background: var(--cream); transition: background var(--transition); }
.site-header.is-scrolled .menu-toggle span { background: var(--deep-forest); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--deep-forest);
}
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(1,38,31,0.65) 0%, rgba(1,38,31,0.55) 40%, rgba(1,38,31,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 92px; max-width: 780px; }
.hero-content .eyebrow { color: var(--brass-light); }
.hero-content h1 { color: var(--cream); }
.hero-body { font-size: 1.08rem; max-width: 560px; color: rgba(249,247,242,0.85); }
.hero-cta { display: flex; gap: 20px; margin: 30px 0; flex-wrap: wrap; }
.hero-phones { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-phones a { font-size: 1.05rem; font-weight: 600; color: var(--brass-light); border-bottom: 1px solid var(--line-on-dark); padding-bottom: 2px; }

.scroll-indicator {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 42px; border: 1px solid var(--brass); border-radius: 20px;
    z-index: 2;
}
.scroll-indicator span {
    display: block; width: 4px; height: 8px; background: var(--brass);
    border-radius: 2px; margin: 8px auto 0;
    animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { opacity: 0; }
}

/* ---------- Welcome / Overview ---------- */
.welcome, .overview { padding: var(--section-gap) 0 60px; background: var(--cream); }
.welcome-grid, .overview-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 70px;
    align-items: center;
}
.welcome-media, .overview-media { position: relative; min-height: 340px; }
.welcome-media img, .overview-media img, .welcome-media .photo-placeholder, .overview-media .photo-placeholder { border-radius: var(--radius); }
.frame-accent {
    position: absolute; top: 18px; left: 18px; right: -18px; bottom: -18px;
    border: 1px solid var(--brass);
    z-index: -1;
}
.welcome-copy h2, .overview-copy h2 { max-width: 480px; }

.highlights-heading { margin-top: 110px; }
.section-subtext { max-width: 640px; margin: 0 auto 8px; color: var(--on-surface-variant); font-size: 1rem; }
.section-subtext.center { text-align: center; }

.highlights {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--outline-variant);
    border: 1px solid var(--outline-variant);
}
.highlight-card {
    background: var(--cream-2);
    padding: 44px 24px;
    text-align: center;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.highlight-card:hover {
    background: #fff;
    transform: translateY(-6px);
    box-shadow: 0px 20px 40px rgba(1,38,31,0.08);
}
.highlight-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px;
    border: 1px solid var(--brass);
    border-radius: 50%;
    color: var(--brass);
    margin-bottom: 20px;
    transition: transform var(--transition);
}
.highlight-card:hover .highlight-icon { transform: scale(1.1) rotate(-6deg); }
.highlight-icon svg { width: 24px; height: 24px; }
.highlight-card h3 { font-size: 1.05rem; color: var(--deep-forest); }
.highlight-card p { font-size: 0.88rem; margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    min-height: 56vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--deep-forest);
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-content { position: relative; z-index: 2; padding-bottom: 64px; }
.page-hero-content .eyebrow { color: var(--brass-light); }
.page-hero-content h1 { color: var(--cream); font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 18px; }
.breadcrumb { display: flex; gap: 10px; font-size: 0.82rem; color: rgba(249,247,242,0.7); text-transform: uppercase; letter-spacing: 0.06em; }
.breadcrumb a { color: rgba(249,247,242,0.7); border-bottom: 1px solid transparent; transition: color var(--transition), border-color var(--transition); }
.breadcrumb a:hover { color: var(--brass-light); border-color: var(--brass-light); }

/* ---------- Teaser sections (home page) ---------- */
.configuration-teaser { padding: var(--section-gap) 0; background: var(--cream); }
.amenities-teaser { padding: var(--section-gap) 0; background: var(--cream-2); }
.location-teaser { padding: var(--section-gap) 0; background: var(--cream); }
.teaser-cta { text-align: center; margin-top: 56px; }

.plot-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.plot-card {
    background: var(--cream-2);
    border: 1px solid var(--outline-variant);
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.plot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 24px 44px rgba(1,38,31,0.1);
    border-color: var(--brass);
}
.plot-card-index {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--brass);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}
.plot-card h3 { font-size: 1.6rem; margin-bottom: 4px; }
.plot-card-type { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--brass); margin-bottom: 16px; }
.plot-card-suitability { font-size: 0.88rem; min-height: 3.2em; }

.amenity-teaser-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 28px;
}
.amenity-teaser-card:nth-child(1) { grid-row: 1 / 3; }
.amenity-teaser-card:nth-child(2) { grid-row: 1; }
.amenity-teaser-card:nth-child(3) { grid-row: 2; }
.amenity-teaser-card:nth-child(1) .amenity-teaser-media { aspect-ratio: 4 / 3.6; }
.amenity-teaser-card:nth-child(1) h3 { font-size: 1.6rem; }
.amenity-teaser-card:nth-child(1) .amenity-teaser-tagline { font-size: 0.74rem; }
.amenity-teaser-card:nth-child(2) .amenity-teaser-media,
.amenity-teaser-card:nth-child(3) .amenity-teaser-media { aspect-ratio: 16 / 9; }
.amenity-teaser-card { background: var(--cream); border: 1px solid var(--outline-variant); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.amenity-teaser-card:hover { transform: translateY(-8px); box-shadow: 0px 24px 44px rgba(1,38,31,0.1); }
.amenity-teaser-card ul { margin-top: auto; }
.amenity-teaser-media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.amenity-teaser-media::after {
    content: '';
    position: absolute; inset: 10px;
    border: 1px solid rgba(197,160,89,0);
    transition: border-color var(--transition);
    pointer-events: none;
    z-index: 2;
}
.amenity-teaser-card:hover .amenity-teaser-media::after { border-color: rgba(197,160,89,0.7); }
.amenity-teaser-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.amenity-teaser-card:hover .amenity-teaser-media img { transform: scale(1.06); }
.amenity-teaser-tagline {
    padding: 22px 24px 0;
    margin: 0;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--brass);
    font-weight: 600;
}
.amenity-teaser-card h3 { padding: 6px 24px 8px; font-size: 1.25rem; }
.amenity-teaser-card ul { list-style: none; margin: 0; padding: 0 24px 26px; }
.amenity-teaser-card li { font-size: 0.85rem; padding: 6px 0; color: var(--on-surface-variant); border-bottom: 1px dashed var(--outline-variant); }
.amenity-teaser-card li:last-child { border-bottom: none; }

.commute-teaser-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.commute-teaser-card { background: var(--cream-2); border: 1px solid var(--outline-variant); padding: 30px 28px; transition: transform var(--transition), box-shadow var(--transition); }
.commute-teaser-card:hover { transform: translateY(-6px); box-shadow: 0px 20px 40px rgba(1,38,31,0.08); }
.commute-teaser-tagline {
    margin: 0 0 8px;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--brass);
    font-weight: 600;
}
.commute-teaser-card h3 { font-size: 1.05rem; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--brass); }
.commute-teaser-card ul { list-style: none; margin: 0; padding: 0; }
.commute-teaser-card li { font-size: 0.86rem; padding: 8px 0; border-bottom: 1px dashed var(--outline-variant); color: var(--charcoal-text); }
.commute-teaser-card li:last-child { border-bottom: none; }

/* ---------- Location page categories ---------- */
.location-categories {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}
.location-category { background: var(--cream-2); border: 1px solid var(--outline-variant); padding: 36px 32px; }
.location-category-head h3 { font-size: 1.4rem; margin-bottom: 12px; }
.location-category-intro { color: var(--on-surface-variant); font-size: 0.9rem; margin-bottom: 24px; }
.location-category-items { margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--deep-forest-2); padding: 70px 0; }
.cta-banner-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 36px;
    align-items: center;
}
.cta-banner-badge {
    width: 64px; height: 64px;
    border: 1px solid var(--brass);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brass);
    flex-shrink: 0;
}
.cta-banner-badge svg { width: 30px; height: 30px; }
.cta-banner-copy h2 { color: var(--cream); font-size: 1.6rem; margin-bottom: 8px; }
.cta-banner-copy p { color: rgba(249,247,242,0.7); margin: 0 0 4px; font-size: 0.88rem; }
.cta-banner-copy .cta-banner-lead { color: var(--brass-light); font-family: var(--font-display); font-size: 1.05rem; margin-top: 8px; }

/* ---------- Configuration layouts ---------- */
.configuration { padding: var(--section-gap) 0; background: var(--deep-forest); }
.configuration .eyebrow { color: var(--brass-light); }
.configuration h2 { color: var(--cream); }

.layout-list {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line-on-dark);
    border: 1px solid var(--line-on-dark);
}
.layout-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    background: var(--deep-forest);
    padding: 44px 40px;
    transition: background var(--transition);
}
.layout-card:hover { background: var(--deep-forest-2); }
.layout-card-figure { border-right: 1px solid var(--line-on-dark); padding-right: 40px; }
.layout-card-index {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--brass);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.layout-card-figure h3 {
    color: var(--cream);
    font-size: 2.6rem;
    margin-bottom: 0;
    line-height: 1;
}
.layout-card-unit {
    color: var(--brass-light);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    margin: 6px 0 14px;
}
.layout-card-dimensions {
    color: rgba(249,247,242,0.6);
    font-size: 0.85rem;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line-on-dark);
}
.layout-card-body h4 {
    color: var(--cream);
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.layout-card-suitability, .layout-card-advantage {
    color: rgba(249,247,242,0.78);
    font-size: 0.92rem;
    line-height: 1.7;
}
.layout-card-suitability strong, .layout-card-advantage strong {
    color: var(--brass-light);
    font-weight: 600;
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.layout-card-body .btn { margin-top: 8px; }
.layout-card-body .btn.btn-outline-gold { border-color: var(--brass); color: var(--cream); }
.layout-card-body .btn.btn-outline-gold::before { background: var(--brass); }
.layout-card-body .btn.btn-outline-gold:hover { color: var(--deep-forest); }

/* ---------- Amenities ---------- */
.amenities { padding: var(--section-gap) 0 40px; background: var(--cream); }
.amenity-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    align-items: stretch;
    max-width: var(--container);
    margin: 0 auto 4px;
}
.amenity-row.reverse { direction: rtl; }
.amenity-row.reverse .amenity-copy,
.amenity-row.reverse .amenity-media { direction: ltr; }
.amenity-media { position: relative; overflow: hidden; }
.amenity-media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.amenity-media::after {
    content: '';
    position: absolute; inset: 14px;
    border: 1px solid rgba(197,160,89,0.6);
    pointer-events: none;
    z-index: 3;
}
.amenity-copy {
    background: var(--cream-2);
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.amenity-copy h3 { font-size: 1.9rem; margin-bottom: 14px; }
.amenity-zone-intro { color: var(--on-surface-variant); margin-bottom: 26px; }
.amenity-item-list { margin: 0 0 30px; display: flex; flex-direction: column; gap: 16px; }
.amenity-item { padding: 14px 0 14px 26px; border-bottom: 1px solid var(--outline-variant); position: relative; }
.amenity-item::before {
    content: '';
    position: absolute; left: 0; top: 22px;
    width: 8px; height: 1px;
    background: var(--brass);
}
.amenity-item dt {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--deep-forest);
    margin-bottom: 4px;
}
.amenity-item dd { margin: 0; color: var(--on-surface-variant); font-size: 0.9rem; line-height: 1.6; }
.amenity-copy .btn { align-self: flex-start; }

/* ---------- Gallery ---------- */
.gallery { padding: var(--section-gap) 0; background: var(--cream-2); }
.gallery-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.gallery-item {
    border: none; padding: 0; cursor: pointer; overflow: hidden;
    aspect-ratio: 4 / 3; background: var(--deep-forest-2);
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute; inset: 10px;
    border: 1px solid rgba(197,160,89,0);
    transition: border-color var(--transition);
    pointer-events: none;
    z-index: 2;
}
.gallery-item:hover::after { border-color: rgba(197,160,89,0.7); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:nth-child(5n+1) { grid-row: span 2; aspect-ratio: auto; }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(1,38,31,0.95);
    display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 82vh; border: 1px solid var(--line-on-dark); }
.lightbox-close, .lightbox-nav {
    position: absolute; background: none; border: 1px solid var(--line-on-dark);
    color: var(--cream); width: 46px; height: 46px; border-radius: 50%;
    cursor: pointer; font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Location ---------- */
.location { padding: var(--section-gap) 0 80px; background: var(--cream); }
.map-embed { width: 100%; height: 440px; margin: 44px 0 64px; border: 1px solid var(--outline-variant); }

/* ---------- Contact ---------- */
.contact { padding: var(--section-gap) 0; background: var(--deep-forest); }
.contact .eyebrow { color: var(--brass-light); }
.contact h2 { color: var(--cream); }
.contact-copy p { color: rgba(249,247,242,0.75); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 22px 0; }
.contact-details li { margin-bottom: 12px; color: rgba(249,247,242,0.85); }
.contact-details strong { color: var(--brass-light); font-weight: 600; }
.contact-details a { color: var(--cream); border-bottom: 1px solid var(--line-on-dark); }
.rera-note { font-size: 0.76rem; color: rgba(249,247,242,0.45); margin-top: 32px; line-height: 1.7; }

.contact-form-wrap {
    background: transparent;
    border: none;
    padding: 0;
}

/* Ghost inputs — single gold underline, label above */
.enquiry-form .form-row { margin-bottom: 26px; }
.enquiry-form label {
    display: block; font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--brass-light); margin-bottom: 10px;
    font-weight: 600;
}
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--brass);
    color: var(--cream);
    padding: 10px 2px;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}
.enquiry-form select option { color: var(--charcoal-text); }
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
    outline: none; border-color: var(--brass-light);
}
.enquiry-form .honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-status { margin: 14px 0 0; font-size: 0.88rem; min-height: 1.2em; }
.form-status.success { color: #9fd8bd; }
.form-status.error { color: #e6a3a3; }

/* Modal form reuses same field styling but on cream */
.modal-panel .enquiry-form label { color: var(--brass); }
.modal-panel .enquiry-form input,
.modal-panel .enquiry-form select,
.modal-panel .enquiry-form textarea {
    color: var(--charcoal-text);
    border-bottom-color: var(--brass);
}

/* ---------- Blog ---------- */
.blog-index { padding: var(--section-gap) 0; background: var(--cream); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.blog-card {
    display: block;
    background: var(--cream-2);
    border: 1px solid var(--outline-variant);
    transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-8px); box-shadow: 0px 24px 44px rgba(1,38,31,0.1); }
.blog-card-media { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.06); }
.blog-card-body { padding: 26px 26px 30px; }
.blog-card-date {
    text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.1em;
    color: var(--brass); font-weight: 600; margin-bottom: 10px;
}
.blog-card-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.blog-card-excerpt { font-size: 0.9rem; margin-bottom: 16px; }
.blog-card-link {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--deep-forest); font-weight: 600;
}

.blog-pagination { margin-top: 64px; display: flex; justify-content: center; }
.pagination { display: flex; align-items: center; gap: 24px; }
.pagination-arrow {
    width: 44px; height: 44px; border: 1px solid var(--brass); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--deep-forest); transition: background var(--transition), color var(--transition);
}
.pagination-arrow:hover { background: var(--deep-forest); color: var(--cream); }
.pagination-arrow.is-disabled { opacity: 0.3; pointer-events: none; }
.pagination-status { font-size: 0.85rem; color: var(--on-surface-variant); text-transform: uppercase; letter-spacing: 0.06em; }

/* Blog post article */
.blog-post { padding: var(--section-gap) 0 40px; background: var(--cream); }
.blog-post-meta-line {
    display: flex; justify-content: center; gap: 14px;
    text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em;
    color: var(--brass); margin-bottom: 40px;
}
.blog-post-featured { max-width: 900px; aspect-ratio: 16/9; overflow: hidden; margin: 0 auto 48px; border: 1px solid var(--outline-variant); }
.blog-post-featured img { width: 100%; height: 100%; object-fit: cover; }

.blog-post-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--charcoal-text);
}
.blog-post-body h2 { font-size: 1.8rem; margin: 48px 0 20px; }
.blog-post-body h3 { font-size: 1.4rem; margin: 36px 0 16px; color: var(--deep-forest); }
.blog-post-body p { margin: 0 0 22px; }
.blog-post-body a { color: var(--deep-forest); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 22px; padding-left: 24px; }
.blog-post-body li { margin-bottom: 8px; }
.blog-post-body blockquote {
    margin: 32px 0; padding: 20px 28px; border-left: 3px solid var(--brass);
    background: var(--cream-2); font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
}
.blog-post-body img { width: 100%; height: auto; border-radius: var(--radius); margin: 28px 0; }
.blog-post-body strong { color: var(--deep-forest); }

.blog-post-back { max-width: 720px; margin: 48px auto 0; }

.blog-related { padding: var(--section-gap) 0; background: var(--cream-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-forest); border-top: 1px solid var(--line-on-dark); padding: 64px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 1fr 2fr 1fr;
    gap: 40px; align-items: start; padding-bottom: 44px;
    border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-brand .brand-text strong { color: var(--cream); }
.footer-brand p { font-size: 0.85rem; color: rgba(249,247,242,0.65); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; align-content: start; }
.footer-nav a { font-size: 0.85rem; color: rgba(249,247,242,0.8); }
.footer-nav a:hover { color: var(--brass-light); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer-contact a { color: var(--brass-light); font-size: 1.05rem; font-weight: 600; }
.footer-legal { padding: 26px 0 34px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 0.75rem; color: rgba(249,247,242,0.4); }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
    position: fixed; bottom: 26px; right: 26px; z-index: 150;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(1,38,31,0.35);
    transition: transform var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(1,38,31,0.88);
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.modal-overlay.is-open { display: flex; }
.modal-panel {
    position: relative;
    background: var(--cream);
    border: 1px solid var(--brass);
    border-radius: var(--radius);
    padding: 48px;
    max-width: 480px; width: 100%;
    max-height: 90vh; overflow-y: auto;
}
.modal-panel h3 { color: var(--deep-forest); }
.modal-close {
    position: absolute; top: 18px; right: 22px;
    background: none; border: none; color: var(--deep-forest);
    font-size: 1.6rem; cursor: pointer;
}
.modal-sub { color: var(--on-surface-variant); font-size: 0.92rem; }

/* ---------- Scroll animation ---------- */
/* Content is visible by default (safe if JS fails/never fires). JS adds
   .animate-armed only once it has successfully set up the observer, then
   removes it (revealing content) when the element scrolls into view or
   the safety-net timeout fires. This guarantees nothing stays permanently
   hidden. */
[data-animate].animate-armed { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
[data-animate="fade-right"].animate-armed { transform: translateX(-32px); }
[data-animate="fade-left"].animate-armed { transform: translateX(32px); }
[data-animate].animate-armed.is-visible { opacity: 1; transform: translate(0,0); }

/* ---------- Utilities ---------- */
.hide-mobile { display: inline-flex; }
.mobile-only { display: none; }
.desktop-only { display: block; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
    :root { --section-gap: 80px; }
    .overview-grid, .welcome-grid, .contact-grid { grid-template-columns: 1fr; }
    .amenity-row { grid-template-columns: 1fr; }
    .amenity-row.reverse { direction: ltr; }
    .highlights { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:nth-child(5n+1) { grid-row: auto; }
    .footer-grid { grid-template-columns: 1fr; text-align: left; }
    .footer-contact { text-align: left; }
    .plot-grid { grid-template-columns: repeat(2, 1fr); }
    .amenity-teaser-grid, .commute-teaser-grid, .location-categories { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .amenity-teaser-card:nth-child(1),
    .amenity-teaser-card:nth-child(2),
    .amenity-teaser-card:nth-child(3) { grid-row: auto; }
    .amenity-teaser-card:nth-child(1) { grid-column: 1 / 3; }
    .amenity-teaser-card:nth-child(1) .amenity-teaser-media { aspect-ratio: 16/9; }
    .cta-banner-inner { grid-template-columns: 1fr; text-align: center; }
    .cta-banner-badge { margin: 0 auto; }
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    .main-nav {
        position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
        background: var(--cream); padding: 30px 24px;
        transform: translateX(100%); transition: transform var(--transition);
        overflow-y: auto;
    }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 26px; }
    .main-nav a { color: var(--deep-forest) !important; }
    .hide-mobile { display: none; }
    .menu-toggle { display: flex; }
    .commute-list { grid-template-columns: 1fr; }
    .amenity-copy { padding: 40px 28px; }
    .plot-grid, .amenity-teaser-grid, .commute-teaser-grid, .location-categories { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .amenity-teaser-card:nth-child(1) { grid-column: 1; }
    .page-hero { min-height: 42vh; }

    /* Configuration layout cards -> single column on mobile */
    .layout-card { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
    .layout-card-figure { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line-on-dark); padding-bottom: 20px; }
}
