/* ==========================================================================
   Michigan District Mission Board — shared stylesheet
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/playfair-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/playfair-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/playfair-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #182d4d;
  --navy-dark: #101f36;
  --navy-darker: #0a1526;
  --olive: #6e7c3e;
  --olive-dark: #56612f;
  --olive-light: #a8b87a;
  --slate: #8b96a2;
  --paper: #f7f8f4;
  --paper-dark: #eceee4;
  --charcoal: #262b24;
  --text-body: #3d4238;
  --text-light: #ffffff;
  --border-soft: #dde1d5;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Tahoma, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 6px;
  --shadow-soft: 0 10px 30px rgba(10, 21, 38, 0.14);
  --shadow-card: 0 4px 18px rgba(38, 43, 36, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--navy-darker);
  outline-offset: 2px;
}

.btn-outline:focus-visible,
.footer-grid a:focus-visible,
.skip-link:focus-visible {
  outline-color: var(--olive-light);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--navy-darker);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-darker);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

.section-alt {
  background: var(--paper-dark);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--olive-dark);
  margin-bottom: 0.9em;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.section-head.left {
  margin: 0 0 2.6rem;
  text-align: left;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
}

.btn-primary:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
}

.btn-navy {
  background: var(--navy);
  color: var(--text-light);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--text-light);
}

/* ---------------- Header / Nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 244, 0.97);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: saturate(180%) blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-darker);
}

.brand:hover {
  color: var(--navy-darker);
}

.brand-logo {
  height: 100px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text .name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy-darker);
}

.brand-text .sub {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-dark);
}

@media (max-width: 560px) {
  .brand-text { display: none; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--charcoal);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--olive);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy-darker);
  margin: 5px 0;
  transition: 0.25s ease;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-darker), var(--navy) 60%, var(--olive-dark));
  color: var(--text-light);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero .eyebrow {
  color: var(--olive-light);
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}

.hero h1 {
  color: #fff;
  max-width: 620px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  max-width: 560px;
  color: var(--olive-light);
  margin-bottom: 1em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}

.hero p.lead {
  font-size: 1.12rem;
  max-width: 560px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1.8em;
}

.hero-seal {
  justify-self: center;
  width: 100%;
  height: auto;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1, .hero p.lead, .hero-tagline { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-seal { max-width: 220px; order: -1; }
}

.page-hero {
  position: relative;
  padding: 130px 0 70px;
  background: linear-gradient(160deg, var(--navy-darker), var(--navy) 65%, var(--olive-dark));
  color: var(--text-light);
  text-align: center;
}

.page-hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.45); }
.page-hero .eyebrow { color: var(--olive-light); text-shadow: 0 1px 10px rgba(0,0,0,0.45); }
.page-hero p { color: rgba(255,255,255,0.95); max-width: 640px; margin: 0 auto; text-shadow: 0 1px 10px rgba(0,0,0,0.4); }

/* ---------------- Pillars strip (Plant / Partner / Proclaim) ---------------- */

.pillars-strip {
  background: var(--navy-darker);
  color: var(--text-light);
  padding: 0;
}

.pillars-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 30px 26px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.pillar:first-child { border-left: none; }

.pillar .pillar-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--olive);
}

.pillar .pillar-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.pillar h2 {
  color: #fff;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3em;
}

.pillar p {
  margin: 0;
  font-size: 0.94rem;
  color: rgba(255,255,255,0.78);
}

@media (max-width: 760px) {
  .pillars-strip .container { grid-template-columns: 1fr; }
  .pillar { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); }
  .pillar:first-child { border-top: none; }
}

/* ---------------- Cards / Grids ---------------- */

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  border-top: 3px solid var(--olive);
}

.card h3 { margin-bottom: 0.4em; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split.reverse .img-col { order: 2; }

/* ---------------- State cards (Areas Served) ---------------- */

.state-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 26px;
  border-top: 3px solid var(--navy);
  text-align: left;
}

.state-card .state-abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.missions-map {
  max-width: 620px;
  margin: 0 auto 3rem;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.missions-map img {
  width: 100%;
  height: auto;
}

.cong-card h3 {
  margin-bottom: 0.5em;
}

.cong-card .cong-location {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-top: 2px;
}

.cong-card p {
  font-size: 0.95rem;
  margin-bottom: 0.4em;
}

.cong-card p:last-child {
  margin-bottom: 0;
}

/* ---------------- Quote / verse ---------------- */

.verse-block {
  text-align: center;
  padding: 60px 24px;
  background: var(--olive);
  color: var(--text-light);
}

.verse-block blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.6rem;
  max-width: 760px;
  margin: 0 auto 0.5em;
}

.verse-block cite {
  font-style: normal;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy-darker);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 26px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-grid > div:first-child {
  max-width: 380px;
}

.footer-grid > div:last-child {
  min-width: 180px;
}

.footer-grid h3 {
  color: var(--olive-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1em;
}

.footer-grid a {
  color: rgba(255,255,255,0.85);
}

.footer-grid a:hover { color: var(--olive-light); }

.wels-badge {
  display: inline-block;
  margin-top: 14px;
  background: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.wels-badge img {
  height: 34px;
  width: auto;
  display: block;
}

.wels-badge:hover {
  opacity: 1;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-logo {
  height: 74px;
  width: auto;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6em;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.6);
}

/* ---------------- Map ---------------- */

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 0;
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* ---------------- Contact form ---------------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form[hidden] {
  display: none;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-darker);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75em 0.9em;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form .btn {
  align-self: flex-start;
}

.form-success {
  background: var(--olive);
  color: #fff;
  font-weight: 600;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 1.2em;
}

/* ---------------- Updated note ---------------- */

.updated-note {
  display: block;
  font-size: 0.82rem;
  font-style: italic;
  color: #6b7266;
  margin-top: 0.8em;
}

/* ---------------- Checklist ---------------- */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding: 0.4em 0 0.4em 2em;
}

.check-list li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  color: var(--olive);
}

/* ---------------- FAQ ---------------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--olive);
  padding: 6px 28px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 28px 16px 0;
  margin: 0 -28px;
  padding-left: 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy-darker);
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 28px;
  top: 14px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--olive);
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  margin: 0 0 20px;
}

/* ---------------- Scroll reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .img-col { order: 0; }
}

@media (max-width: 1150px) {
  .main-nav {
    position: fixed;
    top: 133px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-140%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    box-shadow: var(--shadow-card);
  }

  .main-nav.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.25s ease;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .nav-cta .btn-navy,
  .nav-cta .btn-primary { display: none; }

  .nav-toggle { display: block; }
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { gap: 30px; }
  .footer-bottom { flex-direction: column; }
}
