/* ============================================
   GIVE THYSELF WHOLLY CONFERENCE
   Editorial / Refined Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --ink: #0a0a0a;
  --paper: #faf7f2;
  --paper-warm: #f5efe6;
  --gold: #b8860b;
  --gold-dark: #8b6508;
  --gold-light: #d4af37;
  --burgundy: #5c1f1f;
  --burgundy-dark: #3d1414;
  --cream: #ede4d3;
  --stone: #8b8378;
  --stone-light: #c5bdb0;
  --soft-ink: #2a2a2a;
  --error: #c0392b;
  --success: #27ae60;
  
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  
  --shadow-soft: 0 4px 20px rgba(10, 10, 10, 0.08);
  --shadow-deep: 0 12px 40px rgba(10, 10, 10, 0.15);
  --shadow-gold: 0 8px 30px rgba(184, 134, 11, 0.2);
  
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ============= TYPOGRAPHY ============= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

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

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

.script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

p { font-size: 1.0625rem; color: var(--soft-ink); }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

/* ============= LAYOUT ============= */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
  position: relative;
}

@media (max-width: 768px) {
  section { padding: 4.5rem 0; }
  .container, .container-narrow { padding: 0 1.25rem; }
}

/* ============= NAVIGATION ============= */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
  transition: all var(--transition);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-mark {
  font-style: italic;
  color: var(--gold);
  font-size: 1.65rem;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.25rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--soft-ink);
  position: relative;
}

.nav-links a:hover { color: var(--gold); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--paper) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: all var(--transition);
}

@media (max-width: 968px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(10, 10, 10, 0.06);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* ============= BUTTONS ============= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-gold {
  background: var(--gold);
  color: var(--paper);
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-outline-light {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(250, 247, 242, 0.4);
}

.btn-outline-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn .arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.btn:hover .arrow { transform: translateX(4px); }

/* ============= HERO ============= */

.hero {
  min-height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 0 3rem;
  /* Background image + height are set inline in index.php from the
     dashboard settings (Settings → Hero Banner). The values here are
     fallbacks in case those settings are empty. */
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.55), rgba(92, 31, 31, 0.65)),
    var(--burgundy, #5c1f1f);
  color: var(--paper);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(92, 31, 31, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  width: 100%;
}

.hero-content {
  max-width: 880px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.2s forwards;
}

.hero-eyebrow .line {
  width: 60px;
  height: 1px;
  background: var(--gold-light);
}

.hero-eyebrow span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero h1 {
  color: var(--paper);
  font-size: clamp(3rem, 7vw, 6.5rem);
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 1.2s 0.4s forwards;
}

.hero h1 .italic {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(250, 247, 242, 0.85);
  max-width: 640px;
  margin-bottom: 3rem;
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 1.2s 0.6s forwards;
}

.hero-meta {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s 0.8s forwards;
}

.hero-meta-item {
  border-left: 1px solid rgba(212, 175, 55, 0.4);
  padding-left: 1.25rem;
}

.hero-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.hero-meta-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--paper);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s 1s forwards;
}

.hero-discover {
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 1.2s 1.2s forwards;
}
.hero-discover-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.85;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.4);
  transition: opacity 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}
.hero-discover-link:hover {
  opacity: 1;
  border-bottom-color: var(--gold-light);
  gap: 0.85rem;
}
.hero-discover-link .arrow { transition: transform 0.3s ease; }
.hero-discover-link:hover .arrow { transform: translateX(3px); }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 1.2s 1.2s forwards;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  animation: scrollPulse 2s infinite;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============= COUNTDOWN ============= */

.countdown-section {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0;
  position: relative;
}

.countdown-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.countdown-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.countdown-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-light);
  line-height: 1.3;
}

.countdown-label small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: 0.5rem;
}

.countdown-timer {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.countdown-unit {
  text-align: center;
  min-width: 80px;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--paper);
  line-height: 1;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

.countdown-text {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone-light);
}

@media (max-width: 880px) {
  .countdown-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

/* ============= ABOUT SECTION ============= */

.about-section {
  background: var(--paper);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 968px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.about-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.1) saturate(0.95);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 1px solid var(--gold);
  z-index: -1;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content h2 .italic {
  font-style: italic;
  color: var(--gold);
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
}

.about-content p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--cream);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.5rem;
}

/* ============= REGISTRATION CARDS ============= */

.registration-section {
  background: var(--paper-warm);
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 5rem;
}

.section-head h2 {
  margin-bottom: 1rem;
}

.section-head h2 .italic {
  font-style: italic;
  color: var(--gold);
}

.section-head p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

.reg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.reg-card {
  background: var(--paper);
  padding: 3rem 2.5rem;
  position: relative;
  transition: all var(--transition);
  border: 1px solid var(--cream);
  overflow: hidden;
}

.reg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reg-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-deep);
}

.reg-card:hover::before { transform: scaleX(1); }

.reg-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4rem;
  color: var(--cream);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  line-height: 1;
}

.reg-icon {
  width: 60px;
  height: 60px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border-radius: 50%;
}

.reg-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.reg-card h3 {
  margin-bottom: 1rem;
  font-style: italic;
}

.reg-card p {
  margin-bottom: 2rem;
  color: var(--stone);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.reg-card .btn {
  width: 100%;
  justify-content: center;
}

/* ============= PAST CONFERENCES ============= */

.past-section {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.past-section h2 { color: var(--paper); }

.past-section .section-head p {
  color: var(--stone-light);
}

.past-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.past-card {
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
}

.past-card:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-4px);
}

.past-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.past-card h4 {
  color: var(--paper);
  font-weight: 400;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.past-loc {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-light);
}

/* ============= SPEAKER ============= */

.speaker-section {
  background: var(--paper);
  position: relative;
}

.speaker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

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

.speaker-image {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--cream), var(--paper-warm));
  overflow: hidden;
}

.speaker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}

.speaker-image .frame {
  position: absolute;
  top: -15px;
  right: -15px;
  bottom: 15px;
  left: 15px;
  border: 1px solid var(--gold);
  z-index: -1;
}

.speaker-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin: 2rem 0;
  position: relative;
  padding-left: 2rem;
}

.speaker-quote::before {
  content: '"';
  position: absolute;
  left: -1rem;
  top: -2rem;
  font-size: 6rem;
  color: var(--gold);
  line-height: 1;
  font-family: var(--font-display);
}

.speaker-attribution {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.speaker-attribution .line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.speaker-attribution span {
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
}

/* ============= GALLERY ============= */

.gallery-section {
  background: var(--paper-warm);
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}

.gallery-item {
  overflow: hidden;
  position: relative;
  background: var(--cream);
}

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }

