/* TIYOFI - Timeless Yoga & Fitness
   Design system: deep forest green + warm gold + cream
   Fonts: Cormorant Garamond (headings) + Lato (body)
   -------------------------------------------------------- */

:root {
  /* Brand palette */
  --color-primary:      #2d6a4f;
  --color-primary-dark: #1f4f3a;
  --color-primary-light:#52b788;
  --color-accent:       #c4944a;
  --color-accent-light: #e8c88a;

  /* Backgrounds */
  --color-cream:      #f9f6f1;
  --color-sage-light: #ebf0ec;
  --color-sand:       #f2ece0;

  /* Text */
  --color-dark:   #1b2e22;
  --color-text:   #2c3530;
  --color-muted:  #6f7a72;
  --color-white:  #ffffff;

  /* Borders */
  --color-border: #cfddd4;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --max-w:       1160px;
  --max-w-prose: 720px;
  --radius:      12px;
  --radius-sm:   7px;

  /* Shadows */
  --shadow:    0 8px 32px rgba(45, 106, 79, 0.10);
  --shadow-lg: 0 16px 48px rgba(45, 106, 79, 0.16);

  /* Transitions */
  --t: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Prevent iOS Safari from inflating text on orientation change (and keeping it large). */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; font-weight: 600; font-family: var(--font-body); }
h5 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body); color: var(--color-muted); }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ---- Utility --------------------------------------------------------- */
.container      { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-lg); }
.container-prose { max-width: var(--max-w-prose); margin: 0 auto; padding: 0 var(--space-lg); }
.text-center { text-align: center; }
.text-muted  { color: var(--color-muted); }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-sm     { font-size: 0.9rem; }
.text-lg     { font-size: 1.15rem; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t), transform 0.12s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

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

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn--accent:hover { background: #a87a39; border-color: #a87a39; }

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

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}
.btn--outline-white:hover { background: var(--color-white); color: var(--color-primary); }

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: transparent;
  padding-left: 0; padding-right: 0;
}
.btn--ghost:hover { color: var(--color-primary-dark); text-decoration: underline; transform: none; }

/* ---- Call CTA (phone button; see js/main.js decodeTel) --------------- */
.call-btn { display: inline-flex; align-items: center; gap: 8px; }
.call-btn svg { width: 18px; height: 18px; }
.footer-call-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; color: rgba(255,255,255,0.7);
}
.footer-call-btn:hover { color: var(--color-white); }

/* ---- Sections -------------------------------------------------------- */
.section    { padding: var(--space-2xl) 0; }
.section-lg { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-xl) 0; }
.section--cream  { background: var(--color-cream); }
.section--sage   { background: var(--color-sage-light); }
.section--sand   { background: var(--color-sand); }
.section--dark   { background: var(--color-dark); }
.section--primary { background: var(--color-primary); }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.section-head {
  margin-bottom: var(--space-xl);
}
.section-head h2 { margin-bottom: var(--space-md); }
.section-head p  { color: var(--color-muted); font-size: 1.08rem; max-width: 600px; }
.section-head.centered { text-align: center; }
.section-head.centered p { margin: 0 auto; }

.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  margin: var(--space-md) 0 var(--space-lg);
}
.divider.centered { margin-left: auto; margin-right: auto; }

/* ---- Header ---------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--t);
}
.header.scrolled { box-shadow: 0 4px 24px rgba(45,106,79,0.10); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  height: 70px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.site-logo svg.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text-main {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.06em;
}
.logo-text-sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 1px;
}

/* Main nav */
.nav-main {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
}
.nav-main a {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--t), background var(--t);
}
.nav-main a:hover { color: var(--color-primary); background: var(--color-sage-light); }
.nav-main a.active { color: var(--color-primary); background: var(--color-sage-light); }
.nav-main a.nav-cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 9px 18px;
}
.nav-main a.nav-cta:hover { background: var(--color-primary-dark); }

/* Mobile nav toggle */
.nav-toggle { display: none; } /* hidden on desktop - all other props set in media query */

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1b2e22; /* explicit hex fallback for iOS Safari */
  background: var(--color-dark, #1b2e22);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
              opacity  0.2s ease,
              width    0.3s ease;
}

