/* ======= Design tokens — SEO-friendly: content stays in HTML; no critical CSS hidden ======= */
:root {
  --bg: #fafcf9;
  --bg-elevated: #ffffff;
  --text: #0b1b14;
  --muted: #5c6a63;
  --brand: #0d8f52;
  --brand-hover: #0a7a45;
  --brand-2: #0e4a2f;
  --brand-soft: rgba(14, 122, 71, 0.12);
  --accent: #eef5f0;
  --card: #ffffff;
  --border: #e2ebe4;
  --shadow-sm: 0 2px 8px rgba(14, 74, 47, 0.06);
  --shadow: 0 8px 24px rgba(14, 74, 47, 0.08);
  --shadow-lg: 0 16px 48px rgba(14, 74, 47, 0.12);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-h: 56px;
  --app-tabbar-h: 56px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --tap-min: 44px;
}

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

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

@media (max-width: 1024px) {
  html {
    scroll-padding-bottom: calc(var(--app-tabbar-h) + 16px);
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 1024px) {
  body {
    padding-bottom: calc(var(--app-tabbar-h) + env(safe-area-inset-bottom, 0px));
  }
}

a {
  color: var(--brand-2);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ======= Layout ======= */
.container {
  max-width: var(--container);
  padding-inline: clamp(16px, 4vw, 32px);
  margin-inline: auto;
}

/* Blur lives on ::before so backdrop-filter is NOT on this element — otherwise it
   creates a containing block for position:fixed descendants and the mobile drawer
   (nav#primary-menu) would be sized to the header strip instead of the viewport. */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding-top: env(safe-area-inset-top, 0px);
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  pointer-events: none;
}

/* Lift entire header above page + cookie while mobile drawer is open (fixed children stay in this context). */
@media (max-width: 768px) {
  header.menu-open {
    z-index: 10050;
  }
}

header .container {
  max-width: calc(var(--container) + 200px);
}

.hero .container {
  max-width: calc(var(--container) + 200px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--header-h);
  height: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand > a:first-child {
  flex-shrink: 0;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  object-fit: contain;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.sitename {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(0.9rem, 2.8vw, 1.05rem);
  line-height: 1.2;
}

@media (max-width: 420px) {
  .sitename {
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ======= Buttons & text ======= */
.pill {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--accent);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--brand-2);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

.title {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 0.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand-2);
}

.subhead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.page-title {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.12;
  margin: 0 0 0.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--brand-2);
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  background: var(--brand-hover);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: var(--bg-elevated);
  color: var(--brand-2);
  border: 2px solid var(--brand-2);
  box-shadow: none;
}
.btn.secondary:hover {
  background: var(--brand-soft);
  color: var(--brand-2);
}

.btn.whatsapp {
  background: #25d366;
  color: #fff;
}
.btn.whatsapp:hover {
  background: #1ebe5d;
  color: #fff;
}

.btn.zoom {
  background: #0b5fff;
  color: #fff;
}

.btn + .btn {
  margin-left: 0.5rem;
}

@media (max-width: 480px) {
  .btn + .btn {
    margin-left: 0;
  }
  .hero-cta .btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
  }
}

/* ======= Grids & cards ======= */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .card:hover {
    box-shadow: var(--shadow);
    border-color: #d4e5da;
  }
}

.section {
  padding-block: clamp(40px, 7vw, 88px);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-2);
}

h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  margin: 0.2rem 0;
  font-weight: 700;
  color: #153d2a;
}

/* ======= Hero ======= */
.hero {
  padding-block: clamp(40px, 8vw, 100px);
  background: radial-gradient(120% 80% at 50% -10%, rgba(14, 122, 71, 0.09), transparent 55%),
    linear-gradient(180deg, #f0faf4 0%, var(--bg) 55%, var(--bg-elevated) 100%);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230e7a47' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* ======= Action grid ======= */
.actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, auto));
  align-items: center;
  justify-items: start;
}

.actions .btn {
  width: auto;
  text-align: center;
}

.actions .btn + .btn {
  margin-left: 0;
}

/* ======= Map shell ======= */
.map-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #f4fbf7;
  box-shadow: var(--shadow-sm);
}

.map-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ======= Features ======= */
.features {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.feature .i {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8f7ee, #ffffff);
  color: var(--brand-2);
  border: 1px solid var(--border);
  font-size: 20px;
}

/* ======= Form ======= */
.form {
  display: grid;
  gap: 14px;
}

.row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .row {
    grid-template-columns: 1fr;
  }
}

