:root {
  --text: #222;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --bg: #fff;
  --soft: #f6f7f8;
  --accent: #0b5ea8;
  --accent-dark: #084a85;
  --max: 760px;
  --wide: 1100px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  position: relative;
  min-height: 260px;
  background: #1d3b55 center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.home .site-header { min-height: 72vh; }
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.45));
}
.site-header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.site-title {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.site-title:hover { color: #fff; }
.site-tagline {
  color: #fff;
  margin: .35rem 0 0;
  font-size: 1.15rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* Navigation */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 .75rem;
  max-width: var(--wide);
  display: flex;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  padding: .9rem .7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-donate a { color: var(--accent); }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 720px) {
  .nav-toggle-label {
    display: block;
    padding: .85rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
  }
  .nav-toggle-label::before { content: "\2630  "; }
  .site-nav ul { display: none; flex-direction: column; padding-bottom: .5rem; }
  .nav-toggle:checked ~ ul { display: flex; }
  .site-nav a { padding: .6rem .6rem; }
}

/* Content */
.site-main { padding: 2.5rem 1.25rem 3rem; }
.page, .section-body { max-width: var(--max); margin: 0 auto; }
.page.wide { max-width: var(--wide); }
h1, h2, h3, h4 { line-height: 1.25; }
h1 {
  font-size: 1rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
}
h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--line); color: #444; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .4rem .55rem; text-align: left; vertical-align: top; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .75rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--accent); border: 2px solid var(--accent); }

/* Home page sections */
.home .site-main { padding: 0; }
.home-section { padding: 3rem 1.25rem; }
.home-section h2 { margin-top: 0; letter-spacing: .12em; text-transform: uppercase; font-size: 1rem; }
.home-photo {
  min-height: 55vh;
  background: center / cover no-repeat;
}

/* "Window" effect from the old theme: the photo stays still while the page
   scrolls over it. Desktop only - iOS doesn't support fixed backgrounds. */
@media (min-width: 768px) and (hover: hover) {
  .home-photo, .home .site-header { background-attachment: fixed; }
}
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.gallery a { display: block; }
figure { margin: 1.5rem 0; }

/* Testimonials */
.testimonials p strong { font-size: 1.1rem; }
.testimonials p em { font-style: normal; }

/* Videos */
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }

/* Forms */
.form-row { margin: 0 0 1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .3rem; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  font: inherit;
}
.form-row textarea { min-height: 10rem; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: .8rem 1rem; border-radius: 6px; margin: 0 0 1.25rem; display: none; }
.notice.show { display: block; }
.notice.error { background: #fdecec; color: #8a1c1c; }

/* Donate */
.support-list { padding-left: 1.2rem; }
.support-list li { margin-bottom: .6rem; }
.donate-box {
  background: var(--soft);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

/* Calendar */
.calendar { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem 1.5rem; margin: 1.5rem 0; }
.cal-month h3 { margin: 0 0 .5rem; font-size: 1rem; }
.cal-grid, .cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-head { grid-column: 1 / -1; color: var(--muted); font-size: .75rem; text-align: center; }
.cal-day {
  text-align: center; font-size: .85rem; padding: .3rem 0; border-radius: 4px;
  font-variant-numeric: tabular-nums; background: var(--soft);
}
.cal-booked { background: var(--accent); color: #fff; font-weight: 700; }
.cal-tentative {
  background: repeating-linear-gradient(135deg, #cfe0f2 0 4px, #e9f1fa 4px 8px);
  color: var(--accent-dark); font-weight: 700;
}
.cal-past { opacity: .35; }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: .9rem; }
.cal-key { display: inline-block; width: 1rem; height: 1rem; border-radius: 3px; background: var(--soft); vertical-align: -.15rem; margin-right: .3rem; }
.cal-key.cal-booked { background: var(--accent); }
.cal-key.cal-tentative { background: repeating-linear-gradient(135deg, #cfe0f2 0 4px, #e9f1fa 4px 8px); }
.cal-list { padding-left: 1.2rem; }
.cal-list li { margin-bottom: .4rem; }

/* News */
.news-list { list-style: none; padding: 0; }
.news-list li { padding: .7rem 0; border-top: 1px solid var(--line); }
.news-list time, .post-date { color: var(--muted); font-size: .9rem; display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: .95rem;
}
.site-footer p { margin: .3rem 0; }
