/* ==========================================================================
   Divyansh Orion Homes - Landing Page Styles
   Palette: warm charcoal + gold accents = premium/trust real-estate feel
   ========================================================================== */

:root {
  --color-ink: #1b1712;
  --color-charcoal: #2a241c;
  --color-gold: #b6862c;
  --color-gold-light: #d9ac52;
  --color-cream: #faf7f2;
  --color-cream-dark: #f1ecdf;
  --color-text: #3a3530;
  --color-text-muted: #756c60;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-soft: 0 10px 30px rgba(27, 23, 18, 0.08);
  --shadow-strong: 0 20px 50px rgba(27, 23, 18, 0.18);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-ink); margin: 0 0 .5em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: all .25s ease;
}
.btn-primary { background: var(--color-gold); color: #fff; }
.btn-primary:hover { background: var(--color-gold-light); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 19px; color: var(--color-ink); white-space: nowrap; flex-shrink: 0; }
.brand img { height: 58px; width: auto; flex-shrink: 0; }
.main-nav { display: flex; gap: 14px; flex-shrink: 1; }
.main-nav a { white-space: nowrap; font-size: 13.8px; }
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--color-text); }
.main-nav a:hover { color: var(--color-gold); }
.header-cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.phone-link { font-weight: 700; color: var(--color-ink); font-size: 14.5px; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background-size: cover; background-position: center; min-height: 92vh;
  display: flex; align-items: center; color: #fff;
}
.hero-inner { max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 700; color: var(--color-gold-light); margin-bottom: 14px; }
.hero h1 { font-size: 3rem; line-height: 1.15; color: #fff; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.9); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.trust-strip { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.trust-strip i { color: var(--color-gold-light); margin-right: 6px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--color-cream); }
.section-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12.5px; font-weight: 700; color: var(--color-gold); margin-bottom: 10px; }
.section-lead { max-width: 720px; color: var(--color-text-muted); font-size: 16px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-strong); }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; }
.check-list li { margin-bottom: 10px; font-weight: 500; }
.check-list i { color: var(--color-gold); margin-right: 10px; }

/* Connectivity */
.connectivity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.conn-card { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-soft); text-align: center; }
.conn-card i { font-size: 30px; color: var(--color-gold); margin-bottom: 10px; display: block; }
.conn-card h4 { font-size: 15.5px; margin-bottom: 4px; }
.conn-card p { margin: 0; color: var(--color-text-muted); font-size: 14px; }

/* Amenities */
.amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.amenity-card {
  background: #fff; border: 1px solid #eee2ce; border-radius: var(--radius);
  padding: 22px 16px; text-align: center; transition: box-shadow .25s, transform .25s;
}
.amenity-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.amenity-card i { font-size: 26px; color: var(--color-gold); display: block; margin-bottom: 10px; }
.amenity-card span { font-size: 14px; font-weight: 600; }
.section-cta-row { margin-top: 40px; text-align: center; }

/* Floor plans */
.floorplan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.floorplan-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.floorplan-card img { width: 100%; height: 220px; object-fit: cover; }
.floorplan-card p { margin: 0; padding: 14px; font-weight: 600; text-align: center; }

/* Floor plan placeholder: blur the image and show a Download overlay until real
   floor plans are uploaded (toggle via Settings -> "Floor plans are placeholder"). */