.field label {
  font-weight: 600;
  display: block;
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.input {
  width: 100%;
  min-height: var(--tap-min);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

textarea.input {
  min-height: 120px;
  resize: vertical;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checks label {
  font-weight: 500;
}

.hp {
  display: none !important;
}

.small {
  font-size: 0.9rem;
}

.error {
  color: #a52828;
}

.form .btn {
  margin-right: 0.4rem;
}

.turnstile-wrap {
  position: relative;
  z-index: 2;
  margin-top: 2px;
  min-height: 65px;
  width: 100%;
  max-width: 100%;
}

.turnstile-wrap iframe {
  border-radius: var(--radius-sm);
  display: block !important;
  max-width: 100%;
  min-height: 65px;
}

.scroll-anchor {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ======= Contact layout ======= */
.contact-col {
  display: grid;
  gap: clamp(12px, 2vw, 16px);
}

.contact-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr);
  align-items: start;
}

/* ======= Footer ======= */
footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #f5faf7 0%, #eef5f0 100%);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(300px, 1.5fr) repeat(3, minmax(200px, 1fr));
  }
}

.footer-col h4 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-2);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-col ul li a {
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 2px 0;
  display: inline-block;
}

.fine {
  font-size: 0.88rem;
  text-align: center;
  margin-top: 28px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color: var(--muted);
}

/* ======= Header menu & burger ======= */
.menu {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: nowrap;
}

.menu a {
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 500;
}

.menu a:hover {
  background: var(--accent);
  text-decoration: none;
  color: var(--brand-2);
}

.menu a.active {
  background: var(--brand-soft);
  font-weight: 700;
  color: var(--brand-2);
}

.m-only {
  display: none;
}

.hamburger {
  display: none;
}

/* Tablet / small laptop: keep horizontal nav; optional tighter wrap handled by flex */
@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Desktop & tablet (769px+): full horizontal nav; JS wraps links in .menu__panel for mobile */
@media (min-width: 769px) {
  .menu__backdrop {
    display: none !important;
  }

  .menu__panel {
    display: contents;
  }
}

/* Mobile only: hamburger + slide-in drawer from the right */
@media (max-width: 768px) {
  .nav {
    position: relative;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--tap-min);
    min-height: var(--tap-min);
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
    color: var(--brand-2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .hamburger__icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .menu {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    min-width: unset;
    max-width: none;
    max-height: none;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
  }

  .menu.open {
    visibility: visible;
    pointer-events: auto;
  }

  .menu__backdrop {
    flex: 1 1 auto;
    min-width: 0;
    background: rgba(11, 27, 20, 0.48);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .menu.open .menu__backdrop {
    animation: menu-backdrop-in 0.28s ease forwards;
  }

  .menu__panel {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    width: min(320px, 90vw);
    height: 100%;
    max-height: 100dvh;
    background: var(--bg-elevated);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 20px);
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .menu.open .menu__panel {
    transform: translateX(0);
  }

  .menu a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    min-height: var(--tap-min);
    display: flex;
    align-items: center;
    white-space: normal;
  }

  .m-only {
    display: block;
  }

  .menu .btn {
    margin-top: 6px;
    justify-content: center;
  }
}

@keyframes menu-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .menu__panel {
    transition: none;
  }

  .menu.open .menu__backdrop {
    animation: none;
    opacity: 1;
  }
}

/* --- About section polish --- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.5rem 0 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid var(--border);
  font-weight: 600;
  color: #0a3623;
  font-size: 0.88rem;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-2);
  display: inline-block;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 14px 0 4px;
}

.kpi {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.kpi b {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--brand-2);
}

.kpi span {
  color: var(--muted);
  font-size: 0.88rem;
}

.about-note {
  background: linear-gradient(135deg, #f0faf4, #ffffff);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-note .i {
  font-size: 20px;
  line-height: 1;
}

.checks-compact {
  display: grid;
  gap: 8px;
  margin: 0.6rem 0 0;
}

.checks-compact li {
  list-style: "✅ ";
  padding-left: 0.3rem;
}

.quote {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-style: italic;
  color: #0a3623;
  box-shadow: var(--shadow-sm);
}

.quote small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
}

.pastor-section {
  padding: clamp(48px, 10vw, 80px) 20px;
  background: linear-gradient(180deg, #f3f9f5, var(--bg));
  text-align: center;
}

.pastor-section .section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 2rem;
  color: var(--brand-2);
}

.pastor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pastor-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: left;
}

.pastor-photo {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}

.pastor-card h3 {
  margin: 10px 0 5px;
  font-size: 1.25rem;
}

.pastor-card .role {
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.pastor-card .bio {
  font-size: 0.95rem;
  color: #3d4a44;
  line-height: 1.55;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--brand-2);
}

/* Quick links home */
.quick-links {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.quick-link {
  display: block;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.quick-link:hover {
  text-decoration: none;
  border-color: rgba(14, 122, 71, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}

.quick-link h3 {
  margin: 0 0 0.35rem;
  color: var(--brand-2);
}

.quick-link p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.list {
  padding-left: 1.25rem;
}

/* ======= Home page (index only) ======= */
.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .home-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.home-hero__copy {
  position: relative;
  z-index: 1;
}

.home-hero__aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.home-hero__visual {
  position: absolute;
  top: -20%;
  right: -15%;
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: radial-gradient(circle at 40% 40%, rgba(13, 143, 82, 0.18), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 899px) {
  .home-hero__visual {
    right: -25%;
    opacity: 0.7;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.25rem 0 1rem;
}

.hero-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 158px);
}

.home-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 38em;
  margin: 0 0 1rem;
}

.home-location {
  font-size: 0.95rem;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.home-next-event {
  margin-top: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(13, 143, 82, 0.1), rgba(14, 74, 47, 0.06));
  border: 1px solid rgba(13, 143, 82, 0.25);
  color: var(--brand-2);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 100%;
}

.home-next-event:empty {
  display: none;
}

.card--hero {
  border-left: 4px solid var(--brand);
}

.card--hero h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--brand-2);
}

