/* =========================================================
   BITHUDA PIRAN — Village Portal Design System
   Signature motif: the jharokha arch — a repeating carved
   sandstone-arch silhouette used as hero frame, card tops,
   and the horizontal divider between sections. It stands in
   for the haveli/temple skyline that defines the village.
   ========================================================= */

:root{
  /* --- Palette (named, per brief) --- */
  --sandstone:        #E4D2AC;
  --sandstone-dark:   #C9A968;
  --sandstone-deep:   #B08D4F;
  --maroon:           #6E1030;
  --maroon-deep:      #4A0A20;
  --maroon-soft:      #8C2244;
  --saffron:          #E08A1E;
  --saffron-deep:     #C56E0C;
  --emerald:          #0E6B4C;
  --emerald-deep:     #0A4E38;
  --white:            #FFFFFF;
  --ink:              #241A14;
  --ink-soft:         #5B4B3D;
  --ink-faint:        #8A7C6C;
  --line:             #E7DCC8;

  /* --- Type --- */
  --font-display: "Fraunces", "Noto Serif Devanagari", serif;
  --font-body:    "Inter", "Noto Sans Devanagari", sans-serif;

  /* --- Scale --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --container: 1280px;
  --shadow-1: 0 1px 2px rgba(36,26,20,.06), 0 8px 24px rgba(36,26,20,.06);
  --shadow-2: 0 4px 10px rgba(74,10,32,.10), 0 16px 40px rgba(74,10,32,.12);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0 0 .5em; color: var(--maroon-deep); font-weight:600; line-height:1.15; }
p{ margin: 0 0 1em; }
.lang-hi{ font-family: var(--font-display); }
body.lang-en .lang-hi-only{ display:none; }

:focus-visible{ outline: 3px solid var(--saffron); outline-offset: 3px; }

.container{ max-width: var(--container); margin-inline:auto; padding-inline: 20px; }
@media (min-width:768px){ .container{ padding-inline: 32px; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:.5em;
  font-family: var(--font-body); font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; font-size:.72rem; color: var(--saffron-deep);
}
.eyebrow::before{ content:""; width:18px; height:2px; background: var(--saffron); display:inline-block; }

.section{ padding: 64px 0; }
@media (min-width:900px){ .section{ padding: 96px 0; } }
.section--sandstone{ background: var(--sandstone); }
.section--maroon{ background: var(--maroon-deep); color: var(--sandstone); }
.section--maroon h1, .section--maroon h2, .section--maroon h3{ color: var(--white); }
.section--white{ background: var(--white); }

.section-head{ max-width: 640px; margin-bottom: 40px; }
.section-head h2{ font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.section-head p{ color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.6em;
  padding: 13px 26px; border-radius: 999px; font-weight:600; font-size:.95rem;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary{ background: var(--maroon); color:var(--white); }
.btn-primary:hover{ background: var(--maroon-deep); transform: translateY(-2px); }
.btn-saffron{ background: var(--saffron); color: var(--maroon-deep); }
.btn-saffron:hover{ background: var(--saffron-deep); color:var(--white); transform: translateY(-2px); }
.btn-outline{ border-color: currentColor; background: transparent; }
.btn-outline:hover{ background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-outline-dark{ border-color: var(--maroon); color: var(--maroon); background:transparent; }
.btn-outline-dark:hover{ background: var(--maroon); color:var(--white); }
.btn-sm{ padding: 9px 18px; font-size:.85rem; }

/* ---------- Arch divider (signature motif) ---------- */
.arch-divider{
  height: 30px; width:100%;
  background-repeat: repeat-x; background-position: bottom left; background-size: 40px 30px;
}
.arch-divider--onSandstone{ background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath fill='%23E4D2AC' d='M0,30 L0,19 C0,9 5,2 15,2 C25,2 30,9 30,19 L30,30 Z'/%3E%3C/svg%3E"); }
.arch-divider--onWhite{ background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath fill='%23FFFFFF' d='M0,30 L0,19 C0,9 5,2 15,2 C25,2 30,9 30,19 L30,30 Z'/%3E%3C/svg%3E"); }
.arch-divider--onMaroon{ background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath fill='%234A0A20' d='M0,30 L0,19 C0,9 5,2 15,2 C25,2 30,9 30,19 L30,30 Z'/%3E%3C/svg%3E"); }
.arch-divider--flip{ transform: scaleY(-1); }

/* Arch-top card frame — reused for hero image, quick links, profiles */
.arch-frame{
  position:relative; overflow:hidden;
  border-radius: 140px 140px 14px 14px / 90px 90px 14px 14px;
}

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index:100;
  background: var(--white); border-bottom:1px solid var(--line);
}
.utility-bar{
  background: var(--maroon-deep); color: var(--sandstone); font-size:.78rem;
}
.utility-bar .container{ display:flex; align-items:center; justify-content:space-between; height:36px; gap:16px; }
.utility-bar a{ opacity:.9; } .utility-bar a:hover{ opacity:1; color:var(--saffron); }
.utility-links{ display:flex; gap:18px; }
.utility-links li{ display:flex; align-items:center; gap:6px; }
.lang-toggle{ display:flex; border:1px solid rgba(228,210,172,.4); border-radius:999px; overflow:hidden; }
.lang-toggle button{ background:transparent; border:0; color:inherit; padding:3px 12px; font-size:.75rem; font-weight:600; }
.lang-toggle button.active{ background: var(--saffron); color: var(--maroon-deep); }

.nav-row{ display:flex; align-items:center; justify-content:space-between; padding: 14px 0; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-crest{ width:46px; height:46px; flex-shrink:0; }
.brand-text .name-hi{ font-family: var(--font-display); font-size:1.25rem; color:var(--maroon); display:block; line-height:1.1; }
.brand-text .name-en{ font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft); }

.main-nav{ display:none; }
@media (min-width: 1100px){
  .main-nav{ display:flex; align-items:center; gap: 4px; }
  .main-nav > li{ position:relative; }
  .main-nav > li > a{ display:flex; align-items:center; gap:5px; padding: 10px 14px; font-weight:600; font-size:.92rem; border-radius:8px; }
  .main-nav > li > a:hover{ background: var(--sandstone); color: var(--maroon); }
  .main-nav .chevron{ width:9px; height:9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform: rotate(45deg); margin-top:-3px; opacity:.6; }
  .mega{
    position:absolute; top: calc(100% + 10px); left:0; min-width:240px;
    background:var(--white); border:1px solid var(--line); border-radius: var(--radius-md);
    box-shadow: var(--shadow-2); padding: 10px; opacity:0; visibility:hidden; transform: translateY(6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .main-nav > li:hover .mega, .main-nav > li:focus-within .mega{ opacity:1; visibility:visible; transform:translateY(0); }
  .mega a{ display:block; padding:9px 12px; border-radius:8px; font-size:.9rem; color:var(--ink-soft); }
  .mega a:hover{ background: var(--sandstone); color:var(--maroon); }
}
.nav-toggle{ display:flex; align-items:center; gap:8px; background:none; border:1.5px solid var(--maroon); color:var(--maroon); border-radius:999px; padding:8px 14px; font-weight:600; font-size:.85rem; }
@media (min-width:1100px){ .nav-toggle{ display:none; } }
.header-cta{ display:none; }
@media (min-width:1100px){ .header-cta{ display:flex; gap:10px; } }

.mobile-drawer{
  position:fixed; inset:0; background: rgba(36,26,20,.5); z-index:200;
  opacity:0; visibility:hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.mobile-drawer.open{ opacity:1; visibility:visible; }
.mobile-drawer .panel{
  position:absolute; top:0; right:0; height:100%; width:min(340px,86vw);
  background:var(--white); padding:20px; overflow-y:auto;
  transform: translateX(20px); transition: transform .25s var(--ease);
}
.mobile-drawer.open .panel{ transform:translateX(0); }
.mobile-drawer details{ border-bottom:1px solid var(--line); }
.mobile-drawer summary{ padding:14px 4px; font-weight:700; color:var(--maroon); display:flex; justify-content:space-between; }
.mobile-drawer summary::-webkit-details-marker{ display:none; }
.mobile-drawer .sub-links{ padding: 0 4px 14px 12px; display:flex; flex-direction:column; gap:10px; }
.mobile-drawer .sub-links a{ color:var(--ink-soft); }
.drawer-close{ background:none; border:none; font-size:1.6rem; color:var(--maroon); line-height:1; }

/* ---------- Hero ---------- */
.hero{
  position:relative; background: linear-gradient(160deg, var(--maroon-deep), var(--maroon) 60%);
  color:var(--white); overflow:hidden;
}
.hero::before{
  content:""; position:absolute; inset:0; opacity:.14; pointer-events:none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M40 4 78 40 40 76 2 40Z' fill='none' stroke='%23E4D2AC' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.hero-grid{ position:relative; display:grid; gap:40px; padding: 56px 0 0; }
@media (min-width:960px){ .hero-grid{ grid-template-columns: 1.1fr .9fr; align-items:center; padding-top:64px; } }
.hero-eyebrow{ color: var(--sandstone); }
.hero h1{ color:var(--white); font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); margin-bottom:.3em; }
.hero h1 .hi{ display:block; font-size:1.4em; }
.hero h1 .en{ display:block; font-size:.42em; letter-spacing:.06em; color: var(--sandstone); font-family:var(--font-body); font-weight:600; text-transform:uppercase; }
.hero p.lede{ font-size:1.1rem; color: rgba(255,255,255,.85); max-width:46ch; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:26px; }
.hero-figure{ position:relative; }
.hero-figure .arch-frame{ aspect-ratio: 4/5; background: linear-gradient(150deg,var(--sandstone),var(--sandstone-dark)); }
.hero-figure .arch-frame .scene{ position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center; }
.hero-figure figcaption{ margin-top:14px; font-size:.85rem; color: var(--sandstone); text-align:center; }
.hero-badge{
  position:absolute; left:-18px; bottom: 40px; background:var(--saffron); color:var(--maroon-deep);
  padding: 14px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-2); font-weight:700; max-width:190px; font-size:.85rem;
}
@media (max-width:600px){ .hero-badge{ position:static; margin-top:16px; max-width:none; } }

/* ---------- Stats ---------- */
.stats-strip{ background:var(--white); border-bottom:1px solid var(--line); }
.stats-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 28px 20px; padding: 40px 0; text-align:center; }
@media (min-width:768px){ .stats-grid{ grid-template-columns: repeat(6,1fr); } }
.stat b{ display:block; font-family:var(--font-display); font-size: clamp(1.6rem,1.2rem+1.4vw,2.3rem); color:var(--maroon); }
.stat span{ font-size:.78rem; color:var(--ink-soft); }

/* ---------- Quick links ---------- */
.quick-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:18px; }
@media (min-width:640px){ .quick-grid{ grid-template-columns: repeat(3,1fr); } }
@media (min-width:1000px){ .quick-grid{ grid-template-columns: repeat(6,1fr); } }
.quick-tile{
  background:var(--white); text-align:center; padding: 26px 12px 20px; border-radius: 90px 90px 12px 12px / 55px 55px 12px 12px;
  border:1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.quick-tile:hover{ transform: translateY(-6px); box-shadow: var(--shadow-1); border-color: var(--saffron); }
.quick-tile .icon{ width:40px; height:40px; margin:0 auto 12px; color:var(--maroon); }
.quick-tile span{ font-weight:700; font-size:.88rem; color:var(--ink); }

/* ---------- Cards: news / events / profiles / directory ---------- */
.card-grid{ display:grid; gap:24px; }
@media (min-width:700px){ .card-grid--3{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:640px){ .card-grid--2{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:900px){ .card-grid--4{ grid-template-columns:repeat(4,1fr); } }

.card{ background:var(--white); border:1px solid var(--line); border-radius: var(--radius-md); overflow:hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-1); }
.card-media{ aspect-ratio:16/10; background: linear-gradient(135deg,var(--sandstone),var(--sandstone-dark)); position:relative; display:flex; align-items:center; justify-content:center; color:var(--maroon); }
.card-body{ padding:18px 20px 22px; }
.card-tag{ display:inline-block; font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--emerald); background:rgba(14,107,76,.1); padding:4px 10px; border-radius:999px; margin-bottom:10px; }
.card h3{ font-size:1.08rem; margin-bottom:.35em; }
.card .meta{ font-size:.82rem; color: var(--ink-faint); display:flex; gap:12px; margin-top:10px; }
.card p{ color:var(--ink-soft); font-size:.93rem; }

.profile-card .card-media{ aspect-ratio:1/1; border-radius: 90px 90px 0 0; }
.profile-card .card-body{ text-align:center; }
.profile-card .role{ font-size:.82rem; color:var(--saffron-deep); font-weight:700; }

/* ---------- Announcement marquee ---------- */
.announce-bar{ background: var(--saffron); color:var(--maroon-deep); overflow:hidden; }
.announce-bar .container{ display:flex; align-items:center; gap:14px; padding:11px 20px; }
.announce-bar .label{ font-weight:800; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; flex-shrink:0; }
.marquee{ overflow:hidden; white-space:nowrap; flex:1; mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.marquee span{ display:inline-block; padding-left:100%; animation: scroll-left 26s linear infinite; font-weight:600; font-size:.9rem; }
@keyframes scroll-left{ to{ transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce){ .marquee span{ animation:none; padding-left:0; } }

/* ---------- Timeline ---------- */
.timeline{ position:relative; padding-left: 30px; border-left: 3px solid var(--sandstone-dark); display:flex; flex-direction:column; gap:34px; }
.timeline-item{ position:relative; }
.timeline-item::before{ content:""; position:absolute; left:-38px; top:4px; width:14px; height:14px; border-radius:50%; background:var(--saffron); border:3px solid var(--white); box-shadow:0 0 0 2px var(--maroon); }
.timeline-item .year{ font-family:var(--font-display); color:var(--maroon); font-size:1.3rem; }

/* ---------- Gallery masonry ---------- */
.masonry{ column-count:1; column-gap:16px; }
@media (min-width:640px){ .masonry{ column-count:2; } }
@media (min-width:960px){ .masonry{ column-count:3; } }
.masonry .tile{ break-inside:avoid; margin-bottom:16px; border-radius:var(--radius-sm); overflow:hidden; position:relative; }
.masonry .tile .ph{ width:100%; background:linear-gradient(160deg,var(--sandstone),var(--sandstone-dark)); display:flex; align-items:center; justify-content:center; color:var(--maroon); }
.masonry .tile figcaption{ position:absolute; left:0; right:0; bottom:0; padding:12px; font-size:.78rem; background:linear-gradient(0deg,rgba(36,20,20,.75),transparent); color:var(--white); opacity:0; transition:opacity .2s; }
.masonry .tile:hover figcaption{ opacity:1; }

/* ---------- Map + contact ---------- */
.map-embed{ border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--line); aspect-ratio:16/9; }
.map-embed iframe{ width:100%; height:100%; border:0; }

.info-list{ display:flex; flex-direction:column; gap:16px; }
.info-list li{ display:flex; gap:14px; align-items:flex-start; }
.info-list .icon{ width:22px; height:22px; flex-shrink:0; color:var(--saffron); margin-top:2px; }

/* ---------- Forms ---------- */
.form-grid{ display:grid; gap:16px; }
@media (min-width:600px){ .form-grid.two-col{ grid-template-columns:1fr 1fr; } }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:.85rem; font-weight:700; color:var(--maroon-deep); }
.field input, .field select, .field textarea{
  border:1.5px solid var(--line); border-radius:8px; padding:11px 13px; font-family:inherit; font-size:.95rem; background:var(--white); color:var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--saffron); }
.field.full{ grid-column: 1 / -1; }

/* ---------- Filter / directory ---------- */
.filter-bar{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:28px; }
.filter-chip{ padding:9px 16px; border-radius:999px; border:1.5px solid var(--line); font-size:.85rem; font-weight:600; color:var(--ink-soft); background:var(--white); }
.filter-chip.active, .filter-chip:hover{ border-color:var(--maroon); color:var(--maroon); background: var(--sandstone); }

/* ---------- Breadcrumbs / page hero (interior pages) ---------- */
.page-hero{ background: var(--sandstone); padding: 44px 0 62px; position:relative; }
.breadcrumbs{ font-size:.82rem; color:var(--ink-soft); display:flex; gap:8px; margin-bottom:14px; }
.breadcrumbs a{ color:var(--maroon); font-weight:600; }
.page-hero h1{ font-size: clamp(1.8rem,1.4rem+1.8vw,2.7rem); }
.page-hero p{ max-width:62ch; color:var(--ink-soft); font-size:1.05rem; }

/* ---------- CTA band ---------- */
.cta-band{ background: var(--emerald-deep); color:var(--white); text-align:center; padding:60px 0; }
.cta-band h2{ color:var(--white); }
.cta-band .actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:22px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--maroon-deep); color: rgba(228,210,172,.85); }
.footer-top{ padding: 56px 0 30px; display:grid; gap:34px; grid-template-columns: 1fr; }
@media (min-width:768px){ .footer-top{ grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand .name-hi{ color:var(--white); font-family:var(--font-display); font-size:1.4rem; }
.footer-brand p{ font-size:.9rem; max-width:34ch; margin-top:10px; }
.footer-col h4{ color:var(--sandstone); font-family:var(--font-body); font-size:.82rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:14px; }
.footer-col li{ margin-bottom:10px; font-size:.92rem; }
.footer-col a:hover{ color:var(--saffron); }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{ width:36px; height:36px; border-radius:50%; border:1px solid rgba(228,210,172,.35); display:flex; align-items:center; justify-content:center; }
.social-row a:hover{ background:var(--saffron); color:var(--maroon-deep); border-color:var(--saffron); }
.footer-bottom{ border-top:1px solid rgba(228,210,172,.18); padding:18px 0; font-size:.8rem; display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float{
  position:fixed; right:18px; bottom:18px; width:56px; height:56px; border-radius:50%;
  background:var(--emerald); color:var(--white); display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-2); z-index:90; animation: pulse-soft 3s ease-in-out infinite;
}
@keyframes pulse-soft{ 0%,100%{ box-shadow:0 0 0 0 rgba(14,107,76,.35), var(--shadow-2);} 50%{ box-shadow:0 0 0 10px rgba(14,107,76,0), var(--shadow-2);} }
@media (prefers-reduced-motion: reduce){ .whatsapp-float{ animation:none; } }

/* ---------- Reveal-on-scroll ---------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; } }

/* ---------- Utility ---------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.flex-between{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--maroon); color:var(--white); padding:12px 18px; z-index:999; border-radius:0 0 8px 0; }
.skip-link:focus{ left:0; }
