/* Kesari family land dashboard — warm, premium, family feeling. No frameworks. */
:root {
  --forest: #1e3a24;
  --forest-deep: #14261a;
  --moss: #3d5a3a;
  --sage: #8ba888;
  --cream: #faf6ee;
  --parchment: #f3ecdd;
  --sand: #e7dcc3;
  --clay: #b4552d;
  --clay-dark: #8f3f20;
  --gold: #c9a227;
  --ink: #2b2620;
  --ink-soft: #5c554a;
  --card: #ffffff;
  --line: #ddd2ba;
  --danger: #9c2b1e;
  --danger-bg: #fbeeea;
  --ok: #2f6b2f;
  --ok-bg: #edf5ea;
  --warn-bg: #fdf6e3;
  --radius: 14px;
  --serif: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- PIN gate ---------- */
body.gate {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 50% -10%, #2c4a30 0%, var(--forest-deep) 60%),
    var(--forest-deep);
}
.gate-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 44px 40px 36px;
  max-width: 400px; width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  border-top: 6px solid var(--gold);
}
.gate-leaf { font-size: 44px; }
.gate-card h1 {
  font-family: var(--serif); font-size: 2.4rem; margin: 8px 0 4px;
  color: var(--forest); letter-spacing: .5px;
}
.gate-sub { color: var(--ink-soft); margin: 0 0 18px; }
.gate-lang { font-size: .95rem; color: var(--moss); margin: 0 0 18px; }
.gate-error {
  background: var(--danger-bg); color: var(--danger);
  border: 1px solid #e5b3ab; border-radius: 10px;
  padding: 10px 14px; font-size: .95rem;
}
.gate-card form { display: flex; gap: 10px; margin-top: 6px; }
.gate-card input {
  flex: 1; font-size: 1.5rem; text-align: center; letter-spacing: .5em;
  padding: 12px 8px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
}
.gate-card input:focus { outline: none; border-color: var(--moss); }
.gate-card button {
  background: var(--forest); color: #fff; border: none; border-radius: 12px;
  padding: 0 22px; font-size: 1.05rem; cursor: pointer;
}
.gate-card button:hover { background: var(--moss); }
.gate-note { font-size: .85rem; color: var(--ink-soft); margin-top: 18px; }

/* ---------- dashboard layout ---------- */
.topbar {
  background: var(--forest-deep); color: #f3ecdd;
  padding: 10px 0; font-size: .9rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar a { color: var(--gold); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.hero {
  background:
    linear-gradient(rgba(20,38,26,.82), rgba(20,38,26,.88)),
    url('img.php?f=village-sat.jpg') center/cover;
  color: #faf6ee;
  padding: 64px 0 56px;
  border-bottom: 6px solid var(--gold);
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 10px; letter-spacing: .5px;
}
.hero h1 .gold { color: var(--gold); }
.hero .holder { font-size: 1.15rem; margin: 6px 0; }
.hero .holder strong { font-weight: 600; }
.hero .totals {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px;
}
.pill {
  background: rgba(250,246,238,.12);
  border: 1px solid rgba(201,162,39,.55);
  border-radius: 999px; padding: 8px 18px; font-size: .95rem;
}
.pill b { color: var(--gold); }

main section { padding: 52px 0 8px; }
.section-kicker {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: .78rem;
  color: var(--clay); font-weight: 700; margin: 0 0 6px;
}
h2.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--forest); margin: 0 0 10px;
}
.lede { color: var(--ink-soft); max-width: 720px; margin: 0 0 26px; }

