/* ==========================================================================
   Ekatva The Olive Thane West - static site
   Palette sampled from the logo: tile #343E2D, lettering #D6B46B
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-var.woff2') format('woff2');
}

:root {
  --container: 1380px;
  --gutter: 20px;

  --olive: #343E2D;          /* logo tile background - header bar must equal this */
  --olive-dark: #1F2419;
  --olive-mid: #4A5540;
  --gold: #D6B46B;           /* logo lettering */
  --gold-dark: #B9954B;
  --ink: #1F2419;
  --body: #4A4F45;
  --surface: #FFFFFF;
  --muted: #F4F3EE;
  --line: #E2E0D6;
  --wa: #25D366;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 36, 25, .10);
  --shadow-lg: 0 14px 40px rgba(31, 36, 25, .16);
  --header-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1.1em; }

a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--olive-dark);
  padding: 10px 18px; border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.anchor-alias { display: block; position: relative; top: calc(-1 * var(--header-h)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--block { display: flex; width: 100%; }
.btn--block + .btn--block { margin-top: 10px; }

.btn--gold { background: var(--gold); color: var(--olive-dark); }
.btn--gold:hover { background: #E3C583; color: var(--olive-dark); }

.btn--dark { background: var(--olive); color: #fff; }
.btn--dark:hover { background: var(--olive-mid); color: var(--gold); }

.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1FB855; color: #fff; }

.btn--call {
  background: var(--surface); color: var(--olive);
  border-color: var(--surface);
  padding: 10px 20px; font-size: .9rem;
}
.btn--call:hover { background: var(--gold); border-color: var(--gold); color: var(--olive-dark); }

/* ---------- Header (opaque, identical in both scroll states) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background-color: #343E2D;            /* == sampled logo tile colour */
  min-height: var(--header-h);
}
.site-header__inner {
  display: flex; align-items: center; gap: 18px;
  min-height: var(--header-h);
}
.site-header__logo { display: block; flex: 0 0 auto; line-height: 0; }
.site-header__logo img {
  height: 40px; width: auto;
  border-radius: 0;                      /* no radius on header logo */
}

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex; align-items: center; gap: 26px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav__list a {
  color: #EDEFE8; font-size: .93rem; font-weight: 500;
  position: relative; padding: 6px 0; display: inline-block;
}
.site-nav__list a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--gold); transition: right .25s ease;
}
.site-nav__list a:hover { color: var(--gold); }
.site-nav__list a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent; border: 0; color: #fff;
  font-size: 1.35rem; padding: 8px 10px; cursor: pointer; line-height: 1;
}

/* ---------- Mobile drawer ---------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(31, 36, 25, .55);
  opacity: 0; transition: opacity .25s ease;
}
.drawer-scrim.is-open { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(320px, 86vw);
  background: var(--olive);
  padding: calc(var(--header-h) + 22px) 24px 32px;   /* clears the fixed header bar */
  transform: translateX(100%); transition: transform .28s ease;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }

.drawer__close {
  position: absolute;
  top: calc(var(--header-h) + 12px);      /* strictly below the 66px header bar */
  right: 20px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .10); color: #fff;
  border: 1px solid rgba(214, 180, 107, .5);
  border-radius: 50%; font-size: 1.15rem; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.drawer__close:hover { background: var(--gold); color: var(--olive-dark); }

.drawer__nav ul { list-style: none; margin: 0 0 24px; padding: 0; }
.drawer__nav li + li { border-top: 1px solid rgba(255, 255, 255, .10); }
.drawer__nav a {
  display: block; padding: 14px 2px;
  color: #EDEFE8; font-weight: 500; font-size: 1rem;
}
.drawer__nav a:hover { color: var(--gold); }
.drawer__cta { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 86px) 0; }
.section--dark { background: var(--olive); color: #DDE1D6; }
.section--muted { background: var(--muted); }

.section__title { margin-bottom: 1.4em; }
.section__title--light { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--olive);
  background-image: url('../img/banner.webp');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: clamp(80px, 6vw, 90px) 0;
  height: 80vh; /* banner image height */

}
.hero__inner { display: flex; justify-content: flex-end; }

/* On desktop the photo is the section background and the card sits over it,
   so the standalone banner element is not needed. */
.hero__banner { display: none; }

.cta-card {
  background: rgba(255, 255, 255, .96);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px 28px;
  width: min(420px, 100%);
}
.cta-card--plain { background: var(--surface); box-shadow: var(--shadow); width: 100%; }
.cta-card__title {
  font-size: 1.45rem; font-weight: 700; color: var(--ink);
  margin: 0 0 .5em; line-height: 1.25;
}
.cta-card__text { font-size: .95rem; margin-bottom: 1.4em; }

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 60px); align-items: center;
}
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Highlights ---------- */
.highlights__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 46px;
}
.highlights__list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: .97rem; color: #DDE1D6;
}
.highlights__list i {
  color: var(--gold); font-size: 1rem; width: 22px;
  flex: 0 0 22px; margin-top: .35em; text-align: center;
}

