/* ============================================
   Digital PB School 2.0 - Responsive Styles
   ============================================ */

/* ── Tablet Landscape (max-width: 1200px) ── */
@media screen and (max-width: 1200px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .feature-row {
    gap: var(--space-2xl);
  }
}

/* ── Tablet Portrait (max-width: 992px) ── */
@media screen and (max-width: 992px) {
  :root {
    --header-height: 68px;
    --header-height-scroll: 60px;
  }

  /* Navigation → Mobile */
  .nav__list {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  /* Feature row stacks */
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .feature-row--reverse {
    direction: ltr;
  }

  /* Section spacing */
  .section {
    padding: var(--space-4xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

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

/* ── Mobile Large (max-width: 768px) ── */
@media screen and (max-width: 768px) {
  :root {
    --space-section: 4rem;
  }

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

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Card adjustments */
  .card__body {
    padding: var(--space-lg);
  }

  .icon-card {
    padding: var(--space-xl);
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  /* Stats */
  .stat__number {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
  }

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

/* ── Mobile Small (max-width: 480px) ── */
@media screen and (max-width: 480px) {
  :root {
    --content-padding: 1.25rem;
    --space-section: 3.5rem;
  }

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

  .btn--lg {
    padding: 15px 32px;
    width: 100%;
  }

  .section-label {
    font-size: 0.7rem;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .icon-card {
    padding: var(--space-lg);
  }

  .nav__list {
    gap: var(--space-lg);
  }

  /* Footer mobile */
  .footer {
    padding: var(--space-2xl) 0;
  }
}

/* ── Print ── */
@media print {
  .header,
  .footer,
  .back-to-top,
  .scroll-progress,
  .preloader {
    display: none !important;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
