/* =========================================================
   Layout: announcement bar, header & navigation, footer, page banners
   ========================================================= */

/* ---------- Announcement bar ---------- */
.topbar { background: var(--forest-950); color: rgba(255, 253, 247, .85); font-size: var(--fs-small); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 42px; padding-block: .4rem; }
.topbar__news { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; min-width: 0; }
.topbar__news:hover { color: var(--ivory); }
.topbar__tag {
  flex: none; padding: .1rem .55rem; border-radius: var(--r-pill); background: var(--saffron-500); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.topbar__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__text strong { color: var(--gold-300); font-weight: 700; }
.topbar__links { display: none; align-items: center; gap: var(--s-5); }
.topbar__links a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
.topbar__links a:hover { color: var(--ivory); }
@media (min-width: 900px) { .topbar__links { display: flex; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 247, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 51, 34, .06); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
#site-header-slot { min-height: calc(var(--header-h) + 42px); }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink-900); margin-right: auto; min-width: 0; }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 2px 10px rgba(15, 51, 34, .18); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; letter-spacing: .02em; color: var(--forest-900); }
.brand__full { font-size: .7rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav__link {
  position: relative; display: block; padding: .55rem .7rem; border-radius: var(--r-sm);
  color: var(--ink-700); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.nav__link { transition: color .2s, background-color .2s; }
.nav__link:hover { color: var(--forest-900); background: var(--olive-100); }
.nav__link[aria-current="page"] { color: var(--forest-900); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--saffron-500);
}

.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--sand-200); border: 1px solid var(--line);
}
.lang-switch button {
  min-width: 44px; min-height: 36px; padding: 0 .7rem; border: 0; border-radius: var(--r-pill); background: transparent;
  font-size: .82rem; font-weight: 700; color: var(--ink-500); cursor: pointer; transition: background .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: var(--forest-900); color: var(--ivory); }
.site-header .header-cta { display: none; }

.menu-toggle {
  display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--ivory); color: var(--forest-900); cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }

@media (min-width: 1140px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .site-header .header-cta { display: inline-flex; }
  .brand { margin-right: var(--s-4); }
  .nav { margin-right: auto; }
  .brand__org { display: none; } /* desktop: logo + "PBFA / Maharashtra State" keeps the nav roomy */
}
@media (max-width: 420px) {
  .brand img { width: 44px; height: 44px; }
  .brand__full { display: none; }
  .site-header__inner, .header-actions { gap: .45rem; }
  .site-header .lang-switch button { min-width: 40px; padding: 0 .55rem; }
}

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 36, 24, .5); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); display: flex; flex-direction: column;
  background: var(--ivory); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__head strong { font-family: var(--font-serif); font-size: 1.3rem; color: var(--forest-900); }
.drawer__nav { padding: .75rem var(--gutter); list-style: none; }
.drawer__nav a {
  display: flex; align-items: center; justify-content: space-between; padding: .95rem .25rem; border-bottom: 1px solid var(--line);
  color: var(--ink-900); font-size: 1.05rem; font-weight: 600; text-decoration: none;
}
.drawer__nav a[aria-current="page"] { color: var(--saffron-600); }
.drawer__nav .icon { color: var(--ink-500); }
.drawer__foot { margin-top: auto; padding: var(--s-5) var(--gutter) var(--s-6); display: grid; gap: var(--s-4); }
.drawer__foot .btn { width: 100%; justify-content: center; }
.drawer__contact { font-size: var(--fs-small); color: var(--ink-500); display: grid; gap: .35rem; }
.drawer__contact a { color: var(--ink-700); }
body.no-scroll { overflow: hidden; }

/* ---------- Sub-page banner ---------- */
.page-hero {
  position: relative; overflow: hidden; color: rgba(255, 253, 247, .82);
  background: radial-gradient(120% 140% at 85% 0%, var(--forest-700) 0%, var(--forest-900) 55%, var(--forest-950) 100%);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) clamp(3rem, 2rem + 3.5vw, 5rem);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--contour) center/900px auto; opacity: .5; pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--ivory); max-width: 18ch; margin-bottom: .35em; }
.page-hero p { max-width: 62ch; font-size: var(--fs-lead); margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 var(--s-5); padding: 0; list-style: none; font-size: var(--fs-small); }
.breadcrumb a { color: var(--gold-300); text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--forest-950); color: rgba(255, 253, 247, .7); font-size: .94rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--contour) center/1100px auto; opacity: .35; pointer-events: none; }
.site-footer .container { position: relative; }
.footer-motto {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding-block: var(--s-7); border-bottom: 1px solid var(--line-light);
}
.footer-motto p { margin: 0; font-family: var(--font-serif); font-size: clamp(1.25rem, 1rem + 1.2vw, 1.85rem); color: var(--ivory); line-height: 1.4; max-width: 32ch; }
.footer-grid { display: grid; gap: var(--s-6); padding-block: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-brand { display: flex; gap: var(--s-4); align-items: flex-start; }
.footer-brand img { width: 72px; height: auto; flex: none; }
.footer-brand strong { display: block; color: var(--ivory); font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.3; margin-bottom: .4rem; }
.footer-brand p { margin: 0; font-size: var(--fs-small); }
.site-footer h3 { color: var(--ivory); font-family: var(--font-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer-links { list-style: none; display: grid; gap: .15rem; }
.footer-links a, .footer-contact a { color: rgba(255, 253, 247, .78); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; padding: .3rem 0; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-300); }
.footer-contact { list-style: none; display: grid; gap: .25rem; }
.footer-contact .icon { color: var(--gold-300); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  padding-block: var(--s-5); border-top: 1px solid var(--line-light); font-size: var(--fs-small);
}
.footer-bottom a { color: inherit; }
.drawer__foot .lang-switch { justify-self: start; }
.footer-address { display: flex; gap: .55rem; align-items: flex-start; padding: .3rem 0; line-height: 1.55; }
.footer-address .icon { margin-top: .2rem; }

/* ---------- Floating WhatsApp button ----------
   Sits above the "Powered by Netlify" badge (92px tall, bottom right).
   Below the mobile menu (80) and image viewer (100). */
.wa-float {
  position: fixed; right: 16px; bottom: 100px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px;
  border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(10, 36, 24, .32); transition: background-color .2s, box-shadow .2s;
}
.wa-float:hover { background: #1ebe5b; color: #fff; box-shadow: 0 8px 26px rgba(10, 36, 24, .42); }
.wa-float:focus-visible { border-radius: 50%; }
.wa-float .icon { width: 32px; height: 32px; }
@media print { .wa-float { display: none; } }