/* Hamburger → X */
.nav-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Mobile nav panel - visibility-based so transform can animate */
.mobile-nav {
  display: block;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--color-white);
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  z-index: 300;
  transform: translateX(105%);
  visibility: hidden;
  box-shadow: -8px 0 40px rgba(27,46,34,0.18);
  overflow-y: auto;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
              visibility 0s linear 0.35s;
}
.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
              visibility 0s linear 0s;
}
.mobile-nav-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--color-sage-light);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  color: var(--color-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t);
}
.mobile-nav-close:hover { background: var(--color-border); color: var(--color-dark); }

/* Mobile nav logo */
.mobile-nav .mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: var(--space-xl);
  padding-top: var(--space-xs);
}
.mobile-nav .mobile-nav-logo .logo-text-main { font-size: 1.3rem; }

.mobile-nav ul { list-style: none; margin: 0; }
.mobile-nav li {
  border-bottom: 1px solid var(--color-border);
  transform: translateX(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-nav.open li { transform: translateX(0); opacity: 1; }
.mobile-nav.open li:nth-child(1) { transition-delay: 0.06s; }
.mobile-nav.open li:nth-child(2) { transition-delay: 0.10s; }
.mobile-nav.open li:nth-child(3) { transition-delay: 0.14s; }
.mobile-nav.open li:nth-child(4) { transition-delay: 0.18s; }
.mobile-nav.open li:nth-child(5) { transition-delay: 0.22s; }
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 15px 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-dark);
  text-decoration: none;
  transition: color var(--t), padding-left var(--t);
}
.mobile-nav a:hover { color: var(--color-primary); padding-left: 6px; }
.mobile-nav a.active { color: var(--color-primary); }
.mobile-nav .mobile-cta {
  margin-top: var(--space-xl);
  display: block;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.28s, transform 0.3s ease 0.28s;
}
.mobile-nav.open .mobile-cta { opacity: 1; transform: translateY(0); }

/* Overlay - visibility approach, always in DOM */
.overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(27,46,34,0.5);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease,
              visibility 0s linear 0.35s;
}
.overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease,
              visibility 0s linear 0s;
}

/* Lock body scroll when nav is open */
body.nav-open { overflow: hidden; }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-md);
}
.hero h1 { color: var(--color-white); margin-bottom: var(--space-md); }
.hero .hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: var(--space-xl);
}
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* Hero split layout (about page) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  overflow: hidden;
}
.hero-split-media { position: relative; min-height: 400px; }
.hero-split-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-split-body {
  background: var(--color-dark);
  padding: var(--space-3xl) var(--space-xl);
  display: flex;
  align-items: center;
}
.hero-split-body .hero-label { color: var(--color-accent-light); }
.hero-split-body h1 { color: var(--color-white); margin-bottom: var(--space-md); }
.hero-split-body p { color: rgba(255,255,255,0.8); }

/* ---- Cards ----------------------------------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}
.card-image {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl)) var(--space-lg);
}
.card-image img { width: 100%; height: 200px; object-fit: cover; }
.card-image-link { display: block; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-lg); }

/* Centered 2-up card grid: 2x2 on desktop, single column on mobile,
   partial rows stay centered */
.offerings-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.offerings-grid > * {
  flex: 1 1 300px;
  max-width: 360px;
}

/* ---- Feature / pillar strip ----------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.pillar {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}
.pillar-icon {
  width: 56px;
  height: 56px;
  background: var(--color-sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}
.pillar-icon svg { width: 26px; height: 26px; color: var(--color-primary); }
.pillar h4 { margin-bottom: var(--space-sm); color: var(--color-dark); }
.pillar p { font-size: 0.92rem; color: var(--color-muted); }

/* ---- Offering cards -------------------------------------------------- */
.offering-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
}
.offering-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.offering-icon {
  width: 52px; height: 52px;
  background: linear-gradient(162deg, var(--color-sage-light), var(--color-cream));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-md);
}
.offering-icon svg { width: 26px; height: 26px; color: var(--color-primary); }
.offering-card h3 { font-size: 1.35rem; margin-bottom: var(--space-sm); }
.offering-card p { color: var(--color-muted); font-size: 0.95rem; margin-bottom: var(--space-md); }
.offering-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-sage-light);
  color: var(--color-primary);
}
.offering-card .pronounce {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  margin-top: 2px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  transition: gap var(--t), color var(--t);
}
.card-link:hover { color: var(--color-accent); gap: 10px; text-decoration: none; }

