/* ===== Design tokens ===== */
:root {
  --green: #183630;      /* primary / dark accent */
  --cream: #e3dac9;      /* secondary background */
  --gold: #e5c690;       /* highlight */
  --white: #ffffff;
  --text: #1c2421;       /* dark text on light backgrounds */
  --font-head: 'Lora', serif;
  --font-body: 'Montserrat', sans-serif;
  --radius: 4px;
  --header-h: 72px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; max-width: 65ch; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: 4.5rem 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: .85rem 1.8rem; border: 2px solid transparent; border-radius: var(--radius);
  font: 600 .95rem var(--font-body); text-decoration: none; cursor: pointer; transition: all 0.3s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--green); }
.btn-gold:hover { background: var(--white); }
.btn-outline { border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--green); }
.btn-dark { background: var(--green); color: var(--cream); }
.btn-dark:hover { background: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn { width: 200px; text-align: center; }

/* ===== Header (mobile-first) ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--green); color: var(--cream);
  height: var(--header-h); transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; text-decoration: none; height: 100%; }
.logo img { height: auto; max-height: 62px; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.03); }
.header-spacer { display: none; }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); transition: all 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--green);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.site-nav.open { max-height: 420px; border-top: 1px solid rgba(229,198,144,.25); }
.site-nav ul { list-style: none; margin: 0; padding: 1rem 1.25rem 1.5rem; }
.site-nav a { display: block; padding: .7rem 0; text-decoration: none; transition: all 0.3s ease; }
.site-nav a:hover { color: var(--gold); }

/* ===== Hero ===== */
.hero { min-height: 92vh; display: flex; align-items: center; color: var(--cream);
  background: linear-gradient(rgba(24,54,48,.78), rgba(24,54,48,.88)),
    url("src/site-pictures/hero/4c9d8ee4-8cbe-46b5-b3d2-d109c0a84a87.JPG") center/cover var(--green); }
.hero-inner { padding: 2rem 0; }
.hero h1 { max-width: 24ch; font-size: 4rem;}
.hero-sub { font-size: 1.3rem; color: var(--gold); margin-bottom: 2rem; margin-top: 1rem; }

/* ===== Mission ===== */
.mission { background: var(--cream); padding: 5rem 0; text-align: center; }
.mission h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--green); }
.mission p { margin-inline: auto; }

/* ===== Grids & cards ===== */
.grid-3 { display: grid; gap: 1.5rem; margin-top: 2rem; }
.card { background: var(--white); border: 1px solid var(--cream); border-radius: var(--radius); overflow: hidden;
  transition: all 0.3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(24,54,48,.15); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--green); }
.card img.img-top { object-position: top; }
.card-body, .card-text { padding: 1.5rem; }
.meta { color: var(--green); font-weight: 600; margin-bottom: .5rem; }
.card-text { border-top: 4px solid var(--gold); }

.doc-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.doc-list li { border-bottom: 1px solid rgba(24,54,48,.25); }
.doc-list a { display: block; padding: 1rem 0; text-decoration: none; font-weight: 500; transition: all 0.3s ease; }
.doc-list a:hover { padding-left: .75rem; color: var(--green); }

/* ===== About ===== */
.about { background: var(--green); color: var(--cream); padding: 4.5rem 0; }
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: #0f251f; }
.about h2 { color: var(--gold); }

/* ===== Church photo gallery ===== */
.gallery-section { background: var(--cream); }
.gallery-intro { text-align: center; margin: 0 auto 2.5rem; }
.gallery-intro p { margin-inline: auto; }
.gallery-rows { display: grid; gap: 1rem; }
.church-gallery { display: flex; height: 20rem; gap: 1rem; min-width: 0; }
.gallery-photo {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--green);
  transition: flex .8s ease;
}
.gallery-photo:hover { flex: 5 1 0; }
.church-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Contact ===== */
.contact-grid { display: grid; gap: 3rem; }
form label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
form input, form textarea { width: 100%; padding: .8rem 1rem; font: inherit; background: var(--white);
  border: 2px solid transparent; border-radius: var(--radius); transition: all 0.3s ease; }
form input:focus, form textarea:focus { outline: none; border-color: var(--green); }
form .btn { margin-top: 1.25rem; }
form .invalid { border-color: #a63a2b; }
#form-status { margin: 1rem 0 0; font-weight: 600; }
#form-status.success { color: #2e7d32; }
#form-status.error { color: #a63a2b; }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin-top: 1rem; }

/* ===== Footer ===== */
.site-footer { background: var(--green); color: var(--cream); padding-top: 4rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 3rem; }
.site-footer h3 { color: var(--gold); font-size: 1.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer address { font-style: normal; }
.site-footer a { text-decoration: none; transition: all 0.3s ease; color: var(--cream) }
.site-footer a:hover { color: var(--gold); }
.text-link  { text-decoration: none; transition: all 0.3s ease; color: var(--gold) }
.text-link:hover { color: var(--white); }

.footer-logo-link { display: inline-block; margin-top: 1rem; transition: transform 0.3s ease, opacity 0.3s ease; }
.footer-logo-link:hover { transform: translateY(-2px); opacity: 0.9; }
.footer-logo { width: 120px; max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
.copyright { border-top: 1px solid rgba(229,198,144,.25); padding: 1.5rem 0; font-size: .85rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.text-copyright { margin-left: auto; text-align: right; }
.text-copyright a { color: var(--gold); }
.text-copyright a:hover { color: var(--white) }
.anbi-page { min-height: 100vh; display: flex; flex-direction: column; }
.anbi-page main { flex: 1; background: var(--white); }

/* ===== ANBI details & Financial cards ===== */
.anbi-details { margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.anbi-item { border-bottom: 1px solid rgba(24, 54, 48, 0.15); padding-bottom: 1rem; }
.anbi-label { font-weight: 600; color: var(--green); font-size: 0.95rem; margin-bottom: 0.25rem; }
.anbi-value { margin: 0; font-size: 1.05rem; color: var(--text); }
.anbi-value a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s ease; }
.anbi-value a:hover { color: var(--gold); }

.financials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .financials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.anbi-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(24, 54, 48, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(24, 54, 48, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.anbi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(24, 54, 48, 0.12);
}

.anbi-card h3 {
  font-size: 1.35rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.anbi-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: flex-start;
}


/* ===== Tablet: 768px+ ===== */
@media (min-width: 768px) {
  .grid-3, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .church-gallery { height: 14rem; }
}

@media (max-width: 480px) {
  .church-gallery { height: 10rem; gap: .5rem; }
  .gallery-rows { gap: .5rem; }
  .gallery-photo { border-radius: .6rem; }
}

/* ===== Desktop: 1024px+ — logo left, links centred ===== */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .header-spacer { display: block; }
  .site-nav { position: static; max-height: none; overflow: visible; background: none; }
  .site-nav.open { border: 0; }
  .site-nav ul { display: flex; gap: 2rem; padding: 0; }
  .site-nav a { padding: .4rem 0; font-size: .92rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

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