/* ============================================================
   Sugandhini Royal Palaces — Luxury Real Estate Site
   Palette: deep aubergine, warm ivory, aged gold, palace rose
   ============================================================ */
:root {
  --ink: #1c1410;
  --ink-2: #3a2a22;
  --ivory: #f6efe4;
  --ivory-2: #ece1cf;
  --gold: #b98a3f;
  --gold-2: #d7ae66;
  --rose: #b6503c;
  --plum: #2a1418;
  --line: rgba(28, 20, 16, 0.14);
  --line-light: rgba(246, 239, 228, 0.16);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --regal: 'Cinzel', 'Cormorant Garamond', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ------------------ HEADER ------------------ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: linear-gradient(180deg, rgba(28,20,16,0.55), rgba(28,20,16,0));
  transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
  color: var(--ivory);
}
#site-header.scrolled {
  background: rgba(246, 239, 228, 0.94);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.crest {
  font-family: var(--regal);
  font-size: 26px;
  color: var(--gold-2);
  line-height: 1;
  letter-spacing: 2px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--regal); font-weight: 600; letter-spacing: 3px; font-size: 15px; }
.brand-sub  { font-family: var(--serif); font-style: italic; font-size: 13px; opacity: .8; margin-top: 3px; }
nav { display: flex; align-items: center; gap: 26px; font-size: 13.5px; letter-spacing: .5px; }
nav a { position: relative; padding: 6px 0; opacity: .9; }
nav a:hover { opacity: 1; color: var(--gold-2); }
nav a.cta-link {
  border: 1px solid currentColor;
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 11.5px;
}
#site-header.scrolled nav a.cta-link { color: var(--gold); border-color: var(--gold); }
#site-header.scrolled nav a.cta-link:hover { background: var(--gold); color: var(--ivory); }
@media (max-width: 820px) {
  nav a:not(.cta-link) { display: none; }
}

/* ------------------ HERO ------------------ */
#hero {
  position: relative;
  min-height: 100vh;
  color: var(--ivory);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.05) translate(0,0); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(28,20,16,0.15), rgba(28,20,16,0.75) 70%),
    linear-gradient(180deg, rgba(28,20,16,0.55) 0%, rgba(28,20,16,0.25) 40%, rgba(28,20,16,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 var(--pad);
  max-width: 900px;
  margin-top: 60px;
}
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 11.5px;
  color: var(--gold-2);
  margin: 0 0 26px;
}
#hero h1 {
  font-family: var(--regal);
  font-weight: 500;
  font-size: clamp(52px, 9vw, 128px);
  line-height: .96;
  margin: 0 0 22px;
  letter-spacing: 1px;
}
#hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
  letter-spacing: 0;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  max-width: 640px;
  margin: 0 0 34px;
  opacity: .92;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase;
  opacity: .8;
}

/* ------------------ BUTTONS ------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 2px;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; transition: all .25s ease;
  border: 1px solid transparent;
}
.btn.primary {
  background: var(--gold);
  color: var(--ivory);
  border-color: var(--gold);
}
.btn.primary:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(246,239,228,0.6);
}
.btn.ghost:hover { background: rgba(246,239,228,0.08); border-color: var(--ivory); }
.btn.block { width: 100%; padding: 16px; }

/* ------------------ SECTION GENERIC ------------------ */
.section {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 11.5px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 14px;
}
.section-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}
.section-eyebrow.light { color: var(--gold-2); }
.section-eyebrow.light::before { background: var(--gold-2); }
.section-title {
  font-family: var(--regal);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: .5px;
  margin: 0 0 32px;
  max-width: 900px;
}
.section-title.light { color: var(--ivory); }
.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  max-width: 780px;
  margin: 0 0 40px;
  color: var(--ink-2);
}
.lede.light { color: rgba(246,239,228,0.85); }
.lede.small { font-size: 18px; }

