/* ==========================================================================
   EROTIC GATEWAY — Design System
   A consent-led tantric workshop & play space for gay men in London
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Work+Sans:wght@300;400;500;600&display=swap');

/* ==========================================================================
   1. Custom Properties (Design Tokens)
   ========================================================================== */
:root {
  /* Palette */
  --color-forest: #2D4A3E;
  --color-forest-dark: #1F342B;
  --color-forest-light: #3A6152;
  --color-terracotta: #C67B5C;
  --color-terracotta-dark: #A8624A;
  --color-terracotta-light: #D4967C;
  --color-sand: #E8DDD3;
  --color-sand-light: #F0E8E0;
  --color-charcoal: #2C2C2C;
  --color-cream: #FAF7F2;
  --color-cream-dark: #F2ECE3;
  --color-white: #FFFFFF;
  --color-overlay: rgba(44, 44, 44, 0.65);
  --color-overlay-dark: rgba(31, 52, 43, 0.78);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', Arial, Helvetica, sans-serif;

  /* Font Sizes (fluid scale) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);
  --text-5xl: clamp(2.75rem, 1.8rem + 3vw, 4.25rem);

  /* Spacing Scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-section: clamp(4rem, 3rem + 4vw, 8rem);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 44, 44, 0.06), 0 1px 2px rgba(44, 44, 44, 0.04);
  --shadow-md: 0 4px 12px rgba(44, 44, 44, 0.08), 0 2px 4px rgba(44, 44, 44, 0.04);
  --shadow-lg: 0 10px 30px rgba(44, 44, 44, 0.1), 0 4px 8px rgba(44, 44, 44, 0.05);
  --shadow-xl: 0 20px 50px rgba(44, 44, 44, 0.12), 0 8px 16px rgba(44, 44, 44, 0.06);
  --shadow-warm: 0 8px 24px rgba(198, 123, 92, 0.15), 0 2px 6px rgba(198, 123, 92, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(44, 44, 44, 0.14), 0 6px 12px rgba(44, 44, 44, 0.06);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 50%;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 350ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --nav-height: 72px;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Textured background (subtle linen/paper grain) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.028;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(44, 44, 44, 0.03) 2px,
      rgba(44, 44, 44, 0.03) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(44, 44, 44, 0.02) 2px,
      rgba(44, 44, 44, 0.02) 3px
    );
}

body > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-forest);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-terracotta);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background-color: var(--color-terracotta-light);
  color: var(--color-white);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-forest);
  letter-spacing: 0.01em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: 0.03em;
}

h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-terracotta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section-intro {
  font-size: var(--text-lg);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
  color: #555;
}

/* ==========================================================================
   4. Skip-to-Content
   ========================================================================== */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-forest);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 10000;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 0;
  outline: none;
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(45, 74, 62, 0.08);
  transition: opacity var(--transition-base);
}

.site-nav.nav-transparent::before {
  opacity: 0;
}

.site-nav.nav-scrolled::before {
  opacity: 1;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
}

.nav-logo img,
.nav-logo svg {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-forest);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--color-cream);
  z-index: 1005;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-2xl) var(--space-2xl);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 44, 0.4);
  z-index: 1004;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-nav-backdrop.is-visible {
  opacity: 1;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-forest);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(45, 74, 62, 0.08);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--color-terracotta);
  padding-left: var(--space-sm);
}

/* Body scroll lock when mobile nav open */
body.nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav,
  .mobile-nav-backdrop {
    display: block;
  }
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-forest-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 52, 43, 0.55) 0%,
    rgba(44, 44, 44, 0.45) 40%,
    rgba(31, 52, 43, 0.7) 100%
  );
}

/* Default gradient when no hero image is available */
.hero-bg--gradient {
  background: linear-gradient(
    135deg,
    var(--color-forest-dark) 0%,
    var(--color-forest) 30%,
    #3A5A4D 50%,
    var(--color-forest-dark) 70%,
    #1a2e25 100%
  );
}

.hero-bg--gradient::after {
  background: radial-gradient(
    ellipse at 30% 60%,
    rgba(198, 123, 92, 0.12) 0%,
    transparent 60%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-2xl);
  max-width: 800px;
}

