/* ==========================================
   Mangalam Momento — Design Tokens
   Palette: warm ivory & deep wine-maroon, with regal gold accents
   Mood: auspicious, grand, high-rise luxury — "Live Above The Ordinary"
========================================== */
:root {
    --bg: #F7F3EC;
    --bg-alt: #EFE4D0;
    --surface: #FFFFFF;
    --surface-2: #F2EADC;
    --surface-line: rgba(20, 18, 15, 0.12);

    --dark: #14110F;
    --dark-alt: #1C1815;
    --dark-line: rgba(201, 166, 107, 0.22);

    --gold: #B8935B;
    --gold-light: #E3C48C;
    --gold-dim: #8A6B3D;
    --maroon: #6B2430;
    --maroon-deep: #3D131A;

    --ink: #201C18;
    --ink-muted: #5C5349;
    --ink-muted-2: #8F8477;
    --on-dark: #F7F3EC;
    --on-dark-muted: #D8C7A8;

    --font-display: 'Cinzel', serif;
    --font-body: 'Work Sans', sans-serif;
    --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-body); scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body { background-color: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.65; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.015em; color: var(--ink); }
p { color: var(--ink-muted); font-weight: 400; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
    color: var(--maroon); margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 24px; height: 1px; background: var(--gold); display: inline-block; }
.eyebrow-gold { color: var(--gold-dim); }
.eyebrow-gold::before, .eyebrow-gold::after { background: var(--maroon); }

.section { padding: 100px 7% 90px; position: relative; text-align: center; background: var(--bg); }
.section-dark { background: var(--dark); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--on-dark); }
.section-dark p, .section-dark .section-subtitle { color: var(--on-dark-muted); }
.section-dark .eyebrow { color: var(--gold-light); }
.section-dark .eyebrow::before, .section-dark .eyebrow::after { background: var(--gold-light); }
.section-dark .fine-print { color: var(--on-dark-muted); opacity: 0.75; }

.section h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.2; max-width: 780px; margin: 0 auto 18px; }
.section-subtitle { max-width: 640px; font-size: 17px; margin: 0 auto 46px; color: var(--ink-muted); }
.fine-print { font-size: 12.5px; color: var(--ink-muted-2); margin: 22px auto 0; max-width: 640px; text-align: center; }

/* ==========================================
   Navbar
========================================== */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 5%; background: rgba(247, 243, 236, 0.94); backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--surface-line); position: sticky; top: 0; z-index: 500;
}
.logo-lockup { display: flex; align-items: center; gap: 12px; }
.logo-mark { height: 62px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; color: var(--ink-muted); transition: color 0.2s ease; text-transform: uppercase; }
.nav-links a:hover { color: var(--maroon); }
.nav-cta {
    padding: 11px 24px; background: linear-gradient(120deg, var(--gold-light), var(--gold));
    border: none; color: var(--dark) !important; border-radius: var(--radius); font-weight: 700 !important;
}
.nav-cta:hover { filter: brightness(1.08); }
.hamburger-btn { display: none; background: none; border: none; font-size: 24px; color: var(--ink); cursor: pointer; }
.mobile-menu {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); padding: 10px 7%; border-bottom: 1px solid var(--surface-line);
}
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--surface-line); font-size: 15px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mobile-menu.active { display: flex; }

