/* =====================================================
   GLOBAL MOBILE & RESPONSIVE FIX
===================================================== */
html, body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* Fluid typography for all screens */
h1 { font-size: clamp(26px, 5vw, 52px); }
h2 { font-size: clamp(24px, 4.5vw, 42px); }
h3 { font-size: clamp(22px, 4vw, 36px); }
p  { font-size: clamp(15px, 3vw, 17px); }

/* =====================================================
   LARGE LAPTOP (≤1200px)
===================================================== */
@media (max-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .support-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =====================================================
   TABLET / SMALL LAPTOP (≤1024px)
===================================================== */
@media (max-width: 1024px) {

  .licensing-grid,
  .support-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .licensing-left p {
    margin: auto;
  }

  .licensing-video-btn {
    position: static;
    margin: 30px auto 0;
  }

  .profession-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-container,
  .testimonial-container,
  .appointment-container {
    flex-direction: column;
  }

  .testimonial-section {
    height: auto;
    padding: 80px 0;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   TABLET & MOBILE NAV (≤991px)
===================================================== */
@media (max-width: 991px) {

  .topbar {
    display: none;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    display: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  }

  .main-nav.active {
    display: flex;
  }

  .menu {
    flex-direction: column;
    width: 100%;
  }

  .menu li a {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
  }

  .btn-appointment,
  .search {
    display: none;
  }

  .slide {
    min-height: 60vh;
  }

  .support-illustration {
    position: static;
    transform: none;
    margin: 0 auto 40px;
  }

  .appointment-form {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   MOBILE (≤768px)
===================================================== */
@media (max-width: 768px) {

  section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .buttons {
    flex-direction: column;
  }

  .support-services,
  .profession-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .testimonial-users {
    flex-wrap: wrap;
  }

  /* FOOTER – MAIN FIX */
  .site-footer {
    background-size: cover;
    background-position: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    padding: 70px 20px 40px;
    gap: 35px;
    text-align: left;
  }

  .footer-title {
    font-size: 22px;
    line-height: 1.3;
  }

  .footer-text,
  .footer-address,
  .footer-list a {
    font-size: 16px;
    line-height: 1.7;
  }

  .footer-phone {
    font-size: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* =====================================================
   SMALL MOBILE (≤576px)
===================================================== */
@media (max-width: 576px) {

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .licensing-left h1 {
    font-size: 28px;
  }

  .profession-card {
    padding: 30px 20px;
  }

  .support-illustration {
    display: none;
  }

  .appointment-container {
    padding: 25px 15px;
  }

  .footer-title {
    font-size: 20px;
  }
}