.hero-content h1 {
  color: var(--color-cream);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s var(--ease-out) 0.2s both;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-sand);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 1s var(--ease-out) 0.5s both;
}

.hero-cta {
  animation: fadeInUp 1s var(--ease-out) 0.8s both;
}

/* Mini hero for interior pages */
.hero-mini {
  min-height: 40vh;
  padding-top: var(--nav-height);
}

.hero-mini .hero-content h1 {
  font-size: var(--text-4xl);
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-forest);
  color: var(--color-cream);
  border-color: var(--color-forest);
}

.btn-primary:hover {
  background: var(--color-forest-light);
  border-color: var(--color-forest-light);
  color: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--color-terracotta);
  color: var(--color-cream);
  border-color: var(--color-terracotta);
}

.btn-secondary:hover {
  background: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}

.btn-outline {
  background: transparent;
  color: var(--color-cream);
  border-color: var(--color-cream);
}

.btn-outline:hover {
  background: var(--color-cream);
  color: var(--color-forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-forest);
  border-color: var(--color-forest);
}

.btn-outline-dark:hover {
  background: var(--color-forest);
  color: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-lg) var(--space-3xl);
  border-radius: var(--radius-xl);
}

/* ==========================================================================
   8. Section Styles
   ========================================================================== */
.section {
  padding: var(--space-section) var(--space-lg);
}

.section-alt {
  background: var(--color-sand-light);
}

.section-dark {
  background: var(--color-forest);
  color: var(--color-cream);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-cream);
}

.section-dark .section-subtitle {
  color: var(--color-terracotta-light);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

/* Organic SVG wave dividers */
.divider-wave {
  position: relative;
  overflow: hidden;
}

.divider-wave::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,0 L0,0 Z' fill='%23FAF7F2'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 2;
}

.divider-wave-alt::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,0 L0,0 Z' fill='%23F0E8E0'/%3E%3C/svg%3E");
}

.divider-wave-cream::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,0 L0,0 Z' fill='%23FAF7F2'/%3E%3C/svg%3E");
}

.divider-wave-bottom {
  position: relative;
  overflow: hidden;
}

.divider-wave-bottom::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,0 720,80 1080,40 C1260,20 1380,30 1440,40 L1440,80 L0,80 Z' fill='%23F0E8E0'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 2;
}

/* ==========================================================================
   9. Cards
   ========================================================================== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card-flat {
  background: var(--color-cream);
  border: 1px solid rgba(45, 74, 62, 0.08);
}

.card-flat:hover {
  border-color: var(--color-terracotta-light);
}

/* Facilitator card */
.facilitator-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.facilitator-photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-lg);
  border: 4px solid var(--color-sand);
  box-shadow: var(--shadow-md);
}

/* Photo placeholder circle */
.photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-forest-light), var(--color-forest));
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--color-sand);
  box-shadow: var(--shadow-md);
}

.photo-placeholder-lg {
  width: 200px;
  height: 200px;
}

.photo-placeholder svg {
  width: 60%;
  height: 60%;
  opacity: 0.3;
}

/* Testimonial card */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-terracotta-light);
  opacity: 0.3;
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.6;
  color: var(--color-charcoal);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
}

.testimonial-author {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-terracotta);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   10. FAQ Accordion
   ========================================================================== */
.faq-section-group {
  margin-bottom: var(--space-3xl);
}

.faq-section-group:last-child {
  margin-bottom: 0;
}

.faq-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-forest);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-terracotta-light);
}

.faq-item {
  border-bottom: 1px solid rgba(45, 74, 62, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-charcoal);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-terracotta);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-terracotta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), background var(--transition-fast);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-terracotta);
  stroke-width: 2;
  transition: transform var(--transition-base);
}

