/* Motion Church — official brand
   Charcoal #2A2B2C · Red #E91C2D · White #FFFFFF
   Typeface: Montserrat (SIL OFL)
*/

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #E91C2D;
  --red-dark: #c41222;
  --charcoal: #2A2B2C;
  --charcoal-deep: #1a1b1c;
  --white: #FFFFFF;
  --paper: #F4F4F4;
  --muted: #5c5d5e;
  --line: #e2e2e2;
  --header-h: 4.5rem;
  --wrap: 70rem;
  --radius: 0.25rem;
  --shadow: 0 18px 40px rgba(42, 43, 44, 0.12);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--white);
  color: var(--charcoal);
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip-link:focus { top: 0.75rem; }

.nowrap { white-space: nowrap; }

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

.wrap.narrow { width: min(42rem, calc(100% - 2.5rem)); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(42, 43, 44, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.logo img {
  width: 10.5rem;
  height: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a:hover { color: #ffd6d9; }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  cursor: pointer;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn-nav {
  padding: 0.55rem 0.95rem;
  background: var(--red);
  color: var(--white) !important;
  border-color: var(--red);
  letter-spacing: 0.06em;
}

.btn-nav:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white) !important;
}

.btn[aria-disabled="true"] {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
  cursor: default;
  opacity: 0.85;
}

.btn[aria-disabled="true"]:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--charcoal);
  background-image: url("../images/hero-glow.jpg");
  background-image: image-set(
      url("../images/hero-glow.webp") type("image/webp"),
      url("../images/hero-glow.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
}

.hero-mark {
  position: absolute;
  right: -8%;
  top: 50%;
  translate: 0 -50%;
  width: min(42rem, 70vw);
  aspect-ratio: 1;
  z-index: -1;
  background: url("../images/mark-white-knockout.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.hero-inner {
  width: min(52rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0 6rem;
}

.hero-kicker {
  margin: 0 0 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 4.85rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.bar {
  display: block;
  width: 4.5rem;
  height: 0.28rem;
  margin: 1.5rem 0 1.6rem;
  background: var(--red);
}

.bar-dark { background: var(--red); }

.hero-mission {
  margin: 0 0 1.15rem;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}

.hero-mission em,
.values-mission em {
  font-style: normal;
  color: var(--red);
}

.hero-lead {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-launch {
  margin: 0 0 2rem;
  max-width: 36rem;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border-left: 3px solid var(--red);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 5.5rem 0;
}

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

.section-head { margin-bottom: 2.5rem; }

.eyebrow,
.card-label {
  margin: 0 0 0.7rem;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow-light { color: rgba(255, 255, 255, 0.72); }

h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.7rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.section p { margin: 0 0 1.1rem; }

.tagline {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.expect-card {
  background: var(--charcoal);
  color: var(--white);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
}

.expect-card h3 {
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.expect-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.expect-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.expect-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--red);
}

.expect-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Values ---------- */

.values-band {
  background: var(--charcoal);
  color: var(--white);
  padding: 4.75rem 0;
  text-align: center;
}

.values-inner .bar { margin-inline: auto; }

.values-mission {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.3;
}

.values-band .eyebrow-light { margin-top: 0.25rem; }

.gs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 0.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.gs li {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.gs li + li { /* no extra */ }

.values-line {
  margin: 0 auto;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  font-size: 1rem;
}

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

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  padding: 1.85rem 1.7rem 1.7rem;
  border-top: 4px solid var(--red);
  box-shadow: 0 1px 0 rgba(42, 43, 44, 0.04);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

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

/* ---------- Verse ---------- */

.verse-band {
  background: var(--paper);
  padding: 4rem 0;
  text-align: center;
}

.verse-band blockquote { margin: 0; }

.verse-band p {
  margin: 0 0 1rem;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.5;
}

.verse-band footer {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- Visit ---------- */

.visit-details {
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.5rem;
}

.visit-details dt {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.3rem;
}

.visit-details dd {
  margin: 0;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

.map-frame {
  position: relative;
  min-height: 22rem;
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-fallback {
  position: relative;
  display: block;
  height: 100%;
  min-height: 22rem;
}

.map-fallback::after {
  content: "Map data \00a9 OpenStreetMap contributors";
  position: absolute;
  right: 0.5rem;
  bottom: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  color: #2A2B2C;
  background: rgba(255,255,255,0.8);
  padding: 0.15rem 0.4rem;
}

.map-fallback img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  object-position: center 40%;
}

.map-frame iframe,
.map-embed {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--paper);
}

.map-frame.is-interactive .map-embed {
  opacity: 1;
  pointer-events: auto;
}

.map-frame.is-interactive .map-fallback::after {
  display: none;
}

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

.site-footer {
  background: var(--charcoal-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2.75rem;
  font-size: 0.95rem;
  border-top: 4px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(11rem, 1.1fr) minmax(16rem, 1.4fr) minmax(11rem, 1fr);
  gap: 2.5rem;
}

.footer-mission {
  margin: 1rem 0 0;
  max-width: 16rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.5rem;
}

.footer-nav a {
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.footer-nav a:hover,
.site-footer a:hover { color: #ffd6d9; }

.footer-nav li { margin-bottom: 0.45rem; }

.footer-meta p { margin: 0 0 0.85rem; }

.copyright {
  margin-top: 0.5rem !important;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--charcoal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.25s ease, visibility 0.25s;
  }

  .nav-toggle-input:checked ~ .site-nav {
    max-height: 28rem;
    visibility: visible;
  }

  .nav-toggle-input:checked + .nav-toggle .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-input:checked + .nav-toggle .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-input:checked + .nav-toggle .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1.25rem;
    gap: 0;
  }

  .site-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.95rem;
  }

  .site-nav .btn-nav {
    display: flex;
    margin: 0.85rem 0 0.25rem;
    text-align: center;
  }

  .split,
  .cards,
  .footer-grid,
  .visit-details {
    grid-template-columns: 1fr;
  }

  .footer-nav ul { grid-template-columns: 1fr; }

  .hero-inner { padding: 3.75rem 0 4.25rem; }

  .section { padding: 4rem 0; }

  .hero-mark { right: -30%; opacity: 0.05; }
}

@media (max-width: 480px) {
  .wrap,
  .wrap.narrow,
  .header-inner,
  .hero-inner {
    width: calc(100% - 1.75rem);
  }

  .logo img { width: 8.75rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }

  .btn { width: 100%; }
}

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


.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
  color: inherit;
}

.social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.visit-details .social-link {
  color: var(--red);
}

.visit-details .social-link:hover,
.site-footer .social-link:hover {
  color: var(--red-dark);
}

.site-footer .social-link {
  color: var(--white);
}

.site-footer .social-link:hover {
  color: #ffd6d9;
}
