/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* ---- Tablet: 768px - 1199px ---- */
@media (max-width: 1199px) {
  .section-title h2 {
    font-size: 1.6rem;
  }

  .section-title.with-lines h2::before,
  .section-title.with-lines h2::after {
    width: 50px;
  }

  .section-title.with-lines h2::before {
    left: -60px;
  }

  .section-title.with-lines h2::after {
    right: -60px;
  }

  .hero .container {
    padding-bottom: 80px;
  }

  .hero-phone {
    font-size: 1.5rem;
  }

  .hero-image img {
    max-height: 300px;
  }

  .product-card {
    flex: 0 0 calc(33.333% - 15px);
  }

  .stats-row {
    gap: 50px;
  }

  .dental-care-grid {
    gap: 20px;
  }

  .footer-grid {
    gap: 30px;
  }
}

/* ---- Mobile Large: 576px - 767px ---- */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    width: 100%;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 998;
  }

  .nav-overlay.open {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 80px;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .hero-brochure-btn {
    margin-bottom: 25px;
  }

  .hero-phone {
    font-size: 1.4rem;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-image img {
    max-height: 220px;
  }

  .products-section {
    padding: 50px 0 40px;
  }

  .products-section .section-title h2 {
    font-size: 1.3rem;
  }

  .product-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 200px;
  }

  .stats-row {
    gap: 30px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .doctors-section {
    padding: 50px 0;
  }

  .doctor-card {
    flex: 0 0 calc(50% - 15px);
    min-width: 250px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .dental-care-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-address {
    text-align: left;
  }

  .section-title.with-lines h2::before,
  .section-title.with-lines h2::after {
    display: none;
  }
}

/* ---- Mobile Small: < 576px ---- */
@media (max-width: 575px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 15px;
  }

  .section-title h2 {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  .hero-phone {
    font-size: 1.2rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
    padding: 10px 18px;
  }

  .hero-image img {
    max-height: 180px;
  }

  .product-card {
    flex: 0 0 85%;
    min-width: 0;
  }

  .product-card-image {
    height: 160px;
  }

  .stats-row {
    flex-direction: column;
    gap: 20px;
  }

  .doctor-card {
    flex: 0 0 85%;
    min-width: 0;
  }

  .doctor-avatar-wrapper {
    width: 120px;
    height: 120px;
  }

  .dental-care-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 25px;
  }

  /* New pages responsive - small mobile */
  .contact-grid,
  .review-form-grid,
  .homepage-contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .doctors-grid {
    grid-template-columns: 1fr;
  }

  .page-banner h1 {
    font-size: 1.6rem;
  }
}

/* ---- New pages responsive - tablet ---- */
@media (max-width: 991px) {
  .contact-grid,
  .review-form-grid,
  .homepage-contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .doctors-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
