/* ===== CILPRO Landing Page – Styles ===== */
/* Fonts loaded via <link> in index.html */

:root {
  /* Brand: Green & Yellow */
  --primary: #008A61;
  --primary-light: #00a372;
  --primary-dark: #006b4d;
  --accent: #f0d80b;
  --accent-light: #f5e54d;
  --accent-dark: #d9c209;
  --green: #059669;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --bg: #f8fafc;
  --bg-dark: #0d2818;
  --white: #ffffff;
  /* Section alternation (dark greens to match primary) */
  --section-dark: #0d2818;
  --section-dark-soft: #164330;
  --section-light: #ffffff;
  --section-light-blue: #e8f4fc;
  --section-light-soft: #f1f5f9;
  --announcement-bar-height: 40px;
  --header-height: 72px;
  --sticky-offset: calc(var(--announcement-bar-height) + var(--header-height));
  --stack-sticky-top: calc(var(--sticky-offset) + 16px);
  --section-padding-y: 5rem;
  --section-padding-y-sm: 3.5rem;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  /* Stack cards */
  --stack-card-height: 42vh;
  --stack-card-height-min: 300px;
  --stack-card-margin: 0.75rem;
  --stack-card-offset: 0.35em;
  --stack-numcards: 4;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-offset);
  overflow-x: clip;
}

html,
body {
  max-width: 100%;
}