@media (max-width: 768px) {
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.4), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after { opacity: 1; }

/* ============= VIDEOS ============= */

.videos-section {
  background: var(--paper);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.video-card {
  position: relative;
  cursor: pointer;
  group: video;
}

.video-thumb {
  aspect-ratio: 16/9;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(250, 247, 242, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.video-card:hover .video-play {
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play svg {
  width: 24px;
  height: 24px;
  fill: var(--ink);
  margin-left: 4px;
}

.video-info {
  padding-top: 1.25rem;
}

.video-info h4 {
  font-style: italic;
  margin-bottom: 0.25rem;
}

.video-info span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ============= CTA BAND ============= */

.cta-band {
  background: #1a1a1a; /* fallback if no image set */
  color: var(--paper);
  text-align: center;
  padding: 6rem 0;
}

.cta-band h2 {
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.cta-band h2 .italic {
  font-style: italic;
  color: var(--gold-light);
}

.cta-band p {
  color: rgba(250, 247, 242, 0.85);
  font-size: 1.125rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

/* ============= FOOTER ============= */

footer {
  background: var(--ink);
  color: var(--stone-light);
  padding: 5rem 0 2rem;
}

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.footer-brand h3 {
  color: var(--paper);
  font-style: italic;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--stone);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: var(--stone-light);
}

.footer-social a:hover svg { fill: var(--paper); }

.footer-col h5 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.75rem; }

.footer-col a {
  color: var(--stone-light);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--stone);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-langs {
  display: flex;
  gap: 1rem;
}

.footer-langs a {
  font-size: 0.75rem;
  color: var(--stone);
}

.footer-langs a:hover { color: var(--gold-light); }

/* ============= PAGE HEADERS (sub-pages) ============= */

.page-header {
  padding: 11rem 0 5rem;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.7), rgba(92, 31, 31, 0.7)),
    url('https://i0.wp.com/givethyselfwhollyconference.com/wp-content/uploads/2025/12/give_thyself_wholly_conference_with_dag_heward_mills_3-copy-1-scaled.webp?fit=2048%2C742') center/cover no-repeat;
  color: var(--paper);
  text-align: center;
}

.page-header h1 {
  color: var(--paper);
  font-weight: 300;
  margin-bottom: 1rem;
}

.page-header h1 .italic {
  font-style: italic;
  color: var(--gold-light);
}

.page-header .breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2rem;
}

.page-header .breadcrumbs a:hover { color: var(--paper); }

.page-header p {
  color: rgba(250, 247, 242, 0.85);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* ============= FORMS ============= */

.form-section {
  padding: 5rem 0 7rem;
  background: var(--paper);
}

.form-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: var(--paper);
  padding: 3.5rem;
  border: 1px solid var(--cream);
  position: relative;
}

.form-wrap::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--gold);
  z-index: -1;
}

@media (max-width: 640px) {
  .form-wrap { padding: 2rem 1.5rem; }
}

.form-intro {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--cream);
}

.form-intro h2 {
  margin-bottom: 0.75rem;
}

.form-intro h2 .italic {
  font-style: italic;
  color: var(--gold);
}

.form-intro p {
  color: var(--stone);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.form-group label .req {
  color: var(--burgundy);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--cream);
  background: var(--paper-warm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

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

.form-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ink);
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cream);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-section-title::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.form-section-title:first-child { margin-top: 0; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--gold);
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--soft-ink);
  line-height: 1.5;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.form-submit .btn {
  min-width: 250px;
  justify-content: center;
  padding: 1.125rem 2.5rem;
}

.form-message {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--success);
  background: rgba(39, 174, 96, 0.08);
  display: none;
  font-size: 0.9375rem;
}

.form-message.error {
  border-color: var(--error);
  background: rgba(192, 57, 43, 0.08);
}

.form-message.show { display: block; }

/* ============= ABOUT PAGE ============= */

.about-page-intro {
  padding: 6rem 0 4rem;
  background: var(--paper);
}

.about-page-intro h2 {
  margin-bottom: 2rem;
  max-width: 880px;
}

.about-page-intro h2 .italic {
  font-style: italic;
  color: var(--gold);
}

.about-page-intro .lead {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin: 2rem 0;
  font-style: italic;
}

.about-page-intro p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.features-section {
  padding: 5rem 0;
  background: var(--paper-warm);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.feature-card {
  background: var(--paper);
  padding: 3rem;
  position: relative;
  border-left: 3px solid var(--gold);
}

.feature-card .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-style: italic;
  margin-bottom: 1rem;
}

.feature-card p { line-height: 1.7; }

/* ============= UTILITIES ============= */

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ============= ANIMATIONS ============= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
}

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

/* ============= ORNAMENT ============= */

.ornament {
  text-align: center;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
}

.ornament .line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.ornament .dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* =============================================================================
   RESPONSIVE REFINEMENTS
   -----------------------------------------------------------------------------
   Breakpoint system (mobile-first; overrides earlier scattered queries):
     - base:  ≤ 480px  (small phones)
     - sm:    481–767  (large phones)
     - md:    768–1023 (tablets / small laptops)
     - lg:    ≥ 1024   (desktops)
   ============================================================================= */

/* ---------- Universal safety / touch targets ---------- */

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

img, svg, video, iframe { max-width: 100%; height: auto; }

/* Stop horizontal scrolling caused by ornamental overflow */
body { overflow-x: hidden; }

/* Make sure clickable things are at least ~44px tall on touch (Apple HIG / WCAG 2.5.5) */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-cta, .nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  input, select, textarea {
    min-height: 44px;
    font-size: 16px;            /* prevents iOS zoom-on-focus */
  }
  textarea { min-height: 88px; }
}

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

/* =============================================================================
   TABLET — 768px to 1023px
   Fill the layout gap where 3-col grids used to skip straight to 1-col.
   ============================================================================= */
@media (min-width: 768px) and (max-width: 1023px) {

  /* 3-col registration cards become 2-col on tablet (one full-width below) */
  .reg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .reg-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
    justify-self: center;
  }

  /* Past conferences: 3 columns at tablet */
  .past-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Videos: 2 columns at tablet */
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer drops to 2-col */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  /* Hero padding eases for tablet */
  .hero { padding: 6rem 0 3rem; }

  /* Section padding compresses slightly */
  section { padding: 5rem 0; }
}

/* =============================================================================
   MOBILE — ≤ 767px
   ============================================================================= */
