/* ==========================================================================
   Missionary Church of Groton, demo site stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy-900: #1a3050;
  --navy-800: #243d5c;
  --navy-700: #35557a;
  --navy-600: #4a6d96;
  --sky-100: #f3f7fb;
  --sky-200: #e7eef6;
  --sky-300: #d5e2ef;
  --gold-500: #b8923a;
  --gold-400: #c9a85a;
  --gold-300: #d9bf7e;
  --cream-100: #fbfaf8;
  --cream-200: #f4f1ec;
  --cream-300: #e6e0d6;
  --ink-900: #1b1a17;
  --ink-700: #3d3a34;
  --ink-500: #6b665d;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.34rem + 0.8vw, 2rem);
  --step-3: clamp(1.95rem, 1.65rem + 1.5vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.85rem + 2.75vw, 4.2rem);

  --shell: 1160px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(26, 48, 80, 0.05), 0 4px 12px rgba(26, 48, 80, 0.05);
  --shadow-md: 0 12px 32px rgba(26, 48, 80, 0.08);
  --shadow-lg: 0 28px 64px rgba(26, 48, 80, 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy-600);
  text-decoration-color: rgba(43, 71, 112, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover { color: var(--gold-500); }

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

ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 0; color: var(--white); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.shell--narrow { max-width: 780px; }

.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--cream { background: var(--cream-200); }
.section--navy {
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(184, 146, 58, 0.1), transparent 55%),
    linear-gradient(180deg, var(--sky-100), var(--sky-200));
  color: var(--ink-700);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--navy-900); }

.section--navy .lede { color: var(--ink-700); }

.section--navy .btn--ghost {
  border-color: rgba(26, 48, 80, 0.28);
  color: var(--navy-800);
}

.section--navy .btn--ghost:hover {
  border-color: var(--navy-700);
  background: rgba(26, 48, 80, 0.06);
  color: var(--navy-900);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: var(--gold-500);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-700);
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--gold-300);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
}

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

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

.btn--outline {
  border-color: rgba(30, 52, 84, 0.3);
  color: var(--navy-700);
}

.btn--outline:hover {
  border-color: var(--navy-700);
  background: var(--navy-700);
  color: var(--white);
}

.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   5. Header + navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--sky-200);
  color: var(--ink-700);
  font-size: var(--step--1);
  border-bottom: 1px solid var(--sky-300);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  align-items: center;
  justify-content: center;
  padding-block: 0.55rem;
  text-align: center;
}

.topbar a { color: var(--navy-800); text-decoration: none; }
.topbar a:hover { color: var(--gold-500); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid-enough fill (no backdrop-filter) so fixed mobile nav isn't trapped
     in a sticky containing block. */
  background: rgba(251, 250, 248, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--cream-300);
  box-shadow: 0 6px 24px rgba(16, 28, 51, 0.07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: var(--navy-900);
}

.brand > span:last-child {
  min-width: 0;
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(22, 38, 63, 0.08);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand__tag {
  display: block;
  color: var(--ink-500);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 130;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li { margin: 0; }

.site-nav__link {
  position: relative;
  padding-block: 0.35rem;
  color: var(--navy-800);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width 0.25s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { width: 100%; }

.site-nav__link[aria-current="page"] { color: var(--navy-900); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    url("../hero.png") center 40% / cover no-repeat;
  color: var(--ink-700);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(251, 250, 248, 0.92) 0%,
      rgba(243, 247, 251, 0.88) 36%,
      rgba(243, 247, 251, 0.62) 62%,
      rgba(243, 247, 251, 0.28) 100%
    ),
    linear-gradient(
      to top,
      rgba(251, 250, 248, 0.55) 0%,
      transparent 40%
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--cream-100));
  opacity: 0.7;
  pointer-events: none;
}

.hero__glass {
  display: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.hero h1 { color: var(--navy-900); }

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

.hero .lede {
  color: var(--ink-700);
  max-width: 42ch;
}

.hero__verse {
  margin-top: 1.75rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--gold-500);
  color: var(--ink-700);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
}

.hero__verse cite {
  display: block;
  margin-top: 0.35rem;
  color: var(--gold-500);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero .btn--ghost {
  border-color: rgba(26, 48, 80, 0.28);
  color: var(--navy-800);
}

.hero .btn--ghost:hover {
  border-color: var(--navy-700);
  background: rgba(26, 48, 80, 0.06);
  color: var(--navy-900);
}

/* Next-service card ------------------------------------------------------- */
.next-service {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--sky-300);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.next-service__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--gold-500);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 0 rgba(201, 168, 90, 0.7);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(201, 168, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 90, 0); }
}

