/* Chaplain Michael Reece — funerals, memorials, and visits
   Calm, warm, dignified. Soft ivory, forest, and gold. */

:root {
  --forest: #2c3a32;
  --forest-dark: #1e2a23;
  --forest-mid: #3d5245;
  --sage: #6f7f6b;
  --gold: #b08a4f;
  --gold-deep: #8f6d38;
  --gold-soft: #d4bc8a;
  --ivory: #f8f4ee;
  --cream: #efe8dc;
  --ink: #2a2824;
  --muted: #5c574e;
  --line: #ddd4c6;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(30, 42, 35, 0.10);
  --radius: 16px;
  --max: 1120px;
  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--forest-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0;
}
.brand {
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
}
.brand strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.brand em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: #d8ddd6;
  font-weight: 400;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  justify-content: flex-start;
}
.nav a {
  color: #f3eee6;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}
.nav a:hover,
.nav a:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 0;
  display: grid;
  align-items: end;
  color: #fff;
  background: #1e2a23 center / cover no-repeat;
  background-image:
    linear-gradient(180deg, rgba(20, 28, 22, 0.38) 0%, rgba(20, 28, 22, 0.42) 40%, rgba(14, 20, 16, 0.88) 100%),
    image-set(url("images/hero-forest.webp") type("image/webp"), url("images/hero-forest.jpg") type("image/jpeg"));
}
.hero-inner { padding: 3.2rem 0 2.5rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 0.7rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 3.15rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 22ch;
  text-wrap: balance;
}
.hero p.lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: 1.14rem;
  color: #f3eee6;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}
.btn-primary {
  background: var(--gold);
  color: #1e2a23;
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-soft); color: #1e2a23; border-color: var(--gold-soft); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.75);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-forest {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.btn-forest:hover { background: var(--forest-mid); color: #fff; }
.btn-wide { min-width: 0; width: 100%; padding-block: 1rem; font-size: 1.08rem; }

/* Trust bar */
.trust {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.25rem;
}
.trust li {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest-dark);
  padding-left: 1.3rem;
  position: relative;
  text-wrap: pretty;
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Sections */
section { padding: 3.2rem 0; }
section[id] { scroll-margin-top: 8.5rem; }
@media (min-width: 861px) {
  section[id] { scroll-margin-top: 5.5rem; }
}
.section-kicker {
  color: var(--gold-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.22;
  margin: 0 0 0.7rem;
  color: var(--forest-dark);
  text-wrap: balance;
}
.intro {
  max-width: 42rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

/* About */
#about { background: var(--ivory); }
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: center;
}
.about-layout:not(:has(.about-photo)) {
  grid-template-columns: 1fr;
  max-width: 46rem;
}
.about-photo {
  margin: 0;
  background: transparent;
}
.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  object-position: center 18%;
  border-radius: 18px;
}
.about-photo figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.55rem 0.15rem 0;
}
.about-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.about-copy p:last-of-type { margin-bottom: 0; }

/* Services */
#services { background: var(--cream); }
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
  box-shadow: 0 8px 24px rgba(30, 42, 35, 0.04);
}
.svc-card svg {
  width: 32px;
  height: 32px;
  color: var(--forest);
  margin-bottom: 0.3rem;
}
.svc-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest-dark);
}
.svc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* How it works */
#how { background: var(--ivory); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.3rem;
  box-shadow: 0 8px 24px rgba(30, 42, 35, 0.04);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--forest-dark);
}
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Split note (chapel / place of service) */
.split-note {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.split-note img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.split-note div { padding: 1.15rem 1.2rem 1.3rem; }
.split-note p { margin: 0 0 0.7rem; color: var(--muted); }
.split-note p:last-child { margin-bottom: 0; }

/* Watch / video */
#watch { background: var(--cream); }
.video-wrap {
  position: relative;
  width: min(52rem, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--forest-dark);
  box-shadow: var(--shadow);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Areas */
#areas { background: var(--ivory); }
.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.towns li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
}

/* FAQ */
#faq { background: var(--cream); }
.faq-list { display: grid; gap: 0.7rem; max-width: 46rem; }
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--forest-dark);
}
details p { margin: 0.6rem 0 0.15rem; color: var(--muted); }

