/* ============================================================
   Joyville Vyomora — "Dark Tech Luxury" theme
   shapoorjipallonjijoyvyomora.com
   ============================================================ */

:root {
--midnight:     #F4F2FF;
  --midnight-lt:  #ECE8FF;

  --surface:      #FFFFFF;
  --surface-lt:   #F7F5FF;

  --gold:         #D89A18;
  --gold-soft:    #E9BE5A;

  --violet:       #6D4EFF;
  --violet-soft:  #8E76FF;

  --offwhite:     #FFFFFF;
  --text-mid:     #6B6785;

  --hairline:     rgba(40, 6, 188, 0.12);

  --ff-display: 'Space Grotesk', system-ui, sans-serif;
  --ff-body:    'Sora', system-ui, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

body {
  font-family: var(--ff-body);
  background: var(--midnight);
  color: var(--offwhite);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  margin: 0 0 18px;
  color: var(--violet);
}
.section-title em { font-style: normal; color: var(--violet-soft); }

.section-body { font-size: 1.02rem; color: var(--text-mid); max-width: 620px; }

.btn-glow {
  display: inline-block;
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--midnight);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 15px 30px;
  border-radius: 30px;
  box-shadow: 0 0 0 0 rgba(232,182,68,0.5);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.btn-glow:hover { box-shadow: 0 0 28px 4px rgba(232,182,68,0.35); transform: translateY(-2px); }

.btn-ghost-v {
  display: inline-block;
  border: 1.5px solid var(--violet-soft);
  color: var(--offwhite);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13.5px 28px;
  border-radius: 30px;
  transition: background 0.2s ease;
}
.btn-ghost-v:hover { background: rgba(124,92,252,0.18); }

/* ===== reveal-on-scroll (shared js hook) ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.12s; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: #eae6ff;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition: padding 0.25s ease;
}
.nav-brand { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-main { font-family: var(--ff-display); font-weight: 700; font-size: 1.2rem; color: var(--violet); letter-spacing: 0.02em; }
.nav-brand-sub { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.85rem; font-weight: 600; color: var(--violet); }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-soft) 100%); color: var(--midnight); font-weight: 700; font-size: 0.8rem;
  padding: 11px 22px; border-radius: 24px;
}
@media (max-width: 900px) { .nav-links { display: none; } nav { padding: 16px 24px; } }

/* ===== HERO — full-viewport, centered, form NOT in hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
  position: relative; padding: 140px 24px 100px;
  background:
    linear-gradient(180deg, rgba(18,16,42,0.55) 0%, rgba(18,16,42,0.85) 70%, rgba(18,16,42,0.85) 100%),
    url('../assets/hero.jpg') center/cover no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(124,92,252,0.25), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-eyebrow { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.hero-h1 {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08; color: var(--offwhite); margin: 0 0 20px;
}
.hero-h1 .accent { color: var(--violet-soft); }
.hero-desc { font-size: 1.08rem; color: var(--text-mid); max-width: 560px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 56px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat-num { font-family: var(--ff-display); font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.74rem; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== TRUST MARQUEE ===== */
.marquee { background: var(--surface); padding: 22px 0; overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.marquee-track { display: flex; gap: 64px; white-space: nowrap; animation: marquee-scroll 24s linear infinite; width: max-content; }
.marquee-track span { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-mid); }
.marquee-track span strong { color: var(--gold); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SECTION shell ===== */
.sect { padding: 100px 0; }
.sect--surface { background: var(--surface); }
.sect--violet { background: linear-gradient(135deg, #8178c6 0%, #1B1640 100%); }

/* ===== GET-DETAILS FORM SECTION (below the fold) ===== */
.get-details { padding: 90px 0; background: var(--surface); }
.gd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .gd-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ===== LEAD FORM (dark glow skin) ===== */
.glow-form {
  background: var(--midnight-lt); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 40px 36px; box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.form-heading { font-family: var(--ff-display); color: var(--text-mid); font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; }
.form-sub { color: var(--text-mid); font-size: 0.88rem; margin-bottom: 26px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--violet-soft); margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--hairline);
  background: rgba(245,243,247,0.04); color: var(--violet); font-size: 0.95rem; border-radius: 8px;
  font-family: var(--ff-body);
}
.form-group input::placeholder { color: rgba(245,243,247,0.3); }
.form-group input:focus { outline: none; border-color: var(--gold); background: rgba(245,243,247,0.07); }
.form-group input.has-error { border-color: #F2675E; }
.field-error { display: block; font-size: 0.72rem; color: #F2938B; min-height: 16px; margin-top: 4px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-submit {
  width: 100%; background: linear-gradient(120deg, var(--gold) 0%, var(--gold-soft) 100%); color: var(--midnight); font-weight: 700;
  padding: 15px; border-radius: 30px; font-size: 0.95rem; margin-top: 6px;
  transition: box-shadow 0.25s ease;
}
.form-submit:hover { box-shadow: 0 0 24px 2px rgba(232,182,68,0.4); }
.form-note { font-size: 0.72rem; color: var(--text-mid); margin-top: 16px; line-height: 1.5; }
.rera-badge { margin-top: 14px; font-size: 0.72rem; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; }

/* ===== RESIDENCES — horizontal scroll-snap rail ===== */
.res-rail { display: flex; gap: 24px; overflow-x: auto; margin-top: 44px; padding-bottom: 16px; scroll-snap-type: x mandatory; }
.res-card {
  flex: 0 0 320px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 32px;
}
.res-card.is-popular { border-color: var(--gold); background: var(--surface-lt); }
.res-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-soft); margin-bottom: 14px; }
.res-type { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 700; color: var(--violet-soft); margin-bottom: 6px; }
.res-size { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 16px; }
.res-amount { font-family: var(--ff-display); font-size: 1.35rem; color: var(--gold); margin-bottom: 18px; }
.res-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.res-card li { font-size: 0.86rem; color: var(--text-mid); padding: 7px 0; border-top: 1px solid var(--hairline); }
.res-card li:first-child { border-top: none; }
.res-card-cta { display: block; text-align: center; border: 1px solid var(--gold); color: var(--gold); font-weight: 700; padding: 12px; border-radius: 30px; font-size: 0.85rem; }
.res-card-cta:hover { background: var(--gold); color: var(--midnight); }

/* ===== AMENITIES — vertical stepper ===== */
.stepper { position: relative; margin-top: 48px; max-width: 720px; }
.step-item { display: flex; gap: 24px; position: relative; padding-bottom: 38px; }
.step-item:last-child { padding-bottom: 0; }
.step-item::before {
  content: ''; position: absolute; left: 27px; top: 56px; bottom: -4px; width: 2px;
  background: var(--hairline);
}
.step-item:last-child::before { display: none; }
.step-icon-wrap {
  width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1;
}
.step-icon-wrap img { width: 28px; height: 28px; object-fit: contain; }
.step-title { font-weight: 700; font-size: 1.02rem; color: var(--violet-soft); margin-bottom: 4px; }
.step-desc { font-size: 0.88rem; color: var(--text-mid); }

/* ===== LOCATION ===== */
.loc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; margin-top: 40px; align-items: stretch; }
.loc-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--hairline); min-height: 360px; }
.loc-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.95); }
.loc-chips { display: flex; flex-direction: column; gap: 14px; }
.chip-v { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px 18px; display: flex; align-items: baseline; gap: 12px; }
.chip-v strong { color: var(--gold); font-family: var(--ff-display); font-size: 1.1rem; }
.chip-v span { color: var(--text-mid); font-size: 0.88rem; }
@media (max-width: 860px) { .loc-grid { grid-template-columns: 1fr; } }

