/* ─────────────────────────────────────────
   RESPONSIVE — all media queries
   ───────────────────────────────────────── */

/* ── Extra small — hide top bar, stack proof ── */
@media (max-width: 479px) {
  .top-bar-fixed { display: none; }
  .hero-proof { flex-direction: column; border: none; gap: 10px; }
  .proof-item { border: 1px solid var(--line); border-radius: 8px; }
}

@media (min-width: 480px) {
  .hero-proof { flex-direction: row; }
}

/* ── Tablet ── */
@media (min-width: 640px) {
  .feat-grid   { grid-template-columns: repeat(2,1fr); }
  .tgrid       { grid-template-columns: repeat(2,1fr); }


  .course-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; }
  .form-row    { grid-template-columns: 1fr 1fr; }
  .achieve-grid { grid-template-columns: repeat(4,1fr); }
  .achieve-cell:nth-child(even)      { border-right: 1px solid var(--dark-ln); }
  .achieve-cell:nth-child(4n)        { border-right: none; }
  .achieve-cell:nth-last-child(-n+4) { border-bottom: none; }
}

@media (min-width: 768px) {
  .tgrid       { grid-template-columns: repeat(3,1fr); }
  .course-grid { grid-template-columns: repeat(3,1fr); }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .nav-links   { display: flex; }
  .nav-right   { display: flex; }
  .burger      { display: none; }
  .g2          { grid-template-columns: 1fr 1fr; gap: 80px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .nav-bar     { padding: 0 48px; }

  /* DESIGN_VARIANCE 8: feat-grid — featured first card full row
     Breaks the "4 equal cards in a 2×2" generic pattern.
  */
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-grid .feat-card:first-child {
    grid-column: 1 / -1;       /* span all 3 columns */
    flex-direction: row;
    gap: 48px;
    padding: 44px 48px;
    align-items: center;
  }
  .feat-grid .feat-card:first-child .feat-icon {
    width: 80px; height: 80px; border-radius: 16px; flex-shrink: 0;
  }
  .feat-grid .feat-card:first-child .feat-icon i { font-size: 36px; }
  .feat-grid .feat-card:first-child .feat-title { font-size: 20px; }
  .feat-grid .feat-card:first-child .feat-desc  { font-size: 16px; max-width: 580px; }

  /* Hero: two columns, navy panel on right */
  .hero-layout { grid-template-columns: 56fr 44fr; gap: 0; }
  .hero-right  { padding: 48px 0 48px 56px; }

}

/* ── Mobile nav: revert pill to full-width bar ── */
@media (max-width: 1023px) {
  .nav-bar {
    border-radius: 0;
    margin: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    height: 58px;
    padding: 0 20px;
  }
}

/* ── Mobile: collapse hero navy panel, keep white overlay over photo ── */
@media (max-width: 1023px) {
  .hero::after  { display: none; }
  /* Keep ::before but make it a full white wash on mobile */
  .hero::before {
    background: rgba(255,255,255,.92);
    width: 100%;
  }
  .hero { min-height: auto; }
}

@media (min-width: 1280px) {
  .nav-outer { left: 50%; transform: translateX(-50%); right: auto; width: 100%; }
}


/* ═══════════════════════════════════════════════════════════
   MOBILE OPTIMISATION — comprehensive rules for ≤ 1023px
   Phone-first: 375px–430px viewport target
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {

  /* ── 2b. Navigation ── */
  .top-bar-fixed { display: none; }

  .nav-bar {
    height: 56px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .logo-brand { font-size: 18px; }
  .logo-sub   { font-size: 9px; }

  .burger {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .panel-link {
    font-size: 22px;
    padding: 18px 0;
  }

  /* ── 2c. Hero section ── */
  .hero {
    min-height: 100dvh;
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .hero-desc {
    font-size: 15px;
    max-width: 100%;
  }


  .hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-proof {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .proof-item {
    flex: 1;
    gap: 8px;
    padding: 10px 10px;
    min-width: 0;
  }

  .proof-num { font-size: 22px; }
  .proof-lbl { font-size: 11px; }

  .proof-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .proof-icon i { font-size: 15px; }

  .hero-right .hero-card {
    padding: 0;
    border-radius: 16px;
    max-height: none;
  }

  .hero-card-top {
    padding: 20px 20px 18px;
  }

  .hct-num  { font-size: 52px; }
  .hct-plus { font-size: 32px; }
  .hct-sub  { font-size: 12px; }

  .rrow { padding: 12px 18px; }
  .rrow-icon { width: 34px; height: 34px; }
  .rrow-icon i { font-size: 16px; }
  .rrow-label { font-size: 10px; }
  .rrow-val   { font-size: 15px; }

  /* ── 2d. Section typography & spacing ── */
  .section { padding: 64px 0; }

  .section-promise { padding: 72px 0 60px; }

  .section-achievements {
    padding-top: 0;
    padding-bottom: 64px;
  }

  .final-cta { padding: 72px 0; }

  h2.h2 {
    font-size: clamp(26px, 7vw, 38px);
    letter-spacing: -0.025em;
  }

  .tag { font-size: 10px; }

  .sub { font-size: 15px; }

  .wrap { padding: 0 18px; }

  /* ── 2e. Cards and grids ── */
  .course-grid     { grid-template-columns: 1fr; }
  .course-card     { border-radius: 16px; }

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

  /* Restore feat-card first-child to stacked on mobile
     (desktop overrides to full-row row layout at 1024px+) */
  .feat-grid .feat-card:first-child {
    grid-column: 1;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    align-items: flex-start;
  }

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

  .achieve-grid    { grid-template-columns: repeat(2, 1fr); }
  .achieve-cell {
    padding: 36px 16px;
  }
  /* Reset border rules for 2-column achieve grid on mobile */
  .achieve-cell:nth-child(even)        { border-right: none; }
  .achieve-cell:nth-child(4n)          { border-right: 1px solid var(--dark-ln); }
  .achieve-cell:nth-last-child(-n+4)   { border-bottom: 1px solid var(--dark-ln); }
  .achieve-cell:nth-child(odd)         { border-right: 1px solid var(--dark-ln); }
  .achieve-cell:nth-last-child(-n+2)   { border-bottom: none; }

  .achieve-val { font-size: clamp(40px, 11vw, 68px); }

  .faq-btn { min-height: 52px; }

  /* ── 2f. Contact section ── */
  .form-row { grid-template-columns: 1fr; }

  .form-input { font-size: 16px; }

  .contact-info { flex-direction: column; }

  textarea.form-input { min-height: 110px; }

  /* ── 2g. Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-brand p { max-width: 100%; }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  /* ── 2h. WhatsApp float button ── */
  .wa-float {
    bottom: 20px;
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
  }

  .wa-float i { font-size: 24px; }

  /* ── 2i. Course card images ── */
  .course-img-wrap { height: 140px; }

  /* ── 2j. Buttons ── */
  .btn-lg {
    padding: 13px 24px;
    font-size: 15px;
  }

  .btn { min-height: 44px; }

  /* Steps: single column on mobile, no dashed connector line */
  .steps-flow {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 0;
  }

  .steps-flow::before,
  .steps-flow::after { display: none; }

  /* Restore card styles on mobile */
  .steps-flow .step-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 24px;
  }

  .steps-flow .step-num {
    font-size: clamp(32px, 8vw, 48px);
    margin-bottom: 16px;
  }

  /* Tagline text smaller on mobile */
  .tagline-text {
    font-size: clamp(24px, 7vw, 44px);
  }
}


/* ═══════════════════════════════════════════════════════════
   PHONE-ONLY rules — < 480px
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 479px) {
  /* Hero proof: already overridden above to flex row for ≤1023px.
     On very small phones stack vertically and restore card border look */
  .hero-proof {
    flex-direction: column;
    border: none;
    gap: 10px;
  }

  .proof-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    justify-content: flex-start;
  }

  /* Hero buttons: full-width stack on < 480px */
  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }

  .hero-btns .btn-lg,
  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  /* Final CTA buttons: stack on small phones */
  .final-cta-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta-btns .btn-lg,
  .final-cta-btns .btn-outline-white {
    text-align: center;
    justify-content: center;
  }

  /* WA tooltip hidden on small screens */
  .wa-tip { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   WA tooltip: hidden up to 600px
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .wa-tip { display: none; }
}
