/* ==========================================================================
   Albury-Wodonga Hindu Vaidic Sewa Samiti — Vedic Warmth Editorial
   Hand-authored single stylesheet, no framework.
   ========================================================================== */

:root {
  --ground: #faf7f2;
  --ground-alt: #ede4d5;
  --ground-deep: #efe7db;
  --ink: #221c17;
  --muted: #5a4d42;
  --muted-light: #8c7e71;
  --accent: #c85a17;
  --accent-2: #d97736;
  --accent-3: #e07a3c;
  --accent-hover: #b04a0e;
  --dark: #1b1511;
  --darker: #120d0a;
  --dark-panel: #291f18;
  --dark-line: #443326;
  --line: #e2d6c5;
  --line-soft: #e6ddd0;
  --card: #f0e9dc;
  --cream-text: #faf7f2;
  --font-display: "Didot", "Bodoni 72", "Bodoni MT", "Big Caslon", Georgia, serif;
  --font-body: "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --font-sans: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(27, 21, 17, 0.06);
  --shadow-accent: 0 2px 12px rgba(200, 90, 23, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-2); color: #fff; }

h1, h2, h3, h4, .font-display { font-family: var(--font-display); font-weight: 400; }

img { display: block; max-width: 100%; }

a { color: inherit; }

.wrap { max-width: 80rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 640px) { .wrap { padding-left: 2rem; padding-right: 2rem; } }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--dark); color: var(--cream-text);
  padding: 0.75rem 1.25rem; z-index: 200; font-size: 0.85rem; font-family: var(--font-sans);
}
.skip-link:focus { left: 0; }

