/* =============================================
   TEAM SECTION (Náš tím / Lektori)
   ============================================= */
.team-section {
  padding: var(--space-2xl) 0 var(--space-xl) 0;
  background: var(--bg-light);
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.team-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px) scale(1.03);
}
.team-photo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.team-info {
  flex: 1;
}
.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.team-bio {
  color: var(--text-gray);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.team-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0;
  list-style: none;
}
.team-specialties li {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0.25em 0.9em;
  font-size: 0.95em;
  font-weight: 500;
}
.team-contact {
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 0.5em 1.5em;
}
/* =============================================
   SPEAKUJEME - HIGH-CONVERSION LANDING PAGE
   Modern, Mobile-First CSS with CRO Focus
   ============================================= */

/* CSS Variables - Consolidated System */
:root {
  /* Accessibility & Contrast Colors */
  --color-dark: #0f1724;      /* Main dark text */
  --color-dark-alt: #22223b;  /* Alternative dark for headings */
  --color-white: #fff;        /* Pure white for contrast */
  --color-black: #000;        /* Pure black if needed */

  /* Brand Colors - Updated Palette */
  --color-teal:   #9ac4c5;   /* Teal Accent (main) */
  --color-pink:   #f4a0d3;   /* Pink Accent (secondary) */
  --color-yellow: #f8d98a;   /* Yellow Accent (highlight) */
  --color-cream:  #FFF3D4;   /* Cream BG (background) */

  /* Main Accent/Backgrounds (use palette) */
  --accent: var(--color-teal);           /* Primary accent - CTAs, buttons */
  --accent-dark: #6b9fa1;                /* Darker teal for hover states */
  --accent-light: var(--color-cream);    /* Light background */
  --secondary: var(--color-pink);        /* Secondary accent, links */
  --highlight: var(--color-yellow);      /* Highlight color */

  /* Legacy/old values below (for reference, can be removed after refactor) */
  /* --accent: #0ea5a4; */
  /* --accent-dark: #0c8584; */
  /* --accent-light: #e0f7f7; */
  /* --secondary: #ff7a59; */
  
  /* Neutral Colors (updated for palette) */
  --bg: #fffcf5;
  --bg-light: #ffffff;
  --bg-gray: #f3f4f6;
  --text: var(--color-dark);           /* Main body text - always dark */
  --text-heading: var(--color-dark-alt); /* Headings - slightly different dark */
  --text-gray: #6b7280;
  --text-light: #9ca3af;
  
  /* UI Colors */
  --card-bg: #f8fafc;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(15, 23, 36, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 36, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 36, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 36, 0.1);
  
  /* Layout */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --container: 1200px;
  --max-width: 1500px;
  /* Approximate sticky header height for viewport calculations */
  --header-h: 72px;
  /* Dynamic height of trust badges (set via JS for exact fold) */
  --trust-h: 0px;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Typography */
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* =============================================
   RESET & BASE STYLES
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

strong, b, mark, .highlight {
  color: var(--text-heading);
}
p {
  margin-bottom: var(--space-sm);
  color: var(--text-gray);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-dark);
}

a:focus {
  outline: 3px solid rgba(14, 165, 164, 0.18);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-2xl);
  }
}

@media (min-width: 1100px) {
  .container {
    max-width: var(--max-width);
  }
}

/* Section Spacing */
.section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

/* Compensate for fixed header height */
body { padding-top: var(--header-h, 88px); }

@media (min-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-gray);
  margin-bottom: 0;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff; /* Solid white header background */
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition-base), padding var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 72px; /* Increased for better visibility */
  width: auto;
  transition: height .25s ease;
}
@media (max-width: 900px) {
  .logo-img { height: 60px; }
}
@media (max-width: 600px) {
  .logo-img { height: 52px; }
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background var(--transition-base);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition-base);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translateY(7px) translateX(0);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translateY(-7px) translateX(0);
}

