@import url("tokens.css");

*, *::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: 18px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-4); }

a {
  color: var(--color-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover { color: var(--color-green-dark); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-green);
  background: var(--color-green);
  color: var(--color-white);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--color-green);
}
.btn--outline:hover {
  background: var(--color-green);
  color: var(--color-white);
}
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-ink);
}
.btn--accent {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-ink);
}
.btn--accent:hover {
  background: var(--color-yellow-soft);
  border-color: var(--color-yellow-soft);
  color: var(--color-ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: var(--space-5);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
}
.site-logo img { width: 44px; height: 44px; }
.site-logo span small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--color-green);
}
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--color-green);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--color-ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
  .site-nav__list { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav.is-open .site-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-5);
    gap: var(--space-3);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open .site-nav__link { padding: var(--space-3) 0; font-size: 1.05rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(33, 46, 45, 0.78) 0%, rgba(49, 83, 61, 0.6) 50%, rgba(33, 46, 45, 0.65) 100%);
}
.hero__inner {
  padding: var(--space-9) 0;
  max-width: 760px;
}
.hero h1 { color: var(--color-white); margin-bottom: var(--space-4); }
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-6);
}
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-yellow);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

/* Page header (non-home pages) */
.page-header {
  background: var(--color-cream);
  padding: var(--space-8) 0 var(--space-7);
  border-bottom: 1px solid var(--color-border);
}
.page-header h1 { margin-bottom: var(--space-3); }
.page-header p { color: var(--color-text-muted); font-size: 1.1rem; max-width: 60ch; margin: 0; }

/* Sections */
section { padding: var(--space-9) 0; }
section.section--tight { padding: var(--space-7) 0; }
section.section--alt { background: var(--color-cream); }
section.section--dark { background: var(--color-green); color: var(--color-white); }
section.section--dark h1,
section.section--dark h2,
section.section--dark h3 { color: var(--color-white); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto var(--space-7); }
.section-header p { color: var(--color-text-muted); font-size: 1.1rem; }

/* Cards / Highlights */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-5);
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: var(--color-green);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: var(--space-3); }
.card p:last-child { margin-bottom: 0; }

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-7);
  align-items: center;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.split__text h2 { margin-bottom: var(--space-4); }

/* Prose blocks */
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: var(--space-2); }

/* Schedule table */
.schedule {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.schedule th, .schedule td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.schedule th {
  background: var(--color-cream);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-ink);
}
.schedule tr:last-child td { border-bottom: 0; }
.schedule td.time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--color-green); white-space: nowrap; }

/* Photo strip */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.photo-strip img {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md);
  width: 100%;
}
@media (max-width: 720px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}
.gallery a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 22, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--space-5);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: var(--radius-md); }
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  background: transparent; border: 0; color: white;
  font-size: 2rem; cursor: pointer;
  width: 44px; height: 44px;
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
}
.faq summary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-green);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > *:not(summary) { margin-top: var(--space-3); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-7);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-2); }
.form label { font-weight: 600; font-size: 0.95rem; color: var(--color-ink); }
.form input,
.form textarea,
.form select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-ink);
  width: 100%;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(49, 83, 61, 0.15);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-status {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-yellow-soft);
  border-left: 4px solid var(--color-green);
  color: var(--color-ink);
}
.form-status.is-error {
  background: #fde2e2;
  border-left-color: #b73838;
}

.contact-info dt {
  font-weight: 700;
  color: var(--color-ink);
  margin-top: var(--space-4);
}
.contact-info dd { margin: var(--space-1) 0 0; color: var(--color-text-muted); }
.contact-info dd a { color: var(--color-green); }

/* Footer */
.site-footer {
  background: var(--color-green-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-8);
}
.site-footer a { color: var(--color-yellow-soft); }
.site-footer a:hover { color: var(--color-white); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-5); }
}
.site-footer h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}
.site-footer__brand p { max-width: 36ch; }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: var(--space-2); }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-4);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* CTA band */
.cta-band {
  background: var(--color-green);
  color: var(--color-white);
  padding: var(--space-7) 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-white); margin-bottom: var(--space-3); }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 50ch; margin: 0 auto var(--space-5); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--color-text-muted); }
.badge {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

/* Map embed */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-5);
}
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* Skip link — visually hidden until keyboard-focused */
.skip-link {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: var(--color-ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  width: auto;
  height: auto;
  padding: var(--space-3) var(--space-4);
  z-index: 200;
  outline: 3px solid var(--color-yellow);
}
