/* ============================================================
   ICESPA · icespa.org
   Hand-written CSS — no framework, no build step.

   Contents
   1. Fonts (self-hosted)
   2. Design tokens
   3. Reset & base
   4. Utilities
   5. Layout
   6. Buttons
   7. Navigation & mobile menu
   8. Hero
   9. Section headers
   10. About / values / invitation
   11. Faith accordion
   12. Services schedule
   13. Contact
   14. Footer
   15. Scroll progress & skip link
   16. Motion (progressive enhancement)
   17. 404 page
   ============================================================ */

/* ---------- 1. Fonts (self-hosted, latin subset) ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}

/* ---------- 2. Design tokens ---------- */

:root {
  --red: #bb1924;
  --red-dark: #9a141d;
  --blue: #2c3e50;
  --blue-deep: #1a252f;
  --ink: #0c1218;
  --gray: #eef0f3;
  --paper: #f7f8fa;
  --dark: #1a222c;
  --muted: #5a6570;
  --gold: #c4a574;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;

  --shadow-lift: 0 12px 40px -16px rgb(187 25 36 / 0.28);

  --scroll-y: 0;
  --progress: 0;
  color-scheme: light;
}

/* Animatable custom properties (Chromium/Safari; harmless elsewhere) */
@property --progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --glow-a {
  syntax: "<number>";
  inherits: false;
  initial-value: 0.35;
}

/* ---------- 3. Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgb(187 25 36 / 0.05), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgb(44 62 80 / 0.04), transparent 45%);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

svg {
  display: block;
}

canvas {
  display: block;
}

section {
  scroll-margin-top: 6rem;
}

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

::selection {
  background: color-mix(in oklab, var(--red) 28%, white);
  color: var(--ink);
}

/* ---------- 4. Utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.overflow-hidden {
  overflow: hidden;
}

/* ---------- 5. Layout ---------- */

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-pad {
  padding-block: 5rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 768px) {
  .section-pad {
    padding-block: 7rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }

  .section-pad {
    padding-block: 8rem;
  }
}

/* ---------- 6. Buttons ---------- */

.btn-primary,
.btn-ghost,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 300ms ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.05);
  color: #fff;
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgb(255 255 255 / 0.55);
  background: rgb(255 255 255 / 0.12);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--red);
}

.btn-light:hover {
  background: color-mix(in oklab, white 92%, var(--red));
  transform: translateY(-2px);
}

/* ---------- 7. Navigation & mobile menu ---------- */

.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  padding-block: 1.25rem;
  transition: padding 300ms ease, background 300ms ease, box-shadow 300ms ease;
}

