/* ===================================================================
   Royal Roots — main website styles
   Palette: forest #1B3A2D · terracotta #b76a35 · sand #e3cda3
            cream #FAF7F0 · ivory #F5F0E6 · charcoal #2A2A28
   Type: Playfair Display (display) · Inter (body)
   =================================================================== */

:root {
  --forest: #1B3A2D;
  --forest-950: #11261d;
  --forest-700: #324a2e;
  --terracotta: #b76a35;
  --terracotta-600: #9a542a;
  --terracotta-50: #fbf3ec;
  --sand: #e3cda3;
  --sand-300: #e3cda3;
  --cream: #FAF7F0;
  --ivory: #F5F0E6;
  --charcoal: #2A2A28;
  --max: 1200px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* beat component display rules (e.g. modal flex) */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; line-height: 1.12; color: var(--forest); margin: 0 0 .4em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--ivory { background: var(--ivory); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; color: var(--terracotta-600); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: rgba(183,106,53,.5); }
.eyebrow--light { color: var(--sand-300); }
.eyebrow--light::before { background: rgba(227,205,163,.6); }
.gold-rule { width: 64px; height: 1px; background: rgba(183,106,53,.6); margin: 18px 0; }
.text-accent { color: var(--terracotta); font-style: normal; }
.lead { font-size: 1.05rem; color: rgba(42,42,40,.72); max-width: 60ch; }
.section--forest .lead { color: rgba(250,247,240,.8); }

h2.display { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h1.display { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 300; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 14px 28px; font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: all .3s ease; font-family: inherit;
}
.btn-primary { background: var(--terracotta); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta-600); }
.btn-outline { background: transparent; border: 1px solid rgba(27,58,45,.4); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-outline-light { background: transparent; border: 1px solid rgba(250,247,240,.5); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--forest); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Header / nav ---- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  transition: background .4s ease, box-shadow .4s ease;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent);
}
.site-header.scrolled { background: rgba(250,247,240,.96); box-shadow: 0 8px 30px -12px rgba(27,58,45,.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { position: relative; display: flex; align-items: center; height: 100%; }
.brand-logo { object-fit: contain; transition: opacity .3s ease; }
.brand-logo--light { height: 132px; width: auto; filter: drop-shadow(0 1px 4px rgba(0,0,0,.3)); }
.brand-logo--dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 70px; width: auto; opacity: 0; }
.scrolled .brand-logo--light { opacity: 0; }
.scrolled .brand-logo--dark { opacity: 1; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: rgba(250,247,240,.9); transition: color .2s; }
.main-nav a:hover { color: #fff; }
.scrolled .main-nav a { color: rgba(27,58,45,.8); }
.scrolled .main-nav a:hover { color: var(--terracotta-600); }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); display: block; }
.scrolled .nav-toggle span { background: var(--forest); }
.mobile-menu { display: none; flex-direction: column; gap: 14px; padding: 20px 24px 28px; background: var(--cream); border-top: 1px solid rgba(27,58,45,.1); }
.mobile-menu a { text-decoration: none; color: var(--forest); text-transform: uppercase; font-size: 13px; letter-spacing: .1em; }

/* ---- Hero ---- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(17,38,29,.55), rgba(17,38,29,.3) 45%, rgba(17,38,29,.85)); }
.hero-inner { position: relative; z-index: 2; color: var(--cream); padding: 130px 0 70px; width: 100%; }
.hero h1 { color: var(--cream); max-width: 16ch; }
.hero .lead { color: rgba(250,247,240,.88); }
.hero-pill {
  display: inline-flex; align-items: center; gap: 14px; margin: 24px 0 8px;
  border: 1px solid rgba(227,205,163,.4); background: rgba(17,38,29,.45);
  border-radius: 999px; padding: 12px 20px; backdrop-filter: blur(6px);
}
.hero-pill span:first-child { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--sand-300); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; }
.hero-stats .num { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--sand-300); }
.hero-stats .lbl { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,247,240,.75); }
.hero-stats .divider { width: 1px; background: rgba(250,247,240,.2); }

/* ---- USP grid ---- */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(27,58,45,.1); border: 1px solid rgba(27,58,45,.1); margin-top: 48px; }
.usp { background: var(--cream); padding: 36px 30px; }
.usp .ico { color: var(--terracotta); width: 36px; height: 36px; }
.usp h3 { font-size: 1.4rem; margin-top: 18px; }