/* Form */
#contact { background: var(--forest-dark); color: #f3eee6; }
#contact h2 { color: #fff; }
#contact .intro { color: #d8ddd6; }
.form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: start;
}
.form-copy p { margin: 0 0 0.9rem; color: #d8ddd6; }
.form-copy p:last-child { margin-bottom: 0; }
.form-card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field.full { grid-column: auto; }
label { font-weight: 700; font-size: 0.9rem; }
.hint { font-weight: 600; color: var(--muted); font-size: 0.8rem; }
.req { color: var(--gold-deep); }
input, select, textarea {
  font: inherit;
  padding: 0.65rem 0.7rem;
  border: 1px solid #cfc6b8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid #e8d7b0;
  border-color: var(--gold);
}
textarea { min-height: 6.5rem; resize: vertical; }
.honey { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-error {
  display: none;
  grid-column: auto;
  background: #fde8e4;
  color: #7a1f12;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.form-error.show { display: block; }
button.btn { border-style: solid; }
.consent {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 600;
}
.consent a { color: var(--gold-deep); }

/* Simple interior pages */
.page-main { padding: 4.2rem 0 5rem; }
.page-main .prose { max-width: 40rem; }
.page-main .prose p { color: var(--muted); }
.page-main .prose h2 { margin-top: 2rem; }
.page-main .prose h2:first-of-type { margin-top: 0.2rem; }

/* Footer */
.site-footer {
  background: var(--forest-dark);
  color: #d8ddd6;
  padding: 2.2rem 0 2.6rem;
  font-size: 0.95rem;
  border-top: 2px solid var(--gold);
}
.site-footer strong { color: #fff; }
.site-footer a { color: var(--gold-soft); }
.site-footer p { margin: 0 0 0.55rem; }
.site-footer p:last-child { margin-bottom: 0; }

/* Desktop and tablet */
@media (min-width: 561px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .btn-wide { min-width: 16rem; width: auto; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
  .form-error { grid-column: 1 / -1; }
  .split-note { grid-template-columns: 1.05fr 0.95fr; }
  .split-note img { aspect-ratio: 4 / 3; min-height: 100%; }
}

@media (min-width: 861px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
  }
  .nav { justify-content: flex-end; gap: 0.25rem 1rem; }
  .hero { min-height: min(82vh, 720px); }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(20, 28, 22, 0.22) 8%, rgba(20, 28, 22, 0.45) 52%, rgba(14, 20, 16, 0.88) 100%),
      image-set(url("images/hero-forest.webp") type("image/webp"), url("images/hero-forest.jpg") type("image/jpeg"));
  }
  .hero-inner { padding: 4.8rem 0 3.4rem; }
  section { padding: 4rem 0; }
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(12, 1fr); }
  .svc-card { grid-column: span 3; }
  .about-layout:has(.about-photo) { grid-template-columns: 0.85fr 1.15fr; gap: 2.25rem; }
  .about-photo img { aspect-ratio: 4 / 5; }
  .form-layout { grid-template-columns: 0.85fr 1.15fr; gap: 2.25rem; }
  .form-card { padding: 1.4rem; }
}


/* Visit service page sections */
#who, #rhythm { background: var(--cream); }
#where, #faith, #visit { background: var(--ivory); }
#where .towns + .place-lead,
.place-lead { max-width: 42rem; color: var(--muted); margin: 1.6rem 0 0.8rem; }

/* Service pages and linked service cards */
.svc-card h3 a { color: inherit; text-decoration: none; }
.svc-card h3 a:hover { text-decoration: underline; }
.hero-inner-page { min-height: min(58vh, 520px); }
.town-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}
.town-copy { max-width: 46rem; }
.town-copy p { margin: 0 0 1.05rem; }
.related, .town-copy .related { margin-top: 1.4rem; font-weight: 700; }
.town-photo { margin: 0; }
.town-photo img, .town-photo picture img { width: 100%; border-radius: 16px; }
.town-photo figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.page-main .prose h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.22;
  margin: 0 0 0.7rem;
}
@media (max-width: 800px) {
  .town-layout { grid-template-columns: 1fr; }
}
