/* ==========================================================================
   IndiaTenant — managed farmland additions
   ========================================================================== */

/* ---------- hero (farm) ---------- */
.hero-farm {
  position: relative; color: var(--cream); overflow: hidden;
  min-height: min(92vh, 840px); display: flex; align-items: flex-end;
  background: var(--green-950);
}
.hero-farm__bg { position: absolute; inset: 0; z-index: 0; }
.hero-farm__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero-farm__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,28,21,.55) 0%, rgba(6,28,21,.18) 32%, rgba(6,28,21,.72) 78%, rgba(6,28,21,.94) 100%),
    radial-gradient(80% 60% at 18% 88%, rgba(6,28,21,.72), transparent 70%);
}
.hero-farm__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(56px, 8vw, 104px); }
.hero-farm h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.015em;
  font-size: clamp(46px, 8.2vw, 104px); line-height: .93; max-width: 15ch;
}
.hero-farm h1 em { font-style: italic; color: var(--gold-500); }
.hero-farm p {
  color: #DCE9E1; font-size: clamp(16px, 1.7vw, 19px); max-width: 54ch; margin-top: 20px; line-height: 1.6;
}
.hero-farm__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-farm__meta {
  display: flex; gap: 0; flex-wrap: wrap; margin-top: clamp(34px, 5vw, 58px);
  border-top: 1px solid rgba(251,247,239,.2);
}
.hero-farm__meta > div {
  padding: 18px 26px 0 0; margin-right: 26px; border-right: 1px solid rgba(251,247,239,.14);
}
.hero-farm__meta > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-farm__meta b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1; }
.hero-farm__meta span { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #A9C0B6; }

/* ---------- ways ---------- */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.way {
  position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(26px, 3.4vw, 40px);
  background: var(--white); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 14px;
}
.way--dark { background: var(--green-900); color: var(--cream); border-color: var(--green-900); }
.way--dark .way__label { color: var(--gold-500); }
.way--dark p { color: #B9CCC3; }
.way--dark .mini-list li { color: #D8E5DE; }
.way--dark .mini-list svg { color: var(--gold-500); }
.way__label { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-500); }
.way h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 400; line-height: 1.05; }
.way p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.way__price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.way__price b { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1; }
.way__price span { font-size: 12.5px; color: var(--muted); }
.way--dark .way__price span { color: #A9C0B6; }
.way .btn { margin-top: auto; align-self: flex-start; }

/* ---------- project cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project__media { position: relative; aspect-ratio: 4/2.9; overflow: hidden; background: var(--sand); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }
.project__corridor {
  position: absolute; top: 12px; left: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; background: rgba(251,247,239,.94); color: var(--green-900);
  padding: 6px 10px; border-radius: 7px; backdrop-filter: blur(6px);
}
.project__body { padding: 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.project__name { font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1; }
.project__loc { font-size: 13px; color: var(--muted); }
.project__specs {
  display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2);
  padding-block: 12px; margin-top: auto; border-top: 1px solid var(--line-soft);
}
.project__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.project__foot b { font-size: 19px; letter-spacing: -.02em; }
.project__foot small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.project__go {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--green-700); flex: none; transition: background .2s, color .2s, border-color .2s;
}
.project:hover .project__go { background: var(--green-900); border-color: var(--green-900); color: var(--cream); }
.project__go svg { width: 15px; height: 15px; }

/* ---------- gallery strip ---------- */
.gallery-strip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 18px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip figure {
  flex: 0 0 clamp(220px, 26vw, 320px); scroll-snap-align: start; position: relative;
  border-radius: var(--r-lg); overflow: hidden; background: var(--sand);
}
.gallery-strip img { width: 100%; aspect-ratio: 3/3.9; object-fit: cover; }
.gallery-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px;
  background: linear-gradient(180deg, transparent 20%, rgba(6,28,21,.86));
  color: #fff; font-size: 12.5px; font-weight: 600;
}

/* ---------- impact ---------- */
.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(251,247,239,.14); border-radius: var(--r-lg); overflow: hidden; }
.impact > div { background: var(--green-900); padding: clamp(20px, 2.6vw, 32px); }
.section--dark .impact > div { background: var(--green-900); }
.impact b { display: block; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); font-weight: 400; line-height: 1; color: var(--cream); }
.impact b span { color: var(--gold-500); }
.impact small { display: block; font-size: 12px; color: #A9C0B6; margin-top: 8px; line-height: 1.4; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.pillar .n { font-family: var(--serif); font-size: 14px; color: var(--clay-500); }
.pillar h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.pillar p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ---------- crew ---------- */
.crew { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.crew > div { background: var(--white); padding: 22px; }
.crew h3 { font-size: 14.5px; margin-bottom: 6px; letter-spacing: -.01em; }
.crew p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.crew svg { width: 18px; height: 18px; color: var(--green-600); margin-bottom: 12px; }

/* ---------- split media / map ---------- */
.map-card {
  background: var(--green-900); color: var(--cream); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.map-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 85% 10%, rgba(216,164,56,.18), transparent 70%);
}
.map-card__list { position: relative; display: grid; gap: 14px; margin-top: 22px; }
.map-card__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(251,247,239,.14); }
.map-card__row b { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.map-card__row span { font-size: 12px; color: #A9C0B6; text-align: right; }

/* ---------- lease toggle ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--sand); border: 1px solid var(--line); gap: 2px; }
.seg button {
  padding: 9px 18px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--muted);
  transition: background .18s, color .18s;
}
.seg button.is-on { background: var(--green-900); color: var(--cream); }

/* ---------- project detail ---------- */
.pd-hero { border-radius: var(--r-xl); overflow: hidden; position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; }
.pd-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,28,21,.1), rgba(6,28,21,.82)); }
.pd-hero__body { position: relative; z-index: 1; padding: clamp(24px, 4vw, 44px); width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.pd-hero__body h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.4vw, 60px); line-height: .98; }
.pd-hero__body p { color: #DCE9E1; font-size: 14px; margin-top: 8px; }

.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th, .price-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.price-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; }
.price-table td b { font-size: 15px; }
.price-table tr:last-child td { border-bottom: 0; }

