/* ============================================================
   home.css — Abacus Institute | Home Page Styles
   ============================================================ */

/* ─── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
  padding-top: var(--nav-h);
}

/* Decorative bubbles */
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero-bubble-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(92,31,58,0.10), transparent);
  top: -120px; left: -80px;
  animation: blobFloat 14s ease-in-out infinite alternate;
}
.hero-bubble-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,0.10), transparent);
  bottom: -80px; right: -80px;
  animation: blobFloat 11s ease-in-out infinite alternate-reverse;
}
.hero-bubble-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(196,92,120,0.10), transparent); /* dusty-rose */
  top: 40%; right: 20%;
  animation: blobFloat 9s ease-in-out infinite alternate;
}

@keyframes blobFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.1); }
}

/* Dot overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2.5' fill='%230f172a' fill-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* PNG image layer — sits above decorative bg, below text (z-index: 2) */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background: url('../assets/img/hero-bg-img.png') center / cover no-repeat;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

/* Left content */
.hero-content { max-width: 580px; }


.hero-title {
  font-family: 'Fredoka One', var(--font-head);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 400; /* Fredoka One is inherently bold */
  color: var(--text-dark);
  line-height: 1.12;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-title .gold  {
  color: #e07c00;
  text-shadow: 2px 3px 0 rgba(224,124,0,0.15);
}
.hero-title .green {
  color: #1a8a2e;
  text-shadow: 2px 3px 0 rgba(26,138,46,0.15);
}

/* ── Rotating hero phrases ── */
.hero-phrase-wrap {
  display: grid;
  margin-top: 0.05em;
}
.hero-phrase {
  grid-area: 1 / 1 / 2 / 2; /* all phrases occupy the same grid cell */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}
.hero-phrase.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 500px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-features {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 50px;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  backdrop-filter: blur(6px);
}

.hero-feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.6rem;
  color: var(--white);
}

/* Right — Hero Image */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInRight 0.8s ease 0.2s both;
}

.hero-img-wrap {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.18));
  animation: floatHero 5s ease-in-out infinite alternate;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
}

@keyframes floatHero {
  from { transform: translateY(0px); }
  to   { transform: translateY(-16px); }
}



@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-features { justify-content: center; }
  .hero-visual { display: none; }
}

/* Outline button override for light hero */
#hero .btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
#hero .btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ─── Navbar — transparent state on light hero (page-home only) ─ */
.page-home #navbar.transparent .nav-links a {
  color: var(--text-dark);
}
.page-home #navbar.transparent .nav-links a:hover {
  color: var(--navy);
}
.page-home #navbar.transparent .nav-links a.active {
  color: var(--navy);
}
.page-home #navbar.transparent .nav-toggle span {
  background: var(--text-dark);
}

/* ─── STATS BAR ──────────────────────────────────────────────── */
#stats-bar {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%);
  padding: 0;
  position: relative;
}
#stats-bar::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--saffron), var(--amber));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat-item {
  padding: 2.2rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.05); }
.stat-num {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-num span { color: var(--gold); }
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2),
  .stat-item:nth-child(4) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* ─── SHARED PASTEL DOT UTILITY ─────────────────────────────── */
/* Reused by About, Programs, Why, How sections */
.pd {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;      /* subtle — less than CTA's 0.45 */
}

/* ─── ABOUT ──────────────────────────────────────────────────── */
#about {
  background: #FAF5E8;
  position: relative;
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
/* Offset decorative frame behind the image */
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--maroon), var(--amber));
  opacity: 0.12;
  z-index: 0;
}
.about-img-main {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon-light));
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}
.about-img-placeholder i { font-size: 3rem; color: var(--gold); opacity: 0.6; }

.about-badge-img {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-gold);
}
.about-badge-img strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1;
}
.about-badge-img span {
  font-size: 0.72rem;
  color: var(--navy-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.about-points {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-point {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.about-point-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(92,31,58,0.06), rgba(92,31,58,0.12));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--maroon);
  font-size: 0.95rem;
}
.about-point-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.about-point-text span { font-size: 0.88rem; color: var(--text-muted); }

.about-cta { margin-top: 2.2rem; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap { max-width: 500px; margin-inline: auto; }
}

/* ─── LEARN ABOUT ABACUS — ACCORDION ────────────────────────── */
#learn-abacus {
  background: #FAF0D7;
}

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

/* Left */
.la-left {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.la-heading {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.la-heading span { color: var(--navy); }

.la-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 340px;
}

/* Right — accordion list */
.la-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.la-item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.la-item:hover {
  box-shadow: 0 6px 24px rgba(92,31,58,0.10);
}

/* Button row */
.la-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
}
.la-btn span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: color var(--transition);
}
.la-btn:hover span,
.la-item.open .la-btn span {
  color: var(--navy);
}