@media (max-width: 767px) {

  /* Hide the scroll-indicator that overlaps the secondary CTA on phones */
  .hero-scroll { display: none; }

  /* Hero CTAs stack full-width with proper spacing */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    gap: 0.75rem;
  }
  .hero-cta .btn {
    justify-content: center;
    width: 100%;
  }

  /* Past-conferences cards: 2-col grid below tablet, 1-col under 480px */
  .past-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .past-card { padding: 1.75rem 1.5rem; }
  .past-year { font-size: 2rem; }

  /* Videos: single column */
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Speaker section image cap */
  .speaker-image { max-width: 420px; margin: 0 auto; }

  /* Hero content padding ease */
  .hero { padding: 5.5rem 0 3rem; min-height: auto; }
  .hero h1 { margin-bottom: 1rem; }
  .hero-tagline { margin-bottom: 2rem; }

  /* Countdown: smaller numbers, allow wrapping */
  .countdown-grid {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: center;
  }
  .countdown-number { font-size: 2.25rem; }

  /* Forms: full-width fields */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .form-card { padding: 1.75rem 1.25rem; }

  /* Ornament marks shrink */
  .ornament .line { width: 28px; }

  /* Nav: tighten paddings, ensure tap targets are huge */
  .nav-inner { padding: 0 1.25rem; }
  .menu-toggle { padding: 0.625rem; min-width: 44px; min-height: 44px; }
}

/* =============================================================================
   SMALL PHONES — ≤ 480px
   ============================================================================= */
@media (max-width: 480px) {

  /* Footer fully stacks */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }

  /* Past-conferences cards: single column on tiny screens */
  .past-grid { grid-template-columns: 1fr; }

  /* Section padding tightens further */
  section { padding: 3.5rem 0; }

  /* Hero meta items: one per row */
  .hero-meta { grid-template-columns: 1fr; gap: 1rem; }
  .hero-meta-item { padding-left: 1rem; }

  /* Buttons fill width */
  .hero-cta .btn,
  .cta-section .btn,
  .form-submit { width: 100%; }

  /* Logo tightens so nav doesn't wrap */
  .logo { font-size: 1.25rem; }
  .logo-mark { font-size: 1.35rem; }
  .logo-sub { font-size: 0.55rem; letter-spacing: 0.25em; }

  /* Container side-padding tight */
  .container, .container-narrow { padding: 0 1rem; }

  /* Past-conferences section padding */
  .past-conferences { padding: 3rem 0; }
}

/* =============================================================================
   MOBILE NAV DRAWER — polish (overlay, animated icon, scroll lock)
   ============================================================================= */
@media (max-width: 968px) {

  /* Scrim behind the drawer */
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.5);
    z-index: 999;
    animation: fadeIn 0.25s ease;
  }
  body.nav-open { overflow: hidden; }

  /* Nav-links drawer styling refresh */
  .nav-links {
    box-shadow: 0 8px 30px rgba(10, 10, 10, 0.15);
    padding: 2.5rem 2rem !important;
    gap: 1.75rem !important;
    z-index: 1001;
  }
  .nav-links a {
    font-size: 1.0625rem;
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
  .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 1rem 1.5rem !important;
  }

  /* Animate hamburger into X when .open */
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

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

/* =============================================================================
   LANDSCAPE PHONES — keep the hero readable in short heights
   ============================================================================= */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: auto; padding: 5rem 0 2.5rem; }
  .hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
  .hero-tagline { margin-bottom: 1.25rem; }
  .hero-scroll { display: none; }
}

/* =============================================================================
   LARGE DESKTOPS — give the layout room to breathe past 1440px
   ============================================================================= */
@media (min-width: 1440px) {
  .container, .container-narrow { max-width: 1320px; }
  .hero h1 { font-size: clamp(4rem, 6.5vw, 7rem); }
}

/* ============ Clickable past-conference cards (link to detail page) ============ */
.past-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.past-card-link:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.past-card .past-watch {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
}
.past-card-link:hover .past-watch {
  opacity: 1;
  transform: translateX(0);
}

/* ============ Photo Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: rgba(10, 8, 8, 0.94); padding: 2rem;
}
.lightbox.open { display: flex; }
.lb-stage { margin: 0; max-width: 90vw; max-height: 85vh; text-align: center; }
.lb-stage img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 50px rgba(0,0,0,0.5); }
.lb-stage figcaption { color: rgba(250,247,242,0.85); font-family: var(--font-display); font-style: italic; margin-top: 1rem; font-size: 1.05rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; border-radius: 50%; transition: background 0.2s ease;
  display: flex; align-items: center; justify-content: center;
}
.lb-close { top: 1.5rem; right: 1.5rem; width: 48px; height: 48px; font-size: 1.8rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 2rem; }
.lb-prev { left: 1.5rem; } .lb-next { right: 1.5rem; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }
.lb-count { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(250,247,242,0.7); font-size: 0.85rem; letter-spacing: 0.1em; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 1.5rem; }
  .lb-prev { left: 0.5rem; } .lb-next { right: 0.5rem; }
  .lb-close { top: 0.8rem; right: 0.8rem; }
}

/* ============ Conference gallery grid (public) ============ */
.conf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; margin: 2rem auto 0; max-width: 960px; }
.conf-gallery a { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; background: #000; cursor: pointer; }
.conf-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.conf-gallery a:hover img { transform: scale(1.05); }

/* ============ Through the Years — conference grid ============ */
.tty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.tty-card { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--ink); display: block; text-decoration: none; }
.tty-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: transform 0.5s ease, opacity 0.3s ease; }
.tty-card:hover img { transform: scale(1.06); opacity: 0.85; }
.tty-card-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem; background: linear-gradient(transparent 40%, rgba(10,8,8,0.85)); }
.tty-year { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-light); line-height: 1; }
.tty-theme { font-family: var(--font-display); color: var(--paper); font-size: 1.1rem; margin-top: 0.2rem; }
.tty-count { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,247,242,0.7); margin-top: 0.4rem; }

