/* ============================================================
   COOPERS EDGE COMMUNITY CHURCH — STYLESHEET
   Design system: warm editorial, organic serif meets clean sans
   ============================================================ */

/* ---- Design Tokens --------------------------------------- */
:root {
  /* Brand palette */
  --col-bg:        #f9f9f7;
  --col-text:      #111111;
  --col-taupe:     #cfcabe;
  --col-tan:       #c2a990;
  --col-rust:      #d8613c;
  --col-rust-dark: #b84e2c;
  --col-sage:      #b1c5a4;
  --col-gray:      #b5bdbc;
  --col-white:     #ffffff;
  --col-card:      #ffffff;
  --col-muted:     #5c5c5c;
  --col-line:      #e4e0d8;

  /* Typography */
  --font-serif: 'Cardo', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-w:   1100px;
  --nav-h:   72px;
  --radius:  8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-med:  300ms;
  --dur-slow: 500ms;
}

/* ---- Reset & Base --------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--col-text);
  background-color: var(--col-bg);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---- Skip Link --------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--col-rust);
  color: var(--col-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--dur-fast);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ---- Typography ---------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--col-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--col-rust);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--col-muted);
  max-width: 60ch;
  line-height: 1.75;
}

p {
  max-width: 70ch;
}

strong {
  font-weight: 600;
}

/* ---- Layout Utilities ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-xl);
  }
}

.section {
  padding-block: var(--space-xl);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-2xl);
  }
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header p {
  margin-top: var(--space-sm);
  color: var(--col-muted);
}

/* ---- Decorative Rule ----------------------------------- */
.rule {
  width: 48px;
  height: 2px;
  background: var(--col-rust);
  margin-block: var(--space-sm);
}

/* ---- Buttons ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all var(--dur-med) var(--ease);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--col-rust);
  color: var(--col-white);
  border: 2px solid var(--col-rust);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--col-rust-dark);
  border-color: var(--col-rust-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--col-rust);
  border: 2px solid var(--col-rust);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--col-rust);
  color: var(--col-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: transparent;
  color: var(--col-white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: rgba(255,255,255,0.15);
  border-color: var(--col-white);
}

/* ---- Cards --------------------------------------------- */
.card {
  background: var(--col-card);
  border: 1px solid var(--col-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-med) var(--ease),
              transform var(--dur-med) var(--ease);
}

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

/* ---- Navigation ---------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease),
              box-shadow var(--dur-med) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(249, 249, 247, 0.96);
  border-bottom-color: var(--col-line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .nav-inner {
    padding-inline: var(--space-xl);
  }
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.1;
  text-decoration: none;
}

.nav-logo-emblem {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--col-text);
  letter-spacing: -0.01em;
  transition: color var(--dur-med) var(--ease);
  white-space: nowrap;
}

.nav-logo-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--col-muted);
  letter-spacing: 0.03em;
  transition: color var(--dur-med) var(--ease);
  white-space: nowrap;
}

/* Desktop links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

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

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--col-text);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.65rem;
  right: 0.65rem;
  height: 2px;
  background: var(--col-rust);
  transform: scaleX(0);
  transition: transform var(--dur-med) var(--ease);
  transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
  color: var(--col-rust);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* ---- External nav link (Members) ---------------------- */
.nav-link-external {
  opacity: 0.75;
}

.nav-link-external:hover {
  opacity: 1;
}

/* ---- Nav: unscrolled state (white text on dark hero) --- */
.site-nav:not(.scrolled) .nav-logo-name {
  color: var(--col-white);
}

.site-nav:not(.scrolled) .nav-logo-sub {
  color: rgba(255, 255, 255, 0.6);
}

.site-nav:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.site-nav:not(.scrolled) .nav-link:hover,
.site-nav:not(.scrolled) .nav-link.active {
  color: var(--col-white);
}

.site-nav:not(.scrolled) .nav-link::after {
  background: var(--col-white);
}

.site-nav:not(.scrolled) .nav-toggle span {
  background: var(--col-white);
}

.nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  padding: 0;
  border-radius: var(--radius);
  transition: background var(--dur-fast);
}

.nav-toggle:hover {
  background: rgba(0,0,0,0.05);
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--col-text);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease),
              opacity var(--dur-fast),
              background var(--dur-med) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--col-bg);
  border-bottom: 1px solid var(--col-line);
  box-shadow: var(--shadow-md);
  z-index: 99;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  animation: slideDown var(--dur-med) var(--ease) both;
}

.nav-mobile.open {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.1rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--col-text);
  border-bottom: 1px solid var(--col-line);
  transition: color var(--dur-fast);
}

.nav-mobile a:last-child {
  border-bottom: none;
  margin-top: var(--space-sm);
  color: var(--col-rust);
}

.nav-mobile a:hover {
  color: var(--col-rust);
}

/* ---- Hero ---------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--col-text);
  padding-block: calc(var(--nav-h) + var(--space-xl)) var(--space-3xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(216, 97, 60, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 70% 30%, rgba(177, 197, 164, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, #1a1714 0%, #111111 50%, #1c1810 100%);
  z-index: 0;
}

/* Grain overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding-inline: var(--space-md);
}

.hero-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(177, 197, 164, 0.85);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--col-white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--col-tan);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  margin-bottom: var(--space-xl);
  line-height: 1.75;
  max-width: 54ch;
  margin-inline: auto;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.6s both;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s both;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s var(--ease-out) 1.5s both;
}

.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 36px; }
  50%       { opacity: 0.8; height: 48px; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Service Banner ------------------------------------- */
.service-banner {
  background: var(--col-rust);
  color: var(--col-white);
  padding: var(--space-lg) 0;
}

.service-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
  text-align: center;
}

.service-banner-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.service-banner-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.4);
}

@media (max-width: 600px) {
  .service-banner-divider {
    display: none;
  }
}

/* ---- Welcome Section ----------------------------------- */
.welcome {
  padding-block: var(--space-2xl);
}

.welcome-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .welcome-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.welcome-text h2 {
  margin-bottom: var(--space-md);
}

.welcome-text p {
  color: var(--col-muted);
  margin-top: var(--space-sm);
}

.welcome-card {
  background: var(--col-card);
  border: 1px solid var(--col-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--col-rust) 0%, var(--col-tan) 100%);
}

.service-time {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--col-rust);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.service-details {
  color: var(--col-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.service-formats {
  border-top: 1px solid var(--col-line);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-format-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.service-format-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  min-width: 8.5rem;
  text-align: center;
  background: rgba(216, 97, 60, 0.1);
  color: var(--col-rust);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-top: 2px;
}

.service-format-badge.green {
  background: rgba(177, 197, 164, 0.2);
  color: #4a7040;
}

.service-format-text {
  font-size: 0.92rem;
  color: var(--col-muted);
}

/* ---- Events Preview ------------------------------------ */
.events-preview {
  background: #f4f1ec;
  padding-block: var(--space-2xl);
  position: relative;
}

.events-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .events-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.event-card {
  background: var(--col-white);
  border: 1px solid var(--col-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  display: flex;
  flex-direction: column;
}

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

.event-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  background: rgba(216, 97, 60, 0.1);
}

.event-icon.sage {
  background: rgba(177, 197, 164, 0.2);
}

.event-icon.tan {
  background: rgba(194, 169, 144, 0.2);
}

.event-icon.taupe {
  background: rgba(207, 202, 190, 0.3);
}

.event-card h4 {
  font-family: var(--font-serif);
  margin-bottom: 0.4rem;
}

.event-card p {
  font-size: 0.9rem;
  color: var(--col-muted);
  flex: 1;
}

.event-when {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--col-rust);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: var(--space-md);
}

.events-footer {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ---- Values Strip -------------------------------------- */
.values {
  padding-block: var(--space-2xl);
  background: var(--col-text);
  color: var(--col-white);
}

.values .eyebrow {
  color: var(--col-sage);
}

.values h2 {
  color: var(--col-white);
}

.values-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.value-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: rgba(255,255,255,0.04);
  transition: background var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}

.value-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.value-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.value-card h3 {
  color: var(--col-white);
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.value-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ---- Find Us ------------------------------------------- */
.find-us {
  padding-block: var(--space-2xl);
}

.find-us-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .find-us-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(216, 97, 60, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--col-rust);
}

.contact-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--col-muted);
  margin-bottom: 0.2rem;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--col-text);
}

