/* ==========================================================================
   WEBYFIED GLOBAL - RESPONSIVE STYLESHEET
   Mobile, Tablet, and Desktop Breakpoint Enhancements
   Strictly Zero Em-Dashes and En-Dashes
   ========================================================================== */

@media (max-width: 1280px) {
  .utility-hide-md {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 0;
  }
  .nav-link {
    padding: 8px 10px;
    font-size: 0.875rem;
  }
}

@media (max-width: 1024px) {
  .utility-bar {
    display: none; /* Hide top bar on tablet/mobile to prioritize screen real estate */
  }

  .site-header {
    height: 66px;
  }

  .brand-logo {
    height: 42px;
    max-width: 170px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }

  .desktop-nav {
    display: none; /* Switch to full mobile drawer */
  }

  .site-header .nav-search-btn {
    width: 38px;
    height: 38px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    flex-shrink: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .footer-brand-col {
    grid-column: span 2;
  }

  .tab-content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .steps-workflow {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 16px;
  }

  .site-header {
    height: 58px;
  }

  .brand-logo {
    height: 36px;
    max-width: 140px;
  }

  /* On mobile phones, hide bulky consultation CTA from header so search and hamburger have clear breathing room */
  .site-header .header-actions .open-scope-modal {
    display: none !important;
  }

  .site-header .nav-search-btn {
    width: 36px;
    height: 36px;
    padding: 0;
  }

  .mobile-toggle {
    width: 36px;
    height: 36px;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand-col {
    grid-column: span 1;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-floating-stat {
    position: static;
    margin-top: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .steps-workflow {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .math-challenge-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .math-input {
    width: 100%;
  }

  .tabs-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 8px;
  }

  .tab-btn {
    padding: 10px 18px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .carousel-controls {
    flex-direction: column-reverse;
    gap: 16px;
  }
}