/* ==========================================
   Hero
========================================== */
.hero-container { position: relative; height: 92svh; min-height: 600px; max-height: 860px; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(1.08) saturate(1.04); }
.hero-scrim {
    position: absolute; inset: 0; z-index: 2;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(20,17,15,0.06), rgba(20,17,15,0.20) 70%),
        linear-gradient(180deg, rgba(20,17,15,0.16) 0%, rgba(20,17,15,0.08) 32%, rgba(20,17,15,0.16) 62%, rgba(20,17,15,0.58) 100%);
}
.hero-content { position: relative; z-index: 3; padding: 0 7%; width: 100%; max-width: 680px; margin: 0; text-align: left; }
.hero-content .eyebrow { color: var(--gold-light); justify-content: flex-start; }
.hero-content h1 { color: var(--on-dark); font-family: 'Cormorant Garamond', var(--font-display); font-weight: 600; font-size: clamp(34px, 3.2vw, 52px); line-height: 1.08; letter-spacing: 0.008em; max-width: 570px; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.hero-tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(16px, 1.8vw, 21px); color: var(--gold-light); margin-top: 14px; letter-spacing: 0.02em; }
.hero-sub { margin-top: 20px; font-size: clamp(14px, 1.4vw, 18px); color: var(--on-dark); max-width: 560px; margin-left: 0; margin-right: 0; opacity: 0.94; text-shadow: 0 2px 16px rgba(0,0,0,0.45); }
.hero-actions { display: flex; justify-content: flex-start; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.btn-primary {
    background: linear-gradient(120deg, var(--gold-light), var(--gold) 60%, var(--maroon) 150%);
    color: #fff; border: none; padding: 17px 34px; font-weight: 700; font-size: 14px;
    letter-spacing: 0.05em; text-transform: uppercase; border-radius: var(--radius); cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost {
    padding: 17px 30px; border: 1px solid rgba(247,243,236,0.55); color: var(--on-dark); font-size: 14px;
    font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; border-radius: var(--radius);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover { border-color: var(--gold-light); background: rgba(227,196,140,0.14); }

/* Ticker */
.ticker-strip { background: linear-gradient(90deg, var(--maroon), var(--maroon-deep)); overflow: hidden; white-space: nowrap; padding: 13px 0; position: relative; z-index: 4; }
.ticker-track { display: inline-flex; gap: 18px; animation: ticker 34s linear infinite; }
.ticker-track span { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold-light); text-transform: uppercase; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ==========================================
   Legacy stat band
========================================== */
.legacy-band { background: var(--dark); padding: 70px 7%; }
.legacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1100px; margin: 0 auto; text-align: center; }
.legacy-grid div h3 { font-size: clamp(28px, 3.4vw, 42px); color: var(--gold-light); margin-bottom: 6px; }
.legacy-grid div p { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0; }

/* ==========================================
   Highlights grid (Momento Lifestyle)
========================================== */
.highlights-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; text-align: left;
}
.highlight-card {
    background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius);
    padding: 30px 24px; text-align: center;
}
.highlight-card .icon { font-size: 30px; margin-bottom: 14px; display: block; }
.highlight-card h4 { font-size: 16px; margin-bottom: 6px; }
.highlight-card p { font-size: 13px; margin: 0; }

/* ==========================================
   Configurations
========================================== */
.config-table-wrapper { position: relative; max-width: 920px; margin: 0 auto; }
.config-table { border-top: 1px solid var(--dark-line); }
.config-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 16px 4px;
    border-bottom: 1px solid var(--dark-line); font-size: 14.5px; text-align: center; color: var(--on-dark);
}
.config-head { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11.5px; color: var(--gold-light); }
.config-row:not(.config-head) span:first-child { font-family: var(--font-display); font-size: 16px; color: var(--gold-light); }
.config-luxury { background: rgba(227,196,140,0.08); }
.config-table-wrapper.locked .config-table { filter: blur(7px); user-select: none; pointer-events: none; }
.config-lock-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 10px; cursor: pointer;
    background: linear-gradient(180deg, rgba(20,17,15,0) 0%, rgba(20,17,15,0.65) 40%); padding: 20px;
}
.lock-icon { font-size: 26px; }
.config-lock-btn {
    background: linear-gradient(120deg, var(--gold-light), var(--gold)); color: var(--dark); border: none;
    padding: 15px 30px; font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
    border-radius: var(--radius); cursor: pointer;
}
.config-lock-overlay p { max-width: 400px; font-size: 13.5px; color: var(--on-dark-muted); }

/* ==========================================
   EOI band
========================================== */
.eoi-band { background: linear-gradient(120deg, var(--maroon-deep), var(--maroon)); padding: 70px 7%; text-align: center; }
.eoi-band .eyebrow { color: var(--gold-light); justify-content: center; }
.eoi-band .eyebrow::before, .eoi-band .eyebrow::after { background: var(--gold-light); }
.eoi-band h2 { color: var(--on-dark); }
.eoi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 640px; margin: 36px auto 0; }
.eoi-card { background: rgba(247,243,236,0.06); border: 1px solid rgba(227,196,140,0.35); border-radius: var(--radius); padding: 28px 20px; }
.eoi-card .medal { font-size: 26px; }
.eoi-card h4 { color: var(--gold-light); font-size: 18px; margin: 10px 0 4px; }
.eoi-card p { color: var(--on-dark-muted); font-size: 13.5px; margin: 0; }
.eoi-card .amount { font-family: var(--font-display); font-size: 26px; color: var(--on-dark); margin: 6px 0; }