/* ===== GALLERY — staggered grid ===== */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; gap: 14px; margin-top: 40px; }
.gal-grid .g1 { grid-column: span 2; grid-row: span 2; }
.gal-grid .g2 { grid-column: span 2; grid-row: span 1; }
.gal-grid .g3 { grid-column: span 1; grid-row: span 1; }
.gal-grid .g4 { grid-column: span 1; grid-row: span 1; }
.gal-grid .g5 { grid-column: span 2; grid-row: span 1; }
.gal-grid .g6 { grid-column: span 2; grid-row: span 1; }
.gal-tile { background-size: cover; background-position: center; border-radius: 12px; }
@media (max-width: 760px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gal-grid .g1, .gal-grid .g2, .gal-grid .g5, .gal-grid .g6 { grid-column: span 2; grid-row: span 1; }
}

/* ===== ABOUT DEVELOPER ===== */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; margin-top: 40px; }
.about-photo { border-radius: 16px; height: 100%; min-height: 320px; background-size: cover; background-position: center; }
.about-marks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.am-num { font-family: var(--ff-display); font-size: 1.5rem; color: var(--gold); }
.am-label { font-size: 0.8rem; color: var(--text-mid); margin-top: 4px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ===== FAQ — masonry "+" tiles ===== */
.faq-masonry { columns: 2 280px; column-gap: 24px; margin-top: 40px; }
.faq-tile {
  break-inside: avoid; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 22px 24px;
}
.faq-tile summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 0.96rem; color: var(--gold); }
.faq-tile summary::-webkit-details-marker { display: none; }
.faq-tile summary::after {
  content: '+'; margin-left: auto; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--midnight); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.faq-tile[open] summary::after { content: '\2212'; background: var(--gold); color: var(--midnight); }