.next-service__title {
  margin-bottom: 0.15rem;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: var(--step-2);
}

.next-service__when {
  margin-bottom: 1.25rem;
  color: var(--ink-500);
  font-size: var(--step--1);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.countdown__unit {
  padding: 0.7rem 0.35rem;
  border-radius: var(--radius-sm);
  background: var(--sky-100);
  border: 1px solid var(--sky-300);
  text-align: center;
}

.countdown__value {
  display: block;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__unit small {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-500);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.next-service__list {
  margin: 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--sky-300);
  list-style: none;
}

.next-service__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-block: 0.4rem;
  font-size: var(--step--1);
}

.next-service__list span:first-child { color: var(--ink-700); }
.next-service__list span:last-child { color: var(--gold-500); font-weight: 600; }

/* --------------------------------------------------------------------------
   7. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: url("../hero.png") center 35% / cover no-repeat;
  color: var(--ink-700);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(251, 250, 248, 0.92) 0%,
      rgba(243, 247, 251, 0.84) 50%,
      rgba(243, 247, 251, 0.55) 100%
    );
  pointer-events: none;
}

.page-hero > .shell {
  position: relative;
  z-index: 1;
}

.page-hero h1 { color: var(--navy-900); max-width: 18ch; }
.page-hero .lede { max-width: 58ch; color: var(--ink-700); }
.page-hero .eyebrow { color: var(--gold-500); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs a { color: var(--navy-700); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-500); }
.breadcrumbs span[aria-current] { color: var(--gold-500); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  height: 100%;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 160, 68, 0.55);
  box-shadow: var(--shadow-md);
}

.card h3 { font-size: var(--step-1); }
.card p:last-child { margin-bottom: 0; }

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--cream-200);
  color: var(--navy-700);
}

.card__icon svg { width: 24px; height: 24px; }

.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }

.card--dark {
  border-color: var(--cream-300);
  background: var(--white);
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
}

.card--dark:hover { border-color: rgba(184, 146, 58, 0.55); }
.card--dark .card__icon { background: var(--sky-200); color: var(--navy-700); }

/* Service times ----------------------------------------------------------- */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  border: 1px solid var(--cream-300);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.service-card__time {
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1;
}

.service-card__name {
  color: var(--navy-800);
  font-size: 1rem;
  font-weight: 700;
}

.service-card__note { color: var(--ink-500); font-size: var(--step--1); }

/* Split feature ----------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.figure-panel {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(100% 80% at 20% 10%, rgba(184, 146, 58, 0.14), transparent 60%),
    linear-gradient(150deg, var(--sky-100), var(--sky-300));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.figure-panel--logo {
  background:
    radial-gradient(100% 80% at 80% 0%, rgba(55, 90, 140, 0.08), transparent 55%),
    linear-gradient(165deg, #f7f9fc, #eef2f7);
}

.figure-panel--photo {
  min-height: 0;
  height: auto;
  align-self: center;
  background: transparent;
}

.figure-panel__photo {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1024 / 682;
  object-fit: cover;
}

.figure-panel__photo--pastors {
  aspect-ratio: 1024 / 815;
  object-position: center 20%;
}

.figure-panel__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--navy-800);
}

.figure-panel__inner svg {
  width: clamp(80px, 18vw, 130px);
  height: auto;
  color: var(--gold-500);
}

.figure-panel__logo {
  width: min(100%, 280px);
  height: auto;
  display: block;
}

.figure-panel__caption {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--ink-700);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-300);
}

.stat__value {
  display: block;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-500);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   9. Events
   -------------------------------------------------------------------------- */
.event-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.event:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.event__date {
  display: grid;
  place-items: center;
  padding: 0.6rem 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--sky-200);
  color: var(--navy-900);
  text-align: center;
  border: 1px solid var(--sky-300);
}