.site-nav[data-scrolled="true"] {
  padding-block: 0.625rem;
  background: color-mix(in oklab, white 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgb(12 18 24 / 0.06);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 300ms ease;
}

.site-nav[data-scrolled="true"] .nav-brand {
  color: var(--red);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgb(255 255 255 / 0.85);
  transition: color 300ms ease;
}

.site-nav[data-scrolled="true"] .nav-link {
  color: rgb(26 34 44 / 0.8);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.nav-link:hover::after,
.nav-link[data-active="true"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: #fff;
}

.site-nav[data-scrolled="true"] .menu-toggle {
  color: var(--dark);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: calc(3.25rem + env(safe-area-inset-top));
  z-index: 40;
  background: color-mix(in oklab, var(--ink) 96%, transparent);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 300ms ease-out;
}

.mobile-menu[data-open="true"] {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu nav {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.mobile-menu a {
  padding-block: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.9);
  transition: color 300ms ease;
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* ---------- 8. Hero ---------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  /* clip (not hidden): overflow:hidden creates a scroll container,
     which breaks view() timelines of descendants */
  overflow: clip;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgb(196 165 116 / 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgb(187 25 36 / 0.22), transparent 50%),
    radial-gradient(ellipse 45% 50% at 10% 70%, rgb(44 62 80 / 0.5), transparent 45%),
    linear-gradient(168deg, #070b10 0%, #121a22 42%, #0c1218 100%);
}

#light-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100svh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.25rem 4rem;
}

.hero-content {
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  position: relative;
  display: inline-block;
  margin-inline: auto;
  font-size: clamp(3.5rem, 14vw, 8.5rem);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-title::before {
  content: "";
  position: absolute;
  inset: -28%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in oklab, var(--gold) calc(var(--glow-a) * 100%), transparent),
    transparent 68%
  );
  pointer-events: none;
}

.hero-subtitle {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: rgb(255 255 255 / 0.9);
}

.hero-verse {
  max-width: 36rem;
  margin: 2rem auto 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.7);
}

.hero-verse cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: normal;
  letter-spacing: 0.025em;
  color: var(--gold);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.hero-explore {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgb(255 255 255 / 0.4);
  transition: color 300ms ease;
}

.hero-explore:hover {
  color: rgb(255 255 255 / 0.7);
}

.hero-explore span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.hero-explore svg {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@media (min-width: 640px) {
  .hero-inner {
    padding: 8rem 1.5rem 5rem;
  }

  .hero-subtitle {
    font-size: 1.875rem;
  }

  .hero-verse {
    font-size: 1.25rem;
  }

  .hero-ctas {
    flex-direction: row;
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 2.25rem;
  }

  .hero-verse {
    font-size: 1.35rem;
  }
}

/* ---------- 9. Section headers ---------- */

.section-header {
  max-width: 48rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
}

.eyebrow-gold {
  color: var(--gold);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.section-title-light {
  color: #fff;
}

.rule {
  width: 4rem;
  height: 1px;
  margin: 1.5rem auto 0;
  background: var(--red);
}

.section-lead {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.section-lead-light {
  color: rgb(255 255 255 / 0.65);
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .section-lead {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3.25rem;
  }
}

/* ---------- 10. About / values / invitation ---------- */

.about-grid {
  display: grid;
  max-width: 64rem;
  margin-inline: auto;
  gap: 3.5rem;
}

.about-grid h3 {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--dark);
}

.about-underline {
  width: 3rem;
  height: 1px;
  margin-top: 0.75rem;
  background: var(--red);
}

.about-grid .prose {
  margin-top: 1.5rem;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.prose p + p {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .about-grid {
    gap: 5rem;
  }

  .about-grid h3 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.values {
  margin-top: 5rem;
}

.values-header {
  margin-bottom: 3rem;
  text-align: center;
}

.values-header h3 {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--dark);
}

.values-header p {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--muted);
}

.values-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.values-list li {
  border-top: 1px solid rgb(26 34 44 / 0.1);
  padding-top: 1.5rem;
}

.values-list h4 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark);
}

.values-list p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (min-width: 768px) {
  .values {
    margin-top: 7rem;
  }

  .values-header {
    margin-bottom: 3.5rem;
  }

  .values-header h3 {
    font-size: 2.25rem;
  }

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

  .values-list h4 {
    font-size: 1.5rem;
  }

  .values-list p {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .values-list {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2.5rem;
    row-gap: 3.5rem;
  }
}

.invitation {
  position: relative;
  overflow: clip;
  margin-top: 5rem;
  padding: 3.5rem 2rem;
  text-align: center;
  color: #fff;
  background: var(--ink);
}

.invitation h3 {
  font-size: 1.875rem;
  font-weight: 500;
}

.invitation p {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  color: rgb(255 255 255 / 0.7);
}

.invitation-ctas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

@media (min-width: 640px) {
  .invitation-ctas {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .invitation {
    margin-top: 7rem;
    padding: 4rem 3.5rem;
  }

  .invitation h3 {
    font-size: 2.25rem;
  }
}

/* Pointer-following glow (set via JS --gx/--gy) */
.glow-zone {
  --gx: 50%;
  --gy: 50%;
  isolation: isolate;
}

.glow-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 400ms ease;
  background: radial-gradient(
    420px circle at var(--gx) var(--gy),
    color-mix(in oklab, var(--red) 18%, transparent),
    transparent 55%
  );
}

.glow-zone:hover::before {
  opacity: 1;
}

/* ---------- 11. Faith accordion ---------- */

.faith {
  position: relative;
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgb(187 25 36 / 0.06), transparent 50%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgb(44 62 80 / 0.06), transparent 45%),
    var(--paper);
}

.faith-list {
  max-width: 48rem;
  margin-inline: auto;
}

.faith-item {
  border-bottom: 1px solid color-mix(in oklab, var(--blue) 12%, transparent);
}

.faith-item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  transition: color 200ms ease;
}

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

.faith-item summary::after {
  content: "";
  margin-left: auto;
  width: 0.55rem;
  height: 0.55rem;
  flex-shrink: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 280ms ease;
}

.faith-item[open] summary {
  color: var(--red);
}

.faith-item[open] summary::after {
  transform: rotate(225deg);
}

.faith-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms ease;
}

.faith-item[open] .faith-panel {
  grid-template-rows: 1fr;
}

.faith-panel > div {
  overflow: hidden;
}

.faith-body {
  border-left: 2px solid var(--red);
  padding-left: 1.5rem;
  padding-bottom: 1.25rem;
}

.faith-body p {
  color: var(--dark);
}

.faith-body .refs {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted);
}

@media (min-width: 768px) {
  .faith-item summary {
    font-size: 1.5rem;
  }
}

.faith-quote {
  max-width: 42rem;
  margin: 4rem auto 0;
  text-align: center;
}

.faith-quote p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--dark);
}

.faith-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-style: normal;
  letter-spacing: 0.025em;
  color: var(--muted);
}

@media (min-width: 768px) {
  .faith-quote {
    margin-top: 5rem;
  }

  .faith-quote p {
    font-size: 1.875rem;
  }
}

/* ---------- 12. Services schedule ---------- */

.services {
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgb(187 25 36 / 0.18), transparent 55%),
    linear-gradient(180deg, #15202b 0%, #0c1218 100%);
}

.schedule-list {
  max-width: 56rem;
  margin-inline: auto;
}

