/* =======================================================
   ADVAYA — Responsive CSS
   ======================================================= */

/* ---- Large Desktop (1400px+) ---- */
@media (min-width: 1400px) {
  :root { --section-pad: 90px 0; }
}

/* ---- Desktop (1200px - 1399px) ---- */
@media (max-width: 1299px) {
  .hero__inner { gap: 3rem; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
}

/* ---- Laptop (1024px - 1199px) ---- */
@media (max-width: 1199px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    padding: 110px 0 60px;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* ---- Tablet (768px - 1023px) ---- */
@media (max-width: 1023px) {
  :root { --section-pad: 60px 0; }

  h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
  h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }

  /* Navbar */
  .navbar__nav,
  .navbar__actions .btn { display: none; }
  .navbar__hamburger { display: flex; }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 120px 0 60px;
    gap: 3rem;
  }
  .hero__subtitle { margin: 0 auto 2.5rem; }
  .hero__actions { justify-content: center; }
  .hero__trust-row { justify-content: center; }
  .hero__right { align-items: center; }
  .hero__image-wrapper { max-width: 420px; }
  .hero__image-badge--tl { left: -10px; }
  .hero__image-badge--br { right: -10px; }
  .hero__stats { max-width: 420px; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* CTA Banner */
  .cta-banner { padding: 40px 30px; border-radius: var(--radius-lg); }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Section header */
  .section__header { margin-bottom: 32px; }
}

/* ---- Mobile (640px - 767px) ---- */
@media (max-width: 767px) {
  :root { --section-pad: 50px 0; }

  .container { padding: 0 1.25rem; }

  /* Navbar */
  .navbar { padding: 14px 0; }
  .navbar__logo img { height: 38px; }
  .navbar__logo-name { font-size: 0.9rem; }

  /* Hero */
  .hero__title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero__subtitle { font-size: 1rem; }
  .hero__badge { font-size: 0.72rem; }
  .hero__image-frame { aspect-ratio: 1/1; border-radius: var(--radius-lg); }
  .hero__image-badge { padding: 8px 12px; }
  .hero__image-badge-num { font-size: 1.1rem; }
  .hero__image-badge--tl { top: 12px; left: 12px; }
  .hero__image-badge--br { bottom: 12px; right: 12px; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .hero__stat { padding: 12px 8px; }
  .hero__stat-num { font-size: 1.4rem; }
  .hero__stat-label { font-size: 0.62rem; }

  /* Grids */
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Program cards */
  .program-card:hover { transform: translateY(-4px); }

  /* CTA Banner */
  .cta-banner { padding: 30px 20px; border-radius: var(--radius-md); }
  .cta-banner h2, .cta-banner h3 { font-size: 1.5rem; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .footer { padding: 60px 0 0; }

  /* Page hero */
  .page-hero { padding: 120px 0 60px; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }

  /* Section header */
  .section__header { margin-bottom: 24px; }

  /* Back to top */
  .back-to-top { bottom: 20px; right: 20px; }

  /* Testimonial */
  .testimonial-card { padding: 1.5rem; }

  /* Timeline */
  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding-left: 1.5rem; }
  .timeline-dot { left: -2.1rem; }
}

/* ---- Small Mobile (< 480px) ---- */
@media (max-width: 479px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__trust-row { flex-direction: column; align-items: center; gap: 0.5rem; }
  .hero__trust-divider { display: none; }

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

  .btn--lg { padding: 15px 28px; font-size: 0.95rem; }

  .footer__social { flex-wrap: wrap; }

  .hero__image-wrapper { max-width: 300px; }
}

/* ---- Touch device hover optimizations ---- */
@media (hover: none) {
  .card:hover { transform: none; }
  .program-card:hover { transform: none; }
  .btn:hover { transform: none; }
  .hero__stat:hover { transform: none; }
  .hv2__stat:hover .hv2__stat-num { color: var(--white); }
}

/* ---- Print ---- */
@media print {
  .navbar,
  .fab,
  .back-to-top,
  .hero__scroll,
  .hv2__scroll { display: none !important; }
  body { font-size: 12pt; }
}

/* ================================================================
   HERO V2 — Responsive Overrides
   ================================================================ */

/* ---- Laptop (1200px - 1399px) ---- */
@media (max-width: 1299px) {
  .hv2__inner {
    padding: 0 2.5rem;
    grid-template-columns: 54% 46%;
  }
  .hv2__left { padding-right: 2rem; }
}

@media (max-width: 1199px) {
  .hv2__inner {
    grid-template-columns: 55% 45%;
    padding: 0 2rem;
  }
  .hv2__left { padding-right: 1.5rem; }
  .hv2__title { font-size: clamp(2.2rem, 3.5vw, 3.8rem); }
  .hv2__float-card--tl { left: -14px; }
  .hv2__float-card--br { right: -14px; }
}

/* ---- Tablet (≤1023px): single column, image on top ---- */
@media (max-width: 1023px) {
  .hero-v2 {
    height: auto;
    min-height: 100dvh;
    max-height: none;
  }

  .hv2__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 80px 1.5rem 3rem;
    gap: 2.5rem;
    align-items: start;
    height: auto;
  }

  .hv2__left {
    order: 2;
    padding: 0;
    padding-top: 0;
    text-align: center;
    align-items: center;
  }

  .hv2__right {
    order: 1;
    height: auto;
    padding-top: 0;
    gap: 1rem;
  }

  .hv2__badge { margin-bottom: 1.2rem; }

  .hv2__title {
    font-size: clamp(2rem, 5.5vw, 3rem);
    align-items: center;
  }

  .hv2__subtitle {
    margin: 0 auto 2rem;
    text-align: center;
    max-width: 560px;
  }

  .hv2__actions { justify-content: center; }
  .hv2__trust-row { justify-content: center; }

  .hv2__image-panel {
    max-width: 480px;
    width: 100%;
  }

  .hv2__image-frame { min-height: 300px; }

  .hv2__float-card--tl { left: 8px; top: 14px; }
  .hv2__float-card--br { right: 8px; bottom: 14px; }

  .hv2__stats { max-width: 420px; }
}

/* ---- Mobile (≤767px) ---- */
@media (max-width: 767px) {
  .hv2__inner {
    padding: 70px 1.25rem 2rem;
    gap: 2rem;
  }

  .hv2__title { font-size: clamp(1.9rem, 6.5vw, 2.6rem); }

  .hv2__subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }

  .hv2__badge { font-size: 0.72rem; }

  .hv2__image-panel { max-width: 380px; }
  .hv2__image-frame { min-height: 260px; border-radius: 18px; }

  .hv2__float-card {
    padding: 10px 14px;
    gap: 8px;
    min-width: 148px;
    border-radius: 14px;
  }

  .hv2__float-card-title { font-size: 0.9rem; }
  .hv2__float-card-icon { width: 32px; height: 32px; }

  .hv2__float-card--tl { top: 10px; left: 6px; }
  .hv2__float-card--br { bottom: 10px; right: 6px; }

  .hv2__stats {
    padding: 14px 6px;
    border-radius: 16px;
    max-width: 360px;
  }

  .hv2__stat-num { font-size: 1.5rem; }
  .hv2__stat-label { font-size: 0.62rem; }
}

/* ---- Small Mobile (≤479px) ---- */
@media (max-width: 479px) {
  .hv2__inner { padding: 60px 1rem 2rem; }

  .hv2__title { font-size: 1.85rem; }

  .hv2__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
  }

  .hv2__actions .btn { justify-content: center; }

  .hv2__trust-row {
    gap: 0.45rem;
  }

  .hv2__trust-chip {
    font-size: 0.7rem;
    padding: 5px 10px 5px 8px;
  }

  .hv2__image-panel { max-width: 320px; }
  .hv2__image-frame { min-height: 220px; }

  .hv2__float-card { display: none; } /* Hide on very small screens to avoid overflow */
}

