:root {
  --color-bg: #ffffff;
  --color-text: #23272a;
  --color-muted: #5b6168;
  --color-border: #e3e6e8;
  --color-primary: #2f5233;
  --color-primary-dark: #203a24;
  --color-surface: #f6f7f5;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3 { line-height: 1.25; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  gap: 0.75rem;
}
.site-title {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-text);
}
.site-nav a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}
.site-nav a:first-child { margin-left: 0; }
.site-nav a:hover { color: var(--color-primary); }

/* Nav toggle — hidden entirely above the mobile breakpoint; the site-nav
   list itself is what's shown/hidden on mobile via .is-open. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { margin-left: 0; padding: 0.6rem 0; }
}

/* Hero — height is locked to the source image's own aspect ratio (1600×722)
   instead of a viewport-relative height, so the full illustration is always
   visible with no cropping (background-size: cover only crops when the
   box's aspect ratio differs from the image's). */
.hero {
  position: relative;
  aspect-ratio: 1600 / 722;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid var(--color-border);
}
.hero__content { width: 100%; max-width: 640px; text-align: left; }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: #fff;
}
.hero p { color: rgba(255, 255, 255, 0.92); font-size: 1.15rem; margin: 0.25rem 0; }
.hero .service-times {
  margin-top: 0.75rem;
  font-weight: 600;
  color: #fff;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.btn--outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: calc(0.6rem - 2px) calc(1.1rem - 2px);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

@media (max-width: 640px) {
  .hero {
    /* The full-image aspect ratio makes for an awkwardly short hero on a
       narrow portrait screen, so mobile goes back to a fixed viewport
       height with a cropped, centered image instead. */
    aspect-ratio: unset;
    height: 60vh;
    min-height: 400px;
  }
  .hero__content { text-align: center; margin: 0 auto; }
  .hero__cta { justify-content: center; }
}

/* Sections */
.section {
  padding: 2.5rem 0;
}
.section + .section {
  border-top: 1px solid var(--color-border);
}
.section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}
.section__header h2 { margin: 0; }
.section__header a { font-size: 0.95rem; }

/* Card grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--color-bg);
}
.card img { aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { padding: 1rem; }
.card__meta { color: var(--color-muted); font-size: 0.85rem; margin: 0 0 0.4rem; }
.card__title { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card__excerpt { color: var(--color-muted); font-size: 0.95rem; margin: 0; }

/* Events list */
.event-month {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 2rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.event-month:first-child { margin-top: 0; }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-item {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
}
.event-item__date {
  flex: 0 0 70px;
  text-align: center;
  background: var(--color-surface);
  border-radius: 6px;
  padding: 0.4rem 0.25rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.event-item__date .day { display: block; font-size: 1.3rem; }
.event-item__date .mon { display: block; font-size: 0.75rem; text-transform: uppercase; }
.event-item__title { margin: 0 0 0.2rem; font-size: 1.05rem; }
.event-item__meta { color: var(--color-muted); font-size: 0.9rem; margin: 0; }
.event-item--past { opacity: 0.6; }

/* Bulletins list */
.bulletin-list { list-style: none; margin: 0; padding: 0; }
.bulletin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.bulletin-item__title { margin: 0 0 0.2rem; font-size: 1.05rem; }
.bulletin-item__meta { color: var(--color-muted); font-size: 0.9rem; margin: 0; }

/* Post / page prose */
/* Longhand on purpose: this combines with .wrap on the same element
   (<div class="wrap page">), and a shorthand `padding: 2.5rem 0` here
   would reset .wrap's left/right padding back to 0 since both rules
   have equal specificity — invisible on desktop where .wrap's max-width
   centers the content anyway, but it pins mobile text flush to the
   screen edges. */
.post, .page { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.page__intro { color: var(--color-muted); margin-top: -0.5rem; }
.post__meta { color: var(--color-muted); margin-top: -0.5rem; }
.post__image { margin: 1.5rem 0; border-radius: 8px; overflow: hidden; }
.post__back { margin-bottom: 1rem; }
.prose :first-child { margin-top: 0; }
.prose { max-width: 70ch; }
.prose img { border-radius: 8px; margin: 1.25rem 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-grid iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 8px;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 0.85rem; }
.contact-list .label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-muted); }

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: var(--color-primary-dark); color: #fff; }
.btn--primary { background: var(--color-primary); }
.btn--primary:hover { background: var(--color-primary-dark); }

/* Facebook embed */
.fb-embed-wrap { display: flex; justify-content: center; }

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer__links a { margin-right: 1rem; }
.site-footer__copy {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
}