/* ---- Zones ---- */
.zone { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.zone:nth-child(even) .zone-media { order: 2; }
.zone-media { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); box-shadow: 0 20px 60px -20px rgba(27,58,45,.28); }
.zone-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s ease; }
.zone-media:hover img { transform: scale(1.05); }
.zone-code { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 3.6rem); color: var(--forest); }
.zone-sub { font-family: 'Playfair Display', serif; font-style: italic; color: var(--forest-700); font-size: 1.25rem; }

/* ---- Cards (amenities/gallery) ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 40px -16px rgba(27,58,45,.2); }
.card-media { aspect-ratio: 5/4; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s ease; }
.card:hover .card-media img { transform: scale(1.1); }
.card-body { padding: 26px; }
.card-body h3 { font-size: 1.35rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); width: 100%; }
.gallery-grid a:nth-child(1), .gallery-grid a:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.gallery-grid a:nth-child(1) img, .gallery-grid a:nth-child(6) img { aspect-ratio: auto; height: 100%; }

/* ---- Appreciation ---- */
.appr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.appr { border: 1px solid rgba(250,247,240,.12); border-radius: var(--radius); padding: 32px; background: rgba(250,247,240,.03); }
.appr .yr { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,247,240,.55); }
.appr .val { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--cream); }
.appr .cap { font-size: 13px; color: rgba(250,247,240,.6); }
.conn-list { list-style: none; padding: 0; margin: 28px 0 0; }
.conn-list li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(250,247,240,.1); }
.conn-list .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sand-300); flex: none; }

/* ---- Location ---- */
.loc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 40px; }
.loc-map { aspect-ratio: 5/4; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(27,58,45,.1); }
.loc-map iframe { width: 100%; height: 100%; border: 0; }
.loc-card { background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: 32px; }
.loc-card h4 { color: var(--sand-300); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-family: 'Inter', sans-serif; }
.loc-list { list-style: none; padding: 0; margin: 16px 0 0; }
.loc-list li { padding: 9px 0; border-bottom: 1px solid rgba(250,247,240,.12); font-size: 14px; }

/* ---- FAQ ---- */
.faq-list { max-width: 820px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid rgba(27,58,45,.14); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: 'Playfair Display', serif; font-size: 1.18rem; color: var(--forest); }
.faq-q::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--terracotta); }
.faq-item.open .faq-q::after { content: '\2013'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 0 22px; color: rgba(42,42,40,.75); margin: 0; }

/* ---- CTA band ---- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .hero-bg::after { background: linear-gradient(to right, rgba(17,38,29,.92), rgba(17,38,29,.6)); }
.cta-inner { position: relative; z-index: 2; color: var(--cream); padding: 90px 0; max-width: 640px; }
.cta-inner h2 { color: var(--cream); }

/* ---- RERA band ---- */
.rera-band { background: var(--ivory); border-top: 1px solid rgba(27,58,45,.1); padding: 50px 0; }
.rera-inner { display: flex; gap: 36px; align-items: center; }
.rera-qr img { width: 150px; height: 150px; background: #fff; padding: 8px; border-radius: var(--radius); }
.rera-number { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--forest); margin: 8px 0; }
.rera-text p:last-child { font-size: 13px; color: rgba(42,42,40,.6); max-width: 60ch; }

