/* ═══════════════════════════════════════════════════════════════
   CORUJA ACADEMY — Mobile-First Overrides
   Applied after styles.css. Breakpoints: 768px · 480px · 360px
   ═══════════════════════════════════════════════════════════════ */

/* ── GLOBAL MOBILE TOKENS ───────────────────────────────────────── */
:root {
  --mob-pad:       1.25rem;
  --mob-section:   3.5rem 0;
  --mob-gap:       1.25rem;
  --mob-radius:    1.25rem;
  --tap-min:       48px;       /* minimum tap target */
}

/* ═══════════════════════════════════════════════════════════════
   01 — HEADER / NAVIGATION (mobile drawer)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Compact header */
  .header { padding: 0; }
  .header.scrolled { padding: 0; }

  .header__inner {
    padding: 0 var(--mob-pad);
    gap: 0.75rem;
    height: 66px !important;
  }

  .header__logo-img { width: 48px !important; height: 48px !important; }
  .header__logo-name { font-size: 1rem; }
  .header__logo-tagline { display: none; }

  /* Hide desktop nav */
  .nav { display: none; }

  /* Desktop CTA in header — hide text, keep visible on ≥360 */
  .header__actions .btn {
    display: none;
  }

  /* Show toggle */
  .nav__toggle { display: flex; margin-left: auto; }

  /* ── Full-screen mobile drawer ─────────────────────────────── */
  .mobile-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #0D1F1C;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 0;
    border: none;
  }
  .mobile-nav.open {
    display: block;
    transform: translateX(0);
  }

  .mobile-nav__inner {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 1.25rem var(--mob-pad) 2rem;
  }

  /* Drawer top bar */
  .mobile-nav__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 1.5rem;
  }
  .mobile-nav__brand {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 1rem; font-weight: 800; color: white;
  }
  .mobile-nav__brand img { width: 32px; height: 32px; object-fit: contain; }
  .mobile-nav__close {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.8); font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  .mobile-nav__close:hover { background: rgba(255,255,255,.15); }

  /* Nav links */
  .mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    margin-bottom: 2rem;
  }
  .mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    border-radius: var(--radius-md);
    min-height: var(--tap-min);
    transition: background 0.2s, color 0.2s;
    border-bottom: none;
  }
  .mobile-nav__link:hover,
  .mobile-nav__link:focus-visible {
    background: rgba(255,255,255,.07);
    color: var(--clr-teal-light);
  }
  .mobile-nav__link-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .mobile-nav__link-icon svg { width: 16px; height: 16px; color: var(--clr-teal-light); }

  /* Drawer CTA area */
  .mobile-nav__ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .mobile-nav__btn-primary {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 1rem;
    background: var(--clr-gold);
    color: #0D2620;
    font-size: 1rem; font-weight: 700;
    border-radius: var(--radius-full);
    min-height: var(--tap-min);
    box-shadow: 0 4px 20px rgba(253,216,53,.35);
    transition: background 0.2s, transform 0.2s;
  }
  .mobile-nav__btn-primary:active { transform: scale(0.98); }
  .mobile-nav__btn-secondary {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 0.9rem;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.8);
    font-size: 0.95rem; font-weight: 600;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255,255,255,.15);
    min-height: var(--tap-min);
    transition: background 0.2s;
  }
  .mobile-nav__btn-secondary:active { background: rgba(255,255,255,.12); }

  /* Toggle button appearance */
  .nav__toggle {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(0,137,123,.1);
    border: 1px solid rgba(0,137,123,.2);
    gap: 4px;
    padding: 10px;
    align-items: center; justify-content: center;
  }
  .nav__toggle span { width: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   02 — HERO (mobile)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .hero {
    padding-top: 66px;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 0 3.5rem;
    gap: 2rem;
    text-align: center;
  }

  /* Visual comes first on mobile */
  .hero__visual { order: -1; }

  .hero__content { align-items: center; }

  /* Compact eyebrow */
  .hero__eyebrow { margin-bottom: 1rem; }
  .hero__pill { font-size: 0.72rem; padding: 0.35rem 0.85rem 0.35rem 0.55rem; }

  /* Headline */
  .hero__headline-line {
    font-size: clamp(2.25rem, 9vw, 3rem);
    letter-spacing: -0.025em;
  }
  .hero__headline { margin-bottom: 1rem; }

  /* Subheadline */
  .hero__subheadline {
    font-size: 0.95rem;
    max-width: 100%;
    margin-bottom: 1.75rem;
    line-height: 1.7;
    color: rgba(255,255,255,.68);
  }

  /* CTAs — full width stacked */
  .hero__ctas {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.75rem;
  }
  .hero__btn-primary,
  .hero__btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-height: var(--tap-min);
  }
  .hero__btn-primary { order: 1; }
  .hero__btn-ghost   { order: 2; }

  /* Trust strip — 2×2 grid */
  .hero__trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
  }
  .hero__trust-divider:nth-child(4) { display: none; }
  .hero__trust-divider:nth-child(6) {
    grid-column: 1 / -1;
    width: 100%;
    height: 1px;
  }
  .hero__trust-badge {
    padding: 0.75rem 0.9rem;
    min-width: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .hero__trust-badge:nth-child(5),
  .hero__trust-badge:nth-child(7) {
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .hero__trust-text strong { font-size: 0.72rem; }
  .hero__trust-text span   { font-size: 0.62rem; }

  /* Social proof */
  .hero__social-micro { justify-content: center; flex-wrap: wrap; text-align: center; }

  /* Visual frame */
  .hero__visual-frame { max-width: 420px; margin: 0 auto; }

  /* Floating cards — smaller and repositioned */
  .hero__float--lesson {
    left: -0.75rem;
    bottom: -0.75rem;
  }
  .hero__float--lesson .hero__float-lesson {
    min-width: 200px;
    padding: 0.75rem 0.9rem;
  }
  .hero__float--rating {
    top: -0.75rem;
    right: -0.75rem;
  }

  /* Owl — compact, visible but unobtrusive */
  .hero__owl-wrap {
    bottom: -1rem;
    right: -0.5rem;
  }
  .hero__owl-img { width: 80px; }
  .hero__owl-speech { display: none; } /* too cramped on small screens */

  /* Reduce ambient animation complexity on mobile */
  .ambient-blob--2,
  .ambient-blob--3 { display: none; }
  .ambient-blob--1 { width: 300px; height: 300px; }
}

@media (max-width: 480px) {
  .hero__inner { padding: 2rem 0 3rem; gap: 1.75rem; }

  .hero__headline-line { font-size: clamp(2rem, 10vw, 2.5rem); }

  /* Float cards hidden on very small screens — too cramped */
  .hero__float { display: none; }
  .hero__owl-wrap { right: 0; bottom: -0.5rem; }
  .hero__owl-img { width: 70px; }

  /* Trust: single column */
  .hero__trust {
    grid-template-columns: 1fr;
  }
  .hero__trust-divider { display: none !important; }
  .hero__trust-badge {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    padding: 0.65rem 0.9rem;
  }
  .hero__trust-badge:first-child { border-top: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   03 — STATS BAR
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .stats {
    margin-top: -2.5rem;
    padding: 0 var(--mob-pad);
    background: transparent;
    border-bottom: none;
  }

  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 105, 92, 0.08);
    box-shadow: 0 12px 30px rgba(0, 50, 43, 0.08);
  }

  .stat-card {
    padding: 0.75rem 0.5rem;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .stat-card:not(:last-child)::after {
    display: none !important;
  }
  .stat-card__icon { width: 36px; height: 36px; margin-bottom: 0.5rem; }
  .stat-card__icon svg { width: 18px; height: 18px; }
  .stat-card__number { font-size: 2rem; }
  .stat-card__suffix { font-size: 1.25rem; }
  .stat-card__label { font-size: 0.75rem; margin-top: 0.25rem; }
}

@media (max-width: 360px) {
  .stats__inner { grid-template-columns: 1fr; gap: 0.75rem; }
  .stat-card { padding: 0.5rem 0; }
}

/* ═══════════════════════════════════════════════════════════════
   04 — SECTION HEADERS (all sections)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .section { padding: var(--mob-section); }

  .section-header { margin-bottom: 2rem; }

  .section-title {
    font-size: clamp(1.625rem, 6vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}

/* ═══════════════════════════════════════════════════════════════
   05 — WHY CORUJA (feature cards)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .why__grid {
    grid-template-columns: 1fr;
    gap: var(--mob-gap);
  }

  .why-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    /* Horizontal layout on tablet */
  }
  .why-card__title { font-size: 1rem; }
  .why-card__desc  { font-size: 0.875rem; }
}