.schedule-row {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.schedule-row:first-child {
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.schedule-day {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.schedule-row h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

.schedule-time {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.55);
}

.schedule-desc {
  color: rgb(255 255 255 / 0.7);
}

@media (min-width: 768px) {
  .schedule-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 2fr);
    align-items: baseline;
    gap: 2rem;
  }
}

.participate {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.03);
  backdrop-filter: blur(4px);
}

.participate-grid {
  display: grid;
  align-items: center;
  gap: 2rem;
}

.participate h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

.participate p {
  max-width: 36rem;
  margin-top: 1rem;
  color: rgb(255 255 255 / 0.65);
}

.participate-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 768px) {
  .participate {
    margin-top: 5rem;
    padding: 2.5rem 3rem;
  }

  .participate-grid {
    grid-template-columns: 1.4fr auto;
  }

  .participate h3 {
    font-size: 1.875rem;
  }
}

/* ---------- 13. Contact ---------- */

.contact {
  background: var(--gray);
}

.contact-list {
  max-width: 42rem;
  margin-inline: auto;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 2rem;
  border-bottom: 1px solid rgb(26 34 44 / 0.1);
}

.contact-block:last-child {
  border-bottom: 0;
}

@media (min-width: 640px) {
  .contact-block {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.75rem;
  }
}

.contact-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: color-mix(in oklab, var(--red) 10%, transparent);
}

.contact-block h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--dark);
}

.contact-note {
  margin-top: 0.25rem;
  color: var(--muted);
}

.contact-address {
  margin-top: 0.5rem;
  color: var(--muted);
}

.contact-body {
  flex: 1;
  min-width: 0;
}

.contact-form {
  margin-top: 1.5rem;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--dark);
  background: #fff;
  border: 1px solid rgb(26 34 44 / 0.15);
  border-radius: 0;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgb(187 25 36 / 0.12);
}

.cf-turnstile:not(:empty) {
  margin-bottom: 1.25rem;
}

.contact-form .btn-primary {
  border: 0;
  cursor: pointer;
}

.contact-form .btn-primary[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.form-status[data-state="ok"] {
  color: #1a7f37;
}

.form-status[data-state="error"] {
  color: var(--red);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #25d366;
  transition: background 300ms ease;
}

.btn-whatsapp:hover {
  background: #128c7e;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 200ms ease;
}

.maps-link:hover {
  color: var(--red);
}

/* ---------- 14. Footer ---------- */

.site-footer {
  padding-block: 4rem;
  color: #fff;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-about {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.55);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgb(255 255 255 / 0.4);
}

.footer-grid ul {
  margin-top: 1.25rem;
}

.footer-grid li + li {
  margin-top: 0.625rem;
}

.footer-links a {
  color: rgb(255 255 255 / 0.7);
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-schedule {
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.6);
}

.footer-schedule strong {
  font-weight: 500;
  color: rgb(255 255 255 / 0.9);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.4);
}

/* ---------- 15. Scroll progress & skip link ---------- */

.scroll-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  height: 2px;
  background: var(--red);
  transform: scaleX(var(--progress));
  transform-origin: left center;
}

.skip-link:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 70;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  clip: auto;
  white-space: normal;
  color: var(--dark);
  background: #fff;
  box-shadow: 0 4px 16px rgb(12 18 24 / 0.2);
}

/* ---------- 16. Motion (progressive enhancement) ---------- */

/* Brand-mark breathing glow */
@keyframes soft-breathe {
  0%,
  100% {
    --glow-a: 0.28;
  }
  50% {
    --glow-a: 0.48;
  }
}

.hero-title {
  animation: soft-breathe 5.5s ease-in-out infinite;
}

@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes hero-dim {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.35;
  }
}

/* Scroll-driven animations where supported (Chrome/Edge/Safari) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 38%;
    }

    .reveal-late {
      animation-range: entry 10% cover 45%;
    }

    .hero-fade {
      animation: hero-dim linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}

/* IntersectionObserver fallback (class added by main.js) */
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(1.75rem);
      transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal.is-visible {
      opacity: 1;
      transform: none;
    }
  }
}

/* Per-row stagger where sibling-index() is supported */
@supports (z-index: sibling-index()) {
  @media (prefers-reduced-motion: no-preference) {
    .schedule-list > .schedule-row {
      animation: reveal-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
      animation-delay: calc((sibling-index() - 1) * 40ms);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-title,
  .hero-explore svg {
    animation: none;
  }
}

/* ---------- 17. 404 page ---------- */

.error-page {
  min-height: 100dvh;
  color: #fff;
  background: var(--ink);
}

.error-main {
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
}

.error-card {
  max-width: 28rem;
  text-align: center;
}

.error-brand {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--red);
}

.error-label {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.error-card h1 {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  font-weight: 500;
}

.error-card p {
  margin-bottom: 2.5rem;
  color: rgb(255 255 255 / 0.6);
}

@media (min-width: 768px) {
  .error-card h1 {
    font-size: 3rem;
  }
}
