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

:root {
  --brand-purple: #564092;
  --brand-green:  #76bf89;
  --brand-orange: #f68100;
  --brand-red:    #e94256;
  --logo2:        #76bf89;
  --sand:         #fffdef;
  --sand-dark:    #fef397;
  --text-dark:    #222;
  --text-mid:     #555;
  --text-light:   #888;
  --radius:       8px;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--sand);
  color: var(--text-dark);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

main { position: relative; z-index: 0; padding-bottom: 3rem; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: opacity .15s;
  cursor: pointer;
}
.btn:hover { opacity: .85; }

.btn-primary   { background: var(--brand-orange); color: #fff; }
.btn-secondary { background: var(--brand-green);  color: #fff; }
.btn-outline   { border: 2px solid var(--brand-purple); color: var(--brand-purple); }
.btn-large     { padding: .9rem 2.5rem; font-size: 1.1rem; }

/* ── Header ──────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--sand);
  border-bottom: 3px solid var(--brand-red);
}

header .logo img {
  height: 56px;
  display: block;
}

header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

header nav a {
  color: var(--text-dark);
  font-weight: 500;
}

header nav a:hover {
  color: var(--brand-purple);
}

/* ── Hero ────────────────────────────────────────── */
@keyframes slide {
  0%   { transform: translateX(-25%); }
  100% { transform: translateX(25%); }
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-purple);
  color: #fff;
  padding: 5rem 2rem 6rem;
  text-align: center;
}

.hero-bg {
  animation: slide 16s ease-in-out infinite alternate;
  background-image: linear-gradient(-60deg, var(--brand-green) 50%, var(--brand-purple) 50%);
  bottom: 0;
  left: -50%;
  opacity: .5;
  position: absolute;
  right: -50%;
  top: 0;
}

.hero-bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 20s;
}

.hero-bg3 {
  animation-duration: 24s;
}

.hero-content {
  position: relative;
  z-index: 1;
}


.hero h1 {
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.hero h1 .title-brand {
  display: block;
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
}

.hero h1 .title-sub {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  margin-top: .6rem;
  opacity: .85;
}

.hero .lead {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: .9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Features ────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-align: center;
}

.feature-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.feature h3   { margin-bottom: .5rem; color: var(--brand-purple); }
.feature p    { color: var(--text-mid); font-size: .95rem; }

/* ── Instructor ───────────────────────────────────── */
@keyframes gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.instructor {
  background: linear-gradient(-45deg, #af573c, #aa2c5c, #1c82a7, #19997b);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

.instructor-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 4rem 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.instructor-photo {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
}

.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instructor-bio h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: .35rem;
}

.instructor-bio h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: .6rem;
}

.instructor-bio p {
  color: rgba(255,255,255,.9);
  max-width: 560px;
}

/* ── Split CTA ────────────────────────────────────── */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.cta-card {
  padding: 3.5rem 2.5rem;
  text-align: center;
  background: var(--logo2);
}

.cta-card--business {
  background: var(--brand-purple);
  color: #fff;
}

.cta-card h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: .75rem;
  color: var(--brand-purple);
}

.cta-card--business h2 {
  color: #fff;
}