/* ---- Footer ---- */
.site-footer { background: var(--forest-950); color: rgba(250,247,240,.78); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer-brand img { height: 150px; width: auto; }
.footer-brand p { font-size: 14px; color: rgba(250,247,240,.6); max-width: 38ch; }
.footer-dev { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-300); }
.footer-col h4 { color: var(--sand-300); font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; margin: 14px 0 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-link { color: rgba(250,247,240,.82); text-decoration: none; font-size: 14px; }
.footer-col a:hover, .footer-link:hover { color: #fff; }
.footer-link { display: block; margin-bottom: 8px; }
.footer-areas { font-size: 13px; color: rgba(250,247,240,.5); margin-top: 12px; }
address { font-style: normal; font-size: 14px; color: rgba(250,247,240,.7); margin-top: 14px; }
.footer-cta { margin-top: 16px; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(250,247,240,.1); margin-top: 48px; padding-top: 26px; padding-bottom: 30px; font-size: 11px; color: rgba(250,247,240,.45); }

/* ---- WhatsApp FAB ---- */
.whatsapp-fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; padding: 12px 16px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 30px -8px rgba(0,0,0,.4); }
.whatsapp-fab span { font-size: 14px; font-weight: 500; }

/* ---- Modal ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17,38,29,.7); backdrop-filter: blur(4px); }
.modal { width: 100%; max-width: 760px; max-height: 92vh; overflow: auto; background: var(--cream); border-radius: var(--radius); display: grid; grid-template-columns: 5fr 7fr; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.modal-aside { background: var(--forest); color: var(--cream); padding: 40px; }
.modal-aside-title { color: var(--cream); font-size: 1.7rem; }
.modal-aside p { font-size: 14px; color: rgba(250,247,240,.7); }
.modal-aside-fine { font-size: 11px; color: rgba(250,247,240,.5); margin-top: 24px; }
.modal-main { padding: 32px; position: relative; }
.modal-close { position: absolute; right: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(27,58,45,.2); background: none; font-size: 18px; cursor: pointer; color: var(--forest); }
.modal-close:hover { background: var(--forest); color: var(--cream); }
.modal-title { font-size: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(42,42,40,.65); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; border: 1px solid rgba(27,58,45,.2); border-radius: var(--radius); font-family: inherit; font-size: 14px; background: #fff; color: var(--charcoal); }
.field input:focus, .field select:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 2px rgba(183,106,53,.2); }
.field input.invalid, .field select.invalid { border-color: var(--terracotta); box-shadow: 0 0 0 1px rgba(183,106,53,.3); }
.field-error { color: var(--terracotta-600); font-size: 12px; margin: 6px 0 0; }
.form-alert { border: 1px solid var(--terracotta); background: var(--terracotta-50); color: var(--terracotta-600); padding: 12px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 14px; }
.modal-fine { font-size: 12px; color: rgba(42,42,40,.5); margin-top: 14px; }
.modal-fine a { color: var(--terracotta-600); }

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

/* ---- Sub-page hero (smaller) ---- */
.subhero { position: relative; padding: 150px 0 70px; overflow: hidden; color: var(--cream); }
.subhero .hero-bg::after { background: linear-gradient(to bottom, rgba(17,38,29,.7), rgba(17,38,29,.85)); }
.subhero-inner { position: relative; z-index: 2; }
.subhero h1 { color: var(--cream); max-width: 20ch; }
.breadcrumbs { font-size: 12px; color: rgba(250,247,240,.7); margin-bottom: 16px; }
.breadcrumbs a { color: var(--sand-300); text-decoration: none; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.fact-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.fact-table th, .fact-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(27,58,45,.12); font-size: 14px; }
.fact-table th { background: var(--ivory); font-family: 'Inter', sans-serif; font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-logo--light { height: 96px; }
}
@media (max-width: 820px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: flex; }
  .zone, .zone:nth-child(even) .zone-media { grid-template-columns: 1fr; }
  .zone:nth-child(even) .zone-media { order: 0; }
  .loc-grid { grid-template-columns: 1fr; }
  .appr-grid { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; }
  .modal-aside { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .rera-inner { flex-direction: column; text-align: center; align-items: center; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .brand-logo--light { height: 80px; }
}
@media (max-width: 520px) {
  .usp-grid, .card-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
