/* =========================================================
   MD Properties — design system
   Palette: forest green + warm stone/ivory + brass accent
   Type: Fraunces (headings, warmth) + DM Sans (UI, clarity)
   ========================================================= */

:root {
  /* Brand palette — from the MD Properties logo (green + blue) */
  --green-900: #0c3553;   /* deep navy-blue — dark sections & headings */
  --green-800: #123f5f;
  --green-700: #5c9420;   /* brand green (text/accents on light) */
  --green-600: #6fb02b;   /* brand green (buttons) */
  --green-500: #8cc63f;   /* brand green (bright, on dark) */
  --blue:      #13a3dc;   /* brand blue (bright) */
  --blue-600:  #0a87bf;
  --blue-700:  #0a6aa1;   /* brand blue (text on light) */
  --brass:     #13a3dc;   /* legacy alias → brand blue */
  --brass-700: #0a6aa1;

  --ivory:     #faf7f0;
  --stone-50:  #f4efe5;
  --stone-100: #ece4d6;
  --stone-200: #ddd2bf;

  --ink:       #23211c;
  --muted:     #6f6a5d;
  --line:      rgba(35,33,28,.12);

  --white: #fff;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(31,58,46,.06);
  --shadow-md: 0 14px 40px rgba(31,58,46,.12);
  --shadow-lg: 0 24px 60px rgba(31,58,46,.18);

  --maxw: 1180px;
  --ease: cubic-bezier(.4,0,.2,1);

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.12; color: var(--green-900); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.5px; }
h3 { font-size: 1.15rem; }

.eyebrow {
  display: inline-block;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green-700); font-weight: 600; margin-bottom: .65rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--green-700); color: var(--ivory); }
.btn-primary:hover { background: var(--green-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-pill { background: var(--green-700); color: var(--ivory); padding: 10px 20px; font-size: .88rem; }
.btn-pill:hover { background: var(--green-900); }
.btn-ghost-light { background: transparent; color: var(--ivory); border-color: rgba(250,247,240,.5); }
.btn-ghost-light:hover { background: rgba(250,247,240,.12); border-color: var(--ivory); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-search {
  background: var(--blue); color: #fff; font-weight: 600; border-radius: 12px;
  padding: 0 22px; align-self: stretch;
}
.btn-search:hover { background: var(--blue-600); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-weight: 500; font-size: .95rem; }
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding: 10px 0;
}
.site-header.scrolled { background: rgba(250,247,240,.92); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-on-light { display: none; }
/* over the hero (transparent header) show the light-tagline version;
   once scrolled onto the ivory bar, show the full-colour version */
.scrolled .logo-on-dark { display: none; }
.scrolled .logo-on-light { display: block; }
.footer .logo-img { height: 54px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ivory); font-size: .95rem; font-weight: 500; transition: opacity .2s; }
.nav a:hover { opacity: .7; }
.scrolled .nav a { color: var(--ink); }
.scrolled .nav .nav-cta { color: var(--ivory); }
.nav .nav-cta { color: var(--ivory); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ivory); transition: .3s; }
.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--ivory); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/img/vinayak/elevation.jpg") center/cover no-repeat;
  transform: scale(1.05); animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(12,53,83,.9) 0%, rgba(12,53,83,.62) 45%, rgba(12,53,83,.28) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 24px 60px; max-width: 760px; }
.hero .eyebrow { color: var(--green-500); }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--ivory); letter-spacing: -1px; }
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.18rem); color: rgba(250,247,240,.88); max-width: 540px; margin: 1.3rem 0 2rem; }

/* Search bar */
.search {
  display: flex; align-items: stretch; gap: 6px; background: var(--ivory);
  padding: 8px; border-radius: 18px; box-shadow: var(--shadow-lg); max-width: 720px; flex-wrap: wrap;
}
.search-field { flex: 1 1 130px; padding: 6px 14px; display: flex; flex-direction: column; justify-content: center; }
.search-field label { font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.search-field select { border: 0; background: transparent; font-family: var(--font-body); font-size: .98rem; font-weight: 500; color: var(--ink); cursor: pointer; outline: none; padding: 2px 0; }
.search-divider { width: 1px; background: var(--line); align-self: stretch; margin: 6px 0; }

.hero-stats { list-style: none; display: flex; gap: 38px; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 600; color: var(--ivory); }
.hero-stats span { font-size: .82rem; color: rgba(250,247,240,.75); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-narrow { padding: 56px 0; }
.section-stone { background: var(--stone-50); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 42px; flex-wrap: wrap; }

/* ---------- Property cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media { position: relative; height: 220px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(250,247,240,.92);
  color: var(--green-900); font-size: .72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.card-loc { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.card-price { color: var(--brass-700); font-weight: 600; font-size: 1.05rem; }
.card-link { color: var(--green-700); font-weight: 500; font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Signature project ---------- */
.lead { max-width: 720px; color: var(--muted); font-size: 1.08rem; margin: .8rem 0 0; }
.pf-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0 26px;
}
.pf-gallery img { width: 100%; height: 210px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.pf-gallery img:hover { transform: translateY(-4px); }
.pf-hero-img { grid-column: 1 / -1; height: 380px !important; }
.pf-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.pf-stats li { background: var(--white); border-radius: 12px; padding: 14px 20px; box-shadow: var(--shadow-sm); flex: 1 1 140px; }
.pf-stats strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--green-900); }
.pf-stats span { font-size: .82rem; color: var(--muted); }
.pf-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.pf-rera { font-size: .78rem; color: var(--muted); margin-top: 16px; }

