/* =========================================================================
   One Acre Farm, Karjat — Landing page stylesheet
   Design language sampled from the project brochure:
   forest-green panels · gold leaf strands · green sprigs · serif italic
   display type · giant faint "ONE ACRE" watermarks · split photo/panel bands.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --color-green:      #1C3A28;
  --color-green-deep: #142a1d;
  --color-green-mid:  #2F5233;
  --color-terracotta: #B85C2A;
  --color-orange:     #E0531E;
  --color-gold:       #C9982E;
  --color-maroon:     #7C2622;
  --color-ivory:      #F5F1E6;
  --color-mint:       #E8F1D5;
  --color-mint-soft:  #EEF5DD;

  /* Semantic */
  --bg:            var(--color-green);
  --text-on-dark:  var(--color-ivory);
  --text-on-light: var(--color-green);
  --muted-on-dark: rgba(245, 241, 230, 0.78);
  --cta:           var(--color-orange);
  --cta-hover:     #c8470f;

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Poppins", system-ui, -apple-system, sans-serif;

  --fs-hero:  clamp(2.4rem, 4vw + 0.6rem, 4.25rem);
  --fs-h2:    clamp(1.8rem, 1.8vw + 0.8rem, 2.75rem);
  --fs-quote: clamp(1.9rem, 2.4vw + 0.7rem, 3.1rem);
  --fs-h3:    clamp(1.1rem, 0.5vw + 0.9rem, 1.3rem);
  --fs-body:  clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
  --fs-small: 0.875rem;

  --lh-tight: 1.08;
  --lh-snug:  1.3;
  --lh-body:  1.7;

  /* Spacing & layout */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --section-pad-y: clamp(3.5rem, 6vw, 5.5rem);
  --header-h: 72px;
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 14px;
  --radius-lg: 24px;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.5);
  --transition: 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-on-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture, video { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-sm);
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
p  { margin: 0 0 var(--space-sm); }
a  { color: inherit; text-decoration: none; }

/* Anchored sections land below the sticky header */
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.italic { font-style: italic; }
.display-italic { font-family: var(--font-display); font-style: italic; font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

ul.clean { list-style: none; padding: 0; margin: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-pad-y); position: relative; overflow: hidden; }
.section--dark      { background: var(--color-green); color: var(--text-on-dark); }
.section--dark-deep { background: var(--color-green-deep); color: var(--text-on-dark); }
.section--light     { background: var(--color-ivory); color: var(--text-on-light); }
.section--mint      { background: var(--color-mint-soft); color: var(--text-on-light); }
.section--light h2, .section--mint h2,
.section--light h3, .section--mint h3 { color: var(--text-on-light); }
.section--light .eyebrow, .section--mint .eyebrow { color: var(--color-terracotta); }

/* Giant faint watermark word, as seen in brochure panels */
.watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.watermark span {
  position: absolute;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: clamp(6rem, 15vw, 12rem);
  line-height: 0.82;
  text-transform: uppercase;
}
.watermark--dark span  { color: rgba(255, 255, 255, 0.03); }
.watermark--light span { color: rgba(28, 58, 40, 0.045); }
.watermark .wm-tl { top: -0.1em; left: -0.05em; }
.watermark .wm-br { bottom: -0.1em; right: -0.05em; text-align: right; }
.section > .container { position: relative; z-index: 1; }

/* ---------- Leaf motifs (authentic sprig extracted from the brochure logo) ----------
   Background-only decoration: small, faint, always behind content (z-index 0).
   Rendered via CSS mask so a single SVG can be tinted any brand colour.
   `--tf` carries each corner's base transform so the scroll-sway animation
   can compose with it. */
.motif {
  --tf: rotate(0deg);
  position: absolute;
  z-index: 0;
  width: clamp(70px, 8vw, 130px);
  aspect-ratio: 83 / 66;
  pointer-events: none;
  opacity: 0.45;
  transform: var(--tf);
  background-color: var(--color-gold); /* gold on dark sections by default */
  -webkit-mask: var(--leaf, url("../img/motifs/leaf-sprig-a.svg")) center / contain no-repeat;
          mask: var(--leaf, url("../img/motifs/leaf-sprig-a.svg")) center / contain no-repeat;
}
/* On light sections the sprig reads as green */
.section--light .motif, .section--mint .motif,
.split.section--mint .motif { background-color: var(--color-green-mid); }
.motif--tr { top: clamp(1rem, 2.5vw, 2rem); right: clamp(1rem, 2.5vw, 2rem); }
.motif--bl { bottom: clamp(1rem, 2.5vw, 2rem); left: clamp(1rem, 2.5vw, 2rem); --tf: rotate(180deg); }
.motif--tl { top: clamp(1rem, 2.5vw, 2rem); left: clamp(1rem, 2.5vw, 2rem); --tf: scaleX(-1); }
.motif--br { bottom: clamp(1rem, 2.5vw, 2rem); right: clamp(1rem, 2.5vw, 2rem); --tf: scale(-1, -1); }
@media (max-width: 640px) { .motif { width: 64px; opacity: 0.35; } }