/* parcel cards */
.parcel-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin-bottom: 10px;
}
.parcel-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 4px 18px rgba(43,38,32,.06);
}
.parcel-card .survey {
  font-family: var(--serif); font-size: 1.7rem; color: var(--forest); margin: 0;
}
.parcel-card .size { font-size: 1.05rem; font-weight: 600; color: var(--clay-dark); }
.parcel-card .meta { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.parcel-card .tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  background: var(--ok-bg); color: var(--ok);
  border-radius: 999px; padding: 3px 12px; align-self: flex-start;
}
.parcel-card .tag.big { background: var(--warn-bg); color: #8a6d1a; }
.parcel-card .flag {
  font-size: .88rem; background: var(--warn-bg);
  border-left: 4px solid var(--gold); padding: 8px 12px; border-radius: 0 8px 8px 0;
}
.zoom-btn {
  margin-top: auto; align-self: flex-start;
  background: var(--forest); color: #fff; border: none; border-radius: 10px;
  padding: 11px 20px; font-size: .95rem; cursor: pointer;
}
.zoom-btn:hover { background: var(--moss); }

/* banners & callouts */
.banner {
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 26px;
  font-size: .98rem;
}
.banner.danger { background: var(--danger-bg); border: 1px solid #e0a89e; color: #6e1f14; }
.banner.ok { background: var(--ok-bg); border: 1px solid #b7d3b2; color: #234d23; }
.banner.warn { background: var(--warn-bg); border: 1px solid #e3cf8f; color: #5f4a12; }
.banner strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.panel h3 { font-family: var(--serif); font-weight: 400; color: var(--forest); margin: 0 0 10px; font-size: 1.35rem; }
.panel p, .panel li { font-size: .97rem; }
.panel ol, .panel ul { padding-left: 22px; margin: 10px 0; }
.panel li { margin-bottom: 8px; }
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 12px 0; }
.price-table th, .price-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.price-table th { color: var(--forest); font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.price-table tr:last-child td { border-bottom: none; }
.fine { font-size: .88rem; color: var(--ink-soft); }

.checklist { list-style: none; padding: 0; margin: 10px 0; }
.checklist li {
  padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed var(--line);
  font-size: .97rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '\2713'; position: absolute; left: 4px; top: 10px;
  color: var(--ok); font-weight: 700;
}

figure.framed { margin: 0 0 20px; }
figure.framed img { border-radius: var(--radius); border: 1px solid var(--line); }
figure.framed figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 8px; }

/* zoom journey modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,38,26,.78);
  display: none; align-items: center; justify-content: center;
  z-index: 50; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--cream); border-radius: 18px; max-width: 920px; width: 100%;
  max-height: 92vh; overflow-y: auto; padding: 26px;
  border-top: 6px solid var(--gold);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--forest); margin: 0; }
.modal-head .sub { color: var(--ink-soft); font-size: .95rem; margin: 2px 0 0; }
.modal-close {
  background: none; border: 2px solid var(--line); border-radius: 50%;
  width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; color: var(--ink-soft);
  flex: none;
}
.stepper { display: flex; gap: 8px; margin: 18px 0; }
.step {
  flex: 1; text-align: center; font-size: .82rem; padding: 10px 6px;
  border-radius: 10px; background: var(--parchment); color: var(--ink-soft);
  border: 2px solid transparent; cursor: pointer;
}
.step .n {
  display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--moss);
}
.step.active { border-color: var(--gold); background: #fff; color: var(--ink); font-weight: 600; }
.step.active .n { color: var(--clay-dark); }
.stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #111;
  aspect-ratio: 16 / 9;
}
.stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease;
}
.stage img.show { opacity: 1; }
.stage-caption { font-size: .92rem; color: var(--ink-soft); margin: 10px 2px 0; min-height: 2.6em; }
.modal-nav { display: flex; justify-content: space-between; margin-top: 12px; }
.modal-nav button {
  background: var(--forest); color: #fff; border: none; border-radius: 10px;
  padding: 10px 22px; font-size: .95rem; cursor: pointer;
}
.modal-nav button:disabled { opacity: .35; cursor: default; }
.modal-nav button:hover:not(:disabled) { background: var(--moss); }
.caveat {
  margin-top: 16px; background: var(--warn-bg); border: 1px solid #e3cf8f;
  border-radius: 10px; padding: 14px 16px; font-size: .9rem; color: #5f4a12;
  display: none;
}
.caveat.show { display: block; }
.caveat strong { display: block; margin-bottom: 4px; }

/* timeline */
.timeline-stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16 / 10; background: #111;
}
.timeline-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.timeline-stage img.show { opacity: 1; }
.timeline-year {
  position: absolute; top: 14px; left: 16px;
  background: rgba(20,38,26,.85); color: var(--gold);
  font-family: var(--serif); font-size: 1.6rem;
  padding: 4px 18px; border-radius: 10px;
}
.timeline-controls { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.timeline-controls input[type=range] { flex: 1; accent-color: var(--forest); }
.timeline-controls .yr { font-family: var(--serif); font-size: 1.2rem; color: var(--forest); min-width: 64px; text-align: center; }

footer {
  background: var(--forest-deep); color: #cfc4a8;
  margin-top: 60px; padding: 34px 0; font-size: .9rem;
}
footer a { color: var(--gold); }
.doc-link {
  display: inline-block; background: var(--clay); color: #fff !important;
  text-decoration: none; border-radius: 10px; padding: 12px 24px; font-size: 1rem;
  margin-top: 6px;
}
.doc-link:hover { background: var(--clay-dark); }