@media (max-width: 760px) {
  .pf-gallery { grid-template-columns: repeat(2, 1fr); }
  .pf-hero-img { height: 240px !important; }
  .pf-gallery img { height: 150px; }
}

/* ---------- Neighbourhoods ---------- */
.hoods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 36px; }
.hood {
  position: relative; height: 240px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; color: var(--ivory); box-shadow: var(--shadow-sm);
}
.hood img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hood::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,53,83,.88), rgba(12,53,83,.05)); }
.hood:hover img { transform: scale(1.08); }
.hood-cap { position: relative; z-index: 2; padding: 20px; }
.hood-cap strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 500; display: block; }
.hood-cap span { font-size: .82rem; opacity: .85; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-intro p { color: var(--muted); margin: 1rem 0 1.8rem; font-size: 1.05rem; }
.why-list { list-style: none; display: grid; gap: 22px; }
.why-list li { display: flex; gap: 16px; }
.why-ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--stone-100);
  color: var(--green-700); display: grid; place-items: center; font-size: 1.2rem;
}
.why-list h3 { color: var(--green-900); margin-bottom: 2px; }
.why-list p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ---------- Partners ---------- */
.partners { background: var(--green-900); color: var(--ivory); }
.partners-label { text-align: center; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(250,247,240,.6); margin-bottom: 22px; }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partner { display: inline-flex; align-items: center; justify-content: center; min-width: 130px; height: 62px; padding: 8px 22px; background: var(--ivory); border-radius: 12px; font-size: .92rem; font-weight: 500; color: var(--green-900); white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.partner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.partner .dev-logo { height: 38px; width: auto; max-width: 140px; object-fit: contain; display: none; }
.partner.has-logo { padding: 8px 18px; }
.partner.has-logo .dev-logo { display: block; }
.partner.has-logo .dev-name { display: none; }

/* ---------- Testimonials ---------- */
.video-quotes { display: flex; justify-content: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.vq-card { width: min(210px, 42vw); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); background: #0c3553; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.vq-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vq-card video { display: block; width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 36px; }
.quote { background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.quote-stars { color: var(--brass); letter-spacing: 2px; margin-bottom: 12px; }
.quote p { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.5; color: var(--green-900); margin-bottom: 18px; }
.quote-by { display: flex; align-items: center; gap: 12px; }
.quote-av { width: 42px; height: 42px; border-radius: 50%; background: var(--green-700); color: var(--ivory); display: grid; place-items: center; font-weight: 600; }
.quote-by strong { display: block; font-size: .92rem; }
.quote-by span { font-size: .8rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative; padding: 80px 0; color: var(--ivory); text-align: center;
  background: linear-gradient(rgba(12,53,83,.92), rgba(12,53,83,.92)),
              url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=2000&q=80") center/cover;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cta h2 { color: var(--ivory); font-size: clamp(2rem, 4vw, 3rem); }
.cta p { color: rgba(250,247,240,.85); font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Video showreel ---------- */
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #05131f; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(250,247,240,.8); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.footer h4 { color: var(--ivory); font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { display: block; color: rgba(250,247,240,.78); font-size: .92rem; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: var(--brass); }
.footer-tag { margin-top: 14px; font-size: .9rem; line-height: 1.6; }
.footer-addr { font-size: .85rem; margin-top: 10px; line-height: 1.5; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(250,247,240,.15); margin-top: 44px; padding-top: 22px; font-size: .82rem; color: rgba(250,247,240,.55); flex-wrap: wrap; gap: 10px; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 56px; height: 56px;
  border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: transform .25s var(--ease);
}
.fab:hover { transform: scale(1.08); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px;
    background: var(--green-900); padding: 40px; transform: translateX(100%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: none; }
  .nav a { color: var(--ivory); font-size: 1.15rem; }
  .scrolled .nav a { color: var(--ivory); }
  .nav-toggle { z-index: 110; }
  .nav-toggle.open span { background: var(--ivory); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 64px 0; }
  .hero-content { padding-top: 110px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}
