/* Prototype interaction layer */
a.nav-item { text-decoration: none; cursor: pointer; }
a.nav-item:not(.active):hover { background: rgba(255,255,255,0.1); }
a.btn, button.btn { cursor: pointer; text-decoration: none; }
a.btn-primary:hover, button.btn-primary:hover { background: #0b4a2c; }
a.btn-outline:hover, button.btn-outline:hover { background: #e7f5ec; }
.chip, .choice, .dd-item, .slider { cursor: pointer; user-select: none; }
.slider { touch-action: none; }
.slider-track { cursor: pointer; }
.slider-thumb { cursor: grab; }
.link-quiet:hover { color: #0b4a2c; }
[data-href] { cursor: pointer; }
.svc-card[data-href]:hover { box-shadow: 0 6px 20px rgba(18,32,24,0.10); transform: translateY(-1px); transition: box-shadow .15s, transform .15s; }
input.box, textarea.area {
  width: 100%; display: block; font-family: inherit; outline: none; color: #122018;
}
input.box { height: 42px; font-size: 14px; font-weight: 600; }
textarea.area { height: 72px; resize: none; font-size: 14px; font-weight: 500; line-height: 1.35; }
input.box::placeholder, textarea.area::placeholder { color: #8da097; font-weight: 500; }
input.box:focus, textarea.area:focus { border-color: #0e5a36; box-shadow: 0 0 0 3px rgba(14,90,54,0.15); }
form.modal { position: relative; }
.modal-close {
  position: absolute; top: 14px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; line-height: 1; color: #24312b; text-decoration: none;
}
.modal-close:hover { background: #e7f5ec; }
.form-err { display: none; margin-top: 10px; font-size: 13px; font-weight: 600; color: #8a2a1c; }
.form-err.show { display: block; }
.modal-foot .btn[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.banner .next-link {
  font-size: 13px; font-weight: 700; color: #0c4a2c; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 0 4px;
}
.banner .next-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.dock {
  position: fixed; right: 16px; bottom: 14px; z-index: 50;
  display: flex; gap: 8px; align-items: center;
}
.dock a {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12px; font-weight: 700; text-decoration: none; color: #0c4a2c;
  background: rgba(255,255,255,0.92); border: 1px solid #c5d4cb; border-radius: 999px;
  height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(18,32,24,0.10);
}
.dock a:hover { background: #e7f5ec; }
.dock a.primary { background: #0e5a36; color: #fff; border-color: #0e5a36; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  background: #122018; color: #fff; font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; z-index: 100; pointer-events: none;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.side-map {
  flex-shrink: 0; margin: 8px 0 0 8px; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.7); text-decoration: underline; text-underline-offset: 3px; align-self: flex-start;
}
.side-map:hover { color: #fff; }

/* Welcome budget slider default: Rs 20 lakh at 25% */
.welcome .slider-fill { width: 25%; }
.welcome .slider-thumb { left: 25%; }

/* Brand: official Earth5R logo with wordmark, no circle */
.brand { gap: 10px; align-items: center; padding: 2px 8px 14px; }
.brand-logo { width: 46px; height: auto; display: block; flex: 0 0 auto; }
.brand-name .terra { font-size: 17px; letter-spacing: -0.02em; }
.brand-name .e5r { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.82); }
.paper img.plogo, img.plogo { width: auto; height: 18px; }

/* Banner: company label with the guided links */
.banner { background: #e7f5ec; }
.banner p strong { font-weight: 700; }

/* Photo bands: images always span the full content width */
.pband { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; width: 100%; }
.pband.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; }
.pband figure, .mapphotos figure, .pwide, .hero-cells figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; background: #dfe8e2; }
.pband figure { aspect-ratio: 3 / 2; }
.pband img, .mapphotos img, .pwide img, .hero-cells img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pband figcaption, .mapphotos figcaption, .pwide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; color: #fff; font-size: 12px; font-weight: 600;
  line-height: 1.3; background: linear-gradient(to top, rgba(6,26,16,0.72), rgba(6,26,16,0));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pwide { width: 100%; height: 250px; margin: 8px 0 18px; }

/* Maps span the full content width, with a photo row below */
.mapband { display: block; margin-top: 20px; width: 100%; }
.mapband .mmap { margin: 0 !important; display: block !important; width: 100%; background: #fff !important; border-radius: 24px !important; overflow: hidden !important; box-shadow: 0 1px 2px rgba(18,32,24,0.04) !important; position: relative; }
.mapband .map-inner { position: relative; width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: auto !important; border-radius: 0 !important; overflow: hidden; background: #fff; box-shadow: none !important; }
.mapband .map-inner img, .mapband .mmap > img { width: 100% !important; height: auto !important; max-width: 100% !important; display: block; }
.mapphotos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; width: 100%; }
.mapphotos figure { aspect-ratio: 3 / 2; border-radius: 18px; }

/* Welcome hero collage */
.hero-strip { position: relative; width: 100%; height: 330px; border-radius: 24px; overflow: hidden; margin: 6px 0 18px; background: #0a3a24; }
.hero-cells { position: absolute; inset: 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; }
.hero-cells figure { border-radius: 0; min-height: 0; }
.hero-cells figure:first-child { grid-row: 1 / 3; }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 44px; max-width: 62%;
  background: linear-gradient(to right, rgba(4,24,15,0.90) 0%, rgba(4,24,15,0.78) 55%, rgba(4,24,15,0) 100%); }
.hero-copy h1 { color: #fff; font-size: 38px; line-height: 1.08; letter-spacing: -0.03em; max-width: 520px; }
.hero-copy p.lede { color: rgba(255,255,255,0.92); margin-top: 12px; font-size: 16px; }

/* City and site maps fill the column they sit in */
.content .mmap, .content .map-inner { width: 100%; max-width: 100%; }
.content .mmap img, .content .map-inner img { width: 100% !important; height: auto !important; max-width: 100% !important; display: block; }

/* Inline Lucide line icons beside items */
.ico-line {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 8px;
  stroke: #0e5a36;
  color: #0e5a36;
}
a.btn .ico-line, button.btn .ico-line { width: 16px; height: 16px; flex-basis: 16px; margin-right: 6px; stroke: currentColor; color: currentColor; }
.has-ico { display: flex; align-items: flex-start; gap: 0; }
.has-ico.ico-line, .has-ico > .ico-line { margin-top: 0.15em; }
.opt.has-ico, .dd-item.has-ico, .mtopic.has-ico { align-items: center; }
.opt.has-ico .ico-line, .sm-card .ico-line { margin-top: 0; }
.svc-card h3.has-ico, .match-card h2.has-ico, .e-card h3.has-ico, .t-row h3.has-ico,
.proj h3.has-ico, .tech h3.has-ico, .rep-card h3.has-ico, .appr-card h3.has-ico,
.trow h3.has-ico, .in-row h3.has-ico, .act-row h3.has-ico { align-items: flex-start; }
.sm-card.has-ico, .sm-t.has-ico { align-items: center; }
.nm.has-ico { display: inline-flex; align-items: center; }
a.btn.has-ico, button.btn.has-ico { display: inline-flex; align-items: center; }

.opt.on .ico-line, .chip.on .ico-line, .mtopic.on .ico-line { stroke: currentColor; color: currentColor; }


/* Detail and action modals */
.terra-modal[hidden] { display: none !important; }
.terra-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.terra-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 30, 20, 0.46); }
.terra-modal-card {
  position: relative; z-index: 1; width: min(640px, 100%); max-height: min(88vh, 820px);
  overflow: auto; background: #fff; border-radius: 24px; padding: 28px 28px 24px;
  box-shadow: 0 24px 80px rgba(18,32,24,0.22); color: #122018;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.terra-modal-x {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #f3f6f1; color: #122018; font-size: 22px; line-height: 1; cursor: pointer;
}
.terra-modal-x:hover { background: #e7f5ec; }
.terra-modal-card h2 { margin: 0 36px 10px 0; font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; }
.terra-modal-card .terra-lead { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: #3d5248; }
.terra-modal-card .terra-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.terra-modal-card .terra-meta span {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px;
  background: #e7f5ec; color: #0c4a2c; font-size: 12px; font-weight: 700;
}
.terra-modal-form { display: grid; gap: 10px; margin: 8px 0 16px; }
.terra-modal-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #3d5248; }
.terra-modal-form input, .terra-modal-form textarea {
  width: 100%; border: 1px solid #c5d4cb; border-radius: 12px; padding: 10px 12px;
  font: inherit; font-size: 14px; font-weight: 550; color: #122018; background: #fff;
}
.terra-modal-form textarea { min-height: 72px; resize: vertical; }
.terra-modal-form input:focus, .terra-modal-form textarea:focus { outline: 0; border-color: #0e5a36; box-shadow: 0 0 0 3px rgba(14,90,54,0.15); }
.terra-modal-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.terra-modal-foot .btn { text-decoration: none; }
.terra-preview { background: #f3f6f1; border-radius: 16px; padding: 16px; margin: 0 0 16px; }
.terra-preview .doc { transform: none; width: 100%; }
.story, .uitem { cursor: pointer; }
.opt, .mtopic { cursor: pointer; user-select: none; }

/* Proposal overlay dims the page but must not block the sidebar or dock */
.overlay { pointer-events: none; }
.overlay .modal, .overlay form, form.modal { pointer-events: auto; }

/* persona variants */
body.mode-open .v-budget { display: none !important; }
body:not(.mode-open) .v-open { display: none !important; }
body.kind-activity .k-project { display: none !important; }
body:not(.kind-activity) .k-activity { display: none !important; }
.banner .bn-note { font-weight: 500; color: #3d5248; }
.autopull { margin: 20px 0; padding: 22px 24px; border: 1px solid #dfe9e2; border-radius: 16px; background: #fff; }
.autopull h2 { margin: 0 0 6px; font-size: 18px; }
.autopull .lede { margin: 0 0 14px; }

.d-block h2 .ic { width: 17px; height: 17px; margin-right: 8px; vertical-align: -3px; color: #0e5a36; flex: none; }
.ex-item { margin: 0 0 12px; line-height: 1.5; }
.ex-item a { font-weight: 700; color: #0e5a36; text-decoration: underline; text-underline-offset: 3px; }
.src-note { margin: 4px 2px 0; font-size: 12.5px; color: #5a6b62; }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.sl-card { background: #fff; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.sl-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }
.sl-card h2 { margin: 6px 0 0; font-size: 17px; }
.sl-card p { margin: 0; font-size: 14px; line-height: 1.45; }
.sl-cat { color: #5a6b62; font-size: 12.5px !important; }
.sl-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.sl-empty { font-size: 15px; }
.sl-card.sl-off { opacity: .55; }

.svc-extra { margin-top: 28px; display: flex; flex-direction: column; gap: 28px; }
.svc-h { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 0 0 4px; }
.svc-h .ic, .run-card h3 .ic, .loc-air h3 .ic { color: #0e5a36; flex: none; }
.svc-sub { margin: 0 0 14px; color: #5a6b62; font-size: 14px; line-height: 1.5; }
.run-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.run-card { background: #fff; border-radius: 14px; padding: 16px; }
.run-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.run-card ul, .run-card ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.run-card li { margin-bottom: 4px; }
.loc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.loc-maps { display: flex; flex-direction: column; gap: 14px; }
.loc-map { margin: 0; background: #fff; border-radius: 14px; padding: 8px; }
.loc-img { position: relative; line-height: 0; }
.loc-img img { width: 100%; height: auto; border-radius: 10px; display: block; }
.loc-pin { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; background: #0e5a36; color: #fff; font-size: 12px; font-weight: 700; line-height: 24px; text-align: center; box-shadow: 0 0 0 3px #fff; }
.loc-cr { font-size: 11.5px; color: #5a6b62; padding: 6px 4px 2px; line-height: 1.4; }
.loc-cr a, .loc-src a { color: #0e5a36; text-decoration: underline; text-underline-offset: 3px; }
.loc-list { display: flex; flex-direction: column; gap: 12px; }
.loc-city { background: #fff; border-radius: 14px; padding: 14px 16px; }
.loc-city h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16px; }
.loc-item { margin-top: 10px; }
.loc-item h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 3px; font-size: 14.5px; }
.loc-item p { margin: 0 0 3px; font-size: 14px; line-height: 1.5; }
.loc-src { font-size: 12.5px !important; color: #5a6b62; }
.loc-num { display: inline-block; min-width: 22px; height: 22px; border-radius: 50%; background: #0e5a36; color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.loc-num.alt { background: #0e5a36; }
.loc-air { margin-top: 18px; }
.loc-air h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; }
.air-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.air-grid figure { margin: 0; background: #fff; border-radius: 14px; padding: 8px; }
.air-grid img { width: 100%; height: auto; border-radius: 10px; display: block; }
.air-grid figcaption { font-size: 13px; line-height: 1.45; padding: 8px 4px 4px; color: #33443b; }
.air-grid figcaption a { color: #0e5a36; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) { .loc-grid, .air-grid { grid-template-columns: 1fr; } .svc-h { font-size: 18px; } }

/* Inline form validation */
.terra-fe { margin: 5px 2px 0; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: #a3261a; }
.terra-fe[hidden] { display: none; }
.terra-bad { border-color: #c0392b !important; }
.hp, .terra-modal-form input.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; padding: 0; border: 0; }
