/* ============================================================
   WINDSOR GRAND — Sector 126, Noida
   Royal navy and gold. Cinzel and EB Garamond. Centered
   symmetry, engraved rules, club-house luxury.
   ============================================================ */

:root {
  --navy: #0b1830;
  --navy-2: #101f3c;
  --navy-3: #16264a;
  --ivory: #f7f2e7;
  --paper: #fbf8f0;
  --ink: #1a2233;
  --gold: #c2a14e;
  --gold-2: #a88732;
  --gold-soft: rgba(194, 161, 78, 0.35);
  --muted: #6b7180;
  --muted-light: rgba(247, 242, 231, 0.66);
  --serif-display: 'Cinzel', serif;
  --serif-body: 'EB Garamond', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__crest { text-align: center; }
.preloader__mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px;
  border: 1px solid var(--gold); outline: 1px solid var(--gold-soft); outline-offset: 5px;
  font-family: var(--serif-display); font-size: 30px; letter-spacing: 3px;
  color: var(--gold);
}
.preloader__name {
  display: block; margin-top: 22px;
  font-family: var(--serif-display); font-size: 14px; letter-spacing: 7px;
  color: var(--muted-light);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--gold); z-index: 150;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 24, 48, 0.55);
  border-bottom: 1px solid rgba(194, 161, 78, 0.25);
  backdrop-filter: blur(10px);
  transition: background 0.35s ease;
}
.nav.scrolled { background: rgba(11, 24, 48, 0.94); }
.nav__inner {
  max-width: 1180px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 30px;
}
.nav__brand {
  font-family: var(--serif-display); font-size: 16px; letter-spacing: 4px;
  color: var(--ivory); text-decoration: none; white-space: nowrap;
  display: flex; align-items: center; gap: 12px;
}
.nav__mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--gold);
  font-size: 13px; letter-spacing: 1px; color: var(--gold);
}
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__link {
  font-family: var(--serif-display); font-size: 12.5px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted-light); text-decoration: none;
  transition: color 0.25s ease;
}
.nav__link:hover { color: var(--gold); }
.nav__cta {
  font-family: var(--serif-display); font-size: 12.5px; letter-spacing: 2.5px;
  text-transform: uppercase; text-decoration: none;
  color: var(--navy); background: var(--gold);
  padding: 11px 20px; white-space: nowrap;
  transition: background 0.25s ease;
}
.nav__cta:hover { background: #d4b565; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--gold);
  margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 50% -140px, rgba(194, 161, 78, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 78%, var(--navy) 100%);
  color: var(--ivory);
  padding: 150px 0 96px;
  text-align: center;
}
.hero__crest { display: flex; align-items: center; justify-content: center; gap: 20px; }
.crest__mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px;
  border: 1px solid var(--gold); outline: 1px solid var(--gold-soft); outline-offset: 4px;
  font-family: var(--serif-display); font-size: 21px; letter-spacing: 2px; color: var(--gold);
}
.crest__rule { width: 130px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.crest__rule:last-child { background: linear-gradient(270deg, transparent, var(--gold-soft)); }

.hero__meta {
  margin-top: 26px;
  font-family: var(--serif-display); font-size: 13px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold);
}
.hero__title {
  margin-top: 14px;
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(44px, 7.2vw, 92px);
  letter-spacing: 6px; text-transform: uppercase; line-height: 1.08;
}
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .char {
  display: inline-block; opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero__title .char.in { opacity: 1; transform: translateY(0); }
.hero__sub {
  max-width: 720px; margin: 20px auto 0;
  font-size: 21px; line-height: 1.6; color: var(--muted-light);
}

.hero__grid {
  margin-top: 58px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px;
  align-items: stretch; text-align: left;
}

/* Framed plates (photographs) */
.plate { margin: 0; }
.plate img {
  width: 100%; height: 100%; object-fit: cover;
  border: 1px solid var(--gold); outline: 1px solid var(--gold-soft); outline-offset: 6px;
}
.plate figcaption {
  margin-top: 16px;
  font-family: var(--serif-display); font-size: 11.5px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted-light); text-align: center;
}
.plate--hero { display: flex; flex-direction: column; }
.plate--hero img { flex: 1; min-height: 380px; }
.plate--wide { max-width: 880px; margin: 54px auto 0; }
.plate--wide figcaption { color: var(--muted); }
.section--panel .plate--wide figcaption { color: var(--muted-light); }