/* ---------- Amenities ---------- */
.amenities__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.amenity {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 16px; text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.amenity:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.amenity__icon {
  width: 44px; height: 44px;
  display: block; margin: 0 auto 16px;
  color: var(--olive);
  transition: color .22s ease, transform .22s ease;
}
.amenity:hover .amenity__icon { color: var(--gold-dark); transform: scale(1.08); }
.amenity h3 { margin: 0; font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.gallery__grid li { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery__grid img {
  width: 100%; height: 260px; object-fit: cover;
  transition: transform .4s ease;
}
.gallery__grid li:hover img { transform: scale(1.06); }

/* ---------- Cost sheet / floor plan (gated) ---------- */
.price-plan__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.gated {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
/* Deterrent layer only - the real protection is that the blur is baked
   into the delivered image file and the sharp original is not deployed. */
.gated__img {
  width: 100%; height: 250px; object-fit: cover;
  border-radius: 10px; margin-bottom: 18px;
  pointer-events: none;
  user-select: none; -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* ---------- Location ---------- */
.location__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: start; }
.location__map {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); line-height: 0; background: var(--muted);
}
.location__map iframe { width: 100%; height: 430px; border: 0; display: block; }

.accordion { display: flex; flex-direction: column; gap: 14px; }
.accordion__item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.accordion__head { margin: 0; font-size: 1rem; }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: transparent; border: 0; cursor: pointer;
  padding: 18px 20px;
  font-family: inherit; font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  color: var(--ink); text-align: left;
}
.accordion__btn:hover { color: var(--gold-dark); }
.accordion__icon { color: var(--gold-dark); font-size: .9rem; }

/* Grid-collapse animation. The grid ITEM (.accordion__panel) carries no padding
   of its own - all padding lives on .accordion__inner - so a closed panel
   measures exactly 0px with no leaking sliver. */
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
  padding: 0;
  border: 0;
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__inner { min-height: 0; overflow: hidden; }
.accordion__item.is-open .accordion__inner { padding: 0 20px 18px; }
.accordion__inner ul { margin: 0; padding-left: 20px; }
.accordion__inner li { margin-bottom: 8px; font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.accordion--faq { max-width: 960px; margin-inline: auto; }
.accordion--faq .accordion__btn { font-size: 1rem; padding: 20px 22px; }
.accordion--faq .accordion__inner p { margin: 0; font-size: .94rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.contact__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.contact__details { list-style: none; margin: 0 0 22px; padding: 0; }
.contact__details li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: .95rem; }
.contact__details i { color: var(--gold-dark); width: 20px; flex: 0 0 20px; margin-top: .3em; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive); color: #B9BEB1; font-size: .84rem; }
.site-footer > .container { padding-top: 44px; padding-bottom: 44px; border-top: 1px solid rgba(255, 255, 255, .10); }
.site-footer__title { color: #fff; font-size: 1.35rem; font-weight: 700; margin-bottom: .8em; }
.site-footer__disclaimer { line-height: 1.9; margin-bottom: 2.4em; max-width: 1180px; }
.site-footer__disclaimer a { color: var(--gold); text-decoration: none; }
.site-footer__disclaimer a:hover { text-decoration: underline; }
.site-footer__rera {
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.site-footer__rera p { margin: 0; color: #EDEFE8; font-weight: 600; line-height: 1.7; }

/* Footer quick-links menu */
.site-footer__nav {
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.site-footer__nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 30px;
}
.site-footer__nav a {
  color: #DDE1D6; font-size: .9rem; font-weight: 500;
  position: relative; padding-bottom: 2px;
}
.site-footer__nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold); transition: right .25s ease;
}
.site-footer__nav a:hover { color: var(--gold); }
.site-footer__nav a:hover::after { right: 0; }

/* Bottom credit bar */
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .10); }
.site-footer__bar-inner { padding-top: 22px; padding-bottom: 22px; }
.site-footer__bar p {
  margin: 0; text-align: center; color: #C7CBBD; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px;
}
.site-footer__heart { color: #E0564F; font-size: .82rem; margin: 0 5px; }
.site-footer__brand { color: var(--gold); font-weight: 700; letter-spacing: .02em; }

/* QR sits on a white plate that supplies the quiet zone the source image
   lacks. object-fit: contain so the code is never cropped or distorted. */
.site-footer__qr-plate {
  background: #fff;
  padding: 12px;
  border-radius: 10px;              /* footer mark keeps 10px */
  line-height: 0;
  flex: 0 0 auto;
}
.site-footer__qr {
  width: 132px; height: 132px;
  object-fit: contain;
  border-radius: 0;
  image-rendering: -webkit-optimize-contrast;
}

/* ---------- Floating call / WhatsApp ---------- */
.float {
  position: fixed; bottom: 20px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform .2s ease;
}
.float:hover { transform: scale(1.08); color: #fff; }
.float--call { left: 20px; background: var(--olive); }
.float--wa { right: 20px; background: var(--wa); }

/* ---------- Scroll reveal (gated behind .js so a JS failure never blanks the page) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .amenity:hover, .float:hover { transform: none; }
  .gallery__grid li:hover img { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .site-nav__list { gap: 18px; }
  .site-header__call { padding: 9px 14px; font-size: .82rem; }
  .amenities__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-nav, .site-header__call { display: none; }
  .nav-toggle { display: block; }

  .about__grid, .location__grid, .contact__grid, .price-plan__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }

  /* Mobile hero: show the banner in full (1600x652, so its own aspect ratio
     crops nothing), then stack the enquiry card underneath instead of over it. */
  .hero { background-image: none; background-color: var(--olive); padding: 0; height: auto; min-height: 0; }
  .hero__banner {
    display: block;
    aspect-ratio: 1600 / 652;
    background-image: url('../img/banner.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .hero__inner { justify-content: center; padding-block: 26px 34px; }
  .cta-card { width: 100%; background: var(--surface); }
  .highlights__list { grid-template-columns: 1fr; gap: 14px; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location__map iframe { height: 340px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .amenities__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__grid img { height: 220px; }
  .cta-card { padding: 24px 20px; }
  .site-footer__rera { gap: 18px; }
  /* keep the last of the footer clear of the fixed call / WhatsApp buttons */
  .site-footer { padding-bottom: 92px; }
}

@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .float { width: 46px; height: 46px; font-size: 1.2rem; }
  .float--call { left: 12px; }
  .float--wa { right: 12px; }
  .site-header__logo img { height: 34px; }
}
