/* =========================================================
   Step Up Academy - Global Design System
   Palette locked to logo sample: teal #10B0B8 + pink #F05888
   ========================================================= */

:root {
  --teal: #10b0b8;
  --teal-deep: #0c8e95;
  --teal-soft: #e6f8f9;
  --pink: #f05888;
  --pink-deep: #e04574;
  --amber: #f2b705;
  --amber-deep: #d9a204;
  --cream: #fffdf7;
  --soft-grey: #f3f6f7;
  --charcoal: #2b2b2b;
  --muted: #5c6468;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(16, 176, 184, 0.12);
  --shadow-deep: 0 18px 40px rgba(16, 176, 184, 0.2);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Nunito", sans-serif;
  --font-display: "Fredoka", sans-serif;
  --nav-h: 88px;
  --container: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(15, 174, 185, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(241, 85, 133, 0.08), transparent 50%),
    linear-gradient(180deg, #fffdf7 0%, #f7fbfb 40%, #fffdf7 100%);
  line-height: 1.6;
  opacity: 0;
  animation: pageIn 0.45s var(--ease) forwards;
  overflow-x: hidden;
}

@keyframes pageIn {
  to { opacity: 1; }
}

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

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

ul { list-style: none; }

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(3.75rem, 7.5vw, 5.75rem) 0;
  scroll-margin-top: calc(var(--nav-h) + 0.5rem);
}

.section--soft { background: var(--soft-grey); }
.section--teal {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: var(--white);
}
.section--cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--charcoal);
  background:
    linear-gradient(90deg, var(--teal), var(--amber) 48%, var(--pink)) 0 0 / 100% 3px no-repeat,
    radial-gradient(ellipse 72% 95% at 6% 90%, rgba(16, 176, 184, 0.28), transparent 58%),
    radial-gradient(ellipse 58% 80% at 94% 12%, rgba(240, 88, 136, 0.22), transparent 55%),
    radial-gradient(ellipse 48% 55% at 52% -5%, rgba(242, 183, 5, 0.2), transparent 58%),
    linear-gradient(165deg, #eef9fa 0%, #fff8f4 46%, #f0f8f9 100%);
}

.section--cta::before,
.section--cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.section--cta::before {
  width: min(30rem, 78vw);
  height: min(30rem, 78vw);
  top: -22%;
  right: -10%;
  background: radial-gradient(circle, rgba(240, 88, 136, 0.28) 0%, transparent 68%);
  animation: ctaOrbDrift 18s var(--ease) infinite alternate;
}

.section--cta::after {
  width: min(24rem, 62vw);
  height: min(24rem, 62vw);
  bottom: -26%;
  left: -8%;
  background: radial-gradient(circle, rgba(16, 176, 184, 0.3) 0%, transparent 70%);
  animation: ctaOrbDrift 22s var(--ease) infinite alternate-reverse;
}

@keyframes ctaOrbDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(1.5%, -2.5%) scale(1.06); }
}

.cta-panel {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.cta-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.85rem;
}

.cta-panel__eyebrow::before {
  content: "";
  width: 1.35rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--pink));
}

.section--cta .section__title,
.cta-panel__title {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  max-width: 22ch;
}

.section--cta .section__title::after,
.cta-panel__title::after {
  display: none;
}

.cta-panel__lead {
  margin: 1rem auto 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  line-height: 1.65;
}

.section--cta .btn-group {
  justify-content: center;
  margin-top: 0.25rem;
}

.section--cta .btn--white {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--teal-deep);
  border-color: rgba(16, 176, 184, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(16, 176, 184, 0.16);
}

.section--cta .btn--white::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(16, 176, 184, 0.12) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
}

.section--cta .btn--white:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(16, 176, 184, 0.28);
}

.section--cta .btn--white:hover::before {
  transform: translateX(120%);
}

.section--cta .btn--white:active {
  transform: translateY(-1px);
}

.section--cta .btn--outline-dark {
  background: transparent;
  border-color: rgba(43, 43, 43, 0.22);
  color: var(--charcoal);
}

.section--cta .btn--outline-dark:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 0.75rem;
  border-radius: 2px;
  background:
    linear-gradient(90deg, var(--teal) 0 33%, var(--amber) 33% 66%, var(--pink) 66% 100%);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.section__lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section--teal .section__eyebrow,
.section--teal .section__lead { color: rgba(255, 255, 255, 0.88); }
.section--teal .section__title::after {
  background: linear-gradient(90deg, #fff 0 33%, var(--amber) 33% 66%, #ffc0d3 66% 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-deep);
}

.btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.btn--amber {
  background: linear-gradient(135deg, var(--amber), #ffca28);
  color: var(--charcoal);
}

.btn--pink {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--pink);
  color: var(--pink-deep);
}

.btn--outline-dark:hover {
  background: var(--pink);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--teal-deep);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Navbar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-solid {
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(15, 174, 185, 0.1);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 2;
  flex-shrink: 0;
}

.nav__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}
/* Wordmark removed from nav - logo only */

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__links > li > a,
.nav__drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
  transition: background 0.2s ease, color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__links > li > a:hover,