.event__month {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.event__day {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.05;
}

.event__body h3 { margin-bottom: 0.2rem; font-size: var(--step-1); }
.event__meta { color: var(--ink-500); font-size: var(--step--1); margin: 0; }

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--cream-200);
  color: var(--navy-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--gold { background: rgba(200, 160, 68, 0.18); color: #7a5f14; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-btn:hover { border-color: var(--navy-600); color: var(--navy-800); }

.filter-btn.is-active {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--white);
}

.empty-state {
  padding: 2rem;
  border: 1px dashed var(--cream-300);
  border-radius: var(--radius-md);
  color: var(--ink-500);
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. Accordion
   -------------------------------------------------------------------------- */
.accordion {
  border-top: 1px solid var(--cream-300);
}

.accordion__item { border-bottom: 1px solid var(--cream-300); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.15rem 0;
  border: 0;
  background: none;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion__trigger:hover { color: var(--navy-600); }

.accordion__icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--cream-300);
  border-radius: 50%;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--navy-700);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.accordion__panel > div { overflow: hidden; }

.accordion__panel.is-open { grid-template-rows: 1fr; }

.accordion__panel p { padding-bottom: 1.2rem; max-width: 68ch; }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy-800);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.field .req { color: #b4452f; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-sm);
  background: var(--cream-100);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(43, 71, 112, 0.12);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b4452f;
  box-shadow: 0 0 0 3px rgba(180, 69, 47, 0.12);
}

.field__error {
  display: none;
  margin-top: 0.35rem;
  color: #b4452f;
  font-size: 0.78rem;
  font-weight: 600;
}

.field.has-error .field__error { display: block; }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 1rem;
}

.form-note {
  margin-top: 1rem;
  color: var(--ink-500);
  font-size: var(--step--1);
}

.form-status {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(45, 122, 84, 0.12); color: #1f5c3d; }

/* --------------------------------------------------------------------------
   12. Contact / info blocks
   -------------------------------------------------------------------------- */
.info-list { margin: 0; padding: 0; list-style: none; }

.info-list li {
  display: flex;
  gap: 0.9rem;
  margin: 0;
  padding-block: 1rem;
  border-bottom: 1px solid var(--cream-300);
}

.info-list li:last-child { border-bottom: 0; }

.info-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  color: var(--gold-500);
}

.info-list strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-frame {
  width: 100%;
  min-height: 340px;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  background: var(--cream-200);
}

.map-frame--tall { min-height: 420px; }

/* --------------------------------------------------------------------------
   13. Callout / CTA
   -------------------------------------------------------------------------- */
.cta-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4.5vw, 3.25rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(184, 146, 58, 0.14), transparent 55%),
    linear-gradient(140deg, var(--sky-100), var(--sky-200));
  color: var(--ink-700);
  border: 1px solid var(--sky-300);
  box-shadow: var(--shadow-sm);
}

.cta-band h2 { color: var(--navy-900); margin-bottom: 0.35rem; }

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
}

.cta-band .btn--ghost {
  border-color: rgba(26, 48, 80, 0.28);
  color: var(--navy-800);
}

.cta-band .btn--ghost:hover {
  border-color: var(--navy-700);
  background: rgba(26, 48, 80, 0.06);
  color: var(--navy-900);
}

blockquote.quote {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--cream-300);
  box-shadow: var(--shadow-sm);
}

blockquote.quote p {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--navy-800);
}

blockquote.quote footer {
  color: var(--ink-500);
  font-size: var(--step--1);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--sky-100);
  color: var(--ink-700);
  font-size: 0.92rem;
  border-top: 1px solid var(--sky-300);
}

.site-footer a { color: var(--navy-800); text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); }

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3rem, 5vw, 4.25rem);
}

.site-footer h4 {
  margin-bottom: 1rem;
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.6rem; }

.footer-brand .brand { color: var(--navy-900); margin-bottom: 1rem; }
.footer-brand .brand__mark {
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(26, 48, 80, 0.08);
}
.footer-brand .brand__tag { color: var(--ink-500); }
.footer-brand p { max-width: 38ch; }

.social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--sky-300);
  border-radius: 50%;
  color: var(--navy-800);
  transition: all 0.2s var(--ease);
}

.social a:hover {
  border-color: var(--gold-500);
  background: rgba(184, 146, 58, 0.12);
  color: var(--navy-900);
  transform: translateY(-2px);
}

