/* Idar 45 Gam Prajapati Samaj – website styles
   Colours are taken from the Samaj logo. Change them here and every page follows. */
:root {
  --maroon: #8F0005;
  --maroon-dark: #6B0004;
  --maroon-light: #B3262B;
  --gold: #DFAB49;
  --gold-dark: #B9862A;
  --gold-soft: #FBEBCB;
  --cream: #FFF8EE;
  --paper: #FFFFFF;
  --ink: #2A1A14;
  --muted: #6B5B53;
  --line: #EEDFCB;
  --success: #1F7A3E;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(80, 30, 10, .07);
  --shadow-lg: 0 12px 34px rgba(80, 30, 10, .14);
  --wrap: 1180px;
  --font: "Noto Sans", "Noto Sans Gujarati", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-gu: "Noto Sans Gujarati", "Noto Sans", "Shruti", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
html[lang="gu"] body { font-family: var(--font-gu); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--maroon-light); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; color: var(--maroon-dark); }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--maroon); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.topline { height: 5px; background: linear-gradient(90deg, var(--maroon), var(--gold), var(--maroon)); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--maroon-dark); min-width: 0; }
.brand img { width: 54px; height: 54px; flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 1.08rem; line-height: 1.25; }
.brand-sub { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { font-weight: 700; font-size: .9rem; text-decoration: none; border: 1.5px solid var(--gold); color: var(--maroon-dark); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.lang-switch:hover { background: var(--gold-soft); color: var(--maroon-dark); }
.menu-toggle { display: none; background: var(--maroon); color: #fff; border: 0; border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }

.main-nav { border-top: 1px solid var(--line); background: var(--paper); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a { display: block; padding: 11px 13px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--maroon); border-bottom-color: var(--gold); }
.main-nav a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--maroon); }
.main-nav .nav-cta { margin-left: auto; }
.main-nav .nav-cta a { color: var(--maroon); }

@media (max-width: 1060px) {
  .menu-toggle { display: inline-block; }
  .js .main-nav { display: none; }
  .js .main-nav.open { display: block; max-height: calc(100vh - 82px); overflow-y: auto; }
  .main-nav ul { flex-direction: column; padding: 6px 0 12px; }
  .main-nav a { border-bottom: 0; border-left: 4px solid transparent; padding: 12px 16px; font-size: 1.02rem; }
  .main-nav a[aria-current="page"] { border-left-color: var(--maroon); background: var(--cream); }
  .main-nav .nav-cta { margin-left: 0; }
}
@media (max-width: 560px) {
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: .95rem; }
  .brand-sub { display: none; }
  .lang-switch { padding: 5px 10px; font-size: .82rem; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .menu-toggle { padding: 8px 11px; }
  body { font-size: 16px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--maroon); background: var(--maroon); color: #fff; font: inherit; font-weight: 700; cursor: pointer; line-height: 1.3; }
.btn:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--maroon-dark); }
.btn-gold:hover { background: #fff; border-color: #fff; color: var(--maroon-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(circle at 85% 40%, #fff 0, var(--cream) 55%), var(--cream); padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero .eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: var(--maroon); border: 1.5px solid var(--maroon); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); color: var(--maroon); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; margin-bottom: 26px; }
.hero-logo { justify-self: center; width: min(340px, 80%); filter: drop-shadow(0 16px 30px rgba(143, 0, 5, .18)); }
@media (max-width: 820px) {
  .hero { padding: 36px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { order: -1; width: 190px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
}

/* ---------- Page header ---------- */
.page-head { background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%); color: #fff; padding: 40px 0 36px; }
.page-head h1 { color: #fff; margin-bottom: .25em; }
.page-head p { color: #F6E4C6; margin: 0; max-width: 46em; font-size: 1.08rem; }
.breadcrumb { font-size: .88rem; margin-bottom: 10px; color: #F6E4C6; }
.breadcrumb a { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.kicker { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--gold); color: inherit; }
.card .icon { font-size: 1.9rem; line-height: 1; margin-bottom: 10px; }
.card .meta { color: var(--muted); font-size: .92rem; }
.card-img { margin: -22px -22px 16px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--gold-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--maroon-dark); margin: 0 6px 8px 0; }
.tag-maroon { background: var(--maroon); color: #fff; }

/* Content pages */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .35em; }
.layout-side { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .layout-side { grid-template-columns: 1fr; } }

/* Notices */
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px dashed var(--gold-dark); border-radius: var(--radius); padding: 20px 22px; color: var(--muted); }
.notice .icon { font-size: 1.6rem; line-height: 1; }
.notice strong { color: var(--maroon-dark); display: block; margin-bottom: 2px; }
.notice p { margin: 0; }
.note { font-size: .92rem; color: var(--muted); background: var(--gold-soft); border-radius: 10px; padding: 12px 16px; }
.privacy-box { border-left: 4px solid var(--success); background: #F0F8F2; border-radius: 10px; padding: 14px 18px; color: #234; }

/* Form slots */
.form-slot { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-slot h2, .form-slot h3 { margin-bottom: .4em; }
.form-slot iframe { width: 100%; min-height: 720px; border: 0; border-radius: 10px; }
.form-pending { text-align: center; padding: 26px 16px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); }
.form-pending .icon { font-size: 2rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; text-align: center; box-shadow: var(--shadow); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: var(--maroon); color: #fff; font-weight: 800; font-size: 1.15rem; }
.steps strong { display: block; color: var(--maroon-dark); }
.steps span { font-size: .93rem; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Lists of items */
.date-badge { flex-shrink: 0; width: 64px; text-align: center; background: var(--maroon); color: #fff; border-radius: 12px; padding: 8px 4px; line-height: 1.15; }
.date-badge b { display: block; font-size: 1.5rem; }
.date-badge small { font-size: .78rem; }
.item-row { display: flex; gap: 16px; align-items: flex-start; }
.stack { display: grid; gap: 16px; }

.person { text-align: center; }
.person img, .person .avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--gold); background: var(--gold-soft); }
.person .avatar { display: grid; place-items: center; font-size: 2.4rem; color: var(--maroon); font-weight: 800; }
.person .role { color: var(--maroon); font-weight: 700; }

.search-box { width: 100%; max-width: 420px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.search-box:focus { border-color: var(--gold-dark); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button { font: inherit; font-size: .9rem; font-weight: 600; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* Gallery */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.album-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--gold-soft); }
.album-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.album-grid a:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(20, 8, 4, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 1.6rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Bands */
.band { background: linear-gradient(120deg, var(--maroon) 0%, var(--maroon-dark) 100%); color: #fff; border-radius: 20px; padding: 34px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { color: #fff; margin-bottom: .2em; }
.band p { color: #F6E4C6; margin: 0; max-width: 40em; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { width: 26px; text-align: center; }
.map-embed iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: #2A0B06; color: #E9D8C4; margin-top: 0; padding: 48px 0 20px; font-size: .95rem; }
.site-footer a { color: #F3DDB4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.footer-brand img { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 2px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; line-height: 1.3; }
.site-footer h3 { color: var(--gold); font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; color: #C9B49C; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Samaj forms (Google Sheet forms) */
.sf-wrap { max-width: 860px; }
.lead-text { font-size: 1.1rem; margin-bottom: 22px; }
.sf-card .btn { margin-top: 6px; }
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--maroon-dark); }
.field label .en { font-weight: 500; color: var(--muted); font-size: .9em; }
.field input, .field select, .field textarea { font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.field input[type="file"] { padding: 9px; background: var(--cream); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px var(--gold-soft); }
.field .hint { color: var(--muted); font-size: .85rem; }
.req { color: #B42318; font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sf-status { margin: 12px 0 0; font-weight: 600; color: var(--maroon-dark); min-height: 1.4em; }
.sf-status.error { color: #B42318; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.sf-done { text-align: center; padding: 36px 24px; }
.sf-done .icon { font-size: 2.6rem; }
.sf-done .btn-row { justify-content: center; margin-top: 14px; }
@media (max-width: 620px) { .sf-grid { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
@media print {
  .site-header, .site-footer, .menu-toggle, .form-slot { display: none; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.sf-check { max-width: 420px; margin: 4px 0 14px; padding: 14px 16px; background: var(--gold-soft); border-radius: 12px; }
.sf-check-row { display: flex; align-items: center; gap: 12px; }
.sf-question { font-size: 1.3rem; font-weight: 800; color: var(--maroon-dark); white-space: nowrap; letter-spacing: .04em; }
.sf-check-row input { max-width: 110px; font-size: 1.15rem; font-weight: 700; text-align: center; }
.note-important { background: #FDECEC; border-left: 5px solid #B42318; color: #5A1410; font-size: 1rem; }
.note-important strong { color: #8F0005; }
#village-list .card { padding: 16px 18px; }
#village-list .card h3 { margin-bottom: .15em; font-size: 1.1rem; }
#village-list .card p.meta:last-child { margin-bottom: 0; }
@media (max-width: 620px) {
  #village-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #village-list .card { padding: 12px 12px; }
  #village-list .card h3 { font-size: 1rem; }
  #village-list .card p.meta { font-size: .85rem; }
}