@media (max-width: 640px) and (min-width: 421px) {
  /* Two-column grid at mid-small sizes */
  .why__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  /* Horizontal card layout — icon left, text right */
  .why-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }
  .why-card__icon {
    flex-shrink: 0;
    margin-bottom: 0;
    width: 44px; height: 44px;
  }
  .why-card__icon svg { width: 22px; height: 22px; }
}

/* ═══════════════════════════════════════════════════════════════
   06 — HOW IT WORKS (step timeline)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .how__steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2.5rem;
  }

  /* Vertical timeline line */
  .how__steps::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: linear-gradient(to bottom, var(--clr-teal-light), var(--clr-teal-mid));
    border-radius: 2px;
  }

  /* Hide horizontal connectors */
  .how-step__connector { display: none !important; }

  .how-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: left;
    padding: 1.25rem 0 1.25rem 0;
    position: relative;
  }

  .how-step__icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    margin: 0;
    position: relative;
    z-index: 1;
  }
  .how-step__icon svg { width: 24px; height: 24px; }

  .how-step__body { flex: 1; padding-top: 0.3rem; }
  .how-step__number { margin-bottom: 0.3rem; }
  .how-step__title  { font-size: 0.975rem; margin-bottom: 0.35rem; }
  .how-step__desc   { font-size: 0.85rem; }

  .how__cta { text-align: center; }
  .how__cta .btn { width: 100%; max-width: 340px; justify-content: center; min-height: var(--tap-min); }
}