/* ---------- responsive grid utilities (replaces inline 2/3-col grids) ---------- */
.g-2, .g-3, .g-85, .g-12 { display: grid; gap: 18px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-85 { grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.g-12 { grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

@media (max-width: 820px) {
  .g-2, .g-3, .g-85, .g-12 { grid-template-columns: 1fr; }
}

/* ---------- mobile header / hero refinements ---------- */
@media (max-width: 900px) {
  .header__signin { display: none; }
}
@media (max-width: 620px) {
  .header__inner { height: 64px; gap: 12px; }
  .header__cta .btn { display: none; }
  .header__cta { gap: 4px; }
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand__mark svg { width: 19px; height: 19px; }
  .brand__name { font-size: 17.5px; }
  .hero-farm__actions { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .hero-farm__actions .btn { width: 100%; }
  .hero-farm__inner { padding-block: 40px 44px; }
  .hero-farm h1 { font-size: clamp(36px, 11.5vw, 52px); }
  .hero-farm p { font-size: 15.5px; }
  .hero-farm__meta { margin-top: 28px; }
  .hero-farm__meta b { font-size: 19px; }
  .hero-farm__meta span { font-size: 10px; }
  .section-head h2, .pagehead h1 { letter-spacing: -.01em; }
  .impact b { font-size: 34px; }
  .cta-band { border-radius: 22px; }
}
@media (max-width: 400px) {
  .brand__name { font-size: 16px; }
  .hero-farm h1 { font-size: 34px; }
}

/* ---------- daily note ---------- */
.daily { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.note-card {
  background: var(--white); color: var(--ink); border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 28px); box-shadow: var(--shadow-lg);
}
.note-card__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 4px;
}
.note-card__head b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.note-card__head span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.note-card__row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line-soft); }
.note-card__row:last-of-type { border-bottom: 0; }
.note-card__row b { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--clay-500); padding-top: 2px; }
.note-card__row p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.note-card__foot { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.note-tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green-700);
  background: var(--green-50); padding: 6px 10px; border-radius: var(--r-pill); margin-bottom: 16px;
}
@media (max-width: 820px) { .daily { grid-template-columns: 1fr; } }

/* ---------- responsive additions ---------- */
@media (max-width: 1080px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .crew { grid-template-columns: repeat(2, 1fr); }
  .impact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .ways { grid-template-columns: 1fr; }
  .hero-farm { min-height: 640px; }
  .hero-farm__meta > div { padding-right: 16px; margin-right: 16px; }
  .hero-farm__meta b { font-size: 21px; }
}
@media (max-width: 620px) {
  .project-grid, .pillars, .crew { grid-template-columns: 1fr; }
  .impact { grid-template-columns: 1fr 1fr; }
  .hero-farm h1 { font-size: clamp(40px, 12vw, 60px); }
  .hero-farm__meta > div { flex: 1 1 40%; border-right: 0; padding-right: 0; margin-right: 0; }
  .gallery-strip figure { flex-basis: 74vw; }
  /* stop iOS zooming when a field is focused */
  .field input, .field select, .field textarea,
  .filter-field input, .filter-field select { font-size: 16px; }
}

@media (max-width: 820px) {
  .split__stat { right: 12px; bottom: 12px; padding: 14px 16px; max-width: 190px; }
  .split__stat b { font-size: 28px; }
  .pd-aside { order: -1; }
}