/* ---------- Motion ---------- */
@keyframes d1-up { from { transform: translateY(115%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes d1-fade { from { opacity: 0; transform: translateY(14px); } to { transform: translateY(0); opacity: 1; } }
@keyframes d1-marquee { to { transform: translateX(-50%); } }

.ln { display: block; overflow: hidden; }
.ln > span { display: block; animation: d1-up 0.95s cubic-bezier(0.2, 0.7, 0, 1) both; }
.ln:nth-child(2) > span { animation-delay: 0.12s; }
.ln:nth-child(3) > span { animation-delay: 0.24s; }
.d1-fade-sub { animation: d1-fade 0.8s 0.45s cubic-bezier(0.2, 0.7, 0, 1) both; }
.d1-fade-act { animation: d1-fade 0.8s 0.65s cubic-bezier(0.2, 0.7, 0, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Registry bar ---------- */
.registry-bar {
  background: #1f1915; color: #e8dfd5;
  font-family: var(--font-sans); font-size: 0.75rem;
  padding: 0.625rem 1rem; border-bottom: 1px solid #3b322a;
}
.registry-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-left: 0; padding-right: 0; }
.registry-left { display: flex; align-items: center; gap: 0.75rem; letter-spacing: 0.02em; }
.registry-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); flex-shrink: 0; }
.registry-right { display: flex; align-items: center; gap: 1rem; color: #bfb3a4; font-family: var(--font-mono); font-size: 0.6875rem; }
.registry-right .sep { display: none; }
@media (min-width: 768px) { .registry-right .sep { display: inline; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-sans);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: 0.875rem; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; color: var(--accent); flex-shrink: 0; transition: transform 0.5s ease; }
.brand:hover .brand-mark { transform: rotate(12deg); }
.brand-name { display: block; font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
@media (min-width: 768px) { .brand-name { font-size: 1.1rem; } }
.brand-sub { display: block; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: #7a6d61; margin-top: 0.15rem; }

.main-nav { display: none; align-items: center; gap: 1.75rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #52463c; }
.main-nav a { text-decoration: none; transition: color 0.2s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
@media (min-width: 1024px) { .main-nav { display: flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 0.7rem 1.4rem; border-radius: 999px; text-decoration: none; cursor: pointer; border: 0;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-accent { background: var(--accent); color: var(--cream-text); box-shadow: var(--shadow-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.1); color: var(--cream-text); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.2); }
.btn-lg { font-size: 0.9rem; padding: 0.9rem 1.6rem; }
.btn-sm { font-size: 0.75rem; padding: 0.6rem 1.1rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line-soft); border-radius: 10px;
  background: var(--ground); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav { display: none; border-top: 1px solid var(--line-soft); background: var(--ground); }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 0.9rem 1.5rem; text-decoration: none;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:hover { color: var(--accent); background: var(--ground-alt); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92svh; overflow: hidden; display: flex; align-items: flex-end; background: #140f0c; color: var(--cream-text); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, #140f0c 0%, rgba(20, 15, 12, 0.7) 45%, rgba(0, 0, 0, 0.25) 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 6rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .hero-inner { padding-bottom: 6rem; } }
.hero-content { max-width: 56rem; }

.pill {
  display: inline-flex; align-items: center; gap: 0.625rem;
  background: rgba(217, 119, 54, 0.2); border: 1px solid rgba(217, 119, 54, 0.4);
  color: #f4a261; padding: 0.45rem 0.9rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: 0.94; letter-spacing: -0.03em;
  color: var(--cream-text); margin-bottom: 1.5rem; text-wrap: balance;
}
.hero-lede { font-family: var(--font-sans); font-size: 1.1rem; color: #dfd2c4; max-width: 42rem; line-height: 1.65; margin-bottom: 2rem; }
@media (min-width: 768px) { .hero-lede { font-size: 1.25rem; } }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-family: var(--font-sans); }

/* ---------- Marquee ---------- */
.marquee { background: #241c16; color: #dfd4c7; padding: 1rem 0; overflow: hidden; border-top: 1px solid #3d3127; border-bottom: 1px solid #3d3127; }
.marquee-track {
  display: flex; width: max-content; animation: d1-marquee 38s linear infinite;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.marquee-group { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; flex-shrink: 0; }
.marquee-group .tick { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }
.section-tight { padding: 5rem 0; }
.bg-ground { background: var(--ground); }
.bg-alt { background: var(--ground-alt); border-top: 1px solid #dfd2be; }
.bg-deep { background: var(--ground-deep); border-top: 1px solid #dfd3c1; border-bottom: 1px solid #dfd3c1; }
.bg-dark { background: var(--dark); color: var(--cream-text); }

.kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.75rem; }
.kicker-warm { color: var(--accent-3); }

.section-title { font-size: 1.9rem; line-height: 1.08; color: var(--ink); text-wrap: balance; }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }
.bg-dark .section-title { color: var(--cream-text); }
.section-title .accent { font-style: italic; color: var(--accent); }

.rule { width: 64px; height: 2px; background: var(--accent); margin-top: 1.5rem; margin-bottom: 2rem; }
.rule-center { margin-left: auto; margin-right: auto; }

.lede { font-family: var(--font-sans); font-size: 1rem; color: var(--muted); line-height: 1.75; }
@media (min-width: 768px) { .lede { font-size: 1.1rem; } }
.lede + .lede { margin-top: 1.5rem; }
.bg-dark .lede { color: #d4c6b8; }
.lede em { font-family: var(--font-body); }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, 1fr); gap: 3rem; }
  .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; }
}
.section-head { max-width: 48rem; margin-bottom: 4rem; }
.section-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head .lede { margin-top: 1rem; }

/* ---------- Cards ---------- */
.value-card {
  padding: 2rem; border-radius: 1rem; background: var(--card); border: 1px solid var(--line);
  transition: transform 0.3s ease;
}
.value-card:hover { transform: translateY(-4px); }
.value-card h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: 0.5rem; }
.value-card p { font-family: var(--font-sans); font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ---------- Activity cards ---------- */
.activity-card { background: var(--ground); border-radius: 1rem; overflow: hidden; border: 1px solid #d8cab5; display: flex; flex-direction: column; }
.activity-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.activity-media img { width: 100%; height: 100%; object-fit: cover; }
.activity-tag {
  position: absolute; bottom: 0.75rem; left: 0.75rem;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fbf5ed; background: rgba(0, 0, 0, 0.4); padding: 0.3rem 0.625rem; border-radius: 6px;
}
.activity-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
@media (min-width: 768px) { .activity-body { padding: 2rem; } }
.activity-body h3 { font-size: 1.5rem; color: var(--ink); margin-bottom: 0.5rem; }
.activity-body > div > p { font-family: var(--font-sans); font-size: 0.875rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.activity-foot { padding-top: 1rem; border-top: 1px solid #e8ded0; font-family: var(--font-mono); font-size: 0.72rem; color: #7a6d61; }

/* ---------- Photo frame ---------- */
.photo-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 1rem; overflow: hidden; border: 1px solid #423124; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption {
  position: absolute; bottom: 1rem; left: 1rem; right: auto;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-text); background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px);
  padding: 0.4rem 0.75rem; border-radius: 6px;
}
.badge-strip {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.25rem; border-radius: 0.75rem;
  background: #2e231b; border: 1px solid #4a3a2d;
  font-family: var(--font-mono); font-size: 0.72rem; color: #e8ded5;
}
.badge-strip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-3); flex-shrink: 0; }

/* ---------- Beneficiary tiles ---------- */
.bene-tile { padding: 1.5rem; border-radius: 0.75rem; background: #f5ede1; border: 1px solid #e5d8c6; font-family: var(--font-sans); }
.bene-tile .bene-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); margin-bottom: 0.5rem; }
.bene-tile h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin-bottom: 0.25rem; }
.bene-tile p { font-size: 0.75rem; color: #6e5f52; line-height: 1.6; }

/* ---------- Voices empty state ---------- */
.voices-card {
  max-width: 48rem; margin: 0 auto; text-align: center;
  padding: 2.5rem; border-radius: 1.5rem; background: var(--ground); border: 1px solid #d8cbb8;
}
@media (min-width: 768px) { .voices-card { padding: 3rem; } }
.voices-card h3 { font-size: 1.6rem; color: var(--ink); margin-bottom: 1rem; }
@media (min-width: 768px) { .voices-card h3 { font-size: 1.9rem; } }
.voices-card .rule { margin: 0 auto 1.5rem; }
.voices-card p { font-family: var(--font-sans); font-size: 0.95rem; color: #6b5d50; line-height: 1.7; margin-bottom: 1.5rem; }
.voices-card .voices-note { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; color: #99897a; }
.voices-card .voices-note a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ---------- Governance ---------- */
.gov-table { padding: 1rem 1.25rem; border-radius: 0.75rem; background: #f0e8db; border: 1px solid #ded0bf; font-family: var(--font-mono); font-size: 0.72rem; color: #524438; }
.gov-table .gov-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; }
.gov-table .gov-row + .gov-row { border-top: 1px solid #e0d3c2; }
.gov-table .gov-label { color: #7d6c5d; }
.gov-table .gov-value { font-weight: 600; text-align: right; }

.gov-card { padding: 1.5rem; border-radius: 1rem; background: #ffffff; border: 1px solid #e2d5c4; box-shadow: var(--shadow-sm); }
.gov-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 0.5rem; }
.gov-card p { font-family: var(--font-sans); font-size: 0.8rem; color: var(--muted); line-height: 1.65; }

/* ---------- Service area ---------- */
.service-panel { background: var(--ground); border-radius: 1.5rem; padding: 2rem; border: 1px solid #d8c9b5; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .service-panel { padding: 3.5rem; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; color: #635548; }
.chip { padding: 0.4rem 0.75rem; border-radius: 999px; background: #ede4d6; border: 1px solid #d6c7b5; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 1.5rem; font-family: var(--font-sans); }
.faq-item { padding: 1.5rem; border-radius: 1rem; background: #f5ede2; border: 1px solid #e5d9c8; }
@media (min-width: 768px) { .faq-item { padding: 2rem; } }
.faq-item h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.faq-item a { color: var(--accent); font-weight: 600; }
@media (min-width: 768px) { .faq-narrow { max-width: 56rem; margin: 0 auto; } }

/* ---------- Contact ---------- */
.contact-box { padding: 1.5rem; border-radius: 1rem; background: var(--dark-panel); border: 1px solid var(--dark-line); text-align: left; font-family: var(--font-sans); }
.contact-box .cb-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-3); margin-bottom: 0.5rem; }
.contact-box .cb-value { font-family: var(--font-display); font-size: 1.3rem; color: var(--cream-text); word-break: break-all; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .contact-box .cb-value { font-size: 1.5rem; } }
.contact-box .cb-value a { text-decoration: none; }
.contact-box .cb-value a:hover { color: #f4a261; }
.contact-box p { font-size: 0.75rem; color: #a8998a; }
.contact-foot { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; color: #b8a796; margin-top: 3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: var(--muted-light); padding: 3rem 0; border-top: 1px solid #291f18; font-family: var(--font-sans); font-size: 0.75rem; }
.site-footer .wrap { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 768px) { .site-footer .wrap { flex-direction: row; } }
.footer-name { font-family: var(--font-display); font-size: 0.9rem; color: #e8dfd5; display: block; margin-bottom: 0.25rem; }
.footer-reg { font-size: 0.6875rem; color: #786b5f; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: #a39485; }
.footer-nav a { text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent-3); }