/* ==========================================
   Amenities
========================================== */
.amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; max-width: 1200px; margin: 0 auto; text-align: left; }
.amenity-card { position: relative; overflow: hidden; border-radius: var(--radius); }
.amenity-card.large { grid-column: span 2; grid-row: span 2; }
.amenity-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.amenity-card:hover img { transform: scale(1.06); }
.amenity-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(20,17,15,0.9), rgba(20,17,15,0)); }
.amenity-label h3 { font-size: 17px; margin-bottom: 3px; color: var(--on-dark); }
.amenity-label p { font-size: 12.5px; color: var(--on-dark-muted); margin: 0; }
.amenity-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.amenity-tags span { padding: 10px 18px; border: 1px solid var(--surface-line); background: var(--surface); border-radius: 30px; font-size: 13px; color: var(--ink-muted); }

/* ==========================================
   Gallery Slider
========================================== */
.slider-container { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--dark); }
.slider-track { display: flex; }
.slider-track img { width: 100%; flex-shrink: 0; height: 60vh; min-height: 380px; object-fit: contain; background: var(--dark); }
.slider-container .btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(20,17,15,0.6);
    border: 1px solid rgba(247,243,236,0.35); color: var(--on-dark); width: 46px; height: 46px;
    border-radius: 50%; cursor: pointer; font-size: 16px; backdrop-filter: blur(4px);
}
.slider-container .prev { left: 18px; } .slider-container .next { right: 18px; }
.slider-container .btn:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* ==========================================
   Exclusive gallery (lead-gated)
========================================== */
.exclusive-gallery-scroll { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; text-align: left; }
.exclusive-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--surface-line); }
.exclusive-card .image-wrapper { position: relative; aspect-ratio: 5/4; overflow: hidden; background: var(--bg-alt); }
.exclusive-card img { width: 100%; height: 100%; object-fit: contain; }
.exclusive-card.locked img { filter: blur(8px) brightness(0.6); }
.lock-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lock-overlay span { padding: 12px 20px; border: 1px solid var(--gold-light); color: var(--on-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 30px; background: rgba(20,17,15,0.6); }
.exclusive-info { padding: 16px 18px 20px; }
.exclusive-info h4 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.exclusive-info p { font-size: 13px; margin: 0; color: var(--ink-muted); }

/* ==========================================
   Modal
========================================== */
.form-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,12,10,0.8); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: var(--surface); border: 1px solid var(--surface-line); padding: 40px 32px; max-width: 420px; width: 100%; text-align: center; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(15,12,10,0.35); }
.modal-card h3 { font-size: 23px; margin-bottom: 12px; color: var(--ink); }
.modal-card p { font-size: 14px; margin-bottom: 26px; color: var(--ink-muted); }
.modal-card form { display: flex; flex-direction: column; gap: 14px; }
.close-modal { background: none; border: none; color: var(--ink-muted-2); margin-top: 16px; font-size: 13px; cursor: pointer; text-decoration: underline; }


.form-container { max-width: 520px; margin: 0 auto; text-align: left; }
input[type="text"], input[type="tel"], input[type="email"] {
    width: 100%; padding: 16px 18px; background: var(--surface); border: 1px solid var(--surface-line);
    color: var(--ink); font-size: 15px; border-radius: var(--radius);
}
input::placeholder { color: var(--ink-muted-2); }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
form { display: flex; flex-direction: column; gap: 16px; }
.submit-btn {
    background: linear-gradient(120deg, var(--gold-light), var(--gold) 60%, var(--maroon) 150%);
    color: #fff; border: none; padding: 17px; font-weight: 700; font-size: 14px; letter-spacing: 0.05em;
    text-transform: uppercase; border-radius: var(--radius); cursor: pointer; transition: filter 0.2s ease;
}
.submit-btn:hover { filter: brightness(1.06); }
.submit-btn:disabled { opacity: 0.6; cursor: default; }
.modal-card input[type="text"], .modal-card input[type="tel"] { background: var(--surface-2); }

/* ==========================================
   Location
========================================== */
.section-map { background: var(--bg-alt); }
.location-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 auto 36px; max-width: 900px; }
.location-highlights div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--surface-line); font-size: 14px; border-radius: var(--radius); text-align: center; color: var(--ink); }
.map-container { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--surface-line); max-width: 1100px; margin: 0 auto; }