.contact-info-value a {
  color: var(--col-rust);
  transition: color var(--dur-fast);
}

.contact-info-value a:hover {
  color: var(--col-rust-dark);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--col-line);
  box-shadow: var(--shadow-sm);
  background: #e8e4dc;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: rgba(0,0,0,0.04);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--col-text);
  transition: all var(--dur-fast);
  text-decoration: none;
}

.social-link:hover {
  background: rgba(216, 97, 60, 0.08);
  color: var(--col-rust);
}

/* ---- Page Hero (interior pages) ----------------------- */
.page-hero {
  background: var(--col-text);
  padding-top: calc(var(--nav-h) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 40%, rgba(216, 97, 60, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 70%, rgba(177, 197, 164, 0.08) 0%, transparent 60%);
}

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

.page-hero .eyebrow {
  color: var(--col-sage);
  opacity: 0.85;
}

.page-hero h1 {
  color: var(--col-white);
  margin-top: var(--space-sm);
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  font-weight: 300;
  margin-top: var(--space-sm);
}

/* ---- Tabs (About page) -------------------------------- */
.tabs {
  border-bottom: 1px solid var(--col-line);
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 1rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--col-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

.tab-btn:hover {
  color: var(--col-text);
}

.tab-btn.active {
  color: var(--col-rust);
  border-bottom-color: var(--col-rust);
}

.tab-panel {
  display: none;
  padding-block: var(--space-2xl);
}

.tab-panel.active {
  display: block;
}

/* ---- Timeline ----------------------------------------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--col-line);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--col-rust);
  border: 2px solid var(--col-bg);
  box-shadow: 0 0 0 2px var(--col-rust);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--col-rust);
  margin-bottom: 0.4rem;
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: var(--col-muted);
  font-size: 0.95rem;
}

/* ---- Leadership Cards --------------------------------- */
.leaders-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .leaders-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .leaders-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.leader-card {
  background: var(--col-white);
  border: 1px solid var(--col-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.leader-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--col-tan) 0%, var(--col-taupe) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--col-white);
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.leader-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ---- Sunday service photo grid ------------------------ */
.service-photo-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  margin-top: var(--space-lg);
}

@media (min-width: 640px) {
  .service-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--col-line);
  box-shadow: var(--shadow-sm);
}

.service-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.service-photo-label {
  padding: 0.6rem var(--space-sm);
  background: var(--col-white);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--col-muted);
  text-align: center;
}

.leader-role {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--col-rust);
  margin-bottom: var(--space-sm);
}

.leader-card p {
  font-size: 0.9rem;
  color: var(--col-muted);
}

/* ---- What's On activities ------------------------------ */
.activity {
  padding-block: var(--space-xl);
  border-bottom: 1px solid var(--col-line);
}

.activity:last-child {
  border-bottom: none;
}