/* Arrow button */
.la-arrow {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dark);
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.la-item.open .la-arrow {
  background: var(--navy);
  color: var(--white);
  transform: rotate(90deg);
}
.la-btn:hover .la-arrow {
  background: var(--navy);
  color: var(--white);
}

/* Collapsible body */
.la-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, padding 0.3s ease;
  padding: 0 1.4rem;
}
.la-item.open .la-body {
  max-height: 220px;
  padding: 0 1.4rem 1.2rem;
}
.la-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--light-gray);
  padding-top: 0.9rem;
}

@media (max-width: 860px) {
  .la-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .la-left { position: static; }
  .la-heading { font-size: 2rem; }
}

/* ─── PROGRAMS ───────────────────────────────────────────────── */

#programs {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.programs-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.programs-header .section-sub { margin-inline: auto; }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.program-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: var(--shadow-lg);
}

.program-card-top {
  padding: 2rem 1.5rem 3.2rem; /* extra bottom for the curve */
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  position: relative;
  overflow: hidden;
  /* organic swoosh bottom */
  border-radius: 0 0 60% 60% / 0 0 28px 28px;
}
.program-card-top::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.program-card:nth-child(2) .program-card-top {
  background: linear-gradient(135deg, var(--terracotta-dark), var(--terracotta));
}
.program-card:nth-child(3) .program-card-top {
  background: linear-gradient(135deg, var(--warm-purple), var(--warm-purple-light));
}
.program-card:nth-child(4) .program-card-top {
  background: linear-gradient(135deg, var(--teal-warm), var(--teal-warm-light));
}

.program-icon {
  width: 54px; height: 54px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}
.program-level {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
}
.program-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
}

.program-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.program-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.program-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.program-feature {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-body);
}
.program-feature i {
  color: var(--green);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.program-card-footer {
  border-top: 1px solid var(--light-gray);
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.program-age {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.program-age strong { color: var(--navy); }
.program-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition), color var(--transition);
}
.program-link:hover { gap: 0.7rem; color: var(--gold); }

@media (max-width: 960px) {
  .programs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .programs-grid { grid-template-columns: 1fr; }
}

/* ─── WHY CHOOSE US ──────────────────────────────────────────── */
#why {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.why-item {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.why-item:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.why-item-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(92,31,58,0.22);
}
.why-item:hover .why-item-icon {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 6px 20px rgba(92,31,58,0.32);
}
.why-item:nth-child(2) .why-item-icon { background: linear-gradient(135deg, var(--amber), var(--amber-light)); color: var(--maroon-dark); }
.why-item:nth-child(3) .why-item-icon { background: linear-gradient(135deg, var(--terracotta-dark), var(--terracotta)); }
.why-item:nth-child(4) .why-item-icon { background: linear-gradient(135deg, var(--warm-purple), var(--warm-purple-light)); }
.why-item:nth-child(5) .why-item-icon { background: linear-gradient(135deg, var(--dusty-rose-dark), var(--dusty-rose)); }
.why-item:nth-child(6) .why-item-icon { background: linear-gradient(135deg, var(--teal-warm), var(--teal-warm-light)); }

.why-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.why-item p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

.why-right { position: relative; }
.why-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--maroon-deeper), var(--maroon-light));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.why-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.why-img-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.3);
}
.why-img-placeholder i { font-size: 3.5rem; color: var(--gold); opacity: 0.5; display: block; margin-bottom: 0.5rem; }

.why-quote {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-lg);
  max-width: 240px;
}
.why-quote p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 0.6rem;
}
.why-quote-author {
  display: flex; align-items: center; gap: 0.6rem;
}
.why-quote-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.why-quote-name strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dark);
  font-weight: 700;
}
.why-quote-name span { font-size: 0.72rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-right { display: none; }
  .why-list { grid-template-columns: 1fr; }
}

/* ─── HOW IT WORKS ───────────────────────────────────────────── */
#how {
  background: #FFFCDB;        /* same flat pastel yellow as CTA */
  position: relative;
  overflow: hidden;
}

/* Rainbow stripe at the top — same as CTA */
#how::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: linear-gradient(90deg,
    #FF85A8 0%   20%,
    #FFB07A 20%  40%,
    #FFFE99 40%  60%,
    #96F5A8 60%  80%,
    #99BBFF 80% 100%
  );
  z-index: 2;
}

/* Pastel dot accents — mirrored from CTA */
#how .how-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

#how .section-title { color: var(--text-dark); }
#how .section-title span { color: var(--navy); }
#how .section-sub { color: var(--text-muted); }

/* Tag override for light bg */
#how .tag {
  color: var(--maroon);
  background: rgba(92,31,58,0.08);
}
#how .tag::before { color: var(--maroon); }

.how-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 3;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 3;
}

/* ── Connector line REMOVED — no ::before pseudo-element ── */