/* Navigation Menu */
.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.main-nav a {
  display: block;
  color: var(--text);
  padding: 0.5rem 0;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.main-nav a:hover {
  color: var(--accent);
}

.header-cta {
  display: none;
  min-width: 180px;
}

/* Desktop Navigation */
@media (min-width: 720px) {
  .nav-toggle {
    display: none;
  }
  
  .main-nav {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: row;
    gap: var(--space-md);
  }
  
  .main-nav a {
    padding: 0.25rem 0.5rem;
  }
  
  .header-cta {
    display: block;
    margin-left: auto;
  }
}

/* Mobile Nav Active State */
@media (max-width: 719px) {
  .main-nav.active {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    padding: var(--space-lg);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
  }
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  transition: all var(--transition-base);
  text-align: center;
  min-height: 44px; /* Accessibility: minimum tap target */
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: #FACA45;
  color: var(--color-dark);
  box-shadow: 0 2px 4px rgba(250, 202, 69, 0.2);
}

.btn-primary:hover {
  background: #E6B22A; /* slightly darker for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 202, 69, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: var(--color-white);
  border: 2px solid #FACA45;
  color: #FACA45;
}

.btn-outline:hover {
  background: var(--accent-light);
  border-color: #FACA45;
  color: #E6B22A;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-light);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* Keep button label color fixed on hover/focus/active,
   while preserving background, shadow, and motion effects */
.btn:hover,
.btn:focus,
.btn:active {
  color: inherit;
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  padding: var(--space-2xl) 0;
  background: #FFF3D4;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  display: block;
}

.hero h1 {
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease-out;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-gray);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Trust List */
.trust-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-gray);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.trust-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.trust-list strong {
  color: var(--accent);
  font-weight: 700;
}

@media (min-width: 640px) {
  .trust-list {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
  }
}

/* Hero Media */
.hero-media {
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.instructor-photo {
  width: 100%;
  height: auto;
  /* Square bottom corners so no background peeks through at the seam */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  /* Show the entire image without cropping */
  object-fit: contain;
  box-shadow: none;
}

.badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.badge-primary {
  background: var(--accent);
}

@media (min-width: 720px) {
  .hero {
    /* Ensure the full image can appear within the first viewport (account for sticky header) */
    min-height: calc(100vh - var(--header-h));
    padding-bottom: 0; /* let the image sit on the fold without needing large negative margins */
  }
  .hero-grid {
    /* 50/50 split between value prop and image */
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    /* Keep items together; spacing controlled by margins below */
    justify-content: center;
    gap: 0;
    /* Fill the hero height minus the top padding */
    min-height: calc(100vh - var(--header-h) - var(--space-2xl));
    text-align: left;
  }
  /* Tighter heading to subheading gap */
  .hero h1 {
    margin-bottom: 0.25rem;
  }
  /* Position hero photo to touch bottom of section */
  .hero-media {
    display: flex;
    align-items: flex-end;
    margin-top: 0;
    /* Minimal overlap to hide any seam */
    margin-bottom: -1px;
  }
  .instructor-photo {
    /* Keep the entire image visible within the first fold (account for top padding only) */
    max-height: calc(100vh - var(--header-h) - var(--space-2xl));
    width: 100%;
    height: auto;
  }
  .hero-ctas {
    /* Remove extra margins to allow equal spacing via space-evenly */
    margin: 0;
  }
  /* Maintain tight but non-overlapping spacing under the heading */
  .hero-content > .lead { margin-top: 0.25rem; }
  .hero-content > .hero-ctas { margin-top: 0.75rem; }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-ctas {
    justify-content: flex-start;
  }
  
  .trust-list {
    justify-content: flex-start;
  }
}

@media (min-width: 1100px) {
  .hero {
    /* Exact first fold: account for sticky header + trust badges height */
    min-height: calc(100vh - var(--header-h) - var(--trust-h));
    padding-bottom: 0;
  }
  .hero-grid {
    /* Keep 50/50 split on larger screens */
    grid-template-columns: 1fr 1fr;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-height: calc(100vh - var(--header-h) - var(--space-2xl) - var(--trust-h));
  }
  .hero h1 { margin-bottom: 0.25rem; }
  /* Extend photo to touch bottom border */
  .hero-media {
    display: flex;
    align-items: flex-end;
    margin-top: 0;
    /* Minimal overlap to hide any seam */
    margin-bottom: -1px;
  }
  .instructor-photo {
    max-height: calc(100vh - var(--header-h) - var(--space-2xl) - var(--trust-h));
    width: 100%;
    height: auto;
  }
  .hero-ctas {
    margin: 0;
  }
  /* Maintain tight but non-overlapping spacing under the heading */
  .hero-content > .lead { margin-top: 0.25rem; }
  .hero-content > .hero-ctas { margin-top: 0.75rem; }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays for child elements */
.cards-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.cards-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.cards-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

.process-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.process-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.process-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

.testimonials-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.testimonials-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.testimonials-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

/* =============================================
   TRUST BADGES SECTION
   ============================================= */

.trust-badges-section {
  /* Remove top padding so the hero image can butt directly against this section */
  padding: 0 0 var(--space-sm);
  background: #fffcf5;
  border-bottom: 1px solid var(--border);
}

.trust-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.trust-badge {
  text-align: center;
  padding: var(--space-md);
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.trust-badge h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.trust-badge p {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin: 0;
}

@media (min-width: 640px) {
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-badges {
    /* Use three columns to align the current set of badges */
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   BOOKING FORM SECTION
   ============================================= */

.booking-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-light);
}

.booking-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Trust signals above form */
.form-trust-signals {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-item svg {
  flex-shrink: 0;
}

.booking-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.booking-header h2 {
  color: var(--text);
  margin-bottom: var(--space-sm);
  font-size: 2rem;
}

.booking-eyebrow {
  display: inline-block;
  margin-bottom: var(--space-xs);
  padding: 0.25rem 0.6rem;
  background: rgba(14,165,164,0.12);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.booking-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.booking-usp {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: var(--space-md) 0 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
}

.booking-usp li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 0.9375rem;
}

.booking-usp svg {
  color: var(--accent);
}

.step-intro {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-secondary);
}

/* Progress indicator */
.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  position: relative;
  counter-reset: step;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

.progress-step.active .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.1);
}

.progress-step.active .step-label {
  color: var(--accent);
  font-weight: 600;
}

.progress-step.completed .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.progress-step.completed .step-number::after {
  content: '✓';
}

/* Form steps */
.booking-form {
  position: relative;
}

.form-step {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-md);
}

/* Two-column group for desktop to reduce vertical length */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 720px) {
  .form-row-2col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
  font-size: 0.9375rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  min-height: 48px;
  background: #fff;
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.1);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-light);
}