body {
  font-family: 'DM Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  word-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Image loading optimization */
img[loading="lazy"] {
  content-visibility: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section rhythm: consistent vertical spacing */
section {
  position: relative;
}

/* ----- Announcement bar (continuous marquee, sticky) ----- */
.announcement-bar {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: var(--primary);
  color: var(--white);
  height: var(--announcement-bar-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.announcement-marquee {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  user-select: none;
}

.announcement-marquee-inner {
  display: flex;
  align-items: center;
  width: max-content;
  animation: announcement-marquee 40s linear infinite;
}

.announcement-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2rem;
  padding-right: 2rem;
  white-space: nowrap;
}

.announcement-track span {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.announcement-sep {
  opacity: 0.75;
  font-weight: 700;
  flex-shrink: 0;
}

.announcement-bar a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  margin-left: 0.25rem;
}

.announcement-bar a:hover {
  color: var(--accent-light);
}

@keyframes announcement-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-marquee-inner {
    animation: none;
    padding-left: 1rem;
  }
  .announcement-track:last-child {
    display: none;
  }
}

/* ----- Header (sticky below announcement bar) ----- */
.header {
  background: var(--white);
  padding: 1rem 0;
  min-height: var(--header-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: var(--announcement-bar-height);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Match hero section content width: same max-width and horizontal padding as .container */
.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0;
  padding: 0 1.5rem;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: -0.02em;
}

.logo img {
  display: block;
  height: 40px;
  width: auto;
}

.logo-accent {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  margin-left: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

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

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-chevron {
  margin-left: 0.25rem;
  transition: transform 0.2s;
  opacity: 0.8;
  vertical-align: middle;
}

.nav-dropdown:hover .icon-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--white);
  list-style: none;
  min-width: 200px;
  padding: 0.5rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-cta {
  background: var(--accent);
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(240, 216, 11, 0.4);
}

.btn-cta:hover {
  background: var(--accent-dark);
  color: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(240, 216, 11, 0.5);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
}

.nav-close {
  display: none;
}

/* ----- Hero (dark section) – fits in viewport ----- */
.hero {
  padding: 2rem 0 0;
  background: var(--section-dark);
  color: var(--white);
  min-height: 85vh;
  max-height: 100vh;
  display: flex;
  align-items: stretch;
}

.hero .container {
  width: 100%;
  min-height: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 2.5rem;
  align-items: stretch;
  min-height: 100%;
}

.hero-text {
  align-self: center;
  max-width: 520px;
}

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
  letter-spacing: -0.03em;
}

.hero-description {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
  max-width: 480px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero CTAs: primary = yellow, secondary = outline light */
.hero .btn-primary {
  background: var(--accent);
  color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(240, 216, 11, 0.35);
}

.hero .btn-primary:hover {
  background: var(--accent-light);
  color: var(--text-dark);
  box-shadow: 0 6px 20px rgba(240, 216, 11, 0.4);
}

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

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 138, 97, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 138, 97, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

/* Transparent image: attached to hero, no separate card – soft shadow on figure only */
.hero-image-wrap {
  position: relative;
  align-self: end;
  overflow: visible;
  max-width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: flex-end;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  object-position: bottom;
  display: block;
  vertical-align: bottom;
  /* Soft drop-shadow on the figure so it feels grounded on the hero, not in a box */
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.hero-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: var(--section-dark);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-badge-1 {
  top: 1.25rem;
  right: 1.25rem;
}

.hero-badge-2 {
  bottom: 1.25rem;
  left: 1.25rem;
}

/* ----- Trust bar (white section) ----- */
.trust-bar {
  background: var(--section-light);
  padding: 4rem 0 4.5rem;
}

.trust-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  padding: 1rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.badge:hover {
  box-shadow: 0 4px 12px rgba(0, 138, 97, 0.12);
  transform: translateY(-2px);
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.badge-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* ----- Benefits (light blue section) ----- */
.benefits {
  padding: 4.5rem 0 5.5rem;
  background: var(--section-light-blue);
}

.benefits .container > .section-label,
.benefits .container > h2 {
  text-align: center;
}

.benefits .section-label {
  margin-bottom: 0.5rem;
}

.benefits h2 {
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.benefits .benefit-card h3,
.benefits .benefit-card p {
  color: var(--text-dark);
}

.benefits .benefit-link {
  color: var(--primary);
}

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

.benefit-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--accent);
  border-left: 3px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  margin-bottom: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.benefit-icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.benefit-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.benefit-link:hover {
  text-decoration: underline;
}

.benefit-link .icon-arrow {
  flex-shrink: 0;
}

.benefit-card a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.benefit-card a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .benefits {
    padding: 3rem 0 3.5rem;
  }
  .benefits h2 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    margin-bottom: 1.75rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .benefits .section-label {
    margin-bottom: 0.4rem;
  }
  .benefit-card {
    min-height: 0;
    padding: 1.75rem 1.25rem;
  }
  .benefit-icon {
    margin-bottom: 1rem;
  }
  .benefit-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
  .benefit-card p {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
  }
}

/* ----- Stack cards "Explore our courses" (dark section) ----- */
.stack-section {
  padding: 3rem 0 3rem;
  background: var(--section-dark-soft);
  color: var(--white);
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

.stack-header {
  text-align: center;
  margin-bottom: 2rem;
}

.stack-header-inner {
  max-width: 560px;
  margin: 0 auto;
}

.stack-header .section-label {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.stack-header h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.stack-header-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.stack-container {
  width: 88vw;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.stack-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(var(--stack-numcards), max(var(--stack-card-height), var(--stack-card-height-min)));
  gap: var(--stack-card-margin);
  padding-bottom: calc(var(--stack-numcards) * var(--stack-card-offset));
  position: relative;
}

#stack-card-1 { --stack-index: 1; }
#stack-card-2 { --stack-index: 2; }
#stack-card-3 { --stack-index: 3; }
#stack-card-4 { --stack-index: 4; }

.stack-card {
  position: sticky;
  top: var(--stack-sticky-top);
  padding-top: calc(var(--stack-index) * var(--stack-card-offset));
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stack-card-content {
  background: var(--white);
  color: var(--text-dark);
  border-radius: 1.5rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "text img";
  align-items: stretch;
  padding: 0;
  min-height: 280px;
  flex: 1;
  height: 100%;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  border-top: 4px solid var(--accent);
  transition: box-shadow 0.25s ease;
}

.stack-card-content:hover {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.stack-card-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.5rem;
}

.stack-card-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.25;
}

.stack-card-text p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.stack-card-text .btn-small {
  margin-top: 0.25rem;
}

.stack-card-content figure {
  grid-area: img;
  overflow: hidden;
  margin: 0;
  background: var(--section-light-soft);
}

.stack-card-content figure img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  align-self: flex-start;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-small:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Stack cards mobile: layout only – sticky stack animation unchanged */
@media (max-width: 768px) {
  .stack-section {
    padding: 3rem 0 4rem;
    --stack-card-height: 70vh;
    --stack-card-height-min: 380px;
  }
  .stack-container {
    padding: 0 1rem;
  }
  .stack-card-content {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "img";
  }
  .stack-card-text {
    padding: 2rem 1.5rem;
    padding-right: 1.5rem;
  }
  .stack-card-content figure img {
    min-height: 200px;
  }
}

/* ----- Courses grid (light section) ----- */
.courses {
  padding: var(--section-padding-y) 0;
  background: var(--section-light-soft);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Section headings: consistent across page */
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--text-muted);
}

section h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.courses h2 {
  color: var(--text-dark);
}

.course-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.course-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 2px solid #e5e7eb;
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.course-tab:hover {
  border-color: var(--primary);
  background: rgba(0, 138, 97, 0.08);
  color: var(--primary);
}

.course-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

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

.course-card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  border-top: 4px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.course-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent);
  color: var(--text-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.course-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-right: 4.5rem;
  font-family: inherit;
  line-height: 1.3;
  color: var(--text-dark);
}

.course-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.course-card .btn-small {
  margin-top: auto;
  align-self: flex-start;
}

.course-card.hidden {
  display: none;
}

/* ----- About (primary blue section) ----- */
.about {
  padding: var(--section-padding-y) 0;
  background: var(--primary);
  color: var(--white);
}

.about .section-label {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.about .about-content h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.about .about-content > p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  max-width: 520px;
}

.about .about-list li {
  color: rgba(255, 255, 255, 0.95);
}

.about .about-list li::before {
  filter: brightness(0) invert(1);
}

.about .btn-primary {
  background: var(--accent);
  color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(240, 216, 11, 0.35);
}

.about .btn-primary:hover {
  background: var(--accent-light);
  color: var(--text-dark);
  box-shadow: 0 6px 20px rgba(240, 216, 11, 0.4);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.about-stat {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--accent);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.about-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  margin-bottom: 1rem;
}

.about-content > p {
  margin-bottom: 1.25rem;
}

.about-list {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.about-list li {
  padding: 0.4rem 0;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.5;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-image {
    order: 1;
  }
  .about-content {
    order: 2;
  }
}

/* ----- Stats + Trainers merged (side by side) ----- */
.stats-trainers-merge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.merge-inner {
  display: contents;
}

.merge-col {
  padding: var(--section-padding-y) 2rem;
  display: flex;
  align-items: center;
}

.merge-col-inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* Left: Stats (white) */
.merge-col-stats {
  background: var(--section-light);
  color: var(--text-dark);
}

.merge-col-stats h2 {
  color: var(--text-dark);
  text-align: center;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-bottom: 1.75rem;
  line-height: 1.3;
}

.merge-col-stats .stat-number {
  color: var(--primary);
}

.merge-col-stats .stat-label {
  color: var(--text-muted);
  opacity: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.95;
  line-height: 1.4;
}

/* Right: Our expertise (dark) */
.merge-col-expertise {
  background: var(--section-dark-soft);
  color: var(--white);
}

.merge-col-expertise .merge-col-inner {
  max-width: 100%;
}

.merge-col-expertise .section-label {
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.5rem;
}

.merge-col-expertise h2 {
  color: var(--white);
  text-align: center;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.expertise-intro {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

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

.expertise-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  transition: background 0.2s, border-color 0.2s;
}

.expertise-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.expertise-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.expertise-icon svg {
  display: block;
}

.expertise-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.expertise-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 900px) {
  .stats-trainers-merge {
    grid-template-columns: 1fr;
  }

  .merge-col {
    padding: 2.5rem 1.5rem;
  }

  .merge-col-stats {
    border-bottom: 1px solid #e5e7eb;
  }

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

  .stat-number {
    font-size: 1.75rem;
  }
}

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

  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Testimonials (light section) ----- */
.testimonials {
  padding: var(--section-padding-y) 0;
  background: var(--section-light-soft);
}

.testimonials h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 2rem;
  text-align: center;
}

.testimonials .section-label {
  text-align: center;
}

.testimonials-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.testimonial-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.testimonial-btn svg {
  display: block;
}

.testimonials-track-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.testimonials-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 calc(100% - 2rem);
  max-width: 380px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-sizing: border-box;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.testimonial-card cite {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.testimonials-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.testimonials-dots button:hover {
  background: var(--primary-light);
}

.testimonials-dots button.active {
  background: var(--primary);
  transform: scale(1.25);
}

@media (min-width: 640px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (min-width: 900px) {
  .testimonial-card {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

/* ----- FAQ (dark section) ----- */
.faq {
  padding: var(--section-padding-y) 0;
  background: var(--section-dark-soft);
}

.faq h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 2rem;
  text-align: center;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ dark theme (inside .faq section) */
.faq .faq-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: none;
  margin-bottom: 0.75rem;
}

.faq .faq-item summary {
  color: rgba(255, 255, 255, 0.95);
}

.faq .faq-item summary::after {
  color: var(--accent);
  font-size: 1.35rem;
}

.faq .faq-item p {
  color: rgba(255, 255, 255, 0.85);
  padding: 0 1.25rem 1.25rem 1rem;
}

/* ----- Demo form (inviting, conversion-focused) ----- */
.demo-section {
  padding: var(--section-padding-y) 0;
  background: linear-gradient(180deg, var(--section-light-blue) 0%, var(--section-light) 100%);
}

.demo-section-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.demo-heading {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.demo-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.demo-trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
  padding: 0;
}

.demo-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
}

.demo-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-form-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 24px rgba(0, 138, 97, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  border-top: 4px solid var(--accent);
}

.demo-form {
  padding-bottom: 0;
}

@media (max-width: 540px) {
  .demo-form-card {
    padding: 1.5rem 1.25rem;
  }
  .demo-trust-list {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

.demo-form .btn-block {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding: 0.9rem 1.5rem;
  font-size: 1.0625rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.demo-section .btn-cta {
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 14px rgba(240, 216, 11, 0.4);
}

.demo-section .btn-cta:hover {
  box-shadow: 0 6px 20px rgba(240, 216, 11, 0.5);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.required {
  color: #dc2626;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 138, 97, 0.15);
}

.demo-form-card .form-row input::placeholder,
.demo-form-card .form-row textarea::placeholder {
  color: #9ca3af;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

/* ----- Final CTA (dark section, redesigned) ----- */
.final-cta {
  position: relative;
  background: var(--primary);
  color: var(--white);
  padding: 4rem 2rem 4.5rem;
  text-align: center;
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 0, 0, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 45%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.final-cta-tagline {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.final-cta-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn-cta-final {
  background: var(--accent);
  color: var(--text-dark);
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(240, 216, 11, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-cta-final:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240, 216, 11, 0.5);
}

.btn-cta-secondary {
  background: transparent;
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}

.btn-light:hover {
  background: var(--bg);
  transform: translateY(-1px);
}

/* ----- Footer (redesigned) ----- */
.footer {
  background: var(--bg-dark);
  color: #e2e8f0;
  padding: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
  gap: 2.5rem 2rem;
  padding: 3rem 1.5rem 2.5rem;
  align-items: start;
}

.footer-brand {
  max-width: 260px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.footer-logo .logo-accent {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  color: var(--white);
}

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

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

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

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

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-contact-list li:last-child {
  margin-bottom: 0;
}

.footer-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--primary-light);
}

.footer-contact-list a {
  color: #e2e8f0;
}

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

.footer-bottom {
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--section-dark-soft);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.footer-credit {
  margin-top: 0.5rem;
}

.footer-credit a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-credit a:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .final-cta {
    padding: 3rem 1.5rem 3.5rem;
  }
  .final-cta-buttons {
    flex-direction: column;
  }
  .btn-cta-final,
  .btn-cta-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 2.5rem 1.5rem 2rem;
  }
  .footer-brand {
    text-align: left;
  }
  .footer-tagline {
    text-align: left;
  }
  .footer-contact-list li {
    justify-content: flex-start;
    text-align: left;
  }
  .footer-bottom {
    text-align: left;
  }
}

/* ----- Mobile nav ----- */
@media (max-width: 900px) {
  /* When menu is open, lift header (and fixed nav inside it) above announcement bar */
  body.menu-open .header {
    z-index: 1100;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 4rem 1.5rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    z-index: 1100;
    align-items: stretch;
    transform: translateX(100%);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-dark);
    transition: background 0.2s, color 0.2s;
  }

  .nav-close:hover,
  .nav-close:focus {
    background: #f3f4f6;
    color: var(--section-dark);
  }

  .nav-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu li {
    border-bottom: 1px solid #e5e7eb;
  }

  .nav-menu a {
    display: block;
    padding: 1rem 0;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 200px;
  }

  .nav .btn-cta {
    margin-top: 1rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: var(--section-padding-y-sm);
    padding-bottom: 0;
    overflow: hidden;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-image-wrap {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    align-self: end;
    display: flex;
    align-items: flex-end;
  }
  .hero-image {
    width: 100%;
    height: auto;
    max-height: 58vh;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    vertical-align: bottom;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.22)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
  }
}

/* ----- Mobile-friendly: touch targets, spacing, no overflow (stack cards unchanged) ----- */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Touch targets ≥ 44px */
  .btn,
  .btn-cta,
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }

  .btn-small {
    min-height: 44px;
    padding: 0.6rem 1.25rem;
  }

  .nav-menu a {
    min-height: 44px;
    padding: 1rem 0;
    display: flex;
    align-items: center;
  }

  .course-tab {
    min-height: 44px;
    padding: 0.6rem 1.25rem;
  }

  .testimonial-btn {
    min-width: 48px;
    min-height: 48px;
  }

  /* Prevent iOS zoom on focus – keep inputs ≥ 16px */
  .form-row input,
  .form-row select,
  .form-row textarea {
    font-size: 16px;
    padding: 0.75rem 1rem;
  }

  /* Section spacing on small screens */
  section {
    scroll-margin-top: var(--sticky-offset);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .header-inner {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .benefits-grid,
  .testimonials-slider {
    gap: 1.25rem;
  }

  .trust-badges {
    gap: 1.5rem;
  }

  .final-cta-inner,
  .demo-form-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Smooth scroll on iOS */
@media (max-width: 768px) {
  .testimonials-slider {
    -webkit-overflow-scrolling: touch;
  }
}

/* ----- Scroll-triggered animations ----- */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.reveal-up {
  transform: translateY(40px);
}

.reveal.reveal-left {
  transform: translateX(-50px);
}

.reveal.reveal-right {
  transform: translateX(50px);
}

.reveal.reveal-scale {
  transform: scale(0.92);
}

.reveal.reveal-fade {
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger delays for children */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

/* Hero: animate on load (no scroll needed for above-fold) */
.hero .reveal {
  opacity: 0;
}
.hero .reveal.reveal-up { transform: translateY(32px); }
.hero .reveal.reveal-right { transform: translateX(40px); }
.hero.is-visible .reveal,
.hero .reveal.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ----- Sticky: WhatsApp & Back to top ----- */
.sticky-btn {
  position: fixed;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--white);
}

.sticky-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.sticky-whatsapp {
  bottom: 1.5rem;
  right: 1.5rem;
  background: #25d366;
}

.sticky-whatsapp:hover {
  color: var(--white);
}

.sticky-back-top {
  bottom: 5rem;
  right: 1.5rem;
  background: var(--primary);
}

.sticky-back-top:hover {
  color: var(--white);
}

.sticky-offer {
  bottom: 9rem;
  right: 1.5rem;
  background: #b91c1c;
  color: #fee2e2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  padding: 0;
}

.sticky-offer-label {
  padding: 0.4rem 0.5rem;
}

.sticky-back-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
}

.sticky-back-top {
  opacity: 1;
  transition: opacity 0.25s, transform 0.25s;
}

@media (max-width: 540px) {
  .sticky-btn {
    width: 48px;
    height: 48px;
    right: 1.25rem;
  }
  .sticky-whatsapp {
    bottom: 1.25rem;
  }
  .sticky-back-top {
    bottom: 4.25rem;
  }
}

/* ----- Success/Error Message Toasts ----- */
.success-message,
.error-message {
  position: fixed;
  top: calc(var(--announcement-bar-height) + var(--header-height) + 1rem);
  right: 1rem;
  z-index: 1003;
  max-width: 400px;
  opacity: 0;
  transform: translateX(120%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.success-message.show,
.error-message.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.success-message-content,
.error-message-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: var(--white);
}

.success-message-content {
  border-left: 4px solid #10b981;
}

.error-message-content {
  border-left: 4px solid #ef4444;
}

.success-icon {
  flex-shrink: 0;
  color: #10b981;
  width: 24px;
  height: 24px;
}

.error-icon {
  flex-shrink: 0;
  color: #ef4444;
  width: 24px;
  height: 24px;
}

.success-text,
.error-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ----- Summer discount strip ----- */
.promo-strip {
  background: #b91c1c;
  color: #fee2e2;
  padding: 0.75rem 1.5rem;
}

.promo-strip-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.promo-strip-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.promo-strip-code-btn {
  border: none;
  background: #111827;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.3rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.promo-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  opacity: 0.9;
}

.promo-code {
  background: #facc15;
  color: #111827;
  padding: 0.22rem 0.8rem;
  border-radius: 9999px;
  letter-spacing: 0.12em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.promo-hint {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.3);
}

.promo-hint::before {
  content: "";
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='9' y='9' width='11' height='11' rx='2' stroke='%23e5e7eb' stroke-width='1.6'/%3E%3Crect x='4' y='4' width='11' height='11' rx='2' stroke='%23e5e7eb' stroke-width='1.6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.promo-strip-code-btn:hover {
  background: #020617;
}

@media (max-width: 640px) {
  .promo-strip-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .promo-strip-text {
    font-size: 0.9rem;
  }

  .promo-strip-code-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Summer offer modal */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  display: none;
  align-items: center;
  justify-content: center;
}

.promo-modal.show {
  display: flex;
}

.promo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
}

.promo-modal-content {
  position: relative;
  max-width: 420px;
  margin: 0 1.25rem;
  background: #f9fafb;
  color: #111827;
  padding: 1.75rem 1.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.promo-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.promo-modal-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #ea580c;
  margin-bottom: 0.4rem;
}

.promo-modal-content h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.promo-modal-text {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 1.25rem;
}

.promo-modal-success {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #16a34a;
  font-weight: 500;
}

.promo-modal-code-btn {
  border: none;
  background: #f97316;
  color: #111827;
  padding: 0.7rem 1.4rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  cursor: pointer;
}

.promo-modal-code-btn .promo-code {
  background: #facc15;
  color: #111827;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
}

.promo-modal-code-btn .promo-hint {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.35rem;
  background: rgba(15, 23, 42, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.promo-modal-code-btn:hover {
  background: #fde047;
}

.promo-strip-code-btn.copied,
.promo-modal-code-btn.copied {
  background: #fbbf24;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.promo-strip-code-btn.copied .promo-code,
.promo-modal-code-btn.copied .promo-code {
  background: #0f172a;
  color: #fef9c3;
}

@media (max-width: 540px) {
  .success-message,
  .error-message {
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
    top: calc(var(--announcement-bar-height) + var(--header-height) + 0.75rem);
  }
  
  .success-message-content,
  .error-message-content {
    padding: 0.875rem 1rem;
  }
  
  .success-text,
  .error-text {
    font-size: 0.875rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .benefit-card:hover,
  .course-card:hover {
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none !important;
    transition: none;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none !important;
  }
  .sticky-btn:hover {
    transform: none;
  }
}