.faq-tile .faq-a-body { font-size: 0.88rem; color: var(--text-mid); margin-top: 14px; }
@media (max-width: 700px) { .faq-masonry { columns: 1 100%; } }

/* ===== FINAL CTA ===== */
.cta-band { background: linear-gradient(135deg, #2A2360 0%, var(--midnight) 100%); padding: 90px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 80% 20%, rgba(232,182,68,0.18), transparent 55%); }
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--ff-display); color: var(--offwhite); font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 16px; font-weight: 700; }
.cta-band h2 .accent { color: var(--gold); }
.cta-band p { color: var(--gold-soft); max-width: 560px; margin: 0 auto 32px; }
.cta-band-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-phone { margin-top: 28px; color: var(--offwhite); font-size: 0.92rem; }
.cta-phone a { font-weight: 700; color: var(--midnight-lt); text-decoration: underline; }

/* ===== FOOTER ===== */
footer { background: #eae6ff; color: var(--text-mid); padding: 64px 0 100px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand-name { font-family: var(--ff-display); color: var(--text-mid); font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.footer-brand-tag { font-size: 0.74rem; color: var(--gold); margin-bottom: 14px; }
.footer-desc { font-size: 0.84rem; line-height: 1.6; max-width: 320px; }
.footer-col-title { font-weight: 700; color: var(--text-mid); font-size: 0.86rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; font-size: 0.86rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--hairline); padding: 26px 0; font-size: 0.74rem; }
.footer-disclaimer { margin-top: 10px; line-height: 1.6; color: var(--text-mid); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ===== Floating CTAs ===== */
.floating-cta { position: fixed; right: 22px; bottom: 92px; z-index: 600; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.float-btn--whatsapp { background: #25D366; color: #fff; }
.float-btn--call { background: linear-gradient(120deg, var(--gold), var(--gold-soft)); color: var(--midnight); }

/* ===== Sticky bottom mobile CTA bar ===== */
.mobile-cta-bar { display: none; }
@media (max-width: 760px) {
  .mobile-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 590;
    background: var(--midnight-lt); border-top: 1px solid var(--hairline);
  }
  .mobile-cta-bar a, .mobile-cta-bar button {
    flex: 1; text-align: center; padding: 16px 8px; font-weight: 700; font-size: 0.84rem;
  }
  .mobile-cta-bar a { color: var(--offwhite); border-right: 1px solid var(--hairline); }
  .mobile-cta-bar button { background: linear-gradient(120deg, var(--gold), var(--gold-soft)); color: var(--midnight); }
  .floating-cta { bottom: 78px; }
}

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px);
  background: var(--surface); color: var(--violet); padding: 14px 26px; border-radius: 30px;
  border: 1px solid var(--hairline);
  font-size: 0.88rem; opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease; z-index: 999;
  max-width: 90%; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast--error { border-color: #F2675E; color: #F2938B; }

/* ===== Popup form ===== */
#popup-form { position: fixed; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center; }
#popup-form.hidden { display: none; }
#popup-form__overlay { position: absolute; inset: 0; background: rgba(13,12,31,0.8); }
.popup-inner {
  position: relative; background: var(--midnight-lt); width: 92%; max-width: 420px;
  padding: 44px 36px; border-radius: 16px; z-index: 1; border: 1px solid var(--hairline);
}
#close-popup { position: absolute; top: 16px; right: 18px; font-size: 1.6rem; color: var(--text-mid); background: none; border: none; cursor: pointer; }
.popup-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.popup-heading { font-family: var(--ff-display); font-size: 1.4rem; color: var(--offwhite); margin: 8px 0 6px; }
.popup-sub { font-size: 0.86rem; color: var(--text-mid); margin-bottom: 22px; }
.popup-submit { width: 100%; background: linear-gradient(120deg, var(--gold), var(--gold-soft)); color: var(--midnight); font-weight: 700; padding: 15px; border-radius: 30px; margin-top: 6px; }
.popup-rera { font-size: 0.72rem; color: var(--text-mid); margin-top: 14px; text-align: center; }

/* ===== generic helpers ===== */
.intro-center { text-align: center; max-width: 680px; margin: 0 auto 0; }