.form-row input.error,
.form-row select.error,
.form-row textarea.error {
  border-color: #ef4444;
}

.form-row input.success,
.form-row select.success {
  border-color: #10b981;
}

/* Field hints and errors */
.field-hint {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: var(--space-xs);
  display: block;
  line-height: 1.4;
}

.field-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: var(--space-xs);
  display: none;
  font-weight: 500;
}

.field-error:not(:empty) {
  display: block;
}

.char-counter {
  color: var(--text-light);
  font-size: 0.75rem;
}

/* Privacy checkbox */
.form-privacy {
  margin-bottom: var(--space-lg);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.checkbox-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.checkbox-text a {
  color: var(--accent);
  text-decoration: underline;
}

/* Form actions */
.form-actions,
.form-step-actions {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-md);
}

.form-step-actions {
  justify-content: space-between;
}

.btn-next,
.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-back {
  flex: 0 0 auto;
}

.btn-next,
.btn-submit {
  flex: 1;
}

/* Outline button style for calendar toggle */
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(14,165,164,0.08);
}

.btn-submit {
  position: relative;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: var(--space-md);
  margin-bottom: 0;
  line-height: 1.6;
}

.icon-check {
  color: var(--accent);
  font-weight: 600;
}

/* Success message */
.form-success {
  text-align: center;
  padding: var(--space-2xl);
  animation: fadeIn 0.5s ease-in;
}