/* ═══════════════════════════════════════════════════════════════
   07 — COURSES (course cards)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .courses__grid {
    grid-template-columns: 1fr;
    gap: var(--mob-gap);
  }

  .course-card { padding: 1.5rem; }
  .course-card__title { font-size: 1.075rem; }
  .course-card__desc  { font-size: 0.875rem; margin-bottom: 1rem; }

  /* Horizontal feature pills */
  .course-card__features {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
  }
  .course-card__features li {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.65rem 0.2rem 0.65rem;
    font-size: 0.75rem;
    padding-left: 0.65rem;
  }
  .course-card__features li::before { display: none; }

  .course-card__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    background: var(--clr-surface);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-full);
    min-height: 44px;
    transition: background 0.2s, border-color 0.2s;
  }
  .course-card__cta:hover {
    background: rgba(0,137,123,.08);
    border-color: var(--clr-teal-light);
  }
}

@media (max-width: 640px) and (min-width: 421px) {
  .courses__grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   08 — TEACHERS (teacher cards)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .teachers__grid {
    grid-template-columns: 1fr;
    gap: var(--mob-gap);
    margin-bottom: 2rem;
  }

  /* Horizontal teacher card layout on mobile */
  .teacher-card {
    display: flex;
    flex-direction: row;
    overflow: hidden;
  }

  .teacher-card__photo-wrap {
    width: 120px;
    height: auto;
    flex-shrink: 0;
    border-radius: 0;
    min-height: 160px;
  }
  .teacher-card__photo {
    height: 100%;
    object-position: top center;
  }
  .teacher-card__flag { font-size: 1rem; width: 28px; height: 28px; bottom: 0.5rem; right: 0.5rem; }

  .teacher-card__body {
    flex: 1;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .teacher-card__name    { font-size: 1rem; }
  .teacher-card__cert    { font-size: 0.68rem; margin-bottom: 0.3rem; }
  .teacher-card__specialty { font-size: 0.75rem; margin-bottom: 0.5rem; }
  .teacher-card__bio     { font-size: 0.8rem; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .teacher-card__stars   { font-size: 0.8rem; }

  .teachers__cta { text-align: center; }
  .teachers__cta .btn { width: 100%; max-width: 340px; justify-content: center; min-height: var(--tap-min); }
}

/* Vertical cards at very small sizes */
@media (max-width: 380px) {
  .teacher-card { flex-direction: column; }
  .teacher-card__photo-wrap { width: 100%; height: 200px; }
  .teacher-card__bio { -webkit-line-clamp: 2; }
}

/* ═══════════════════════════════════════════════════════════════
   09 — TESTIMONIALS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: var(--mob-gap);
  }

  .testimonial-card { padding: 1.5rem; }
  .testimonial-card__text { font-size: 0.875rem; line-height: 1.75; margin-bottom: 1.25rem; }
  .testimonial-card__author-name { font-size: 0.85rem; }
  .testimonial-card__location    { font-size: 0.72rem; }

  /* Hide openquote on small screens (saves space) */
  .testimonial-card__openquote { display: none; }
}

@media (max-width: 640px) and (min-width: 421px) {
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   10 — QUIZ / TRIAL CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .quiz__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .quiz__owl { display: none; }
  .quiz__form-row { grid-template-columns: 1fr; }
  .quiz__cta-btn {
    width: 100%;
    justify-content: center;
    min-height: var(--tap-min);
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   11 — FAQ ACCORDION (mobile)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .faq__inner { max-width: 100%; }

  .faq-item__question {
    padding: 1.1rem var(--mob-pad);
    font-size: 0.925rem;
    min-height: var(--tap-min);
    gap: 0.75rem;
  }

  .faq-item__answer {
    padding: 0 var(--mob-pad) 1rem;
    font-size: 0.875rem;
  }

  /* Larger tap icon */
  .faq-item__icon { width: 22px; height: 22px; }
}

/* ═══════════════════════════════════════════════════════════════
   12 — FREE RESOURCES
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .resources__grid {
    grid-template-columns: 1fr;
    gap: var(--mob-gap);
  }
  .resource-card { padding: 1.5rem; }
}

@media (max-width: 640px) and (min-width: 421px) {
  .resources__grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   13 — NEWSLETTER SIGNUP
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .newsletter {
    grid-template-columns: 1fr;
    padding: 1.75rem var(--mob-pad);
    gap: 1.5rem;
    border-radius: var(--mob-radius);
  }
  .newsletter__title { font-size: 1.1rem; }
  .newsletter__desc  { font-size: 0.875rem; }

  .newsletter__form {
    flex-direction: column;
    gap: 0.75rem;
    min-width: unset;
    width: 100%;
  }
  .newsletter__input {
    width: 100%;
    padding: 0.9rem 1.1rem;
    min-height: var(--tap-min);
    font-size: 1rem; /* prevents iOS zoom */
  }
  .newsletter__form .btn {
    width: 100%;
    justify-content: center;
    min-height: var(--tap-min);
  }
}