/* Gentle sway while the page is being scrolled (class set by JS) */
.is-scrolling .motif { animation: motif-sway 1.6s ease-in-out infinite; }
@keyframes motif-sway {
  0%, 100% { transform: var(--tf) rotate(0deg); }
  50%      { transform: var(--tf) rotate(4deg); }
}

/* ---------- Logo (authentic vector extracted from the brochure) ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; display: block; }
.site-footer .logo img { height: 48px; }
@media (max-width: 520px) { .logo img { height: 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}
.btn--sm { font-size: 0.85rem; padding: 0.55em 1.25em; }
.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-hover); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--color-ivory); color: var(--color-green); border-color: var(--color-ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-green) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--header-h); }
.nav__links { display: none; }
.nav__links a { font-size: 0.95rem; opacity: 0.82; transition: opacity var(--transition); }
.nav__links a:hover { opacity: 1; }
.nav__cta { display: none; }
.nav__burger { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0.4rem 0.6rem; }

/* Mobile menu (burger-toggled dropdown) */
.site-header.nav-open .nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--color-green-deep);
  padding: 0.75rem var(--gutter) 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.55);
}
.site-header.nav-open .nav__links a { padding: 0.5rem 0; font-size: 1rem; }

@media (min-width: 920px) {
  .nav__links { display: flex; gap: var(--space-md); }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

/* ---------- Photo treatment (tint overlay keeps brand tone + legibility) ----------
   The photo itself is set inline as `background-image` on each element (so the
   relative URL resolves against the document, not this stylesheet). The brand-green
   tint is layered on top via ::before. */
.photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--color-green-deep);
}
.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ov, rgba(20, 42, 29, 0.45));
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; }
.hero__panel {
  position: relative;
  background: linear-gradient(160deg, var(--color-green) 0%, var(--color-green-deep) 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter);
  overflow: hidden;
}
.hero__content { position: relative; z-index: 1; }
.hero__media { min-height: 44vh; }
.hero h1 { margin-bottom: var(--space-md); }
.hero h1 span { display: block; font-style: italic; }
.hero__lead { max-width: 44ch; color: var(--muted-on-dark); }
.hero__price { margin-top: var(--space-md); }
.hero__price .label { font-family: var(--font-body); font-weight: 500; color: var(--muted-on-dark); display: block; font-size: 0.95rem; }
.hero__price .value {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(1.5rem, 1.2vw + 1rem, 1.875rem); color: var(--color-gold);
}
.hero__price .value sup { font-size: 0.6em; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; min-height: calc(100svh - var(--header-h)); }
  .hero__media { min-height: auto; }
}

/* ---------- Split band (photo one side, panel other) ---------- */
.split {
  position: relative;           /* contains the watermark */
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  min-height: clamp(440px, 60vh, 620px);
}
.split__media { min-height: 300px; }
.split__panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: var(--section-pad-y) var(--gutter); }
.split__panel .inner { position: relative; z-index: 1; max-width: 46ch; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right .split__media { order: 2; }
}

/* Terracotta content card (the "What is One Acre" panel) */
.card-terracotta {
  position: relative; z-index: 1;
  background: var(--color-terracotta); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow); max-width: 52ch;
}
.card-terracotta h2 { color: #fff; }
.card-terracotta .eyebrow { color: rgba(255, 255, 255, 0.8); }
.about-note { font-size: 1.2rem; margin-top: var(--space-md); color: var(--color-green); }

/* ---------- Why Karjat (split story + investor points, one band) ---------- */
.karjat { position: relative; overflow: hidden; }
.karjat__features { position: relative; z-index: 1; padding-block: var(--space-lg) var(--section-pad-y); }

/* ---------- Full-bleed quote band ---------- */
.quote-band { position: relative; min-height: clamp(320px, 52vh, 480px); display: flex; align-items: center; }
.quote-band .container { position: relative; z-index: 1; padding-block: var(--space-lg); }
.quote-band h2 { font-size: var(--fs-quote); color: #fff; max-width: 20ch; margin: 0; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }

/* ---------- Feature grids ---------- */
.grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Returns: 5 tiles → 3 across, then 2 wider beneath */
@media (min-width: 640px) and (max-width: 999px) { .grid--returns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .grid--returns { grid-template-columns: repeat(6, 1fr); }
  .grid--returns > * { grid-column: span 2; }
  .grid--returns > *:nth-child(4), .grid--returns > *:nth-child(5) { grid-column: span 3; }
}

.feature {
  position: relative;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.feature__icon {
  position: absolute;
  top: clamp(1.25rem, 2.5vw, 1.75rem);
  right: clamp(1.25rem, 2.5vw, 1.75rem);
  width: 26px; height: 26px;
  color: var(--color-gold);
  opacity: 0.9;
}
.feature:hover { transform: translateY(-4px); border-color: var(--color-gold); background: rgba(255, 255, 255, 0.07); }
.feature__num { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--color-gold); display: block; margin-bottom: var(--space-xs); }
.feature h3 { margin: 0; }
.feature p { margin: 0.5rem 0 0; font-size: 0.9rem; line-height: 1.55; opacity: 0.72; }
.section--light .feature, .section--mint .feature { background: rgba(28, 58, 40, 0.035); border-color: rgba(28, 58, 40, 0.1); }
.section--light .feature:hover, .section--mint .feature:hover { background: rgba(28, 58, 40, 0.06); }

/* Returns / offerings tiles with image cap */
.tile {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.tile:hover { transform: translateY(-4px); border-color: var(--color-gold); }
.tile--light { background: #fff; border-color: rgba(28, 58, 40, 0.1); }
.tile--light:hover { border-color: var(--color-green-mid); box-shadow: 0 18px 40px -24px rgba(28, 58, 40, 0.4); }
.tile__img { aspect-ratio: 4 / 3; }
.tile__body { padding: 1rem 1.1rem 1.2rem; }
.tile__body h3 { margin: 0; font-size: 1.05rem; }

.section-head { max-width: 60ch; margin-bottom: var(--space-lg); }

/* ---------- Film / video band ---------- */
.video-frame {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-green-deep);
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame:not(.is-playing)::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20, 42, 29, 0.25);
  pointer-events: none;
}
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: clamp(64px, 8vw, 84px); height: clamp(64px, 8vw, 84px);
  border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cta); color: #fff;
  display: grid; place-items: center;
  z-index: 1;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition), background var(--transition);
}
.video-play:hover { transform: scale(1.07); background: var(--cta-hover); }
.video-play svg { width: 45%; height: 45%; margin-left: 6%; }
.video-frame.is-playing .video-play { display: none; }