.how-step {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(92, 31, 58, 0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.how-step:hover {
  background: #ffffff;
  border-color: rgba(92, 31, 58, 0.18);
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(92, 31, 58, 0.12);
}

.how-step-num {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  font-style: italic;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  letter-spacing: -1px;
  /* Step 1 — pink */
  background: linear-gradient(135deg, #FF85A8, #ff6d96);
  color: #4a0020;
  border: 3px solid rgba(255,133,168,0.4);
  box-shadow: 0 6px 20px rgba(255,133,168,0.35);
}

.how-step:nth-child(2) .how-step-num {
  /* Step 2 — orange */
  background: linear-gradient(135deg, #FFB07A, #e8924f);
  color: #4a1800;
  border-color: rgba(255,176,122,0.4);
  box-shadow: 0 6px 20px rgba(255,176,122,0.35);
}

.how-step:nth-child(3) .how-step-num {
  /* Step 3 — blue */
  background: linear-gradient(135deg, #99BBFF, #6b99e8);
  color: #001a4a;
  border-color: rgba(153,187,255,0.4);
  box-shadow: 0 6px 20px rgba(153,187,255,0.35);
}

.how-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.7rem;
}

.how-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.how-cta {
  text-align: center;
  margin-top: 3.5rem;
  position: relative;
  z-index: 3;
}

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

/* ─── TESTIMONIAL VIDEOS ─────────────────────────────────── */
#testimonials { background: #fafaf7; }
.testi-header { text-align: center; margin-bottom: 3rem; }
.testi-header .section-sub { margin-inline: auto; }

/* 5-column grid for portrait/vertical videos */
.video-testi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}

.vtesti-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--maroon-deeper), var(--maroon-dark));
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.vtesti-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.vtesti-card.playing {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Portrait frame — 9:16 for vertical phone videos */
.vtesti-video-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}
.vtesti-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Subtle gradient overlay at bottom */
.vtesti-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(92,31,58,0.55) 0%, transparent 55%);
  pointer-events: none;
  transition: opacity var(--transition);
}
.vtesti-card.playing .vtesti-overlay { opacity: 0.15; }

/* Play / Pause button */
.vtesti-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(232,185,32,0.92);
  border: none;
  color: var(--navy-dark);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  cursor: pointer;
  opacity: 1;
}
.vtesti-play-btn:hover {
  background: var(--gold-light);
  transform: translate(-50%, -50%) scale(1.12);
}
/* Hide button entirely while video is playing */
.vtesti-card.playing .vtesti-play-btn {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .video-testi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .video-testi-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}



/* ─── CTA BANNER ─────────────────────────────────────────────── */

/* 5-colour pastel stripe used across all CTAs */
.cta-stripe {
  display: flex;
  height: 10px;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
}
.cta-stripe span {
  flex: 1;
  display: block;
}
.cta-stripe span:nth-child(1) { background: #FF85A8; }
.cta-stripe span:nth-child(2) { background: #FFB07A; }
.cta-stripe span:nth-child(3) { background: #FFFE99; }
.cta-stripe span:nth-child(4) { background: #96F5A8; }
.cta-stripe span:nth-child(5) { background: #99BBFF; }

#cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 0 90px;
  background: #FFFCDB; /* flat pastel yellow */
}

/* Wave top edge — REMOVED */

/* Pastel colour dot accents */
#cta-banner .cta-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}
#cta-banner .cta-dot-1 { width: 180px; height: 180px; background: #FF85A8; top: -40px; left: -40px; }
#cta-banner .cta-dot-2 { width: 130px; height: 130px; background: #99BBFF; bottom: -30px; right: -30px; }
#cta-banner .cta-dot-3 { width: 90px;  height: 90px;  background: #96F5A8; top: 20px; right: 15%; }
#cta-banner .cta-dot-4 { width: 70px;  height: 70px;  background: #FFB07A; bottom: 20px; left: 18%; }

.cta-inner {
  position: relative;
  z-index: 4;
}

.cta-inner .tag {
  color: var(--maroon);
  background: rgba(92,31,58,0.08);
  border-color: rgba(92,31,58,0.2);
}
.cta-inner .tag::before { color: var(--maroon); }

.cta-inner h2 {
  font-family: 'Fredoka One', var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy-dark);
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta-inner h2 span { color: var(--navy); }
.cta-inner p {
  color: var(--text-body);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.2rem;
  line-height: 1.75;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Primary CTA — solid hot pink pastel */
.cta-gold {
  background: #FF85A8;
  color: #4a0020;
  box-shadow: 0 6px 20px rgba(255,133,168,0.45);
  border: none;
  font-weight: 700;
}
.cta-gold:hover {
  transform: translateY(-3px);
  background: #ff6d96;
  box-shadow: 0 12px 32px rgba(255,133,168,0.55);
}

/* Outline secondary button */
#cta-banner .btn-outline {
  border-color: var(--maroon);
  color: var(--maroon);
}
#cta-banner .btn-outline:hover {
  background: rgba(92,31,58,0.08);
}

/* ─── Entry Animations ───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