/* ---------- Fade / reveal ---------- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.show { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Enquiry panel ---------- */
.panel--hero {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--gold); outline: 1px solid var(--gold-soft); outline-offset: 6px;
  padding: 34px 32px;
}
.panel__flag {
  font-family: var(--serif-display); font-size: 11.5px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-2);
}
.panel__head {
  font-family: var(--serif-display); font-weight: 600; font-size: 25px;
  letter-spacing: 0.5px; margin: 8px 0 20px; color: var(--navy);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label {
  display: block; margin-bottom: 6px;
  font-family: var(--serif-display); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field select {
  width: 100%; padding: 12px 13px;
  font-family: var(--serif-body); font-size: 16.5px; color: var(--ink);
  background: #ffffff; border: 1px solid #d8d2c2; border-radius: 0;
  transition: border-color 0.25s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field--hidden { display: none; }

.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--serif-display); font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; text-decoration: none; text-align: center;
  color: var(--navy); background: var(--gold);
  border: 1px solid var(--gold); padding: 15px 30px;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: #d4b565; border-color: #d4b565; }
.btn--full { width: 100%; }
.btn--line { background: transparent; color: var(--gold-2); }
.btn--line:hover { background: var(--gold); color: var(--navy); }
.section--panel .btn--line { color: var(--gold); }
.section--panel .btn--line:hover { color: var(--navy); }

.contact__note { margin-top: 12px; font-size: 16px; color: var(--muted); min-height: 22px; }
.contact__note.ok { color: var(--gold-2); }
.contact__note.err { color: #a4441f; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--panel {
  background:
    radial-gradient(900px 380px at 50% -120px, rgba(194, 161, 78, 0.12), transparent 60%),
    var(--navy);
  color: var(--ivory);
}
.section__head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section__kicker {
  font-family: var(--serif-display); font-size: 12.5px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold-2);
}
.section--panel .section__kicker { color: var(--gold); }
.section__head h2 {
  margin-top: 10px;
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: 1px; color: var(--navy);
}
.section--panel .section__head h2 { color: var(--ivory); }
.section__orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.section__orn span { width: 90px; height: 1px; background: var(--gold-soft); }
.section__orn i { font-style: normal; font-size: 10px; color: var(--gold); }
.section__lede {
  max-width: 680px; margin: -26px auto 44px; text-align: center;
  font-size: 20.5px; color: var(--muted);
}
.section--panel .section__lede { color: var(--muted-light); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  text-align: center; margin-bottom: 56px;
}
.stat {
  border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft);
  padding: 26px 10px;
}
.stat__num {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px); color: var(--navy); letter-spacing: 1px;
}
.section--panel .stat__num { color: var(--gold); }
.stat p { margin-top: 8px; font-size: 16.5px; color: var(--muted); }
.section--panel .stat p { color: var(--muted-light); }

/* ---------- Ledger table ---------- */
.table { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--gold-soft); }
.table__row {
  display: grid; grid-template-columns: 240px 1fr; gap: 22px;
  padding: 15px 6px; border-bottom: 1px solid rgba(194, 161, 78, 0.22);
}
.table__row span {
  font-family: var(--serif-display); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); padding-top: 4px;
}
.section--panel .table__row span { color: var(--muted-light); }
.table__row b { font-weight: 500; font-size: 19px; }
.table__row b a { color: inherit; }
.table + .btn--line, .table + .btn { margin-top: 34px; }
.section .btn--line.reveal { display: table; margin-left: auto; margin-right: auto; margin-top: 34px; }

/* ---------- Grand Club grid ---------- */
.clubgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.club {
  border: 1px solid rgba(194, 161, 78, 0.35);
  padding: 30px 28px; text-align: center; background: var(--paper);
}
.club h3 {
  font-family: var(--serif-display); font-weight: 600; font-size: 19px;
  letter-spacing: 1px; color: var(--navy); margin-bottom: 10px;
}
.club p { font-size: 17.5px; color: var(--muted); }

/* ---------- Occupiers ---------- */
.occ { max-width: 880px; margin: 0 auto; text-align: center; }
.occ__names { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.occ__names span {
  font-family: var(--serif-display); font-size: 14px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ivory);
  border: 1px solid rgba(194, 161, 78, 0.45); padding: 11px 20px;
}
.occ__note { margin-top: 26px; font-size: 20px; color: var(--muted-light); }