.cta-card p {
  color: var(--text-mid);
  margin-bottom: 1.75rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card--business p {
  color: rgba(255,255,255,.85);
}

.cta-card--business .btn {
  background: #fff;
  color: var(--brand-purple);
  font-weight: 700;
}

/* ── Footer ──────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  font-size: .875rem;
  margin-top: -3rem;
}

/*
 * Each panel is a parallelogram: outer div applies skewX(30deg) so the
 * separators sit at 60° from horizontal; overflow:hidden clips to that shape.
 * The inner __bg div applies the inverse skew (-30deg) so the two transforms
 * compose to identity — background patterns (dots, stitches) stay undistorted.
 * .footer-panels background fills the small triangle exposed at the left edge.
 */
.footer-panels {
  position: absolute;
  inset: 0;
  display: flex;
  background: #76bf89; /* panel 5 colour — fills the bottom-right corner triangle */
  clip-path: url(#footer-wave-clip);
}

.footer-panel {
  flex: 1;
  position: relative;
  transform: skewX(-30deg);
  overflow: hidden;
}

.footer-panel__bg {
  position: absolute;
  top: 0; bottom: 0;
  left: -80px; right: -80px; /* extra reach to cover corners after counter-skew */
  transform: skewX(30deg);
}

/* orange+dots | green+stitches | pink | orange+dots | green — no two same colours adjacent */
.footer-panel--1 .footer-panel__bg,
.footer-panel--4 .footer-panel__bg {
  background: #f8c078;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.6) 4px, transparent 4px),
    radial-gradient(circle, rgba(255,255,255,.6) 4px, transparent 4px);
  background-size: 38px 38px;
  background-position: 0 0, 19px 19px;
}

.footer-panel--2 .footer-panel__bg {
  background: #76bf89;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='55' height='55'%3E%3Crect x='3' y='8' width='13' height='3' rx='1.5' fill='white' opacity='.65' transform='rotate(-35 9.5 9.5)'/%3E%3Crect x='27' y='2' width='11' height='3' rx='1.5' fill='white' opacity='.65' transform='rotate(20 32.5 3.5)'/%3E%3Crect x='43' y='20' width='11' height='3' rx='1.5' fill='white' opacity='.65' transform='rotate(-50 48.5 21.5)'/%3E%3Crect x='11' y='30' width='13' height='3' rx='1.5' fill='white' opacity='.65' transform='rotate(12 17.5 31.5)'/%3E%3Crect x='33' y='37' width='11' height='3' rx='1.5' fill='white' opacity='.65' transform='rotate(-25 38.5 38.5)'/%3E%3Crect x='5' y='48' width='13' height='3' rx='1.5' fill='white' opacity='.65' transform='rotate(42 11.5 49.5)'/%3E%3Crect x='45' y='47' width='11' height='3' rx='1.5' fill='white' opacity='.65' transform='rotate(-15 50.5 48.5)'/%3E%3Crect x='20' y='19' width='11' height='3' rx='1.5' fill='white' opacity='.65' transform='rotate(58 25.5 20.5)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.footer-panel--3 .footer-panel__bg { background: #fbe1e7; }



.footer-panel--5 .footer-panel__bg { background: #76bf89; }

.footer-content {
  position: relative;
  z-index: 1;
  color: var(--text-mid);
  text-align: center;
  padding: 1rem 2rem 1.5rem;
}

footer a { color: var(--text-mid); }
footer a:hover { color: #000; }

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  opacity: .75;
  transition: opacity .15s;
}
.social-links a:hover { opacity: 1; }

.social-icon {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
  display: block;
}

.footer-content p { margin-bottom: .25rem; }

/* ── Testimonies ─────────────────────────────────── */
.testimonies {
  padding: 4rem 2rem;
  background: var(--sand);
  border-top: 4px solid var(--brand-purple);
}

.testimonies-heading {
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand-purple);
  margin-bottom: 2.5rem;
}

@keyframes testimony-scroll {
  to { transform: translateX(var(--testimony-scroll-end, 0px)); }
}

.testimonies-carousel {
  overflow: hidden;
  position: relative;
}

.testimonies-track {
  display: flex;
  gap: 1.5rem;
}

.testimony-card {
  flex: 0 0 320px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 1.5rem 2rem 1.75rem;
}

.testimony-card::before {
  content: '\201C';
  display: block;
  font-size: 4rem;
  line-height: 0.85;
  color: var(--brand-orange);
  font-family: Georgia, serif;
  opacity: .5;
  margin-bottom: .25rem;
}

.testimony-quote {
  font-style: italic;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.testimony-attribution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

.testimony-name {
  font-weight: 700;
  color: var(--brand-purple);
}

.testimony-link {
  font-size: .85rem;
  color: var(--brand-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.testimony-link:hover { opacity: .8; }

/* Dots and arrows hidden during continuous scroll; revealed on hover/touch */
.testimonies-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.testimonies.is-paused .testimonies-dots {
  opacity: 1;
  pointer-events: auto;
}

.testimony-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-light);
  cursor: pointer;
  transition: background .2s;
  border: none;
  padding: 0;
}
.testimony-dot--active { background: var(--brand-purple); }

.testimony-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: rgba(255,255,255,.92);
  border: 2px solid var(--brand-purple);
  color: var(--brand-purple);
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: background .15s, color .15s, opacity .25s;
}
.testimony-btn:hover { background: var(--brand-purple); color: #fff; }
.testimony-btn--prev { left:  .75rem; }
.testimony-btn--next { right: .75rem; }

.testimonies.is-paused .testimony-btn {
  opacity: 1;
  pointer-events: auto;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
  header { flex-direction: column; gap: 1rem; }
  header nav { flex-wrap: wrap; justify-content: center; }
  .hero { padding: 3rem 1.25rem 4rem; }
  .instructor-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .instructor-bio p { max-width: 100%; }
  .cta-split { grid-template-columns: 1fr; }
  /* On mobile, no continuous scroll — show controls immediately */
  .testimony-card   { flex: 0 0 calc(100vw - 4.5rem); }
  .testimonies-dots { opacity: 1; pointer-events: auto; }
  .testimony-btn    { opacity: 1; pointer-events: auto; }
}