.nav__drop-toggle:hover,
.nav__links > li > a.is-active {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.nav__drop {
  position: relative;
}

.nav__drop-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 240px;
  padding: 0.6rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.nav__drop:hover .nav__drop-menu,
.nav__drop:focus-within .nav__drop-menu,
.nav__drop.is-open .nav__drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__drop-menu a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
}

.nav__drop-menu a:hover {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.nav__drop-menu a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
  clip-path: polygon(0 40%, 40% 40%, 40% 0, 100% 50%, 40% 100%, 40% 60%, 0 60%);
}

.nav__cta { margin-left: 0.35rem; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--teal-soft);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--teal-deep);
  transition: 0.25s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero base ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10, 138, 146, 0.78) 0%, rgba(15, 174, 185, 0.55) 45%, rgba(241, 85, 133, 0.35) 100%);
}

.hero__rays {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 42rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.hero__brand .up { color: #ffc4d6; }

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.hero__title .word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero__title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: wordUp 0.7s var(--ease) forwards;
}

.hero__title .word-space { display: inline-block; width: 0.28em; }

@keyframes wordUp {
  to { transform: translateY(0); opacity: 1; }
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 34rem;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  animation: fadeUp 0.7s 0.45s var(--ease) forwards;
}

.hero .btn-group {
  opacity: 0;
  animation: fadeUp 0.7s 0.6s var(--ease) forwards;
}

.hero .btn-group .btn:nth-child(2) {
  animation-delay: 0.75s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero--compact {
  min-height: 60svh;
  align-items: center;
  color: var(--charcoal);
}

.hero--compact .hero__overlay {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(15, 174, 185, 0.14), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(241, 85, 133, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.2), rgba(255, 253, 247, 0.92));
}

.hero--compact .hero__title { color: var(--charcoal); }
.hero--compact .hero__sub { color: var(--muted); }
.hero--compact .hero__brand { color: var(--teal-deep); }
.hero--compact .hero__brand .up { color: var(--pink); }

.step-badges {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 18%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  animation: bob 2.2s ease-in-out infinite;
}

.step-badge:nth-child(2) { margin-left: 1.1rem; animation-delay: 0.25s; }
.step-badge:nth-child(3) { margin-left: 2.2rem; animation-delay: 0.5s; }

.step-badge i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--amber);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

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

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    opacity 0.35s ease;
  height: 100%;
  will-change: transform;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(16, 176, 184, 0.22);
}

a.card {
  color: inherit;
  display: block;
}

a.card:hover {
  color: inherit;
}

.card--interactive { cursor: pointer; }

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.card__icon--teal { background: var(--teal-soft); color: var(--teal-deep); }
.card__icon--amber { background: #fff4cc; color: var(--amber-deep); }
.card__icon--pink { background: #ffe4ec; color: var(--pink-deep); }

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.card p { color: var(--muted); font-size: 0.98rem; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--teal-deep);
  transition: color 0.3s var(--ease);
}

.card__link::after {
  content: "→";
  transition: transform 0.35s var(--ease);
}

.card:hover .card__link { color: var(--pink-deep); }
.card:hover .card__link::after { transform: translateX(6px); }

.pillar-card {
  border-top: 4px solid var(--teal);
  overflow: hidden;
}

.pillar-card--train { border-top-color: var(--amber); }
.pillar-card--tutor { border-top-color: var(--pink); }

.feature-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.35s ease;
}

.feature-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(16, 176, 184, 0.18);
}

.feature-tile h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-tile p { color: var(--muted); font-size: 0.95rem; }

/* Magnetic tilt (adapted from Hover gallery mouse-response) */
.magnetic {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat__label { opacity: 0.9; font-size: 0.95rem; }

/* ---------- Swiper ---------- */
.course-slide {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: auto;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.course-slide:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}

.course-slide__img {
  height: 220px;
  overflow: hidden;
}

.course-slide__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.course-slide:hover .course-slide__img img { transform: scale(1.06); }

.course-slide__body { padding: 1.25rem; }

.course-slide__body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.course-slide__body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.swiper-pagination-bullet-active { background: var(--teal) !important; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--teal);
  line-height: 1;
  position: absolute;
  top: 0.6rem;
  left: 1rem;
  opacity: 0.4;
}

.quote p {
  padding-left: 0.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.quote cite {
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #0a7077, #086166);
  color: var(--white);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  opacity: 0.88;
  font-size: 0.95rem;
  max-width: 22rem;
}

.footer-brand .wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 0.85rem;
  opacity: 0.95;
}

