/* ========== Large Screens / Laptops (≤ 1200px) ========== */
@media (max-width: 1350px) {
  .heading-primary {
    font-size: 5.2rem;
  }

  .heading-secondary {
    font-size: 4.4rem;
  }

  .hero {
    grid-template-columns: 1fr 1fr; /* Keep image + text side by side */
    gap: 3rem;
    padding: 5rem 4rem;
  }

  .hero-text {
    font-size: 2rem;
    line-height: 1.5;
  }

  .intro-text,
  .mission-text,
  .special-text-box,
  .contact-page-text-box,
  .custom-text {
    font-size: 1.8rem;
  }

  /* .services {
    grid-template-columns: repeat(3, 1fr); /* 3 services side by side 
    gap: 2.5rem;
    padding: 4rem 3rem;
  }

  .service-box {
    padding: 2.5rem;
  }

  .contact-section {
    padding: 4rem 3rem;
  } */
  .footer-logo {
    width: auto;
    height: 5.5rem;
  }

  /* .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  } */
}

/* ========== Base Reset for Small Screens ========== */

/* ========== Landscape Tablets & Small Laptops (≤ 1024px) ========== */
@media (max-width: 1200px) {
  body {
    padding-top: 7.6rem;
  }

  .heading-primary {
    font-size: 4.8rem;
  }
  .hero-description {
    font-size: 1.8rem;
  }
  .header {
    height: 7.6rem;
  }

  .logo {
    height: 5.5rem;
  }
  .hero {
    grid-template-columns: 1fr; /* Stack image + text */
    text-align: center;
    padding: 4rem 2rem;
  }

  .hero img {
    max-width: 80%;
    margin: 0 auto;
  }

  .intro {
    align-items: flex-start;
  }

  .intro-img img {
    width: 40rem;
  }

  .features-title {
    font-size: 1.8rem;
  }
  .features-text {
    font-size: 1.4rem;
    line-height: 1.6;
  }
  .features-icon {
    width: 3.6rem;
    height: 3.6rem;
  }

  .trust-heading {
    font-size: 2rem;
  }

  .intro.offer {
    flex-direction: row;
  }

  .services {
    grid-template-columns: repeat(2, 1fr); /* Two-column layout */
    gap: 2rem;
  }

  .section-contact {
    padding: 6.4rem 2.4rem;
  }

  .contact-info {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .contact .heading-tertiary {
    font-size: 3.2rem;
  }

  .section-contact {
    gap: 3.6rem;
  }
}

@media (max-width: 1200px) {
  .heading-secondary {
    font-size: 3.6rem;
  }

  .hero {
    justify-content: center;
  }

  .intro,
  .mission,
  .special {
    flex-direction: column;
    justify-content: center;
    gap: 3.6rem;
  }
  .mission-img {
    align-items: center;
    justify-content: center;
  }

  .intro-text,
  .mission-text,
  .special-text-box,
  .contact-page-text-box,
  .custom-text {
    font-size: 1.6rem;
  }

  .intro-img {
    justify-content: flex-start;
  }

  .intro-img img {
    max-width: 100%;
    height: auto;
  }

  .features {
    gap: 2.4rem;
  }
}

/* ==========  Tablets (≤ 944px) ========== */
@media (max-width: 944px) {
  body {
    font-size: 1.6rem;
  }

  header {
    padding: 1.5rem 2rem;
  }

  .heading-primary {
    font-size: 3.6rem;
  }

  .heading-tertiary {
    font-size: 3.2rem;
  }
  .about-description,
  .hero-description {
    font-size: 1.6rem;
  }

  .heading-secondary {
    font-size: 3.2rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 1.6rem;
  }

  .btn-mobile-nav {
    display: block;
  }

  .main-nav {
    background-color: #e8f0f7;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
    /* display: none; */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 2.8rem;
  }
  .intro-text,
  .mission-text,
  .special-text-box,
  .contact-page-text-box {
    font-size: 1.6rem;
  }

  .intro-img img,
  .mission-img img,
  .special-img img,
  .intro img {
    width: 75%;
    height: auto;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-icon {
    width: 3.2rem;
    height: 3.2rem;
  }

  .features-title {
    font-size: 1.8rem;
  }

  .trust-builders {
    padding: 7.6rem;
  }

  .btn-trust {
    font-size: 1.6rem;
  }

  .services {
    grid-template-columns: 1fr; /* One column */
    gap: 2rem;
  }

  .service-box {
    padding: 2rem;
  }

  .custom-text-box a {
    font-size: 1.6rem;
  }

  .section-contact {
    grid-template-columns: repeat(1, 1fr);
  }

  .area-list {
    font-size: 1.8rem;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo,
  .footer-logo {
    height: 5rem;
  }

  .contacts {
    line-height: 1.4;
  }
  .footer-grid {
    gap: 4.8rem;
  }
}

/* ========== Phones (≤ 850px) ========== */
@media (max-width: 700px) {
  body {
    font-size: 1.4rem;
  }

  .icon-mobile-nav {
    width: 3.6rem;
    height: 3.6rem;
  }

  .heading-primary {
    font-size: 3.2rem;
  }
  .about-description,
  .hero-description {
    font-size: 1.4rem;
  }
  .intro.offer {
    flex-direction: column;
    flex-basis: auto;
    gap: 1.2rem;
  }

  /* .hero h1 {
      font-size: 2.2rem;
      line-height: 1.3;
    } */

  .hero-text {
    font-size: 1.6rem;
  }

  .services {
    gap: 1.5rem;
  }

  .service-box {
    font-size: 1.4rem;
    padding: 1.5rem;
  }

  .contact-info {
    font-size: 1.4rem;
  }

  .footer-link:link,
  .footer-link:visited {
    font-size: 1.4rem;
  }
  .contacts a:link,
  .contacts a:visited {
    font-size: 1.4rem;
  }

  .footer-container {
    grid-template-columns: repeat(1, 1fr);
  }
}
