/* Shri Kamadhenu Goshala Seva Development Trust — site styles */
:root {
  --saffron: #d9650f;
  --saffron-dark: #b04f08;
  --saffron-soft: #fdebd6;
  --green: #2f5d3a;
  --green-dark: #1f4029;
  --cream: #fff8ec;
  --paper: #ffffff;
  --ink: #2b2118;
  --muted: #6a5d50;
  --line: #eadfce;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 40, 15, .10);
  --max: 1160px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Kannada", "Noto Sans Devanagari", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
  color: var(--ink); background: var(--cream);
}
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--saffron-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--green-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw + .5rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + .6rem, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--paper); }
.section--green { background: var(--green-dark); color: #f4efe4; }
.section--green h2, .section--green h3 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--saffron-dark); margin-bottom: .6rem; display: block; }
.section--green .eyebrow { color: #f5b574; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: 2.5rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--green-dark); color: #fff; padding: .7rem 1rem; z-index: 200; }
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  background: var(--saffron); color: #fff; transition: transform .15s, background .15s, box-shadow .15s;
  font-family: inherit;
}
.btn:hover { background: var(--saffron-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: #fff; color: var(--green-dark); }
.btn--outline { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--sm { padding: .55rem 1.2rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Top strip + header */
.topbar { background: var(--green-dark); color: #efe7d6; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,248,236,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--green-dark); }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; line-height: 1.15; font-size: 1.02rem; max-width: 20ch; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-dark); margin-top: 2px; }

.nav ul { list-style: none; display: flex; align-items: center; gap: .3rem; margin: 0; padding: 0; }
.nav a { display: block; padding: .5rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav a:hover { background: var(--saffron-soft); color: var(--saffron-dark); }
.nav a[aria-current="page"] { color: var(--saffron-dark); background: var(--saffron-soft); }
.nav .btn { color: #fff; margin-left: .4rem; }
.nav .btn:hover { background: var(--saffron-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; cursor: pointer; color: var(--green-dark); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .8rem 1rem 1.2rem; }
  .nav a { padding: .8rem 1rem; }
  .nav .btn { margin: .5rem 0 0; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--green-dark); isolation: isolate; overflow: hidden; }
.hero picture, .hero > img { position: absolute; inset: 0; z-index: -2; }
.hero img.hero-bg { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20,38,25,.92) 0%, rgba(20,38,25,.72) 45%, rgba(20,38,25,.25) 100%); }
.hero .container { padding: clamp(4rem, 12vw, 8.5rem) 0; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { max-width: 54ch; font-size: 1.2rem; color: #f3ece0; }
.hero .eyebrow { color: #f5b574; }
.page-hero { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding: clamp(2.8rem, 7vw, 4.5rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero p { color: #e8dfcc; max-width: 62ch; margin: 0; font-size: 1.15rem; }
.crumbs { font-size: .9rem; margin-bottom: .9rem; color: #d7ccb4; }
.crumbs a { color: #fff; }
.crumbs span[aria-hidden] { margin: 0 .4rem; }

/* Grids & cards */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: 0 2px 0 rgba(0,0,0,.02); height: 100%; }
.section--alt .card { background: var(--cream); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--saffron-soft); color: var(--saffron-dark); display: grid; place-items: center; margin-bottom: 1rem; }
.icon svg { width: 28px; height: 28px; }

.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption, figure.photo + small { font-size: .85rem; color: var(--muted); padding: .6rem .9rem; background: var(--paper); }
figure { margin: 0; }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Values strip / CTA */
.cta { background: linear-gradient(120deg, var(--saffron), #e98a2c); color: #fff; border-radius: 20px; padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { color: #fff; margin: 0 0 .3rem; }
.cta p { margin: 0; color: #fff4e4; max-width: 52ch; }
.cta .btn { background: #fff; color: var(--saffron-dark); }
.cta .btn:hover { background: var(--green-dark); color: #fff; }

.quote { font-family: var(--font-head); font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.5; max-width: 40ch; margin: 0 auto; }
.quote cite { display: block; font-family: var(--font-body); font-size: .95rem; font-style: normal; margin-top: 1rem; color: #f5b574; }

/* Trustees */
.person { text-align: center; padding: 0 0 1.25rem; position: relative; overflow: hidden; transition: transform .25s; }
.person:hover { transform: translateY(-4px); }
.avatar { width: 100%; height: 240px; margin: 0 auto 1rem; display: grid; place-items: center; overflow: hidden; background: #f5efe4; }
.avatar img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.03); }
.person h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); gap: 1.15rem; } }
@media (min-width: 700px) and (max-width: 1099px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } .person:last-child { grid-column: 2; } }

/* Gallery */
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery button { display: block; width: 100%; padding: 0; margin: 0 0 1rem; border: 0; background: var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; break-inside: avoid; position: relative; }
.gallery img { width: 100%; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .6rem; text-align: left; color: #fff; font-size: .88rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(10,10,10,.88); }
.lightbox figure { position: relative; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #fff; text-align: center; padding: .8rem; }
.lightbox .close { position: absolute; top: -2.6rem; right: 0; background: #fff; border: 0; border-radius: 999px; width: 2.2rem; height: 2.2rem; font-size: 1.3rem; cursor: pointer; line-height: 1; }

/* Donate / contact */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border: 0; }
.info-list .icon { margin: 0; width: 44px; height: 44px; flex: none; }
.info-list strong { display: block; color: var(--green-dark); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.dl dt { font-weight: 700; color: var(--green-dark); }
.dl dd { margin: 0; word-break: break-word; }
.notice { background: var(--saffron-soft); border-left: 4px solid var(--saffron); padding: 1rem 1.2rem; border-radius: 8px; font-size: .97rem; }
.amounts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.amounts span { border: 2px solid var(--line); border-radius: 999px; padding: .4rem 1.1rem; font-weight: 700; background: var(--paper); }

form .field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; color: var(--green-dark); }
input, select, textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid #d6c8b2; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--saffron); outline: 3px solid rgba(217,101,15,.25); }
textarea { min-height: 140px; resize: vertical; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); background: var(--line); }

/* Footer */
.site-footer { background: #17301f; color: #d9d1c0; padding: 4rem 0 0; font-size: .97rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.site-footer a { color: #f1e6d0; text-decoration: none; }
.site-footer a:hover { color: #f5b574; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding-bottom: 2.5rem; }
.footer-grid > :first-child { grid-column: span 1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-name small { color: #f5b574; }

/* Prose pages */
.prose { max-width: 75ch; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .gallery img { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

@media print { .site-header, .topbar, .site-footer, .cta { display: none; } body { background: #fff; } }