.faq-item[data-open="true"] .faq-icon {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.faq-item[data-open="true"] .faq-icon svg {
  stroke: var(--color-white);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s var(--ease-out);
}

.faq-answer-inner {
  padding-bottom: var(--space-xl);
  font-size: var(--text-base);
  line-height: 1.8;
  color: #555;
}

.faq-answer-inner p {
  margin-bottom: var(--space-md);
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-item[data-open="true"] .faq-answer {
  max-height: 600px;
}

/* ==========================================================================
   11. Forms & Inputs
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-charcoal);
  background: var(--color-white);
  border: 2px solid var(--color-sand);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 4px rgba(198, 123, 92, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #aaa;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-inline {
  display: flex;
  gap: var(--space-sm);
}

.form-inline .form-input {
  flex: 1;
}

@media (max-width: 480px) {
  .form-inline {
    flex-direction: column;
  }
  .form-inline .btn {
    width: 100%;
  }
}

/* ==========================================================================
   12. Breadcrumbs
   ========================================================================== */
.breadcrumbs {
  padding: var(--space-md) var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: var(--text-sm);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  color: var(--color-terracotta-light);
  opacity: 0.6;
}

.breadcrumbs a {
  color: var(--color-forest);
  font-weight: 400;
}

.breadcrumbs a:hover {
  color: var(--color-terracotta);
}

.breadcrumbs .current {
  color: #888;
  font-weight: 400;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
  background: var(--color-forest-dark);
  color: var(--color-sand);
  padding: var(--space-4xl) var(--space-lg) var(--space-2xl);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C240,80 480,10 720,40 C960,70 1200,10 1440,40 L1440,0 L0,0 Z' fill='%23FAF7F2'/%3E%3C/svg%3E");
  background-size: cover;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.footer-brand p {
  color: var(--color-sand);
  opacity: 0.8;
  line-height: 1.7;
  margin-top: var(--space-md);
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-md);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--color-sand);
  opacity: 0.8;
  font-size: var(--text-sm);
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-terracotta-light);
  opacity: 1;
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(232, 221, 211, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: var(--text-xs);
  opacity: 0.6;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(232, 221, 211, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.social-links a:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: var(--color-sand);
}

/* ==========================================================================
   14. Animation Keyframes
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   15. Scroll-Triggered Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   16. Parallax Utilities
   ========================================================================== */
.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* ==========================================================================
   17. Newsletter Section
   ========================================================================== */
.newsletter-section {
  background: var(--color-forest);
  color: var(--color-cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 120%,
    rgba(198, 123, 92, 0.15) 0%,
    transparent 60%
  );
}

.newsletter-section h2 {
  color: var(--color-cream);
}

.newsletter-form {
  max-width: 480px;
  margin: var(--space-xl) auto 0;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   18. Outsavvy Widget
   ========================================================================== */
.outsavvy-embed {
  max-width: var(--container-narrow);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.outsavvy-embed iframe {
  border: none;
  width: 100%;
  min-height: 420px;
}

/* ==========================================================================
   19. Utility Classes
   ========================================================================== */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.pt-nav { padding-top: var(--nav-height); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Decorative line accent */
.accent-line {
  width: 60px;
  height: 3px;
  background: var(--color-terracotta);
  border-radius: 2px;
  margin: var(--space-md) auto;
}

.accent-line-left {
  margin-left: 0;
}

/* About page specific */
.about-facilitator {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-bottom: var(--space-4xl);
}

.about-facilitator:nth-child(even) {
  grid-template-columns: 1fr 240px;
}

.about-facilitator:nth-child(even) .facilitator-photo-col {
  order: 2;
}

@media (max-width: 768px) {
  .about-facilitator,
  .about-facilitator:nth-child(even) {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-facilitator:nth-child(even) .facilitator-photo-col {
    order: 0;
  }
  .photo-placeholder {
    margin: 0 auto var(--space-lg);
  }
  .accent-line-left {
    margin: var(--space-md) auto;
  }
}

/* ==========================================================================
   20. Responsive Adjustments
   ========================================================================== */

/* Small phones */
@media (max-width: 375px) {
  .hero-content h1 {
    font-size: var(--text-3xl);
  }
  .hero-tagline {
    font-size: var(--text-base);
  }
  .btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
  }
  .section {
    padding: var(--space-3xl) var(--space-md);
  }
  .card {
    padding: var(--space-xl);
  }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1280px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* Large screens */
@media (min-width: 1281px) {
  .hero-content h1 {
    font-size: 4.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