/* ---- Offering landing media ----------------------------------------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-primary-dark);
}
.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-align: center;
  padding: var(--space-lg);
  background: linear-gradient(162deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: rgba(255,255,255,0.88);
}
.video-placeholder svg { width: 46px; height: 46px; color: var(--color-accent); }
.video-placeholder strong { font-size: 1rem; font-weight: 600; color: var(--color-white); }
.video-placeholder small { font-size: 0.82rem; color: rgba(255,255,255,0.6); max-width: 380px; }
.pronounce-inline {
  font-family: var(--font-body);
  font-size: 0.5em;
  font-style: italic;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: middle;
}
.sample-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}
.sample-card h4 { margin-bottom: var(--space-xs); color: var(--color-dark); }
.sample-card p { font-size: 0.9rem; color: var(--color-muted); margin: 0; }
.sample-card .offering-tag { margin-bottom: var(--space-sm); }

/* ---- About / split section ------------------------------------------ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split-accent {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 80px; height: 80px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.2;
}

/* ---- Checklist ------------------------------------------------------- */
.checklist { list-style: none; }
.checklist li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}
.checklist li:last-child { border-bottom: none; }
.checklist-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.checklist-icon svg { width: 12px; height: 12px; color: white; }

/* ---- YouTube section ------------------------------------------------- */
.youtube-section { text-align: center; }
.youtube-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ff0000;
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--t), transform var(--t);
  margin-top: var(--space-lg);
}
.youtube-badge:hover { background: #cc0000; transform: translateY(-2px); text-decoration: none; color: white; }
.youtube-badge svg { width: 24px; height: 24px; }

/* ---- CTA band -------------------------------------------------------- */
.cta-band {
  background: linear-gradient(162deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}
.cta-band h2 { color: var(--color-white); margin-bottom: var(--space-md); }
.cta-band p  { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto var(--space-xl); }

/* ---- Contact form ---------------------------------------------------- */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}
.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-honeypot { display: none; }

/* ---- Alerts ---------------------------------------------------------- */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}
.alert--ok  { background: #e6f4ed; color: #1f6a44; border: 1px solid #b0d9c1; }
.alert--err { background: #fce8e8; color: #9b1c1c; border: 1px solid #f3b4b4; }

/* ---- Blog cards ------------------------------------------------------ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-lg); }
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-image { overflow: hidden; }
.blog-card-image img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card-body { padding: var(--space-xl); }
.blog-card-cat {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: var(--space-sm);
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--color-primary); text-decoration: none; }
.blog-card-meta { font-size: 0.85rem; color: var(--color-muted); margin-top: var(--space-md); }

/* ---- Page hero (inner pages) ----------------------------------------- */
.page-hero {
  background: linear-gradient(162deg, var(--color-sage-light) 0%, var(--color-cream) 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
}
.page-hero h1 { margin-bottom: var(--space-md); }
.page-hero p  { color: var(--color-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---- Breadcrumb ------------------------------------------------------ */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Post body (blog articles) --------------------------------------- */
.post-body { max-width: var(--max-w-prose); margin: 0 auto; }
.post-body p  { margin-bottom: 1.3em; font-size: 1.05rem; }
.post-body h2 { font-size: 2rem; margin: 2.2em 0 0.7em; }
.post-body h3 { font-size: 1.5rem; margin: 1.8em 0 0.6em; }
.post-body ul,
.post-body ol { margin: 0 0 1.3em 1.6em; }
.post-body li { margin-bottom: 0.4em; }
.post-body blockquote {
  border-left: 3px solid var(--color-primary);
  margin: 1.8em 0;
  padding: 0.4em 0 0.4em 1.4em;
  color: var(--color-muted);
  font-style: italic;
}
.post-body a { color: var(--color-primary); text-decoration: underline; }
.post-body strong { font-weight: 700; }

/* ---- FAQ (blog posts) ------------------------------------------------ */
.post-faq { border-top: 2px solid var(--color-sage-light); margin-top: var(--space-3xl); padding-top: var(--space-2xl); }
.faq-item { background: var(--color-cream); border-radius: var(--radius-sm); padding: var(--space-lg); margin-bottom: var(--space-md); }
.faq-item h4 { margin-bottom: var(--space-sm); color: var(--color-dark); }
.faq-item p { color: var(--color-muted); font-size: 0.95rem; }

/* ---- Footer ---------------------------------------------------------- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: var(--space-md); font-size: 0.95rem; line-height: 1.7; }
.footer h5 { color: rgba(255,255,255,0.4); margin-bottom: var(--space-md); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: var(--space-sm); }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer ul a:hover { color: var(--color-white); text-decoration: none; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
}
.footer-logo svg.logo-mark { width: 34px; height: 34px; }
.footer-logo .logo-text-main { font-size: 1.35rem; color: var(--color-white); }
.footer-logo .logo-text-sub  { color: rgba(255,255,255,0.45); }
.footer-social { display: flex; gap: var(--space-md); margin-top: var(--space-lg); }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: background var(--t), color var(--t);
}
.footer-social a:hover { background: var(--color-primary); color: white; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-credit a { color: rgba(255,255,255,0.5); }
.footer-credit a:hover { color: var(--color-white); }

/* ---- Animations ------------------------------------------------------ */
.anim-fade-up, .anim-reveal, .anim-scale-in { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
.anim-fade-up   { transform: translateY(24px); }
.anim-reveal    { transform: translateY(12px); }
.anim-scale-in  { transform: scale(0.95); }
.anim-fade-up.in-view, .anim-reveal.in-view, .anim-scale-in.in-view { opacity: 1; transform: none; }
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }

/* ---- Quote / scripture pullout --------------------------------------- */
.scripture {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--color-sand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.scripture blockquote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.6;
}
.scripture cite { display: block; margin-top: var(--space-sm); font-size: 0.85rem; color: var(--color-muted); font-style: normal; }

/* ---- Living Proof stat section --------------------------------------- */
.proof-stat-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.proof-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
}
.proof-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  text-align: center;
}

/* ---- Responsive ------------------------------------------------------ */

/* Tablet / mobile breakpoint - hamburger kicks in */
@media (max-width: 980px) {
  .nav-main   { display: none; }

  /* All flex/size/style props live HERE so Safari picks them up with display:flex */
  .nav-toggle {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-left: auto;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease;
  }
  .nav-toggle:active { background: #ebf0ec; background: var(--color-sage-light, #ebf0ec); }

  .grid-2      { grid-template-columns: 1fr; }
  .grid-3      { grid-template-columns: repeat(2, 1fr); }
  .grid-4      { grid-template-columns: repeat(2, 1fr); }
  .pillars     { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-split  { grid-template-columns: 1fr; }
  .hero-split-media { min-height: 300px; }
  .hero-split-body  { padding: var(--space-2xl) var(--space-xl); }

  .section    { padding: var(--space-xl) 0; }
  .section-lg { padding: var(--space-2xl) 0; }
}

/* Small mobile */
@media (max-width: 640px) {
  .grid-3      { grid-template-columns: 1fr; }
  .grid-4      { grid-template-columns: 1fr; }
  .pillars     { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero        { min-height: 85vh; padding: var(--space-2xl) 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .hero h1     { font-size: clamp(2rem, 8vw, 3rem); }
  .hero .hero-sub { font-size: 1rem; }

  .cta-band    { padding: var(--space-2xl) var(--space-md); }
  .header-inner { gap: var(--space-md); }
  .logo-text-sub { display: none; }

  .proof-stat-grid { grid-template-columns: 1fr; text-align: center; gap: var(--space-xl); }

  .scripture { padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg); }
  .scripture blockquote { font-size: 1.1rem; }

  .btn { padding: 12px 22px; font-size: 0.85rem; }
  .card { padding: var(--space-lg); }
  .offering-card { padding: var(--space-lg); }

  .split-section { gap: var(--space-lg); }
  .split-media { border-radius: var(--radius-sm); }

  .blog-grid { grid-template-columns: 1fr; }
  .footer-social { gap: var(--space-sm); }
}

/* Extra small */
@media (max-width: 400px) {
  .container { padding: 0 var(--space-md); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .logo-text-main { font-size: 1.3rem; }
}
