/* ============================================================================
   Buldhana District Forest — front-end-only additions.
   Page-specific patterns that lived in per-page <style> blocks in the static
   prototype. Loads after components.css.
   ========================================================================== */

.home-hero { background: var(--color-surface-brand-dark); color: var(--color-text-on-brand); }
.home-hero__inner {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(2.75rem, 5vw, 5rem);
}
.home-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.35rem + 2.5vw, 2.85rem); text-wrap: pretty; }
.home-hero__lead { color: #d7e8df; font-size: var(--text-body-lg); line-height: var(--leading-loose); }
.home-hero .img-ph, .home-hero img { border-radius: var(--radius-lg); }
@media (max-width: 52rem) { .home-hero__inner { grid-template-columns: 1fr; } }

.quicklink {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4); background: var(--color-surface);
  border: var(--border-width) solid var(--color-border); border-radius: var(--radius-md);
  text-decoration: none; color: inherit;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.quicklink:hover { border-color: var(--color-border-brand); box-shadow: var(--shadow-sm); }
.quicklink__ico { flex: none; width: 1.5rem; height: 1.5rem; color: var(--color-brand); }
.quicklink__title { font-weight: var(--weight-semibold); }
.quicklink__desc { font-size: var(--text-small); color: var(--color-text-muted); margin-top: 2px; }
.sanctuary__facts { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: var(--text-small); color: var(--color-text-muted); }

/* A real image dropped into an .img-ph slot: cover the frame, hide the checker pattern. */
.img-ph.has-photo { background: none; padding: 0; }
.img-ph > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Rich-text block visibility per language. The server renders the request's
   language visible and marks the others `hidden` (from the bf-lang cookie); the
   top-bar toggle flips `hidden` again for an instant switch without a reload. */
[data-lang-block][hidden] { display: none !important; }

/* Shown above an English fallback body when a translation is still pending. */
.prose-fallback-note {
  margin: 0 0 var(--space-4);
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid var(--color-border-brand, #40916c);
  background: var(--color-surface-sunken, #f2f5f3);
  color: var(--color-text-muted, #52616b);
  font-size: var(--text-small);
  border-radius: var(--radius-xs);
}

main#main { display: block; }

/* ---- Emblem as an image (header + footer) -------------------------------
   The emblem is single-colour forest-green line-art on transparency. It sits as
   drawn on the white header; in the dark footer it is flipped to white with a
   filter (safe because the art is monochrome). */
.bf-emblem--img {
  border: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
  flex: none;
  width: 3.25rem;
  min-width: 3.25rem;
  height: 3.25rem;
  display: inline-grid;
  place-items: center;
}
.bf-emblem--img img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 40rem) {
  .bf-emblem--img { height: 2.75rem; width: 2.75rem; min-width: 2.75rem; }
}
.bf-emblem--footer,
.bf-emblem--footer.bf-emblem--img { width: 2.5rem; min-width: 2.5rem; height: 2.5rem; }
.bf-emblem--footer img { filter: brightness(0) invert(1); opacity: 0.92; }
.bf-footer__ident {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
/* Government of Maharashtra mark in the top bar */
.bf-topbar__gov { display: inline-flex; align-items: center; gap: var(--space-2); }
.bf-govmark { height: 1.15rem; width: auto; display: block; }

/* ---- Homepage image slider ------------------------------------------------ */
.bf-slider {
  position: relative;
  background: var(--color-surface-brand-dark);
  overflow: hidden;
}
.bf-slider__slide { position: relative; }
.bf-slider__slide[hidden] { display: none; }
.bf-slider__img {
  display: block;
  width: 100%;
  height: clamp(18rem, 46vw, 32rem);
  object-fit: cover;
}
.bf-slider__img--ph {
  background: linear-gradient(120deg, var(--bf-green-800), var(--bf-green-900));
}
.bf-slider__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.25rem, 4vw, 3rem) 0;
  background: linear-gradient(transparent, rgba(11, 46, 32, 0.85));
  color: #fff;
}
.bf-slider__caption h2 { color: #fff; font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); text-wrap: balance; }
.bf-slider__caption p { color: #e4f0e9; margin-top: var(--space-2); max-width: 52ch; }
.bf-slider__caption .btn { margin-top: var(--space-4); }
.bf-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background: rgba(11, 46, 32, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.bf-slider__arrow:hover { background: rgba(11, 46, 32, 0.8); }
.bf-slider__arrow--prev { left: var(--space-4); }
.bf-slider__arrow--next { right: var(--space-4); }
.bf-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-3);
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}
.bf-slider__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.45);
  border: 0;
}
.bf-slider__dot[aria-selected='true'] { background: #fff; width: 1.6rem; }
@media (max-width: 40rem) {
  .bf-slider__arrow { width: 2.25rem; height: 2.25rem; }
  .bf-slider__caption p { display: none; }
}

/* ---- Visitor counter (footer) ------------------------------------------- */
.visitor-counter {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  font-size: var(--text-small);
}
.visitor-counter__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #cfe3d8;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-semibold);
}
.visitor-counter__label svg { width: 1em; height: 1em; }
.visitor-counter__digits { display: inline-flex; gap: 3px; }
.visitor-counter__digit {
  display: grid;
  place-items: center;
  min-width: 1.4rem;
  padding: 0.15rem 0.25rem;
  background: #0b2e20;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xs);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
