/* ============================================================
   RESPONSIVE STYLES & MOBILE OPTIMIZATIONS
   File: public/Assets/css/responsive.css
   ============================================================ */

/* ------------------------------------------------------------
   Large Screens (max-width: 1200px)
   ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-visual-frame {
    max-width: 100%;
  }

  .treatments-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .treatment-card:last-child {
    grid-column: span 2;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ------------------------------------------------------------
   Tablets & Medium Screens (max-width: 991px)
   ------------------------------------------------------------ */
@media (max-width: 991px) {

  /* Topbar */
  .site-topbar {
    padding: 6px 0;
  }

  .topbar-info {
    gap: 14px;
    font-size: 11px;
  }

  /* Navbar */
  .site-navbar-main {
    padding: 10px 0;
  }

  .brand-main-title {
    font-size: 19px;
  }

  .brand-sub-title {
    font-size: 7.5px;
  }

  /* Hero Section & Slider */
  .hero-section {
    padding: 38px 0 46px;
    min-height: auto;
  }

  .hero-slider-section {
    height: 440px;
    min-height: 400px;
  }

  .hero-slider-title {
    font-size: 2.3rem;
  }

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

  .hero-desc {
    max-width: 100%;
    font-size: 0.93rem;
    text-align: justify;
    text-align-last: left;
  }

  .hero-mobile-photo-col {
    margin-top: 26px;
  }

  /* About Section */
  .about-building-img {
    height: 300px;
    margin-bottom: 24px;
  }

  .about-stats-col {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  /* Treatments */
  .treatments-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .treatment-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  /* Why Choose */
  .why-choose-img {
    margin-top: 24px;
    height: 300px;
  }

  /* Doctors */
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* How it works */
  .steps-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .step-arrow {
    display: none;
  }

  .cta-promo-card {
    margin-top: 28px;
  }

  /* Facilities */
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .map-card-wrapper {
    margin-top: 28px;
    min-height: 300px;
  }

  /* Footer */
  .footer-widget-col {
    margin-bottom: 24px;
  }
}

/* ------------------------------------------------------------
   Small Tablets & Mobile Landscape (max-width: 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {

  /* Topbar Compact */
  .topbar-item:first-child {
    display: none;
    /* Hide long address on small screens to avoid clutter */
  }

  .hero-slider-section {
    height: auto;
    min-height: 390px;
    padding: 36px 0 52px;
  }

  .hero-slider-title {
    font-size: 1.85rem;
    line-height: 1.22;
  }

  .hero-slider-desc {
    font-size: 0.90rem;
    margin-bottom: 18px;
  }

  .hero-slider-dots {
    top: auto;
    bottom: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 10px;
    z-index: 20;
  }

  .hero-slider-dot {
    width: 10px;
    height: 10px;
  }

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

  .hero-actions {
    gap: 10px;
  }

  .btn-hero-book,
  .btn-gold-pill,
  .btn-pill-outline {
    font-size: 13px;
    padding: 10px 20px;
  }

  .hero-features-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

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

  .why-choose-grid {
    grid-template-columns: 1fr;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
  }

  .about-stats-col {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials Slider */
  .testimonial-slide-item {
    padding: 0 4px;
  }

  .testimonial-card {
    padding: 20px 18px;
  }

  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* ------------------------------------------------------------
   Mobile Devices & Smartphones (max-width: 768px & max-width: 576px)
   Comprehensive responsiveness for all Home page sections
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  /* Global Layout */
  body, html {
    overflow-x: hidden;
  }

  .container-custom {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Section Spacing & Headers */
  .about-section,
  .dental-services-section,
  .why-choose-section,
  .doctors-section,
  .how-it-works-section,
  .facilities-section,
  .testimonials-section,
  .dental-tips-section,
  .faq-section,
  .contact-section {
    padding: 48px 0 !important;
  }

  .section-header-center {
    margin-bottom: 24px !important;
    text-align: center;
  }

  .section-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }

  .section-desc-full {
    font-size: 0.90rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
  }

  .section-action-row,
  .doctors-action-row {
    justify-content: center !important;
    margin-bottom: 20px !important;
  }

  /* 01. Hero Slider */
  .hero-slider-section {
    height: auto !important;
    min-height: 380px !important;
    padding: 34px 0 54px !important;
  }

  .hero-slider-title {
    font-size: 1.85rem !important;
    line-height: 1.22 !important;
    margin-bottom: 12px !important;
  }

  .hero-slider-desc {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
  }

  .hero-slider-dots {
    top: auto !important;
    bottom: 14px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    flex-direction: row !important;
    gap: 8px !important;
    z-index: 20 !important;
  }

  .hero-slider-dot {
    width: 9px !important;
    height: 9px !important;
  }

  /* 02. About Section */
  .about-building-img {
    height: 240px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    margin-bottom: 18px !important;
  }

  .about-features-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  /* 03. Dental Services Section */
  .dental-services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }

  .dental-service-card {
    padding: 14px 10px !important;
    border-radius: 12px !important;
  }

  .dental-service-icon-wrap {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 8px !important;
  }

  .dental-service-icon-wrap svg {
    width: 24px !important;
    height: 24px !important;
  }

  .dental-service-name {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  /* 04. Why Choose Us Section */
  .wc-pillars-chips {
    gap: 6px !important;
    margin-bottom: 18px !important;
  }

  .wc-pillar-chip {
    font-size: 11px !important;
    padding: 5px 12px !important;
  }

  .wc-action-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .wc-action-row .btn-teal,
  .wc-action-row .btn-teal-outline {
    width: 100% !important;
    justify-content: center !important;
  }

  .wc-showcase-wrapper {
    margin-top: 24px !important;
  }

  .wc-image-container {
    height: 320px !important;
    min-height: 300px !important;
    border-radius: 16px !important;
  }

  .wc-floating-badge {
    top: 12px !important;
    right: 12px !important;
    padding: 6px 12px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }

  .wc-badge-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
  }

  .wc-badge-val {
    font-size: 13px !important;
  }

  .wc-badge-lbl {
    font-size: 9.5px !important;
  }

  .wc-floating-card {
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
  }

  .wc-rating-score {
    font-size: 12px !important;
  }

  .wc-rating-text {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  /* 05. Doctors Section */
  .doctors-horizontal-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .doctor-card-horizontal {
    padding: 10px !important;
    gap: 12px !important;
    border-radius: 14px !important;
  }

  .doctor-card-photo-wrap {
    width: 95px !important;
    min-width: 95px !important;
    height: 120px !important;
    border-radius: 12px !important;
  }

  .doctor-card-photo {
    border-radius: 10px !important;
  }

  .doctor-card-body {
    padding: 2px 4px !important;
  }

  .doctor-card-name {
    font-size: 14px !important;
  }

  .doctor-card-degrees {
    font-size: 10.5px !important;
  }

  .doctor-card-specialty {
    font-size: 11px !important;
    padding: 2px 8px !important;
    margin-bottom: 4px !important;
  }

  .doctor-card-profile-link {
    font-size: 11.5px !important;
  }

  /* 06. How It Works */
  .hiw-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .hiw-step-card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .hiw-step-connector {
    display: none !important;
  }

  .hiw-step-num {
    font-size: 15px !important;
    min-width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
  }

  .hiw-step-content h5 {
    font-size: 14.5px !important;
    margin-bottom: 3px !important;
  }

  .hiw-step-content p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
  }

  /* 07. Facilities */
  .facilities-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .facility-card-v2 {
    border-radius: 14px !important;
  }

  .fac-card-img {
    height: 180px !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  .fac-card-body {
    padding: 14px 12px !important;
  }

  .fac-title {
    font-size: 14.5px !important;
  }

  .fac-desc {
    font-size: 12px !important;
  }

  /* 08. Testimonials */
  .testimonials-slider-container {
    padding: 4px 0 14px !important;
  }

  .testimonial-slide-item {
    padding: 0 4px !important;
  }

  .testimonial-card {
    padding: 18px 14px !important;
    border-radius: 14px !important;
    min-height: 200px !important;
  }

  .testimonial-quote-text {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 14px !important;
  }

  .patient-avatar {
    width: 44px !important;
    height: 44px !important;
  }

  .patient-name {
    font-size: 13px !important;
  }

  .patient-location {
    font-size: 11px !important;
  }

  .testimonial-treatment-tag {
    font-size: 10px !important;
    padding: 2px 8px !important;
  }

  .testimonials-slider-dots {
    margin-top: 14px !important;
  }

  .testimonial-dot {
    width: 8px !important;
    height: 8px !important;
  }

  .testimonial-dot.active {
    width: 22px !important;
  }

  /* 09. Dental Health Tips */
  .dental-tips-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .dental-tip-card {
    padding: 18px 14px !important;
    border-radius: 14px !important;
  }

  .tip-icon-wrap {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
  }

  .tip-title {
    font-size: 15px !important;
  }

  .tip-desc {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  /* 10. FAQ */
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .faq-btn {
    padding: 13px 14px !important;
    font-size: 13.5px !important;
  }

  .faq-answer {
    padding: 0 14px 12px !important;
    font-size: 12.5px !important;
  }

  /* 11. Contact & Appointment Form */
  .contact-info-list {
    margin-bottom: 20px !important;
  }

  .contact-info-item {
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  .contact-info-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 15px !important;
  }

  .contact-info-content h5 {
    font-size: 14px !important;
    margin-bottom: 2px !important;
  }

  .contact-info-content p {
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin-bottom: 2px !important;
  }

  .appointment-form-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }

  .appt-form-title {
    font-size: 17px !important;
    margin-bottom: 14px !important;
  }

  .form-label-custom {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }

  .form-input-custom {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    padding: 9px 12px !important;
    border-radius: 10px !important;
  }

  .appt-form .btn-teal {
    width: 100% !important;
    justify-content: center !important;
    padding: 11px 18px !important;
  }
}

/* ------------------------------------------------------------
   Standard Mobile Screens (max-width: 576px)
   ------------------------------------------------------------ */
@media (max-width: 576px) {
  /* Section Spacing */
  .about-section,
  .dental-services-section,
  .why-choose-section,
  .doctors-section,
  .how-it-works-section,
  .facilities-section,
  .testimonials-section,
  .dental-tips-section,
  .faq-section,
  .contact-section {
    padding: 38px 0 !important;
  }

  .section-title {
    font-size: 1.65rem !important;
  }

  .section-desc-full {
    font-size: 0.86rem !important;
  }

  /* Hero Slider on Mobile */
  .hero-slider-section {
    min-height: 360px !important;
    padding: 24px 0 48px !important;
  }

  .hero-slider-title {
    font-size: 1.55rem !important;
  }

  .hero-slider-desc {
    font-size: 0.84rem !important;
    margin-bottom: 14px !important;
  }

  .hero-slider-actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .btn-hero-slider-primary,
  .btn-hero-slider-secondary {
    font-size: 12px !important;
    padding: 8px 16px !important;
  }

  /* Services 2 columns on mobile */
  .dental-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .dental-service-card {
    padding: 12px 8px !important;
  }

  .dental-service-name {
    font-size: 11px !important;
  }
}

/* ------------------------------------------------------------
   Extra Small Devices (max-width: 400px - Galaxy S8, iPhone SE)
   ------------------------------------------------------------ */
@media (max-width: 400px) {
  .hero-slider-title {
    font-size: 1.4rem !important;
  }

  .section-title {
    font-size: 1.5rem !important;
  }

  .btn-hero-slider-primary,
  .btn-hero-slider-secondary {
    width: 100% !important;
    justify-content: center !important;
  }

  .doctor-card-photo-wrap {
    width: 85px !important;
    min-width: 85px !important;
    height: 105px !important;
  }

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

  .wc-image-container {
    height: 280px !important;
  }
}