/* Comprehensive Responsive Design */

@media (max-width: 1440px) {
  .conditions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .hero-grid,
  .about-grid,
  .hp-banner-box,
  .cta-banner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .about-visual {
    order: -1;
  }

  .hp-banner-visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

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

@media (max-width: 1024px) {

  /* ==============================
     MOBILE MENU
     ============================== */

.site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        top: 100px;
        height: 90vh;
        max-height: 83vh;
        border-radius: 60px;
        width: 90vw;
        max-width: 90vw;
        height: calc(100vh - var(--header-height));
        box-sizing: border-box;
        background-color: var(--surface);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        box-shadow: var(--shadow-lg);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-100%);
        transition: transform var(--transition-normal), opacity 0.2s ease, visibility 0.2s ease;
        z-index: 9999;
        overflow-x: hidden;
        overflow-y: auto;
    }


  /* ==============================
     MENU OPEN
     ============================== */

  .site-nav.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;

    transform: translateX(0);
  }

  /* ==============================
     NAV ITEMS
     ============================== */

  .site-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.25rem;
    font-weight: 600;
  }

  /* ==============================
     MOBILE BUTTON
     ============================== */

  .mobile-menu-toggle {
    display: flex;
  }

  .header-actions .btn-primary {
    display: none;
  }


  /* ==============================
     OTHER RESPONSIVE STYLES
     ============================== */

  .services-grid,
  .why-grid,
  .process-grid,
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem;
  }

  .cta-banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-banner-actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .services-grid,
  .why-grid,
  .process-grid,
  .conditions-grid,
  .gallery-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-trust-indicators {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hp-banner-box {
    padding: 2.5rem 1.5rem;
  }

  .hp-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .hp-banner-actions .btn {
    width: 100%;
  }

  .credentials-list {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .testimonial-card {
    padding: 2rem 1.25rem;
  }

  .floating-card {
    display: none;
  }

  .about-badge {
    position: static;
    margin-top: 1rem;
    width: 100%;
  }
}

@media (max-width: 414px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo {
    font-size: 1.35rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 320px) {
  .hero-title {
    font-size: 1.85rem;
  }
}


/* ==========================================
   ABOUT PHYSIOTHERAPIST - OVERFLOW FIX
   ========================================== */

.about-physio-section {
  overflow: hidden;
}

.about-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.about-visual,
.about-content {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.about-img-container {
  max-width: 100%;
  box-sizing: border-box;
}

.about-img-container img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.about-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Credentials cards/items */
.credentials-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.credential-item {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: normal;
}

/* CTA button text should not push the container */
.about-cta {
  max-width: 100%;
  box-sizing: border-box;
}

.about-cta .btn {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1024px) {

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .about-content {
    width: 100%;
    max-width: 100%;
  }

}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 768px) {

  .about-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual,
  .about-content {
    width: 100%;
    max-width: 100%;
  }

  .about-img-container {
    width: 100%;
  }

  .about-img-container img {
    width: 100%;
    height: auto;
  }

  .about-badge {
    max-width: calc(100% - 2rem);
    box-sizing: border-box;
  }

  .credentials-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .credential-item {
    width: 100%;
  }

  .about-cta {
    width: 100%;
  }

  .about-cta .btn {
    width: 100%;
    text-align: center;
  }
}


/* ==========================================
   TEAM PAGE - FULL RESPONSIVE FIX
   ========================================== */

/* ---------- HERO ---------- */

@media (max-width: 1024px) {

  .hero-section {
    width: 100%;
    box-sizing: border-box;

    padding: calc(var(--header-height, 90px) + 3rem) 1.5rem 3.5rem !important;

    overflow: hidden;
  }

  .hero-section .container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-section .hero-title {
    width: 100%;
    max-width: 100%;

    font-size: 3rem;
    line-height: 1.12;

    overflow-wrap: break-word;
  }

  .hero-section .section-description {
    width: 100%;
    max-width: 650px;

    font-size: 1rem;
    line-height: 1.6;

    margin-left: auto;
    margin-right: auto;
  }
}


/* ==========================================
   TEAM CARDS - TABLET
   ========================================== */

@media (max-width: 1024px) {

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 2rem !important;

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .service-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .service-img-wrapper {
    width: 100%;
    max-width: 100%;

    height: 280px !important;

    overflow: hidden;
  }

  .service-img-wrapper img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
  }

  .service-body {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .service-body h3,
  .service-body p {
    overflow-wrap: break-word;
    word-break: normal;
  }
}


/* ==========================================
   TEAM CARDS - MOBILE
   ========================================== */

@media (max-width: 768px) {

  /* Hero */

  .hero-section {
    padding:
      calc(var(--header-height, 90px) + 2rem)
      1rem
      3rem !important;
  }

  .hero-section .section-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }

  .hero-section .hero-title {
    font-size: 2.35rem;

    line-height: 1.1;

    margin-bottom: 1rem !important;
  }

  .hero-section .section-description {
    font-size: 0.95rem;
    line-height: 1.6;

    max-width: 100%;
  }


  /* Team grid */

  .services-grid {
    grid-template-columns: 1fr !important;

    gap: 1.5rem !important;

    width: 100%;
  }


  /* Card */

  .service-card {
    width: 100%;
    max-width: 100%;

    min-width: 0;

    box-sizing: border-box;
  }


  /* Doctor image */

  .service-img-wrapper {
    width: 100%;

    height: 300px !important;

    overflow: hidden;
  }

  .service-img-wrapper img {
    width: 100%;
    height: 100%;

    object-fit: cover;
  }


  /* Card content */

  .service-body {
    padding: 1.5rem !important;

    width: 100%;
    box-sizing: border-box;
  }

  .service-body h3 {
    font-size: 1.25rem !important;

    line-height: 1.35;

    overflow-wrap: break-word;
  }

  .service-body p {
    font-size: 0.9rem !important;

    line-height: 1.6;

    overflow-wrap: break-word;
  }

  .service-body .btn {
    width: 100% !important;

    box-sizing: border-box;
  }


  /* CTA */

  .cta-banner {
    width: 100%;
    box-sizing: border-box;

    padding: 2rem 1.25rem !important;
  }

  .cta-banner-text {
    width: 100%;
  }

  .cta-banner-text h2 {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .cta-banner-actions {
    width: 100%;
  }

  .cta-banner-actions .btn {
    width: 100%;
    box-sizing: border-box;
  }
}


/* ==========================================
   SMALL MOBILE
   ========================================== */

@media (max-width: 414px) {

  .hero-section {
    padding:
      calc(var(--header-height, 90px) + 1.75rem)
      1rem
      2.5rem !important;
  }

  .hero-section .hero-title {
    font-size: 2.1rem;

    line-height: 1.08;
  }

  .hero-section .section-description {
    font-size: 0.9rem;
  }


  .service-img-wrapper {
    height: 270px !important;
  }

  .service-body {
    padding: 1.25rem !important;
  }

  .service-body h3 {
    font-size: 1.15rem !important;
  }

  .service-body p {
    font-size: 0.88rem !important;
  }

  .cta-banner-text h2 {
    font-size: 1.6rem;
  }
}


/* ==========================================
   VERY SMALL MOBILE
   ========================================== */

@media (max-width: 375px) {

  .hero-section .hero-title {
    font-size: 1.9rem;
  }

  .service-img-wrapper {
    height: 250px !important;
  }

  .service-body {
    padding: 1.1rem !important;
  }
}