/* ==========================================
   Floating widget
========================================== */
.footer-contact-widget { position: fixed; right: 22px; bottom: 22px; z-index: 400; display: flex; flex-direction: column; gap: 12px; }
.contact-icon-link, .whatsapp-icon-link { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(15,12,10,0.35); }
.contact-icon-link { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--dark); }
.whatsapp-icon-link { background: #3D8A5F; color: #fff; }
.contact-icon-link svg, .whatsapp-icon-link svg { width: 24px; height: 24px; }

/* ==========================================
   Footer
========================================== */
footer { background: var(--dark); padding: 70px 7% 30px; border-top: 1px solid var(--dark-line); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 34px; border-bottom: 1px solid var(--dark-line); max-width: 700px; margin: 0 auto; }
.footer-title { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.footer-inner p { color: var(--on-dark-muted); }
.footer-logo-chip { display: inline-flex; align-items: center; justify-content: center; background: var(--surface); padding: 14px 26px; border-radius: 8px; }
.footer-logo-mark { height: 46px; width: auto; }
.footer-contact a { color: var(--gold-light); font-weight: 700; }
.footer-rera { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 0; }
.rera-qr-img { width: 200px; max-width: 55vw; height: auto; border-radius: var(--radius); background: #fff; padding: 6px; }
.footer-legal { font-size: 11.5px; color: var(--on-dark-muted); opacity: 0.8; line-height: 1.7; margin: 14px auto 0; max-width: 900px; }
.footer-links { margin-top: 16px; font-size: 12px; }
.footer-links a { text-decoration: underline; color: var(--on-dark-muted); }

/* ==========================================
   Responsive
========================================== */
@media (max-width: 980px) {
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .legacy-grid { grid-template-columns: repeat(2, 1fr); }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
    .amenity-card.large { grid-column: span 2; grid-row: span 1; }
    .exclusive-gallery-scroll { grid-template-columns: 1fr; }
    .location-highlights { grid-template-columns: repeat(2, 1fr); }
    .eoi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) and (min-width: 721px) {
    .hero-content { max-width: 620px; }
    .hero-content h1 { font-size: clamp(34px, 4.2vw, 48px); max-width: 530px; }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .hamburger-btn { display: block; }
    .section { padding: 70px 6% 60px; }
    .logo-mark { height: 46px; }
    .hero-container {
        height: auto; min-height: 0; display: block;
        background: linear-gradient(165deg, var(--dark) 0%, var(--maroon-deep) 60%, var(--dark) 100%);
    }
    .hero-media { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .hero-scrim {
        background:
            radial-gradient(ellipse at 30% 30%, rgba(20,17,15,0.04), rgba(20,17,15,0.18) 70%),
            linear-gradient(180deg, rgba(20,17,15,0.12) 0%, rgba(20,17,15,0.06) 40%, rgba(20,17,15,0.22) 75%, rgba(20,17,15,0.72) 100%);
    }
    .hero-content { position: relative; padding: 34px 6% 46px; max-width: 100%; text-align: center; background: var(--dark); }
    .hero-content h1 { font-size: clamp(32px, 8.5vw, 44px); line-height: 1.08; max-width: 720px; margin: 0 auto; }
    .hero-content .eyebrow { justify-content: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; text-align: center; }
    .highlights-grid { grid-template-columns: 1fr; }
    .legacy-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .amenities-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .amenity-card.large { grid-column: span 1; grid-row: span 1; }
    .exclusive-gallery-scroll { grid-template-columns: 1fr; }
    .config-row { grid-template-columns: 1fr 1fr 1fr; font-size: 12.5px; padding: 13px 2px; }
    .location-highlights { grid-template-columns: 1fr; }
    .footer-contact-widget { right: 14px; bottom: 14px; }
    .contact-icon-link, .whatsapp-icon-link { width: 48px; height: 48px; }
    .slider-track img { height: 42vh; min-height: 260px; }
}

@media (max-width: 420px) {
    .config-row { font-size: 11.5px; }
}

/* SEO content and FAQ presentation */
.seo-copy { max-width: 900px; margin: 0 auto; text-align: left; }
.seo-copy p { margin: 0 0 18px; line-height: 1.8; }
.faq-list { max-width: 900px; margin: 28px auto 0; }
.faq-list details { border-bottom: 1px solid rgba(255,255,255,.14); padding: 18px 0; }
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style-position: inside; }
.faq-list details p { color: var(--on-dark-muted); line-height: 1.75; margin: 12px 0 0 24px; }
@media (max-width: 700px) {
  .seo-copy { text-align: left; }
}