/* ============ Registration type selector ============ */
.reg-tier-intro { color: var(--ink-soft); margin-bottom: 1.25rem; font-size: 0.95rem; }
.reg-tiers { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem; }
.reg-tier {
  display: block; position: relative; cursor: pointer;
  border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 8px;
  padding: 1.25rem; transition: all var(--transition); background: var(--paper);
}
.reg-tier:hover { border-color: var(--gold); }
.reg-tier-body { display: block; }
.reg-tier-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.reg-tier-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); font-weight: 500; line-height: 1.3; }
.reg-tier-price { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-dark, #9a7016); font-weight: 600; white-space: nowrap; }
.reg-tier-pay { display: flex; gap: 0.6rem; margin-top: 0.9rem; flex-wrap: wrap; }
.reg-pay-btn {
  display: inline-flex; align-items: center; font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55rem 1rem; border-radius: 4px; transition: all var(--transition); cursor: pointer;
}
.reg-pay-card { background: var(--gold); color: #1a1a1a; border: 1px solid var(--gold); }
.reg-pay-card:hover { background: var(--gold-dark, #9a7016); border-color: var(--gold-dark, #9a7016); color: #fff; }
@media (max-width: 480px) {
  .reg-tier-pay { flex-direction: column; }
  .reg-pay-btn { justify-content: center; }
}

/* ============ Form footnote ============ */
.form-footnote {
  font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5;
  margin: -0.5rem 0 1.5rem; padding: 0.75rem 1rem;
  background: rgba(212, 175, 55, 0.07); border-left: 2px solid var(--gold); border-radius: 0 4px 4px 0;
}
.form-footnote a { color: var(--gold-dark, #9a7016); font-weight: 600; }


/* ============ Payment page extras ============ */
.reg-tier--card { cursor: default; }
.reg-tier--card:hover { transform: none; }
.reg-after-note {
  margin: 1.5rem 0 0; padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--ink-soft);
  background: rgba(212, 175, 55, 0.06); border-left: 2px solid var(--gold); border-radius: 0 4px 4px 0;
}
.reg-after-note a { color: var(--gold-dark, #9a7016); font-weight: 600; }

/* ============ Details page extras ============ */
.reg-type-note {
  margin: -0.25rem 0 1.25rem; padding: 0.6rem 0.9rem; font-size: 0.85rem;
  background: rgba(212, 175, 55, 0.08); border-radius: 4px; color: var(--ink);
}

/* ============ Accommodation form bits ============ */
.acc-radio {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 6px;
  margin-bottom: 0.5rem; cursor: pointer; transition: border-color var(--transition);
}
.acc-radio:hover { border-color: var(--gold); }
.acc-radio input[type="radio"] { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.acc-radio span { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.form-hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.4rem; font-style: italic; }
#hotelTierGroup { transition: opacity 0.2s ease; }

/* ============ Accommodation payment button in confirmation message ============ */
.acc-pay-btn {
  display: inline-block; margin: 1rem 0.5rem 0.5rem 0; padding: 0.85rem 1.6rem;
  background: var(--gold); color: #1a1a1a;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border-radius: 4px; transition: all var(--transition);
}
.acc-pay-btn:hover { background: var(--gold-dark, #9a7016); color: #fff; }
.acc-pay-note { display: block; margin-top: 0.5rem; font-size: 0.78rem; color: var(--ink-soft); font-style: italic; }

/* ============================================================================
   ============ RESPONSIVE OVERHAUL (Mobile-First Marketing Polish) ===========
   ============================================================================
   This block is appended last so it wins specificity ties with earlier rules.
   Strategy:
     - Fix horizontal overflow on small screens (countdown was 424px > 390px)
     - Add a sticky bottom CTA bar with all 3 actions on mobile only
     - Improve tap target sizes (44px minimum) per Apple/Google guidelines
     - Tighten typography and spacing for thumbs
     - Tablet (768–1023px) gets thoughtful mid-tier layout
     - Add safe-area padding for iPhones with rounded corners / home bar
   ============================================================================ */

/* ---------- 1. PREVENT ANY HORIZONTAL OVERFLOW (universal safety net) ---------- */
html, body {
  overflow-x: hidden;          /* fail-safe so nothing pushes past viewport */
  max-width: 100vw;
}
* { min-width: 0; }            /* lets flex/grid children shrink to fit */

/* ---------- 2. SMALL PHONES (≤ 480px) — the critical mobile tier ---------- */
@media (max-width: 480px) {

  /* Countdown was overflowing: 4×80px + 3×24px gap + 32px padding > 390px viewport.
     Shrink gaps and let the cells flex naturally so they fit any width. */
  .countdown-timer {
    gap: 0.75rem;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
  }
  .countdown-unit {
    min-width: 0;
    flex: 1 1 0;
    text-align: center;
  }
  .countdown-num {
    font-size: clamp(1.65rem, 8vw, 2.5rem) !important;
    padding-bottom: 0.4rem;
  }
  .countdown-text {
    font-size: 0.6rem !important;
    letter-spacing: 0.12em;
  }
  .countdown-inner {
    padding: 0 1rem !important;
    gap: 1.5rem !important;
  }
  .countdown-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  /* Hero — make sure the meta + CTAs are visible and tap-friendly */
  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 4rem) !important;
    line-height: 1.05 !important;
  }
  .hero-tagline {
    font-size: 1rem !important;
    line-height: 1.6;
  }
  .hero-meta {
    flex-direction: row;       /* keep Dates/Venue side-by-side on phone */
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
  }
  .hero-meta-item { min-width: 0; flex: 1; }
  .hero-meta-label { font-size: 0.7rem !important; letter-spacing: 0.2em; }
  .hero-meta-value { font-size: 1.05rem !important; line-height: 1.3; }

  /* Hero CTA buttons stack and look prominent (high contrast, big tap targets) */
  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    min-height: 52px;
    font-size: 0.85rem;
    padding: 1rem 1.25rem;
  }

  /* Hero meta — fix any animation that hides content under reveal-style transitions
     by ensuring final state shows even if JS-driven reveal didn't run for some reason */
  .hero-meta { animation-fill-mode: both; }

  /* Section padding tightens for thumb-reach scrolling */
  section { padding: 3.5rem 0 !important; }
  .hero { padding: 0 !important; }      /* hero handles its own */
  .cta-band { padding: 4rem 0 !important; }
  .gallery-section, .past-conferences, .videos-section, .about-section,
  .speaker-section, .form-section { padding: 3.5rem 0 !important; }

  /* Sections that need extra bottom space because sticky bar covers ~70px */
  body { padding-bottom: 76px; }     /* room for sticky CTA */

  /* Container side padding — keep visual breathing room without overflow */
  .container, .container-narrow {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
  }

  /* Section heads — h2 sized for phones */
  .section-head h2, h2 {
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.1;
  }
  .eyebrow { font-size: 0.65rem; letter-spacing: 0.25em; }

  /* Buttons — universally 44px min tap target, never tiny */
  .btn {
    min-height: 48px;
    padding: 0.95rem 1.5rem;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Forms: large taps, no zoom-on-focus (iOS zooms inputs < 16px font) */
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], input[type="date"], select, textarea {
    font-size: 16px !important;         /* prevents iOS auto-zoom */
    min-height: 48px;
    padding: 0.85rem 1rem;
    border-radius: 6px;
  }
  textarea { min-height: 110px; }
  label { font-size: 0.75rem; letter-spacing: 0.1em; }
  .form-group { margin-bottom: 1.1rem; }
  .form-row { display: block !important; }
  .form-row > .form-group { margin-bottom: 1.1rem; }
  .form-wrap { padding: 1.75rem 1.25rem !important; border-radius: 10px; }
  .form-section-title { font-size: 1rem !important; margin: 1.5rem 0 1rem; }
  .form-submit .btn { width: 100%; min-height: 54px; font-size: 0.85rem; }

  /* Registration tier cards — bigger tap area, easier to read */
  .reg-tier { padding: 1.1rem !important; }
  .reg-tier-name { font-size: 1rem !important; line-height: 1.35; }
  .reg-tier-price { font-size: 1.3rem !important; }
  .reg-pay-btn { min-height: 48px; padding: 0.85rem 1rem !important; font-size: 0.72rem; }

  /* Accommodation radio rows — tap targets */
  .acc-radio { padding: 1rem 0.9rem; min-height: 56px; }
  .acc-radio span { font-size: 0.95rem; }

  /* Page header tweaks */
  .page-header { padding: 7rem 0 3rem !important; }
  .page-header h1 { font-size: clamp(2.25rem, 9vw, 3rem); line-height: 1.05; }
  .breadcrumbs { font-size: 0.65rem; letter-spacing: 0.18em; }

  /* About section image stacks above text */
  .about-grid { display: block !important; }
  .about-image { margin-bottom: 2rem; }
  .about-image img { width: 100%; height: auto; }

  /* Speaker section */
  .speaker-grid { display: block !important; }
  .speaker-portrait { max-width: 280px; margin: 0 auto 2rem; }

  /* Past conferences grid — 2 columns on phone (more cards visible) */
  .past-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .past-card { padding: 1.25rem 0.9rem !important; }
  .past-year { font-size: 1.3rem; }
  .past-card h4 { font-size: 0.95rem; line-height: 1.2; }
  .past-loc { font-size: 0.65rem; }
  .past-watch { font-size: 0.6rem; }

  /* Through the Years gallery grid */
  .tty-grid { grid-template-columns: 1fr 1fr !important; gap: 0.6rem; }
  .tty-card { aspect-ratio: 1 / 1; }
  .tty-year { font-size: 1.2rem !important; }
  .tty-theme { font-size: 0.85rem !important; }
  .tty-count { font-size: 0.6rem !important; }

  /* Conference page gallery — 2 columns on phone */
  .conf-gallery { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }

  /* CTA band — punchy on mobile */
  .cta-band h2 { font-size: clamp(2rem, 8.5vw, 2.75rem); }
  .cta-band p { font-size: 1rem; line-height: 1.55; }
  .cta-band .btn { width: 100%; max-width: 360px; }
  .cta-band > .container > div { flex-direction: column !important; gap: 0.75rem !important; width: 100%; }

  /* Footer: stack columns, larger text */
  .footer-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .footer-col h4 { font-size: 0.75rem; letter-spacing: 0.2em; margin-bottom: 1rem; }

  /* Nav: shrink the brand text so logo doesn't crowd the hamburger */
  .nav-bar { padding: 0.85rem 1.1rem !important; }
  .logo-mark { font-size: 1.25rem !important; }
  .logo-sub { font-size: 0.55rem !important; letter-spacing: 0.22em !important; }
  .menu-toggle { width: 44px; height: 44px; }

  /* Lightbox controls on phone — bigger arrows, easier to thumb */
  .lb-prev, .lb-next { width: 48px; height: 48px; font-size: 1.4rem; }
  .lb-close { width: 44px; height: 44px; }

  /* Reveal animations: never permanently hide content if motion is reduced
     or animation fails to fire. Make the final state forgiving. */
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal.visible, .reveal.is-visible { opacity: 1; }
}

/* ---------- 3. STICKY MOBILE CTA BAR — the big conversion lift ---------- */
.mobile-cta-bar {
  display: none;          /* hidden by default, shown only on small screens */
}
@media (max-width: 880px) {
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 950;
    background: rgba(10, 8, 8, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    padding: 0.55rem 0.4rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    gap: 0.3rem;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  }
  .mobile-cta-bar a {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-decoration: none;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.15;
    text-align: center;
    transition: background 0.2s ease;
    min-height: 56px;
  }
  .mobile-cta-bar a.primary {
    background: var(--gold);
    color: #1a1a1a;
  }
  .mobile-cta-bar a:active { background: rgba(212, 175, 55, 0.25); }
  .mobile-cta-bar a.primary:active { background: var(--gold-dark, #9a7016); color: #fff; }
  .mobile-cta-bar a .ico {
    font-size: 1.05rem; margin-bottom: 0.15rem; line-height: 1;
  }

  /* Add bottom padding so the sticky bar never covers content above it */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* Hide the sticky bar when a form has been submitted successfully — gives
     a clean confirmation screen. (.form-success-mode added by main.js) */
  body.form-success-mode .mobile-cta-bar { display: none; }
}

/* ---------- 4. TABLET TIER (481–1024px) ---------- */
@media (min-width: 481px) and (max-width: 1024px) {
  .container, .container-narrow { padding-left: 2rem; padding-right: 2rem; }

  /* Past conferences: 3-column tablet grid */
  .past-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

  /* Through the Years */
  .tty-grid { grid-template-columns: repeat(3, 1fr); }

  /* Conference gallery: 3 columns */
  .conf-gallery { grid-template-columns: repeat(3, 1fr); }

  /* Form-row stays 2-column where it makes sense, but tighter gaps */
  .form-row { gap: 1.5rem; }

  /* Hero text refines */
  .hero h1 { font-size: clamp(3.5rem, 8vw, 5.5rem); }

  /* Countdown numbers smaller for tablet */
  .countdown-num { font-size: clamp(2.5rem, 5.5vw, 3.5rem); }

  /* Footer becomes 2 columns on tablet (not 1, not 4) */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 2.5rem; }
}

/* ---------- 5. SMOOTH iOS SCROLL + INPUT POLISH ---------- */
@supports (-webkit-touch-callout: none) {
  /* iOS: don't let inputs zoom; use system font size baseline of 16px */
  input, select, textarea { font-size: max(16px, 1rem); }
  /* Smooth scroll for in-page anchor jumps */
  html { scroll-behavior: smooth; }
}

/* ---------- 6. MOBILE NAV DRAWER — make it actually beautiful ---------- */
@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(82vw, 360px);
    background: rgba(10, 8, 8, 0.98);
    backdrop-filter: blur(14px);
    padding: 6rem 2rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    z-index: 900;
    margin: 0;
    list-style: none;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 0;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 300;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
  }
  .nav-links a.nav-cta {
    margin-top: 1.5rem;
    background: var(--gold);
    color: #1a1a1a;
    text-align: center;
    padding: 1rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
  }
  /* Backdrop when nav is open */
  body.nav-open::after {
    content: '';
    position: fixed; inset: 0;
    background: rgba(10, 8, 8, 0.55);
    z-index: 880;
    backdrop-filter: blur(2px);
  }
}

/* ---------- 7. LARGER PHONES (between 481 and 600px) ---------- */
@media (min-width: 481px) and (max-width: 600px) {
  .hero-meta { gap: 2rem; }
  .past-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 8. ACCESSIBILITY: reduce motion respects user preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============ Mobile-only tap target adjustments for small links ============ */
@media (max-width: 768px) {
  /* Footer link list items get more vertical padding for thumb-friendly taps */
  footer .footer-col ul li a {
    display: inline-block;
    padding: 0.5rem 0;
    min-height: 36px;
    line-height: 1.3;
  }
  /* Footer social icons */
  .footer-social a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* "Discover More" hero link */
  .hero-discover-link {
    display: inline-block;
    padding: 0.5rem 0;
    min-height: 40px;
  }
}

/* ============ Decorative silhouette: arms-raised figure ============ */
/* Used in About section (burgundy, low opacity, behind content) and
   CTA band (gold, behind text). Pure decoration; never carries information. */

/* Common defaults */
.silhouette-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* About section: a soft burgundy silhouette on the right side, behind the text */
.about-section { overflow: hidden; }
.silhouette-about {
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  opacity: 0.14;
  /* Sit behind content but allow the photo on the left to be untouched */
}
.about-section > .container { position: relative; z-index: 1; }

/* CTA band: gold silhouette in the corner as a worship motif */
.cta-band { position: relative; overflow: hidden; }
.silhouette-cta {
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  opacity: 0.12;
}
.cta-band > .container { position: relative; z-index: 1; }

/* Tablet + mobile: shrink/hide decorations so they don't crowd the layout */
@media (max-width: 1024px) {
  .silhouette-about { width: 280px; opacity: 0.10; right: -3rem; }
  .silhouette-cta { width: 220px; opacity: 0.10; right: -2rem; }
}
@media (max-width: 640px) {
  /* On phones, hide About-section decoration (the about layout stacks)
     but keep the subtle CTA accent which still looks good as a corner element */
  .silhouette-about { display: none; }
  .silhouette-cta { width: 180px; opacity: 0.10; right: -1.5rem; }
}

/* ============================================================================
   ============ "Choose How You Join Us" — Colorful Variants =================
   ============================================================================
   Each card gets its own intentional color identity:
     01 Gold       — Participant Registration (the warm, celebratory main path)
     02 Burgundy   — Ordination of Ministers (the sacred, called path)
     03 Teal       — Accommodation (the practical, calm path)
   ============================================================================ */

/* Define per-variant color tokens once so the rules below stay readable */
.reg-card--gold     { --c-accent: #b8860b; --c-tint: #fbf4dd; --c-tint-deep: #f7e9b8; --c-ink: #4a3a0a; }
.reg-card--burgundy { --c-accent: #8c2a3e; --c-tint: #faecef; --c-tint-deep: #f3d4dc; --c-ink: #3d1218; }
.reg-card--teal     { --c-accent: #1f6b6b; --c-tint: #e0efee; --c-tint-deep: #c8e2e0; --c-ink: #0d2e2e; }

/* Base card refinements — fill it with the soft tint, give it a colored border */
.reg-card.reg-card--gold,
.reg-card.reg-card--burgundy,
.reg-card.reg-card--teal {
  background: var(--c-tint);
  border: 1px solid color-mix(in srgb, var(--c-accent) 18%, transparent);
  border-top: 4px solid var(--c-accent);   /* prominent top edge */
  border-radius: 4px;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1),
              box-shadow 0.45s cubic-bezier(.2,.7,.2,1),
              background 0.4s ease;
}

/* Soft radial glow in the top-right of the card so it feels alive
   (this is what the original ::before line used to do — repurposed) */
.reg-card.reg-card--gold::before,
.reg-card.reg-card--burgundy::before,
.reg-card.reg-card--teal::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle at center, var(--c-tint-deep) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Keep all card content above the decorative glow */
.reg-card.reg-card--gold > *,
.reg-card.reg-card--burgundy > *,
.reg-card.reg-card--teal > * {
  position: relative;
  z-index: 1;
}

/* The big italic number now uses the card's accent color (was generic cream) */
.reg-card.reg-card--gold .reg-number,
.reg-card.reg-card--burgundy .reg-number,
.reg-card.reg-card--teal .reg-number {
  color: var(--c-accent);
  opacity: 0.22;
  font-weight: 500;
  font-size: 4.5rem;
}

/* Icon circle — filled with accent color, white icon stroke for crisp contrast */
.reg-card.reg-card--gold .reg-icon,
.reg-card.reg-card--burgundy .reg-icon,
.reg-card.reg-card--teal .reg-icon {
  background: var(--c-accent);
  border-color: var(--c-accent);
  width: 64px;
  height: 64px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c-accent) 35%, transparent);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease;
}
.reg-card.reg-card--gold .reg-icon svg,
.reg-card.reg-card--burgundy .reg-icon svg,
.reg-card.reg-card--teal .reg-icon svg {
  stroke: #fff;
  fill: none;
  stroke-width: 1.75;
  width: 26px;
  height: 26px;
}
/* The "star" icon on card 02 uses fill, not stroke — override */
.reg-card--burgundy .reg-icon svg path {
  fill: #fff;
  stroke: none;
}

/* Heading — make it slightly more present with the accent color */
.reg-card.reg-card--gold h3,
.reg-card.reg-card--burgundy h3,
.reg-card.reg-card--teal h3 {
  color: var(--c-ink);
  margin-top: 0.5rem;
}

/* Card paragraph — slightly darker than default for readable contrast on tint */
.reg-card.reg-card--gold p,
.reg-card.reg-card--burgundy p,
.reg-card.reg-card--teal p {
  color: color-mix(in srgb, var(--c-ink) 75%, #555);
  line-height: 1.65;
}

/* Button — colored outline by default, fills on hover with the card's accent */
.reg-card.reg-card--gold .btn.btn-primary,
.reg-card.reg-card--burgundy .btn.btn-primary,
.reg-card.reg-card--teal .btn.btn-primary {
  background: transparent;
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.reg-card.reg-card--gold .btn.btn-primary:hover,
.reg-card.reg-card--burgundy .btn.btn-primary:hover,
.reg-card.reg-card--teal .btn.btn-primary:hover {
  background: var(--c-accent);
  color: #fff;
  transform: translateX(4px);
}

/* Card hover — lift + intensified glow + icon nudge */
.reg-card.reg-card--gold:hover,
.reg-card.reg-card--burgundy:hover,
.reg-card.reg-card--teal:hover {
  transform: translateY(-10px);
  background: color-mix(in srgb, var(--c-tint) 70%, #fff);
  box-shadow:
    0 18px 40px color-mix(in srgb, var(--c-accent) 22%, transparent),
    0 4px 12px rgba(0, 0, 0, 0.08);
}
.reg-card.reg-card--gold:hover::before,
.reg-card.reg-card--burgundy:hover::before,
.reg-card.reg-card--teal:hover::before {
  opacity: 1;
  transform: scale(1.15);
}
.reg-card.reg-card--gold:hover .reg-icon,
.reg-card.reg-card--burgundy:hover .reg-icon,
.reg-card.reg-card--teal:hover .reg-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--c-accent) 50%, transparent);
}

/* Mobile: keep all the color, just tighten spacing */
@media (max-width: 480px) {
  .reg-card.reg-card--gold,
  .reg-card.reg-card--burgundy,
  .reg-card.reg-card--teal {
    padding: 2.25rem 1.5rem !important;
    margin-bottom: 1.25rem;
  }
  .reg-card.reg-card--gold .reg-number,
  .reg-card.reg-card--burgundy .reg-number,
  .reg-card.reg-card--teal .reg-number {
    font-size: 3.5rem;
    top: 1.25rem;
    right: 1.5rem;
  }
  .reg-card.reg-card--gold .reg-icon,
  .reg-card.reg-card--burgundy .reg-icon,
  .reg-card.reg-card--teal .reg-icon {
    width: 56px;
    height: 56px;
  }
}

/* Tighten the section eyebrow + heading so the cards become the focus */
.registration-section .section-head { margin-bottom: 3rem; }
.registration-section .section-head h2 {
  background: linear-gradient(135deg, var(--ink) 0%, #8c2a3e 70%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Fallback color for browsers that don't support background-clip */
}
@supports not (-webkit-background-clip: text) {
  .registration-section .section-head h2 { color: var(--ink); }
}

/* ============ VIP Registration breakdown box (register page) ============ */
.vip-breakdown {
  margin: 2.5rem 0 1.5rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: linear-gradient(160deg, #faf3e2 0%, #f6ead0 100%);
  border: 1px solid rgba(184, 134, 11, 0.28);
  border-left: 4px solid var(--gold, #b8860b);
  border-radius: 8px;
}
.vip-breakdown-title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #4a3a0a;
  margin: 0 0 1.1rem;
  letter-spacing: 0.01em;
}
.vip-breakdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vip-breakdown-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(184, 134, 11, 0.3);
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4a3a0a;
}
.vip-breakdown-list li:last-child { border-bottom: none; }
.vip-breakdown-list .vip-item { flex: 1; }
.vip-breakdown-list .vip-amt {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #6a4e0a;
}
.vip-breakdown-list .vip-subsidy {
  color: #1f6b6b;
}
.vip-breakdown-list .vip-subsidy .vip-amt { color: #1f6b6b; }
.vip-breakdown-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(184, 134, 11, 0.45);
}
.vip-total-label {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
  color: #4a3a0a;
}
.vip-total-amt {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold-dark, #9a7016);
  font-variant-numeric: tabular-nums;
}
.vip-breakdown-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: #6a5a2a;
  font-style: italic;
}
.vip-breakdown-note strong { color: #4a3a0a; font-style: normal; }

@media (max-width: 480px) {
  .vip-breakdown { padding: 1.4rem 1.2rem; }
  .vip-breakdown-title { font-size: 1.3rem; }
  .vip-breakdown-list li { font-size: 0.9rem; gap: 0.85rem; }
  .vip-total-amt { font-size: 1.6rem; }
}

/* ============ FAQ accordion (homepage) ============ */
.faq-section {
  padding: 6rem 0 5rem;
  /* Warmer, distinctly darker beige so the section clearly separates from the page */
  background: linear-gradient(180deg, #e8dcc0 0%, #ddd0b3 100%);
  position: relative;
}
.faq-section .section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.faq-section .section-head p {
  max-width: 38rem;
  margin: 1rem auto 0;
  color: #4a3a0a;
}

.faq-list {
  max-width: 56rem;
  margin: 0 auto;
}

/* Individual question/answer pair */
.faq-item {
  background: #ffffff;
  /* Slightly stronger border so cards stand crisp against the darker section bg */
  border: 1px solid rgba(184, 134, 11, 0.32);
  border-radius: 8px;
  margin-bottom: 0.85rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(92, 31, 31, 0.04);
}
.faq-item[open] {
  border-color: rgba(184, 134, 11, 0.6);
  box-shadow: 0 10px 32px rgba(92, 31, 31, 0.12);
}

/* The clickable question row (native <summary>) */
.faq-question {
  cursor: pointer;
  list-style: none;        /* hide default disclosure triangle */
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  line-height: 1.35;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }     /* Firefox */
.faq-question:hover { color: #8c2a3e; }
.faq-question:focus-visible {
  outline: 2px solid var(--gold, #b8860b);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-q-text { flex: 1; }

/* Toggle icon — rotates when open */
.faq-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(184, 134, 11, 0.10);
  color: var(--gold-dark, #9a7016);
  transition: transform 0.3s cubic-bezier(.2, .7, .2, 1), background 0.2s ease;
  margin-top: 2px;
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: rgba(184, 134, 11, 0.18);
}

/* The expanded answer */
.faq-answer {
  padding: 0 1.5rem 1.4rem;
  color: var(--ink-soft, #4a4a4a);
  font-size: 1rem;
  line-height: 1.7;
  border-top: 1px dashed rgba(184, 134, 11, 0.22);
  padding-top: 1.1rem;
  font-family: var(--font-body, 'Manrope', sans-serif);
  animation: faqFadeIn 0.3s ease-out;
}
@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduced motion: skip the fade animation */
@media (prefers-reduced-motion: reduce) {
  .faq-answer { animation: none; }
  .faq-icon { transition: none; }
}

/* Mobile tuning */
@media (max-width: 600px) {
  .faq-section { padding: 4rem 0 3.5rem; }
  .faq-question {
    padding: 1rem 1.1rem;
    font-size: 1.05rem;
    line-height: 1.3;
  }
  .faq-icon { width: 32px; height: 32px; }
  .faq-answer {
    padding: 1rem 1.1rem 1.2rem;
    font-size: 0.95rem;
  }
  .faq-list { max-width: 100%; }
}

/* ============ Language picker (Google Translate) ============ */
.lang-picker {
  position: relative;
  margin-left: 1rem;
  font-family: var(--font-body, 'Manrope', sans-serif);
}
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 6px;
  color: inherit;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  min-height: 38px;
}
.lang-current:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.6);
}
.lang-current:focus-visible {
  outline: 2px solid var(--gold, #d4af37);
  outline-offset: 2px;
}
.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-block;
}
.lang-name {
  display: inline-block;
}
.lang-caret {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.lang-picker.is-open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 12rem;
  background: #fff;
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.18);
  padding: 0.3rem;
  margin: 0;
  list-style: none;
  z-index: 950;
  max-height: 70vh;
  overflow-y: auto;
  display: none;
}
.lang-picker.is-open .lang-menu { display: block; }
.lang-menu li { list-style: none; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 5px;
  color: var(--ink, #1a1a1a);
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 40px;
}
.lang-option:hover, .lang-option:focus-visible {
  background: rgba(212, 175, 55, 0.12);
  outline: none;
}
.lang-option.is-active {
  background: rgba(212, 175, 55, 0.18);
  font-weight: 700;
}

/* On mobile, hide the language name on the current button to save space — keep just the flag */
@media (max-width: 880px) {
  .lang-picker { margin-left: auto; margin-right: 0.6rem; order: 2; }
  .lang-current .lang-name { display: none; }
  .lang-current { padding: 0.45rem 0.55rem; }
  /* Drawer/menu opens leftward on small screens so it doesn't get clipped */
  .lang-menu { right: 0; left: auto; }
}

/* Hide Google Translate's own UI strip (the bar that drops down on translation) */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-simple,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}
body { top: 0 !important; }   /* Google sometimes adds inline top:40px to body — undo */

/* Hide the residual "Powered by" link Google injects */
.goog-logo-link, .goog-te-gadget span { display: none !important; }
.goog-te-gadget { font-size: 0 !important; }

/* ============ Ministry Materials section (Dag Heward-Mills resources) ============ */
.materials-section {
  padding: 6rem 0 5rem;
  /* Rich brand-palette gradient — burgundy into deep wine, with a subtle gold radial glow
     behind the headline. Dramatic but stays within the editorial aesthetic. */
  background:
    radial-gradient(ellipse 50rem 24rem at 50% 18%, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0) 60%),
    linear-gradient(135deg, #5c1f1f 0%, #4a1818 50%, #2b1010 100%);
  position: relative;
  overflow: hidden;
  color: #f5e6c8;
}
/* Subtle ornamental top/bottom hairlines in gold to frame the section */
.materials-section::before,
.materials-section::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 56rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), transparent);
  pointer-events: none;
}
.materials-section::before { top: 2.5rem; }
.materials-section::after  { bottom: 2.5rem; }
.materials-section .section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.materials-section .section-head .eyebrow {
  color: #e9c97a;   /* warm gold against burgundy */
}
.materials-section .section-head h2 {
  color: #faf3e2;   /* warm cream */
}
.materials-section .section-head h2 .italic {
  color: #e9c97a;   /* gold accent on the italic name */
}
.materials-section .section-head p {
  max-width: 38rem;
  margin: 1rem auto 0;
  color: rgba(245, 230, 200, 0.82);   /* soft cream for body copy */
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.material-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(233, 201, 122, 0.35);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  /* Resting shadow gives the cards lift against the dark background */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.material-card:hover, .material-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(233, 201, 122, 0.75);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  outline: none;
}

.material-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #2b1818;
  overflow: hidden;
}
.material-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.material-card:hover .material-thumb img {
  transform: scale(1.04);
}
.material-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 3rem;
  color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, #2b1818 0%, #4a2424 100%);
}
.material-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  color: #4a3a0a;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.material-body {
  padding: 1.1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.material-body h3 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--ink, #1a1a1a);
  line-height: 1.2;
}
.material-body p {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft, #5a554c);
  margin: 0 0 0.85rem;
  flex: 1;
}
.material-cta {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark, #9a7016);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.material-cta .arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}
.material-card:hover .material-cta .arrow {
  transform: translate(3px, -3px);
}

/* Tablet — 3 columns */
@media (max-width: 1100px) {
  .materials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Small tablet — 2 columns */
@media (max-width: 760px) {
  .materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .materials-section { padding: 4rem 0 3.5rem; }
}
/* Phone — 1 column with horizontal scroll alternative kept as 1-col for accessibility */
@media (max-width: 480px) {
  .materials-grid { grid-template-columns: 1fr; }
  .material-body h3 { font-size: 1.15rem; }
}

/* ============ Venue & Location section (Anagkazo Campus) ============ */
.venue-section {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, #fbf8f0 0%, #f4ecd9 100%);
  position: relative;
}
.venue-section .section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.venue-section .section-head p {
  max-width: 44rem;
  margin: 1rem auto 0;
  color: var(--ink-soft, #5a554c);
}

/* Compact photo strip — uniform tiles, single row of 6 on desktop.
   Sized to be visually present but not overwhelming. */
.venue-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
  margin: 0 auto 3rem;
}
.venue-img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #2b1818;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.venue-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.venue-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.venue-img:hover img { transform: scale(1.06); }

/* Copy + facts side-by-side below the gallery */
.venue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.venue-body h3 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1.1rem;
  color: var(--ink, #1a1a1a);
}
.venue-body p {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft, #5a554c);
  margin: 0 0 1rem;
}
.venue-body .btn { margin-top: 0.8rem; }

/* Location facts — "info card" on the right */
.venue-facts {
  list-style: none;
  margin: 0;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(184, 134, 11, 0.18);
  border-left: 3px solid var(--gold, #b8860b);
  border-radius: 6px;
}
.venue-facts li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(184, 134, 11, 0.22);
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.85rem;
  line-height: 1.5;
}
.venue-facts li:last-child { border-bottom: none; }
.venue-fact-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  color: var(--gold-dark, #9a7016);
  align-self: center;
}
.venue-fact-value { color: var(--ink, #1a1a1a); }

/* Tablet — fewer gallery columns; stack copy + facts */
@media (max-width: 1000px) {
  .venue-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .venue-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile — 2-column gallery, stacked facts */
@media (max-width: 600px) {
  .venue-section { padding: 4rem 0 3.5rem; }
  .venue-body h3 { font-size: 1.5rem; }
  .venue-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  .venue-facts li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .venue-fact-label { font-size: 0.65rem; }
}