.success-icon {
  margin: 0 auto var(--space-lg);
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.form-success h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.form-success p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.form-success ol {
  padding-left: 1.25rem;
  margin-bottom: var(--space-xl);
}

.form-success li {
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 640px) {
  .booking-wrapper {
    padding: var(--space-lg);
  }

  .booking-header h2 {
    font-size: 1.5rem;
  }

  .form-trust-signals {
    gap: var(--space-sm);
  }

  .trust-item {
    font-size: 0.8125rem;
  }

  .form-progress {
    gap: var(--space-xs);
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .step-label {
    font-size: 0.6875rem;
  }

  .form-step-actions {
    flex-direction: column-reverse;
  }

  .btn-back,
  .btn-next,
  .btn-submit {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .form-actions {
    grid-column: span 2;
  }
}

/* Calendar booking block */
.calendar-booking {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.calendar-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.calendar-subtitle {
  color: var(--text-secondary);
  margin: 0 0 var(--space-md) 0;
}

.calendar-controls {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

/* =============================================
   SLOT PICKER STYLES
   ============================================= */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  max-height: 360px;
  overflow-y: auto;
  padding: var(--space-xs);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
}

/* Week Navigation */
.week-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin: var(--space-md) 0 var(--space-sm) 0;
  padding: var(--space-sm);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.week-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.week-nav-btn:hover:not(:disabled) {
  background: rgba(14,165,164,0.08);
}

.week-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.week-nav-btn svg {
  flex-shrink: 0;
}

.current-week-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
  text-align: center;
  flex: 1;
}

@media (max-width: 640px) {
  .week-navigation {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .week-nav-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.8125rem;
  }
  
  .current-week-label {
    order: -1;
    font-size: 0.875rem;
  }
}

/* Day tabs above slots */
.slot-tabs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: 0 0 var(--space-sm) 0;
  margin-top: var(--space-sm);
}

.slot-tab {
  flex: 0 0 auto;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all .2s;
}

.slot-tab[aria-selected="true"],
.slot-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(14,165,164,0.08);
}

@media (max-width: 640px){
  .slot-tab { font-size: 0.8125rem; }
}

.slots-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-secondary);
}

.slots-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-secondary);
}

.slot-date-group {
  grid-column: 1 / -1;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.slot-date-group:first-child {
  margin-top: 0;
}

.slot-date-header {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.slot-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.slot-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(14,165,164,0.12);
  transform: translateY(-2px);
}

.slot-card.selected {
  background: rgba(14,165,164,0.08);
  border-color: var(--accent);
  border-width: 3px;
  padding: calc(var(--space-md) - 1px);
}

.slot-card.booked,
.slot-card.blocked {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-light);
}

.slot-card.booked:hover,
.slot-card.blocked:hover {
  border-color: var(--border);
  transform: none;
  box-shadow: none;
}