.social svg { width: 17px; height: 17px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid var(--sky-300);
  font-size: 0.8rem;
  color: var(--ink-500);
}

.demo-note {
  padding: 0.75rem 1rem;
  border: 1px dashed var(--sky-300);
  border-radius: var(--radius-sm);
  color: var(--ink-500);
  background: var(--white);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   15. Utilities + motion
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: var(--shadow-md);
  transition: all 0.25s var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-500); color: var(--navy-900); }
.to-top svg { width: 18px; height: 18px; }

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

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

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.4rem;
    width: min(320px, 86vw);
    max-width: 100%;
    padding: 5.75rem 1.5rem max(2rem, env(safe-area-inset-bottom));
    background: var(--cream-100);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open { transform: translateX(0); visibility: visible; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }

  .site-nav__link {
    display: block;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--cream-300);
    font-size: 1.05rem;
    white-space: normal;
  }

  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--gold-500); }
  .site-nav .btn { margin-top: 1.25rem; width: 100%; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(16, 28, 51, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  .nav-scrim.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }

  .hero {
    background-position: center 28%;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(251, 250, 248, 0.94) 0%,
        rgba(243, 247, 251, 0.9) 42%,
        rgba(243, 247, 251, 0.78) 100%
      ),
      linear-gradient(
        to top,
        rgba(251, 250, 248, 0.7) 0%,
        transparent 45%
      );
  }

  .page-hero {
    background-position: center 30%;
    padding-block: clamp(2.5rem, 8vw, 4rem);
  }

  .page-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(251, 250, 248, 0.94) 0%,
        rgba(243, 247, 251, 0.88) 55%,
        rgba(243, 247, 251, 0.78) 100%
      );
  }

  .split,
  .grid--2,
  .grid--3,
  .cta-band,
  .site-footer__grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    gap: 1.75rem;
  }
}

@media (max-width: 620px) {
  .section {
    padding-block: clamp(2.75rem, 10vw, 4rem);
  }

  .brand__mark { width: 42px; height: 42px; }
  .brand__name { font-size: 1.05rem; }
  .brand__tag { font-size: 0.62rem; letter-spacing: 0.12em; }

  .topbar__inner {
    font-size: 0.74rem;
    gap: 0.25rem 0.85rem;
    padding-block: 0.45rem;
  }

  .topbar__sep--after-phone,
  .topbar__schedule { display: none; }

  .hero__inner {
    gap: 1.5rem;
    padding-block: clamp(2.5rem, 10vw, 4rem);
  }

  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }

  .hero__actions {
    margin-top: 1.5rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .next-service {
    padding: 1.25rem;
  }

  .countdown {
    gap: 0.35rem;
  }

  .countdown__unit {
    padding: 0.55rem 0.2rem;
  }

  .countdown__value {
    font-size: 1.3rem;
  }

  .countdown__unit small {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }

  .next-service__list li {
    flex-wrap: wrap;
    gap: 0.2rem 0.75rem;
  }

  .figure-panel {
    min-height: 220px;
  }

  .figure-panel__logo {
    width: min(100%, 200px);
  }

  .figure-panel__inner {
    padding: 1.25rem;
  }

  .event { grid-template-columns: 64px minmax(0, 1fr); }
  .event .tag { grid-column: 2; justify-self: start; }
  .event__day { font-size: 1.35rem; }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .map-frame,
  .map-frame--tall {
    min-height: 260px;
  }

  .cta-band {
    padding: 1.5rem;
  }

  .cta-band__actions {
    width: 100%;
  }

  .cta-band__actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 11rem);
  }

  .info-list a {
    overflow-wrap: anywhere;
  }

  .site-footer__bottom {
    justify-content: flex-start;
  }

  .btn {
    padding: 0.8rem 1.35rem;
  }
}

@media (max-width: 380px) {
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    padding: 0.5rem 0.65rem;
    gap: 0;
    font-size: 0;
  }

  .nav-toggle__bars {
    margin: 0;
  }

  .topbar__inner {
    flex-direction: column;
    gap: 0.15rem;
  }

  .topbar__inner > span[aria-hidden] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .to-top, .site-nav, .hero__glass { display: none !important; }
  body { background: #fff; }
}