.site-footer h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer a {
  display: block;
  padding: 0.3rem 0;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
  opacity: 1;
  transform: translateX(3px);
}

.footer-contact li {
  opacity: 0.9;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.88rem;
  opacity: 0.85;
}

.footer-social {
  margin-top: 1.25rem;
}

.footer-social > span {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.footer-social > div {
  display: flex;
  gap: 0.55rem;
}

.site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.site-footer .footer-social a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.footer-social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

/* ---------- Floating actions ---------- */
.floating-actions {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.35rem);
  bottom: clamp(0.75rem, 2vw, 1.35rem);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.floating-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-deep);
  box-shadow: 0 0.8rem 2rem rgba(8, 70, 76, 0.2);
  cursor: pointer;
  transition: transform 0.3s var(--ease), opacity 0.3s ease, background 0.3s ease;
}

.floating-action svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.floating-action > span {
  position: absolute;
  right: calc(100% + 0.65rem);
  padding: 0.38rem 0.65rem;
  border-radius: 0.55rem;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0.35rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-action:hover,
.floating-action:focus-visible {
  transform: translateY(-3px) scale(1.04);
}

.floating-action:hover > span,
.floating-action:focus-visible > span {
  opacity: 1;
  transform: translateX(0);
}

.floating-action:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.floating-action--whatsapp {
  width: 3.5rem;
  height: 3.5rem;
  background: #25d366;
  color: #fff;
}

.floating-action--facebook {
  background: #1877f2;
  color: #fff;
}

.floating-action--instagram {
  background: linear-gradient(135deg, #feda75, #d62976 48%, #4f5bd5);
  color: #fff;
}

.floating-action--top {
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.75rem);
}

.floating-action--top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Forms / misc ---------- */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #d7e3e5;
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 174, 185, 0.18);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 600;
}

.form-message.is-visible { display: block; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.chip.is-active,
.chip:hover {
  background: var(--teal);
  color: var(--white);
}

.accordion details {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow);
}

.accordion summary {
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.accordion details[open] summary { color: var(--teal-deep); margin-bottom: 0.55rem; }

.accordion details p { color: var(--muted); }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e8eef0;
  font-size: 0.92rem;
}

th {
  font-family: var(--font-heading);
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--teal), var(--pink));
  transform: translateX(-50%);
}

.timeline__item {
  width: calc(50% - 1.5rem);
  margin-bottom: 1.5rem;
  padding: 1.15rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.timeline__item:nth-child(odd) { margin-right: auto; }
.timeline__item:nth-child(even) { margin-left: auto; }

.timeline__year {
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a:hover { color: var(--teal-deep); }

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

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

.tab-btn {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid #d7e3e5;
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-shapes span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  animation: drift 28s linear infinite;
}

.floating-shapes span:nth-child(1) {
  width: 80px; height: 80px; background: var(--amber); top: 20%; left: 8%;
}
.floating-shapes span:nth-child(2) {
  width: 48px; height: 48px; background: var(--pink); top: 55%; left: 85%; animation-duration: 34s;
}
.floating-shapes span:nth-child(3) {
  width: 64px; height: 64px; background: var(--teal); top: 70%; left: 15%; animation-duration: 40s;
  border-radius: 12px;
}
.floating-shapes span:nth-child(4) {
  width: 36px; height: 36px; background: #fff; top: 30%; left: 70%; animation-duration: 22s;
}

@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(40px, -30px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* Character disperse hover (adapted from Hover Effects/2) */
.disperse {
  display: inline-block;
  cursor: default;
}

.disperse .char {
  display: inline-block;
  transition: transform 0.55s var(--ease);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }

  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(255, 253, 247, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__drop-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--teal-soft);
    display: none;
    margin-top: 0.35rem;
  }

  .nav__drop.is-open .nav__drop-menu { display: block; }

  .nav__cta { margin: 0.75rem 0 0; }

  .nav__logo {
    width: 64px;
    height: 64px;
  }

  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }

  .step-badges { display: none; }

  .timeline::before { left: 12px; }
  .timeline__item {
    width: calc(100% - 2rem);
    margin-left: 2rem !important;
  }

  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body { opacity: 1; animation: none; }

  .hero__title .word {
    transform: none;
    opacity: 1;
    animation: none;
  }

  .hero__sub,
  .hero .btn-group {
    opacity: 1;
    animation: none;
  }

  .card:hover,
  .feature-tile:hover,
  .course-slide:hover,
  .quote:hover {
    transform: none;
  }

  .section--cta::before,
  .section--cta::after {
    animation: none;
  }

  .section--cta .btn--white:hover,
  .section--cta .btn--white:active {
    transform: none;
  }

  .section--cta .btn--white::before {
    display: none;
  }

  html { scroll-behavior: auto; }
}