/* ═══════════════════════════════════════════════════════════════
   14 — FINAL CTA
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .final-cta { padding: 4rem 0; }

  .final-cta__owl { display: none; }

  .final-cta__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    margin-bottom: 1rem;
  }
  .final-cta__subtitle {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .final-cta__buttons {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    max-width: 380px;
    margin: 0 auto 1rem;
  }
  .final-cta__buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: var(--tap-min);
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   15 — FOOTER
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0 2rem;
  }

  .footer__brand-desc { max-width: 100%; font-size: 0.875rem; }
  .footer__social { gap: 0.6rem; }
  .footer__social-link { width: 42px; height: 42px; } /* larger tap targets */

  .footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .footer__col-title { font-size: 0.75rem; margin-bottom: 0.75rem; }
  .footer__col ul { gap: 0.6rem; }
  .footer__col a {
    font-size: 0.875rem;
    min-height: 32px;
    display: flex; align-items: center;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .footer__bottom-links { justify-content: center; gap: 1rem; flex-wrap: wrap; }
}

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

/* ═══════════════════════════════════════════════════════════════
   16 — SOCIAL PROOF / TICKER (if present)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .social-proof__logos { gap: 1.5rem; }
  .social-proof__logo { height: 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   17 — GLOBAL BUTTON TAP IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* All CTAs get minimum tap target */
  .btn {
    min-height: var(--tap-min);
    -webkit-tap-highlight-color: transparent;
  }

  /* Remove hover transforms on touch — prevents sticky states */
  .btn:hover { transform: none !important; }
  .btn:active { transform: scale(0.98) !important; opacity: 0.92; }

  /* Cards: no translateY hover on touch */
  .why-card:hover,
  .course-card:hover,
  .teacher-card:hover,
  .testimonial-card:hover,
  .stat-card:hover,
  .resource-card:hover { transform: none; }

  /* But keep active press feedback */
  .why-card:active,
  .course-card:active { transform: scale(0.99); }
}