.floorplan-media { position: relative; overflow: hidden; }
.floorplan-media.is-placeholder img { filter: blur(6px); transform: scale(1.08); }
.floorplan-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 16, 10, .18);
}
.floorplan-overlay .btn {
  box-shadow: var(--shadow-strong);
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* Location */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.location-address { font-weight: 600; margin: 18px 0 24px; }
.location-address i { color: var(--color-gold); margin-right: 8px; }
.location-media img { border-radius: var(--radius); box-shadow: var(--shadow-strong); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: rgba(255,255,255,.85); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-col h3 { color: #fff; }
.footer-col h4 { color: var(--color-gold-light); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: inline-block; margin-bottom: 8px; color: rgba(255,255,255,.75); }
.footer-col a:hover { color: var(--color-gold-light); }
.rera { font-size: 13px; color: rgba(255,255,255,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; color: rgba(255,255,255,.5); }

.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: var(--shadow-strong); z-index: 400;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,16,10,.6); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff; border-radius: var(--radius); padding: 36px; max-width: 460px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-strong);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px);} to {opacity:1; transform:translateY(0);} }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 26px; cursor: pointer; color: #999; }
.modal-sub { color: var(--color-text-muted); font-size: 14px; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #e2ddd3; border-radius: 8px; font-size: 14.5px; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-gold); }
.form-consent { font-size: 12.5px; color: var(--color-text-muted); margin-bottom: 18px; }
.form-consent input { margin-right: 6px; }
.form-status { margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; }
.form-status.success { color: #1a7a3c; }
.form-status.error { color: #b3261e; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.pricing-card {
  background: var(--color-cream); border: 1px solid #eee2ce; border-radius: var(--radius);
  padding: 28px 24px; text-align: center; position: relative;
}
.pricing-badge {
  display: inline-block; background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: #fff; font-weight: 700; font-size: 13px; padding: 7px 22px; border-radius: 999px; margin-bottom: 18px;
}
.pricing-price { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--color-ink); margin-bottom: 14px; }
.pricing-row { margin: 0 0 10px; font-size: 14.5px; color: var(--color-text-muted); border-top: 1px solid #eee2ce; padding-top: 10px; }
.pricing-row span { font-weight: 600; color: var(--color-text); }
.pricing-card .btn { margin-top: 14px; width: 100%; }

/* ---------- Specifications ---------- */
.spec-tabs { display: flex; gap: 10px; margin: 32px 0 30px; }
.spec-tab-btn {
  padding: 12px 26px; border-radius: 999px; border: 2px solid #eee2ce; background: #fff;
  font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--color-text-muted); transition: all .2s;
}
.spec-tab-btn.active { background: var(--color-gold); border-color: var(--color-gold); color: #fff; }
.spec-panel { display: none; }
.spec-panel.active { display: block; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; background: var(--color-cream); padding: 30px; border-radius: var(--radius); }
.spec-card { background: #fff; border: 1px solid #eee2ce; border-radius: 10px; padding: 20px 22px; }
.spec-card h4 { font-size: 15.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.spec-card h4 i { color: var(--color-gold); font-size: 18px; }
.spec-card ul { list-style: none; margin: 0; padding: 0; }
.spec-card li { font-size: 13.5px; color: var(--color-text-muted); margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.spec-card li i { color: var(--color-gold); margin-top: 3px; flex-shrink: 0; font-size: 12px; }

/* ---------- Lightbox triggers (buttons wrapping images) ---------- */
.lightbox-trigger {
  display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: none;
  background: none; cursor: zoom-in; font: inherit; text-align: left;
}
.gallery-item.lightbox-trigger { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3; }
.gallery-item.lightbox-trigger img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item.lightbox-trigger:hover img { transform: scale(1.06); }
.floorplan-card .lightbox-trigger img { width: 100%; height: 220px; object-fit: cover; }
.location-media .lightbox-trigger { cursor: zoom-in; }

/* ---------- Lightbox overlay ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(10, 8, 5, .92); z-index: 1100;
  display: none; align-items: center; justify-content: center; padding: 60px 24px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 85vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-content img { max-width: 90vw; max-height: 78vh; width: auto; height: auto; border-radius: 8px; box-shadow: var(--shadow-strong); }
.lightbox-caption { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 14.5px; text-align: center; }
.lightbox-close {
  position: absolute; top: 20px; right: 26px; background: none; border: none; color: #fff;
  font-size: 34px; line-height: 1; cursor: pointer; opacity: .85;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12);
  border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-nav.hidden { display: none; }

@media (max-width: 720px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 16px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 14px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .about-grid, .location-grid { grid-template-columns: 1fr; }
  .connectivity-grid, .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .floorplan-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid, .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.3rem; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 20px 24px; box-shadow: var(--shadow-soft); display: none; max-height: calc(100vh - 78px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta .phone-link { display: none; }
  .connectivity-grid, .amenities-grid, .floorplan-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid, .spec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}