/* ------------------ OVERVIEW ------------------ */
.overview { text-align: left; }
.overview-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.pillar .num {
  display: block;
  font-family: var(--regal);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 4px;
  margin-bottom: 14px;
}
.pillar h3 {
  font-family: var(--regal); font-weight: 500;
  font-size: 22px; margin: 0 0 10px; letter-spacing: .5px;
}
.pillar p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ------------------ GALLERY ------------------ */
.gallery { max-width: var(--maxw); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #221816;
  aspect-ratio: 4 / 3;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute; left: 18px; bottom: 16px;
  color: var(--ivory);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  letter-spacing: .5px;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
  z-index: 2;
}
.gallery-grid figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ------------------ FLOOR PLANS ------------------ */
.floorplans .fp-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  margin-top: 20px;
}
.fp-card {
  margin: 0;
  background: var(--ivory-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.fp-card img {
  width: 100%; height: auto; display: block;
  background: #f0e8d8;
  padding: 24px;
}
.fp-card figcaption {
  padding: 24px 28px 28px;
  border-top: 1px solid var(--line);
  background: var(--ivory);
}
.fp-card h3 {
  font-family: var(--regal);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: .5px;
}
.fp-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ------------------ AMENITIES ------------------ */
.amenities {
  background:
    radial-gradient(circle at 15% 10%, rgba(185,138,63,0.09), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(182,80,60,0.08), transparent 42%);
  max-width: none;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.amenities .section-title,
.amenities .section-eyebrow,
.amenities .amen-grid { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.amen-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  margin-top: 40px;
  border: 1px solid var(--line);
  background: var(--line);
}
.amen {
  background: var(--ivory);
  padding: 34px 28px;
  transition: background .25s ease;
}
.amen:hover { background: #fdf7ec; }
.amen .icon {
  font-family: var(--regal);
  font-size: 26px;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}
.amen h4 {
  font-family: var(--regal); font-weight: 500;
  font-size: 19px; margin: 0 0 6px; letter-spacing: .5px;
}
.amen p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ------------------ LOCATION ------------------ */
.location {
  background: var(--plum);
  color: var(--ivory);
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.location-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 60px; align-items: center;
}
@media (max-width: 900px) { .location-inner { grid-template-columns: 1fr; } }
.location .lede, .location-list { color: rgba(246,239,228,0.85); }
.location-list {
  list-style: none; padding: 0; margin: 20px 0 0;
  font-family: var(--serif);
  font-size: 18px; line-height: 1.55;
}
.location-list li {
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line-light);
  position: relative;
}
.location-list li::before {
  content: "✦"; position: absolute; left: 0; top: 14px;
  color: var(--gold-2); font-size: 14px;
}
.location-list strong { color: var(--ivory); font-weight: 600; }
.location-map {
  position: relative;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #1a0d10;
}
.location-map iframe {
  width: 100%; height: 100%; border: 0;
  filter: sepia(20%) saturate(80%) contrast(95%);
}
.map-link {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(42,20,24,0.85);
  color: var(--gold-2);
  padding: 6px 12px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--line-light);
}

/* ------------------ DEVELOPER ------------------ */
.developer { text-align: left; }
.dev-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
  border-top: 1px solid var(--line);
  padding-top: 50px;
}
.dev-stats > div {
  display: flex; flex-direction: column; gap: 8px;
}
.stat-num {
  font-family: var(--regal);
  font-weight: 600;
  color: var(--gold);
  font-size: 34px;
  letter-spacing: 2px;
}
.stat-label {
  font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-2);
}

/* ------------------ RESERVE ------------------ */
.reserve {
  background: linear-gradient(160deg, #1a0e0f 0%, #2a1418 60%, #3a1c22 100%);
  color: var(--ivory);
  max-width: none;
  padding-left: 0; padding-right: 0;
  position: relative;
  overflow: hidden;
}
.reserve::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(215,174,102,0.14), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(182,80,60,0.14), transparent 45%);
  pointer-events: none;
}
.reserve-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
@media (max-width: 900px) { .reserve-inner { grid-template-columns: 1fr; } }
.direct {
  margin-top: 30px;
  border-top: 1px solid var(--line-light);
  padding-top: 20px;
}
.direct-row {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 15px;
  align-items: baseline;
}
.direct-row .k {
  font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-2); min-width: 60px;
}
.direct-row a { color: var(--ivory); border-bottom: 1px solid var(--gold-2); }

/* form */
.reserve-form {
  background: rgba(246,239,228,0.04);
  border: 1px solid var(--line-light);
  padding: 34px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.reserve-form .field { margin-bottom: 18px; }
.reserve-form .row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 520px) { .reserve-form .row { grid-template-columns: 1fr; } }
.reserve-form label {
  display: block;
  font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 8px;
}
.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--ivory);
  padding: 13px 14px;
  border-radius: 3px;
  font-size: 15px;
  transition: border-color .2s, background .2s;
}
.reserve-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-2) 50%), linear-gradient(-45deg, transparent 50%, var(--gold-2) 50%); background-position: right 18px top 20px, right 12px top 20px; background-size: 6px 6px; background-repeat: no-repeat; }
.reserve-form select option { background: #2a1418; color: var(--ivory); }
.reserve-form input:focus,
.reserve-form select:focus,
.reserve-form textarea:focus {
  outline: none;
  border-color: var(--gold-2);
  background: rgba(246,239,228,0.05);
}
.reserve-form input::placeholder,
.reserve-form textarea::placeholder { color: rgba(246,239,228,0.4); }
.reserve-form textarea { resize: vertical; min-height: 100px; }
.form-status { margin: 14px 0 0; min-height: 20px; font-size: 14px; }
.form-status.ok { color: var(--gold-2); }
.form-status.err { color: #ec9a8b; }

/* ------------------ FOOTER ------------------ */
#site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 60px var(--pad) 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 720px) { #site-footer { grid-template-columns: 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand .brand-name { font-family: var(--regal); letter-spacing: 3px; font-size: 15px; }
.foot-brand .brand-sub { font-family: var(--serif); font-style: italic; font-size: 13px; opacity: .75; margin-top: 3px; }
.foot-info { font-size: 14px; opacity: .75; display: grid; gap: 6px; }
.foot-info a { color: var(--gold-2); }
.foot-copy {
  grid-column: 1 / -1;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; opacity: .55;
}

/* ------------------ REVEAL ------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
