/* Nazari Digar — site styles
   Palette is drawn from the logo gold, paired with a deep teal. */

:root {
  --gold: #e5c943;
  --gold-soft: #f6e9a8;
  --gold-ink: #6f5400;
  --teal: #0e4a53;
  --teal-deep: #0a3940;
  --teal-bright: #14808c;
  --coral: #c8402f;
  --coral-dark: #a63323;
  --cream: #fbf4de;
  --paper: #ffffff;
  --ink: #17282b;
  --muted: #4a5b5e;
  --line: #e4dcc2;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(14, 74, 83, 0.12);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--teal-deep);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h1 em { font-style: normal; color: var(--coral); }

p { margin: 0 0 1em; }
a { color: var(--teal-bright); }

:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-teal :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--teal); color: #fff; padding: 0.75rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 0.75rem;
}
.eyebrow-light { color: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.fine { font-size: 0.92rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.65rem 1.4rem;
  font: 700 1rem var(--font-body); text-decoration: none;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 54px; padding: 0.8rem 1.9rem; font-size: 1.08rem; }
.btn-donate { background: var(--coral); color: #fff; }
.btn-donate:hover { background: var(--coral-dark); }
.btn-ghost { border-color: var(--teal); color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-gold { background: var(--gold); color: var(--teal-deep); }
.btn-gold:hover { background: #f0d85e; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); }
[hidden] { display: none !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font: 600 1.3rem var(--font-head); color: var(--teal-deep); text-decoration: none;
}
.brand img { width: 46px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 0.35rem; }
.site-nav a:not(.btn) {
  padding: 0.6rem 0.8rem; border-radius: 8px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.site-nav a:not(.btn):hover { background: var(--cream); color: var(--teal); }
.site-nav .btn { margin-left: 0.5rem; }
.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  min-height: 46px; padding: 0 0.9rem;
  font: 700 1rem var(--font-body); color: var(--teal-deep);
  background: none; border: 2px solid var(--line); border-radius: 999px; cursor: pointer;
}

/* Hero */
.hero { background: var(--cream); padding: clamp(2.5rem, 6vw, 5rem) 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

/* Photo slots */
.photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--gold-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-arch { aspect-ratio: 7 / 8; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); box-shadow: 18px 18px 0 var(--gold); }
.photo-offset { aspect-ratio: 1 / 1; box-shadow: -18px 18px 0 var(--teal); }
.card .photo { aspect-ratio: 10 / 7; border-radius: 0; }
.photo.is-empty {
  background:
    url("assets/logo-mark.png") center / 38% no-repeat,
    linear-gradient(160deg, #fff7d1, var(--gold-soft));
}
.photo.is-empty::after {
  content: "Photo: " attr(data-label);
  position: absolute; left: 50%; bottom: 0.8rem; transform: translateX(-50%);
  font-size: 0.75rem; white-space: nowrap; color: var(--gold-ink);
  background: rgba(255, 255, 255, 0.8); padding: 0.15rem 0.6rem; border-radius: 999px;
}

/* Value band */
.band { background: var(--teal-deep); color: #fff; }
.band-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.5rem 1.4rem; padding: 1.1rem 0;
  font: 500 1.25rem var(--font-head);
}
.band i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-cream { background: var(--cream); }
.section-teal { background: var(--teal); color: #eaf4f5; }
.section-teal h2, .section-teal h3 { color: #fff; }
.section-teal .lead { color: #d5e8ea; }
.section-head { max-width: 40rem; margin: 0 auto 2.75rem; text-align: center; }
.section-head p:last-child { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split > div > p { max-width: 36em; }

.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 2rem; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a3940' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Mission & vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-card { background: var(--paper); border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow); border-top: 6px solid var(--gold); }
.mv-card svg { color: var(--teal-bright); margin-bottom: 1rem; }
.mv-card p { margin: 0; font-size: 1.12rem; }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.values li { padding: 1.1rem 1.25rem; border-left: 4px solid var(--teal-bright); background: rgba(255, 255, 255, 0.6); border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.98rem; color: var(--muted); }
.values strong { display: block; font: 600 1.15rem var(--font-head); color: var(--teal-deep); }

/* Programs */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.photo-strip .photo { aspect-ratio: 4 / 3; }
.programs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.program { display: flex; gap: 1rem; padding: 1.6rem; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 6px solid var(--teal); }
.program:nth-child(3n + 2) { border-top-color: var(--coral); }
.program:nth-child(3n) { border-top-color: var(--gold); }
.program-icon { flex: none; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--teal); }
.program h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.program p { margin: 0; color: var(--muted); }

/* Events */
.events { list-style: none; padding: 0; margin: 0 auto; max-width: 54rem; display: grid; gap: 1rem; }
.event {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--paper); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; box-shadow: var(--shadow);
}
.event h3 { margin-bottom: 0.25rem; }
.event p { margin: 0; color: var(--muted); }
.event .event-cta { margin-top: 0.75rem; font-weight: 700; color: var(--gold-ink); }
.event-date {
  width: 5rem; height: 5rem; border-radius: var(--radius);
  background: var(--teal); color: #fff;
  display: grid; place-content: center; text-align: center; line-height: 1.1;
}
.event-date span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.event-date strong { font: 600 1.6rem var(--font-head); }
.tag { font-size: 0.85rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); white-space: nowrap; }

/* Donate */
.split-donate { align-items: start; }
.notice { border-left: 4px solid var(--gold); padding: 0.2rem 0 0.2rem 1rem; margin: 1.5rem 0; color: #fff; }
.section-teal .fine { color: #c9e0e3; margin-top: 1.5rem; max-width: 34em; }
.give-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.give-list li { display: flex; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.give-list svg { flex: none; color: var(--gold); margin-top: 0.15rem; }
.give-list h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.give-list p { margin: 0; color: #d5e8ea; font-size: 1rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-card { background: var(--cream); border-radius: var(--radius-lg); padding: 2rem; }
.contact-card dl { margin: 0 0 1.5rem; }
.contact-card dt { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.contact-card dd { margin: 0.15rem 0 1.1rem; overflow-wrap: anywhere; }
.social { display: flex; gap: 1.25rem; margin: 1.25rem 0 0; font-weight: 700; }

/* Footer */
.site-footer { background: var(--teal-deep); color: #c9e0e3; padding-top: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; }
.footer-brand { display: flex; gap: 1rem; align-items: center; max-width: 26rem; }
.footer-brand strong { font: 600 1.3rem var(--font-head); color: #fff; }
.footer-brand p { margin: 0.2rem 0 0; font-size: 0.98rem; }
.footer-logo { flex: none; width: 68px; height: 68px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: center; }
.footer-nav a { color: #fff; font-weight: 600; text-decoration: none; padding: 0.6rem 0.7rem; border-radius: 8px; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 1.25rem 0 1.75rem; font-size: 0.9rem; }
.footer-legal p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    padding: 0.75rem 1.25rem 1.25rem; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.85rem 0.75rem; }
  .site-nav .btn { margin: 0.5rem 0 0; }
  .values { grid-template-columns: 1fr 1fr; }
  .programs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hero-inner, .split, .contact, .mv-grid { grid-template-columns: 1fr; }
  .photo-arch { max-width: 22rem; margin-inline: auto; width: calc(100% - 18px); }
  .photo-offset { margin-left: 18px; }
  .event { grid-template-columns: auto 1fr; gap: 1rem; padding: 1.2rem; }
  .event .tag { grid-column: 2; justify-self: start; }
  .event-date { width: 4.2rem; height: 4.2rem; }
  .band-inner { font-size: 1.05rem; }
  .programs { grid-template-columns: 1fr; }
  .photo-strip { gap: 0.6rem; }
  .photo-strip .photo { aspect-ratio: 1 / 1; border-radius: var(--radius); }
}

@media (max-width: 460px) {
  .values { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}

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