/* ---------- Invest section ---------- */
.invest-list li { display: flex; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.invest-list li::before { content: "✦"; color: var(--color-gold); flex: none; }
.price-chip {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  background: var(--color-orange); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 1.25rem;
  padding: 0.5em 0.9em; border-radius: 12px; margin-top: var(--space-md);
}
.price-chip sup { font-size: 0.6em; }

/* ---------- Contact / form ---------- */
.visit-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .visit-grid { grid-template-columns: 1fr 1.1fr; } }

.contact-lines { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.55em 1.1em; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: border-color var(--transition), background var(--transition);
}
.contact-link:hover { border-color: var(--color-gold); background: rgba(255, 255, 255, 0.06); }
.contact-link svg { width: 1.1em; height: 1.1em; color: var(--color-gold); }

.form { display: grid; gap: var(--space-sm); }
.form .row2 { display: grid; gap: var(--space-sm); grid-template-columns: 1fr; }
@media (min-width: 540px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.form label { font-size: var(--fs-small); font-weight: 500; color: var(--muted-on-dark); display: block; margin-bottom: 0.3rem; }
.form input, .form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 0.75em 1em; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06); color: var(--text-on-dark);
  transition: border-color var(--transition), background var(--transition);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--color-gold); background: rgba(255, 255, 255, 0.1); }
.form input::placeholder, .form textarea::placeholder { color: rgba(245, 241, 230, 0.45); }
.honeypot { position: absolute; left: -9999px; }
.form__status { font-size: var(--fs-small); min-height: 1.2em; }
.form__status.is-error { color: #ffb4a1; }
.form__status.is-ok { color: var(--color-mint); }

/* ---------- Location / map ---------- */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(28, 58, 40, 0.12);
  height: clamp(320px, 48vh, 440px);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Visit modal ---------- */
.modal {
  border: 0;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  width: min(560px, calc(100vw - 2rem));
  background: var(--color-green-deep);
  color: var(--text-on-dark);
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(10, 20, 14, 0.65); backdrop-filter: blur(4px); }
.modal h3 { font-size: 1.6rem; color: var(--text-on-dark); }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: inherit;
  font-size: 1rem; line-height: 1;
  transition: background var(--transition);
}
.modal__close:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-green-deep); color: var(--text-on-dark); padding-block: var(--space-lg) var(--space-md); font-size: var(--fs-small); }
.footer-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font-size: 1rem; }
.footer-tagline { margin-top: var(--space-md); opacity: 0.8; }
.footer-links { opacity: 0.85; line-height: 2; }
.site-footer a:hover { color: var(--color-gold); }
.site-footer .disclaimer { opacity: 0.55; margin-top: var(--space-md); max-width: 80ch; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: var(--space-md); }
.site-footer .disclaimer a { text-decoration: underline; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal--fade { transform: none; }
.reveal--left { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--zoom { transform: scale(0.96); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--fade, .reveal--left, .reveal--right, .reveal--zoom { opacity: 1; transform: none; transition: none; }
  .is-scrolling .motif { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Placeholder marker ---------- */
.placeholder-tag {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--color-orange); color: #fff; padding: 2px 8px; border-radius: 4px; vertical-align: middle;
}