/* ═══════════════════════════════════════════════════════════════
   18 — TYPOGRAPHY SCALE (mobile)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Section titles */
  .section-title {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }

  /* Prevent iOS font bumping on inputs */
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   19 — ACCESSIBILITY & TOUCH
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Prevent body scroll when drawer is open */
  body.nav-open { overflow: hidden; }

  /* Improve focus ring on touch */
  :focus-visible {
    outline-width: 3px;
    outline-offset: 4px;
  }

  /* Increase line height slightly for readability at small sizes */
  p, li { line-height: 1.75; }

  /* Ensure images don't cause overflow */
  img { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   20 — SCROLL & PERFORMANCE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Reduce animations for battery / performance */
  .ambient-blob { animation-duration: 20s; }
  .hero__canvas { opacity: 0.25; }

  /* Reduce motion if user prefers */
  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }
}

/* ═══════════════════════════════════════════════════════════════
   21 — FINE-TUNING FOR 360px (smallest common viewport)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  :root { --mob-pad: 1rem; }

  .container { padding: 0 var(--mob-pad); }

  .hero__headline-line { font-size: 1.875rem; }
  .hero__subheadline   { font-size: 0.875rem; }

  .hero__btn-primary, .hero__btn-ghost { padding: 0.875rem 1.25rem; font-size: 0.9rem; }

  .stat-card__number { font-size: 1.875rem; }
  .stat-card__suffix { font-size: 1.25rem; }

  .mobile-nav__link { font-size: 1rem; padding: 0.85rem 0.75rem; }
}

/* ── MASCOT WATERMARKS MOBILE FINE-TUNING ──────────────────────── */
@media (max-width: 768px) {
  .why::after, .how::after, .courses::after, .teachers::after, .results::after, .faq::after {
    width: 60px !important;
    height: 60px !important;
    opacity: 0.025 !important;
  }
  .why::after { right: 0.5rem; bottom: 0.5rem; }
  .courses::after { left: 0.5rem; bottom: 0.5rem; }
  .how::after { right: 0.5rem; bottom: 0.5rem; }
  .teachers::after { right: 0.5rem; top: 0.5rem; }
  .results::after { left: 0.5rem; top: 0.5rem; }
  .faq::after { right: 0.5rem; bottom: 0.5rem; }
}