.home-stats {
  padding-block: 8px 0;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .home-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.home-stat b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-2);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.home-stat span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-times {
  padding-block: clamp(36px, 6vw, 64px);
  background: linear-gradient(180deg, var(--bg) 0%, #eef6f0 45%, var(--bg) 100%);
}

.home-times__head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.home-times__head h2 {
  margin-bottom: 0.35rem;
}

.home-times__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .home-times__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-time-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.home-time-card__label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.home-time-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-2);
  margin: 0;
}

.home-time-card__meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.home-times__foot {
  text-align: center;
  margin-top: 1.5rem;
}

.home-why .features {
  margin-top: 1rem;
}

.home-explore__head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  max-width: 720px;
}

@media (min-width: 768px) {
  .home-explore__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    max-width: none;
  }
  .home-explore__head p {
    margin: 0;
    max-width: 420px;
    text-align: right;
  }
}

.quick-link__arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
}

.quick-link:hover .quick-link__arrow {
  text-decoration: underline;
}

.home-split {
  align-items: stretch;
}

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

.home-cta-band {
  background: linear-gradient(135deg, var(--brand-2) 0%, #0a3d26 100%);
  color: #fff;
  padding-block: clamp(40px, 8vw, 72px);
  margin-top: 0;
}

.home-cta-band__inner {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.home-cta-band h2 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.home-cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  line-height: 1.55;
}

.home-cta-band .btn {
  background: #fff;
  color: var(--brand-2);
  box-shadow: var(--shadow);
}

.home-cta-band .btn:hover {
  background: #f0faf4;
  color: var(--brand-2);
}

.home-cta-band .btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.home-cta-band .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.home-cta-band .btn.whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
}

.home-cta-band .btn.whatsapp:hover {
  background: #1ebe5d;
  color: #fff;
}

.home-cta-band .hero-cta {
  justify-content: center;
}

#week-list .event {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

#week-list .event:first-child {
  padding-top: 0;
}

#week-list .event:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ======= Mobile app tab bar (real links — crawlable) ======= */
.app-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(14, 74, 47, 0.08);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@media (max-width: 1024px) {
  .app-tabbar {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    min-height: var(--app-tabbar-h);
  }
}

@media (min-width: 1025px) {
  body {
    padding-bottom: 0 !important;
  }
}

.app-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--app-tabbar-h);
  padding: 6px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  border-radius: 12px 12px 0 0;
  transition: color 0.15s, background 0.15s;
}

.app-tab svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.app-tab:hover {
  color: var(--brand-2);
  background: var(--accent);
}

.app-tab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  z-index: 1;
}

.app-tab--active {
  color: var(--brand);
  background: linear-gradient(180deg, rgba(14, 122, 71, 0.1), transparent);
}

.app-tab--active svg {
  opacity: 1;
  stroke: var(--brand);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-2);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 1rem;
  padding-bottom: max(0.9rem, env(safe-area-inset-bottom, 0px));
  font-size: 0.9rem;
  z-index: 9998;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
  .cookie-banner {
    bottom: calc(var(--app-tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: 0.9rem;
  }
}

.cookie-banner p {
  margin: 0;
  padding: 0;
  max-width: 78%;
  line-height: 1.45;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner button {
  flex-shrink: 0;
  background: #fff;
  color: var(--brand-2);
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--tap-min);
}

.cookie-banner button:hover {
  background: #f0f5f2;
}

/* Section alt backgrounds */
.section--muted {
  background: linear-gradient(180deg, #f3f9f5 0%, var(--bg) 100%);
}