.activity-inner {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .activity-inner {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

.activity-meta {
  background: var(--col-white);
  border: 1px solid var(--col-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.activity-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

.activity-meta-item:last-child {
  margin-bottom: 0;
}

.activity-meta-icon {
  color: var(--col-rust);
  margin-top: 2px;
  flex-shrink: 0;
}

.activity-meta-text {
  font-size: 0.9rem;
  color: var(--col-muted);
}

.activity-meta-label {
  font-weight: 600;
  color: var(--col-text);
  font-size: 0.85rem;
  display: block;
}

.activity h3 {
  margin-bottom: var(--space-sm);
}

.activity p {
  color: var(--col-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

/* ---- Easter Events Cards ------------------------------- */
.easter-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .easter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .easter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.easter-card {
  background: var(--col-white);
  border: 1px solid var(--col-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--space-md);
}

.easter-date-block {
  flex-shrink: 0;
  background: var(--col-rust);
  color: var(--col-white);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  text-align: center;
  min-width: 56px;
}

.easter-date-day {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.easter-date-month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.easter-card-content h4 {
  font-family: var(--font-serif);
  margin-bottom: 0.3rem;
}

.easter-time {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--col-rust);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.easter-card-content p {
  font-size: 0.88rem;
  color: var(--col-muted);
}

/* ---- Giving Page --------------------------------------- */
.giving-hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-sm);
}

.giving-content {
  padding-block: var(--space-2xl);
}

.giving-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .giving-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.giving-section {
  margin-bottom: var(--space-xl);
}

.giving-section:last-child {
  margin-bottom: 0;
}

.giving-section h3 {
  margin-bottom: var(--space-sm);
}

.giving-section p {
  color: var(--col-muted);
  margin-bottom: var(--space-md);
}

.bank-details {
  background: var(--col-white);
  border: 1px solid var(--col-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bank-details-header {
  background: var(--col-rust);
  color: var(--col-white);
  padding: var(--space-md) var(--space-lg);
}

.bank-details-header h4 {
  color: var(--col-white);
  font-size: 1rem;
}

.bank-details-body {
  padding: var(--space-lg);
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--col-line);
  gap: var(--space-sm);
}

.bank-detail-row:last-child {
  border-bottom: none;
}

.bank-detail-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--col-muted);
  flex-shrink: 0;
}

.bank-detail-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--col-text);
  text-align: right;
}

.bank-detail-row.highlight {
  background: rgba(216, 97, 60, 0.04);
  margin-inline: calc(-1 * var(--space-lg));
  padding-inline: var(--space-lg);
}

.bank-detail-row.highlight .bank-detail-value {
  color: var(--col-rust);
}

.bank-details-note {
  background: rgba(177, 197, 164, 0.15);
  border: 1px solid rgba(177, 197, 164, 0.4);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-top: var(--space-md);
  font-size: 0.88rem;
  color: #3a5a32;
}

.gift-aid-card {
  background: var(--col-white);
  border: 1px solid var(--col-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.gift-aid-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--col-rust);
  background: rgba(216, 97, 60, 0.08);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: var(--space-md);
}

.gift-aid-card p {
  font-size: 0.92rem;
  color: var(--col-muted);
}

.giving-cta-box {
  background: linear-gradient(135deg, var(--col-text) 0%, #2a1f1a 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: var(--col-white);
  text-align: center;
}

.giving-cta-box h3 {
  color: var(--col-white);
  margin-bottom: var(--space-sm);
}

.giving-cta-box p {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  margin-bottom: var(--space-lg);
  margin-inline: auto;
}

/* ---- Intro block --------------------------------------- */
.intro-block {
  max-width: 680px;
}

/* ---- Scroll reveal ------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Footer ------------------------------------------- */
.site-footer {
  background: #141210;
  color: rgba(255,255,255,0.7);
  padding-block: var(--space-2xl) var(--space-lg);
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo-img {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.footer-brand-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-md);
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 30ch;
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-md);
  color: var(--col-white);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--dur-fast);
}

.footer-col a:hover {
  color: var(--col-white);
}

.footer-col p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
  max-width: 24ch;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: all var(--dur-fast);
  text-decoration: none;
}

.footer-social-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--col-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  transition: color var(--dur-fast);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.6);
}

/* ---- Utility ------------------------------------------ */
.text-center { text-align: center; }
.text-muted { color: var(--col-muted); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* Visually hidden for accessibility */
.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;
}

/* ---- Hover lift (replaces inline onmouseover/onmouseout) --- */
.hover-lift:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
  transform: translateY(-2px) !important;
}
