/* ==========================================================================
   Goutham Buddha Development Society: site stylesheet
   Roboto is loaded locally from css/font-faces.css. No external resources.
   ========================================================================== */

:root {
  --dark: #10302A;
  --deep: #0B241F;
  --accent: #1F5A4D;
  --text: #33423E;
  --muted: #55655F;
  --bg: #F6F7F2;
  --white: #FFFFFF;
  --border: #DDE3DC;
  --tint: #DCE6DC;
  --soft: #E9EEE6;
  --gold: #F2B01E;
  --label: #8A5F00;
  --radius-card: 10px;
  --radius-btn: 6px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3 { color: var(--dark); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 24px; }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--dark); padding: 10px 16px;
  border-radius: var(--radius-btn); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- labels, links, buttons ---------- */
.label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--label); margin: 0 0 12px;
}
.label-gold { color: var(--gold); }
.lead { font-size: 19px; line-height: 1.6; max-width: 62ch; }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius-btn);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; line-height: 1.2;
}
.btn-gold, .btn-primary { background: var(--gold); color: var(--dark); }
.btn-gold:hover, .btn-primary:hover { background: #DDA015; }
.btn-outline-light { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.btn-outline-light:hover { background: #FFFFFF; color: var(--dark); }

.mark, .placeholder {
  background: #FFF3C4; color: #5A3E00; padding: 1px 6px; border-radius: 4px; font-weight: 700;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--dark); font-weight: 700; font-size: 17px; line-height: 1.2; }
.brand img { width: 48px; height: 48px; border-radius: 6px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
  color: var(--dark); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); font-weight: 700; }
.header-donate { min-height: 44px; flex-shrink: 0; }
.header-donate[aria-current="page"] { outline: 3px solid var(--dark); outline-offset: 2px; }
.menu-toggle {
  display: none; min-height: 44px; min-width: 44px; padding: 8px 14px; margin-left: auto;
  background: var(--white); color: var(--dark); border: 2px solid var(--dark);
  border-radius: var(--radius-btn); font: inherit; font-weight: 700; cursor: pointer;
}

@media (max-width: 1019px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border); margin: 0;
    padding: 8px 24px 16px; box-shadow: 0 8px 16px rgba(16,48,42,0.08);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { width: 100%; border-bottom: 1px solid var(--border); border-left: 4px solid transparent; }
  .site-nav a[aria-current="page"] { border-left-color: var(--gold); border-bottom-color: var(--border); }
  .header-inner { position: relative; gap: 12px; }
  .header-donate { margin-left: 0; }
  .header-donate { padding: 8px 14px; }
}
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .brand span { font-size: 14px; }
  .brand img { width: 40px; height: 40px; }
  .menu-toggle { padding: 8px 10px; }
  .header-donate { padding: 8px 12px; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; background: var(--bg); }
.section-soft { background: var(--soft); }
.section-white { background: var(--white); }
.section-dark { background: var(--dark); color: #E6EEE9; }
.section-dark h2 { color: var(--white); }
.section-cta { margin-top: 32px; }

.page-head { background: var(--dark); color: #E6EEE9; padding: 72px 0 64px; }
.page-head h1 { color: var(--white); }
.page-head .label { color: var(--gold); }
.page-head .lead { color: #E6EEE9; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-flip > div:first-child { order: 2; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; margin-top: 32px; }
.card-grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 24px; display: flex; flex-direction: column;
}
.card h2 { font-size: 26px; }
.card p:last-child { margin-bottom: 0; }
.card .text-link { margin-top: auto; }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); margin-bottom: 20px; }
.section-soft .card { background: var(--white); }

.photo { width: 100%; border-radius: var(--radius-card); object-fit: cover; aspect-ratio: 4 / 3; }
.hero .photo { aspect-ratio: 4 / 3.4; }
.photo-small { margin-top: 32px; max-width: 420px; }
.photo-small .photo { aspect-ratio: 4 / 3; }

.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px; }

.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
.facts dt { font-weight: 700; color: var(--dark); }
.facts dd { margin: 0; }
.facts a { word-break: break-word; }

.steps { list-style: none; counter-reset: step; margin-top: 16px; }
.steps li {
  counter-increment: step; position: relative; padding: 16px 16px 16px 64px; margin-bottom: 12px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--dark); color: var(--white); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.status { font-weight: 700; color: var(--dark); background: var(--tint); display: inline-block; padding: 6px 12px; border-radius: var(--radius-btn); }

/* ---------- home hero and donate band ---------- */
.hero { background: var(--dark); color: #E6EEE9; padding: 88px 0; }
.hero h1 { color: var(--white); }
.hero .label { color: var(--gold); }
.hero .lead { color: #E6EEE9; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.donate-band { padding: 64px 0; }
.donate-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.donate-band h2 { margin-bottom: 8px; }
.donate-band p { margin: 0; max-width: 56ch; }

/* ---------- person cards (committee) ---------- */
.person { align-items: center; text-align: center; }
.person h3 { font-size: 21px; margin-bottom: 4px; }
.role { color: var(--muted); margin: 0; font-weight: 500; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; background: var(--tint); color: var(--dark);
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700;
  margin-bottom: 16px; letter-spacing: 0.02em;
}

/* ---------- gallery ---------- */
.gallery-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-link { display: block; border-radius: var(--radius-card); overflow: hidden; min-height: 44px; }
.gallery-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
.gallery-link:hover .gallery-img { transform: scale(1.02); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; color: #FFFFFF;
}
.lightbox::backdrop { background: rgba(11,36,31,0.94); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 72px; }
.lb-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius-card); }
.lb-caption { margin-top: 12px; text-align: center; color: #E6EEE9; max-width: 70ch; }
.lightbox button {
  position: absolute; min-height: 44px; min-width: 44px; background: var(--white); color: var(--dark);
  border: 0; border-radius: var(--radius-btn); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer;
}
.lb-close { top: 16px; right: 16px; padding: 8px 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 30px; }

/* ---------- contact form and map ---------- */
.form { display: grid; gap: 8px; }
.form label { font-weight: 700; color: var(--dark); margin-top: 8px; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text); background: var(--white); width: 100%;
  min-height: 44px; padding: 10px 12px; border: 1px solid #9AA8A1; border-radius: var(--radius-btn);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; margin-top: 16px; }
.map-section iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: #D7E2DC; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.footer-name { color: var(--white); font-weight: 700; font-size: 18px; }
.footer-heading { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; }
.site-footer .plain { list-style: none; }
.site-footer .plain li { margin-bottom: 8px; }
.legal { margin-top: 48px; padding: 20px 24px 28px; border-top: 1px solid #1E4A40; font-size: 15px; }
.legal p { margin: 0; }

/* ---------- thank you ---------- */
.thanks { min-height: 60vh; display: flex; align-items: center; }
.thanks-mark {
  width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--tint);
  color: var(--dark); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700;
}

/* ---------- responsive ---------- */
@media (max-width: 1019px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .split-flip > div:first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .page-head { padding: 52px 0 44px; }
  .lead { font-size: 17px; }
  .panel { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 4px; }
  .facts dt { margin-top: 12px; }
  .lightbox figure { padding: 56px 16px 72px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