/* ---------- Contact ---------- */
.contactrow {
  max-width: 880px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.contactrow__big { font-family: var(--serif-display); font-size: clamp(22px, 3vw, 30px); letter-spacing: 1px; }
.contactrow__big a { color: var(--ivory); text-decoration: none; }
.contactrow__big a:hover { color: var(--gold); }
.contactrow__sub { margin-top: 12px; font-size: 17px; color: var(--muted-light); }
.contactrow__cta { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Footer ---------- */
.footer {
  background: #081226; color: var(--muted-light);
  padding: 60px 0 48px; text-align: center;
}
.footer__crest { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 18px; }
.footer__crest span { width: 110px; height: 1px; background: rgba(194, 161, 78, 0.3); }
.footer__crest i {
  font-style: normal; font-family: var(--serif-display); font-size: 15px;
  letter-spacing: 2px; color: var(--gold);
  border: 1px solid rgba(194, 161, 78, 0.45); padding: 8px 10px;
}
.footer__brand { font-family: var(--serif-display); font-size: 17px; letter-spacing: 6px; color: var(--ivory); }
.footer__meta { margin-top: 10px; font-size: 16.5px; }
.footer__legal { margin-top: 18px; font-size: 14.5px; color: rgba(247, 242, 231, 0.45); }
.footer__legal a { color: rgba(247, 242, 231, 0.65); }

/* ---------- Chat ---------- */
.chat { position: fixed; right: 26px; bottom: 26px; z-index: 120; }
.chat__fab {
  cursor: pointer;
  font-family: var(--serif-display); font-size: 12.5px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--navy);
  background: var(--gold); border: 1px solid var(--gold);
  padding: 14px 22px;
  box-shadow: 0 10px 28px rgba(8, 18, 38, 0.35);
  transition: background 0.25s ease;
}
.chat__fab:hover { background: #d4b565; }
.chat__panel {
  position: absolute; right: 0; bottom: 66px;
  width: min(390px, calc(100vw - 52px));
  background: var(--navy); color: var(--ivory);
  border: 1px solid var(--gold); outline: 1px solid var(--gold-soft); outline-offset: 4px;
  padding: 24px;
  display: none; flex-direction: column; max-height: 560px;
}
.chat.open .chat__panel { display: flex; }
.chat__close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 26px; color: var(--muted-light);
}
.chat__flag {
  font-family: var(--serif-display); font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
}
.chat__panel h3 { font-family: var(--serif-display); font-size: 20px; margin: 6px 0 14px; }
.chat__msgs { flex: 1; overflow-y: auto; min-height: 120px; max-height: 330px; margin-bottom: 14px; }
.chat__msg { margin-bottom: 10px; font-size: 17px; line-height: 1.5; }
.chat__msg--user { text-align: right; color: var(--gold); }
.chat__msg--assistant { color: var(--ivory); }
.chat__msg--typing { color: var(--muted-light); font-style: italic; }
.chat__form { display: flex; gap: 10px; }
.chat__form input {
  flex: 1; padding: 11px 12px;
  font-family: var(--serif-body); font-size: 16px;
  background: var(--navy-3); color: var(--ivory);
  border: 1px solid rgba(194, 161, 78, 0.4);
}
.chat__form input:focus { outline: none; border-color: var(--gold); }
.chat__send {
  cursor: pointer; background: var(--gold); color: var(--navy);
  border: 1px solid var(--gold); font-size: 18px; padding: 0 16px;
}

/* ---------- To top ---------- */
.to-top {
  position: fixed; left: 26px; bottom: 26px; z-index: 110;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--gold);
  border: 1px solid var(--gold-soft); text-decoration: none; font-size: 18px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .plate--hero img { min-height: 300px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .clubgrid { grid-template-columns: repeat(2, 1fr); }
  .contactrow { grid-template-columns: 1fr; text-align: center; }
  .contactrow__cta { align-items: center; }
}

@media (max-width: 760px) {
  body { font-size: 18px; }
  .nav__links {
    position: fixed; top: 66px; left: 0; right: 0;
    background: rgba(11, 24, 48, 0.98);
    border-bottom: 1px solid rgba(194, 161, 78, 0.25);
    flex-direction: column; align-items: center; gap: 0;
    padding: 10px 0; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__link { padding: 13px 0; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .hero { padding: 122px 0 70px; }
  .crest__rule { width: 60px; }
  .hero__title { letter-spacing: 3px; }
  .section { padding: 68px 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .clubgrid { grid-template-columns: 1fr; }
  .table__row { grid-template-columns: 1fr; gap: 4px; }
  .stats { gap: 14px; }
  .chat { right: 16px; bottom: 16px; }
  .to-top { left: 16px; bottom: 16px; }
}