.slot-time {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.slot-time svg {
  color: var(--accent);
  flex-shrink: 0;
}

.slot-teacher {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.slot-duration {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.slots-controls {
  text-align: center;
  margin: var(--space-sm) 0 0 0;
}

.slots-controls .btn-link {
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.slot-status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: var(--space-xs);
  align-self: flex-start;
}

.slot-status.available {
  background: #d1fae5;
  color: #065f46;
}

.slot-status.booked {
  background: #fee2e2;
  color: #991b1b;
}

.slot-status.blocked {
  background: #e5e7eb;
  color: #6b7280;
}

@media (max-width: 640px) {
  .slots-grid {
    grid-template-columns: 1fr;
    max-height: 400px;
  }
}

/* =============================================
   CARDS & COURSES SECTION
   ============================================= */

.courses-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-light);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.card {
  background: var(--card-bg);
  padding: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-image-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f0f0f0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transition: transform var(--transition-slow);
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content h3 {
  margin: 0 0 var(--space-sm) 0;
  font-size: 1.5rem;
  color: var(--text-heading);
}

.card-desc {
  color: var(--text-gray);
  margin-bottom: var(--space-md);
  flex-grow: 1;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Course cards specific button styling */
.course-card .btn-primary {
  background: #98c4c5;
  box-shadow: 0 2px 4px rgba(152, 196, 197, 0.2);
}

.course-card .btn-primary:hover {
  background: #7fb0b1;
  box-shadow: 0 6px 20px rgba(152, 196, 197, 0.4);
}

/* =============================================
   MENTORING & PROCESS SECTION
   ============================================= */

.mentoring-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-light);
}

/* Signup process background to ensure contrast with adjacent sections */
.signup-process-section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.step {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  text-align: center;
  transition: border-color var(--transition-base);
}

.step:hover {
  border-color: var(--accent);
}

.step-num {
  background: var(--accent);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.step h3 {
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.step p {
  margin-bottom: var(--space-sm);
  color: var(--text-gray);
}

.step .btn {
  margin-top: var(--space-sm);
}

.section-cta {
  text-align: center;
}

.cta-note {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-gray);
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   ABOUT SECTION
   ============================================= */

.about-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: stretch; /* ensure both columns start and end at same level */
}

/* Ensure the image block sizes nicely within the grid */
.about-image {
  max-width: 520px;
  width: 100%;
  justify-self: center;
  /* Fixed visual height; grid will stretch the sibling to match */
  height: clamp(420px, calc(50vw + 80px), 560px);
  overflow: hidden;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias up to reveal ~10px more at the top */
  object-position: center 48%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  height: 100%;
  display: flex;
  align-items: stretch;
}

.about-content h2 {
  color: var(--text);
  margin-bottom: var(--space-md);
}

.about-box {
  padding: var(--space-lg);
  /* Match hero section background (cream) */
  background: var(--color-cream);
  /* remove left border per request */
  border-left: none;
  border-radius: var(--radius);
  /* stretch to fill column height so top/bottom align with image */
  height: 100%;
  display: flex;
  flex-direction: column;
  /* Use global typography to match the page */
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  /* Ensure uniform weight across all text inside */
  font-weight: 400;
}

.about-lead {
  font-size: 1.125rem; /* match body size for uniform look */
  color: var(--text);
  margin-bottom: var(--space-md);
  line-height: 1.6;
  font-weight: 400; /* unify weight with body text */
}

/* Ensure paragraphs inside about box use global paragraph color */
.about-box p {
  color: var(--text);
  font-weight: 400; /* enforce consistent weight */
}

/* Ensure list items use same color as paragraphs */
.about-box ul {
  color: var(--text);
}

.about-box li {
  color: var(--text);
  font-weight: 400;
}

/* Prevent bold emphasis inside the about box to keep uniform weight */
.about-box strong,
.about-box b {
  font-weight: 700;
  color: var(--text);
}

.about-box p:last-of-type {
  margin-bottom: var(--space-md);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.about-features li.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.about-features .icon {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.about-features li.animate-in .icon {
  animation: iconPop 0.5s ease forwards;
}

@keyframes iconPop {
  0% {
    transform: scale(0.5) rotate(-10deg);
  }
  60% {
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

.about-cta {
  margin-top: var(--space-md); /* move CTA up a bit */
  text-align: center; /* center CTA horizontally */
  font-size: 0.95rem;
  color: var(--text-gray);
}

.about-cta .btn {
  margin-top: var(--space-sm);
  align-self: center; /* center the button within the box */
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr; /* slightly smaller image, more room for text */
    align-items: stretch; /* equal height columns on tablet/desktop */
  }
}

/* Fine-tune vertical focus across breakpoints for consistent top reveal */
@media (max-width: 640px) {
  .about-photo {
    object-position: center 47.8%;
  }
}

@media (min-width: 1024px) {
  .about-photo {
    object-position: center 48.4%;
  }
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */

.testimonials-section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.testimonial-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.testimonial-rating {
  color: var(--highlight);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
}

.author-info strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.125rem;
  line-height: 1.2;
}

.author-info span {
  display: block;
  font-size: 0.875rem;
  color: var(--text-gray);
  line-height: 1.2;
}

.social-proof-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat span {
  display: block;
  font-size: 0.875rem;
  color: var(--text-gray);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .social-proof-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =============================================
   FINAL CTA SECTION
   ============================================= */

.final-cta-section {
  padding: var(--space-3xl) 0;
  background: var(--bg);
  text-align: center;
}

.final-cta-content h2 {
  color: var(--text);
  margin-bottom: var(--space-md);
}

.final-cta-lead {
  font-size: 1.125rem;
  color: var(--text-gray);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Scoped tweaks for stats inside Final CTA */
.final-cta-section .social-proof-stats {
  padding-top: var(--space-md);
  border-top: 0;
}

.cta-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-gray);
}

.cta-trust span {
  color: var(--accent);
  font-weight: 700;
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact-section {
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.contact-info h3,
.contact-social h3 {
  color: var(--text);
  margin-bottom: var(--space-md);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-list strong {
  color: var(--text);
  font-weight: 600;
}

.contact-list a {
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--accent);
}

.social-icon {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: #FFF3D4;
  color: var(--text);
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  width: 100%;
}

.footer-links ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
  }
}

.footer-about h3,
.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.footer-logo {
  display: block;
  margin-bottom: var(--space-sm);
  max-width: 140px;
  height: auto;
}

.footer-tagline {
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  font-style: italic;
  font-weight: 500;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: var(--space-lg) 0 var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  /* Align icons under the start of the email text */
  margin-left: 0;
}
.footer-social-link {
  color: var(--accent);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  width: 40px;
  height: 40px;
  text-decoration: none;
  margin: 0;
}
.footer-social-link:hover {
  color: var(--accent-dark);
  background: rgba(14,165,164,0.08);
  transform: translateY(-2px) scale(1.08);
}


.footer-about p,
.footer-contact p {
  color: var(--color-dark);
}

/* =============================================
   INSTAGRAM GALLERY SECTION (Custom Images)
   ============================================= */

.instagram-gallery-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-light);
}

.instagram-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.instagram-gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f0f0f0;
  aspect-ratio: 1 / 1;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.instagram-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.instagram-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.instagram-gallery-item:hover img {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .instagram-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .instagram-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
  }
}

/* =============================================
   INSTAGRAM FEED SECTION
   ============================================= */

.instagram-section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.instagram-feed {
  max-width: 100%;
  margin: 0 auto;
}

.instagram-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: start;
}

@media (min-width: 768px) {
  .instagram-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .instagram-posts-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
  }
}

/* Instagram embed blockquote styling */
.instagram-media {
  margin: 0 auto !important;
  max-width: 100% !important;
  min-width: 200px !important;
}

.instagram-placeholder {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}

.instagram-placeholder p {
  margin-bottom: var(--space-md);
  color: var(--text-gray);
}

.instagram-placeholder .btn {
  margin-top: var(--space-sm);
}

/* Style for embedded Instagram widget (SnapWidget, EmbedSocial, etc.) */
.instagram-feed iframe {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a,
.footer-legal a,
.footer-contact a {
  color: var(--color-dark);
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  color: var(--color-dark);
  font-size: 0.875rem;
  margin: 0;
}

.footer-trust {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.trust-badge-small {
  font-size: 0.75rem;
  color: var(--color-dark);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-about {
    padding-right: var(--space-xl);
  }
  .footer-contact {
    padding-left: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    width: 100%;
  }
  .footer-about {
    padding-right: var(--space-2xl);
  }
  .footer-contact {
    padding-left: var(--space-2xl);
  }
}

/* =============================================
   STICKY CTA BAR
   ============================================= */

.sticky-cta-bar {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  padding: var(--space-sm) 0;
  z-index: 999;
  transition: bottom var(--transition-base);
}

.sticky-cta-bar.show {
  bottom: 0;
}

.sticky-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.sticky-cta-text {
  font-size: 0.875rem;
  color: var(--text-gray);
  font-weight: 600;
}

@media (max-width: 639px) {
  .sticky-cta-content {
    flex-direction: column;
    text-align: center;
  }
  
  .sticky-cta-bar .btn {
    width: 100%;
  }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

/* =============================================
   RESPONSIVE IMAGES
   ============================================= */

@supports (aspect-ratio: 1 / 1) {
  .instructor-photo {
    aspect-ratio: 5 / 6;
    object-fit: cover;
  }
  
  .about-photo {
    /* Let the image keep its natural ratio and crop gracefully if needed */
    aspect-ratio: auto;
    object-fit: cover;
  }
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
  .site-header,
  .nav-toggle,
  .sticky-cta-bar,
  .hero-ctas,
  .booking-form,
  .btn {
    display: none !important;
  }
}
