/* ═══════════════════════════════════════════════════════════
   RESPONSIVE CSS — Smile & Teeth Care
   Mobile First → Tablet → Desktop
═══════════════════════════════════════════════════════════ */

/* ─── Mobile Base (< 576px) ──────────────────────────────── */
@media (max-width: 575.98px) {

  /* ── 1. Global: Remove Horizontal Overflow ─────────────── */
  html {
    overflow-x: clip;
  }

  body {
    overflow-x: hidden;
  }

  :root {
    --section-pad: 48px;
  }

  .container-xl {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100vw;
  }

  .section-padding {
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
  }

  /* ── Navbar ─────────────────────────────────────────────── */
  .nav-cta-group {
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
    gap: 8px !important;
  }

  .nav-cta-group .btn-nav {
    width: 100%;
    justify-content: center;
  }

  .navbar-collapse {
    max-width: 100vw;
  }

  /* ── Hero ───────────────────────────────────────────────── */
  .hero-section {
    padding: 100px 0 60px;
    min-height: auto;
    background: linear-gradient(180deg, 
      rgba(227, 242, 253, 0.98) 0%, 
      rgba(227, 242, 253, 0.92) 60%, 
      rgba(227, 242, 253, 0.85) 100%
    );
  }

  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 100%;
  }

  .hero-image-frame {
    height: 320px;
    border-radius: 18px;
  }

  .hero-image-col {
    order: -1;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-subtitle-heading {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .hero-trust {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .scroll-indicator {
    display: none;
  }

  /* ── Page Hero (About, Services, Clear Aligners) ────────── */
  .page-hero-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .page-hero-subtitle {
    font-size: 0.88rem;
    max-width: 100%;
    line-height: 1.6;
  }

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

  .stat-item {
    padding: 24px 12px 20px;
    border-radius: 14px;
  }

  .stat-icon {
    margin-bottom: 12px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  /* ── About ──────────────────────────────────────────────── */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-image-col {
    position: static;
  }

  .doctor-image-placeholder {
    height: 340px;
  }

  .badge-bds,
  .badge-implant {
    display: none;
  }

  .about-intro {
    font-size: 0.92rem;
  }

  .about-bio {
    font-size: 0.88rem;
  }

  .about-cta {
    flex-direction: column;
    gap: 10px;
  }

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

  /* ── Qual cards — stack vertically for readability ──────── */
  .qual-cards {
    flex-direction: column;
    gap: 10px;
  }

  .qual-card {
    flex: 1 1 100%;
    min-width: 0;
  }

  /* ── Why Choose Us - Auto-scroll marquee ────────────────── */
  .why-marquee .why-card {
    width: 240px;
  }

  .why-marquee-group {
    gap: 16px;
    padding: 4px 8px 16px;
  }

  .why-marquee-track {
    animation-duration: 22s;
  }

  /* ── 5. Services Cards — Horizontal Carousel ────────────── */
  .service-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    scrollbar-width: thin;
    gap: 8px;
  }

  .service-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .services-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 136, 229, 0.3) transparent;
    /* Right-edge scroll hint gradient */
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }

  .services-grid::-webkit-scrollbar {
    height: 4px;
  }

  .services-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.04);
    border-radius: 10px;
  }

  .services-grid::-webkit-scrollbar-thumb {
    background: rgba(30, 136, 229, 0.3);
    border-radius: 10px;
  }

  .services-grid .service-card {
    flex: 0 0 180px;
    scroll-snap-align: center;
    min-height: auto;
  }

  /* Collapse card body — show only icon + title */
  .services-grid .service-card p {
    display: none;
  }

  .services-grid .service-card .service-link {
    display: none;
  }

  .services-grid .service-card .service-category-tag {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }

  .services-grid .service-card h3 {
    font-size: 0.85rem;
    margin-bottom: 0;
  }

  .services-grid .service-card .service-icon {
    margin-bottom: 10px;
  }

  .services-grid .service-card .service-icon img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 10px;
  }

  .services-grid .service-card .service-featured-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
  }

  /* Expand card on focus/active for accessibility */
  .services-grid .service-card:focus-within p,
  .services-grid .service-card:focus-within .service-link {
    display: block;
  }

  .services-grid .service-card:focus-within {
    flex: 0 0 260px;
  }

  /* ── Technology ─────────────────────────────────────────── */
  .tech-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .three-container-large {
    height: 300px;
  }

  .hotspot {
    display: none;
  }

  /* ── 2. Timeline — Compact Card Layout for Mobile ──────── */
  .timeline {
    padding: 10px 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
  }

  .timeline-item:nth-child(even) {
    flex-direction: row !important;
  }

  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
  }

  .timeline-dot {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 0.85rem;
    margin-right: 14px;
    margin-top: 4px;
    flex-shrink: 0;
  }

  .timeline-content {
    width: 100% !important;
    flex: 1;
    padding: 16px 14px;
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
  }

  .timeline-year {
    font-size: 0.7rem;
    margin-bottom: 5px;
  }

  .timeline-content h3 {
    font-size: 0.88rem;
    margin-bottom: 6px;
    line-height: 1.35;
  }

  .timeline-content p {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 0;
  }

  /* ── 3. Gallery — Clean 2-Column Grid ───────────────────── */
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gp-wide {
    grid-column: span 2;
  }

  .gp-tall {
    grid-row: span 2;
  }

  .media-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    max-width: 100% !important;
    padding: 0 4px;
  }

  .media-gallery-item {
    border-radius: 10px;
  }

  .gallery-popup-grid {
    padding: 14px 12px;
  }

  .gallery-popup-items {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .gallery-popup-item {
    border-radius: 10px;
  }

  /* Gallery modal header */
  .cert-modal-header {
    padding: 16px 14px 12px;
  }

  .cert-modal-header h3 {
    font-size: 1rem;
  }

  .gallery-modal-tabs {
    padding: 8px 12px !important;
    gap: 6px !important;
  }

  .gallery-modal-tabs .service-tab {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  /* ── Community Outreach ─────────────────────────────────── */
  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-cta {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    gap: 20px;
  }

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

  /* ── 4. Testimonials — Visible Navigation Arrows ────────── */
  .testimonialsSwiper {
    padding-bottom: 50px !important;
  }

  .testi-next,
  .testi-prev {
    display: flex !important;
    width: 44px;
    height: 32px;
    background: #ffffff !important;
    border-radius: 4px !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    z-index: 50 !important;
    top: auto !important;
    bottom: 5px !important;
    transform: none !important;
    opacity: 1;
    pointer-events: auto !important;
  }

  .swiper-button-disabled.testi-next,
  .swiper-button-disabled.testi-prev {
    opacity: 0.4 !important;
    pointer-events: none !important;
  }

  .testi-next:hover,
  .testi-prev:hover {
    background: #f8f9fa !important;
  }

  .testi-next::after,
  .testi-prev::after {
    font-size: 14px !important;
    color: #000000 !important;
    font-weight: 700 !important;
  }

  .testi-prev {
    left: 10px !important;
    right: auto !important;
  }

  .testi-next {
    right: 10px !important;
    left: auto !important;
  }

  .testi-card {
    padding: 20px 14px 16px;
  }

  .testi-text {
    font-size: 0.82rem;
  }

  /* Aggregate rating bar */
  .testi-aggregate-line-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .testi-agg-line {
    display: none;
  }

  .testi-aggregate-compact {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .agg-text-compact {
    font-size: 0.72rem;
  }

  /* ── Clinic ─────────────────────────────────────────────── */
  .clinic-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .faq-grid .faq-column:first-child {
    margin-bottom: 16px;
  }

  .faq-question {
    font-size: 0.88rem;
    padding: 14px 16px;
  }

  .faq-answer p {
    font-size: 0.84rem;
  }

  /* ── Contact ────────────────────────────────────────────── */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .contact-form-col,
  .contact-info-col {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .contact-form-card,
  .clinic-card {
    padding: 24px 16px !important;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }

  .clinic-detail-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .clinic-detail-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .hours-grid {
    width: 100%;
  }

  .hours-item {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }
  
  .clinic-contact-btns {
    justify-content: center;
  }

  .map-wrapper iframe {
    max-width: 100%;
  }

  .emergency-banner {
    flex-wrap: wrap;
  }

  .emergency-call-btn {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  /* ── Footer ─────────────────────────────────────────────── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .footer-disclaimer {
    text-align: center !important;
    max-width: 100%;
    font-size: 0.72rem;
  }

  .footer-contact-item {
    font-size: 0.84rem;
  }

  .footer-brand-desc {
    font-size: 0.84rem;
  }

  /* ── Float Buttons ──────────────────────────────────────── */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .back-to-top {
    bottom: 84px;
    left: 20px;
  }

  /* ── Section titles & subtitles ─────────────────────────── */
  .section-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .section-label {
    font-size: 0.72rem;
  }

  /* ── 6. Clear Aligners — Conditions, How-It-Works, Why ─── */
  /* Conditions We Treat — 2 per row on mobile */
  .conditions-grid {
    gap: 16px !important;
  }

  .condition-card {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: none !important;
  }

  .condition-card h4 {
    font-size: 0.85rem;
  }

  .condition-card p {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .condition-icon {
    margin-bottom: 8px;
  }

  .condition-img {
    margin: 8px 0;
  }

  /* How Treatment Works — 2 per row */
  .brochure-images-grid {
    gap: 16px !important;
  }

  .brochure-img-card {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: none !important;
  }

  .img-card-info h4 {
    font-size: 0.85rem;
  }

  .img-card-info p {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  /* Why Clear Aligners — full-width stacked */
  .invisalign-why-grid {
    gap: 16px !important;
  }

  .invisalign-why-card {
    flex: 0 0 100% !important;
    max-width: none !important;
  }

  .invisalign-why-card h4 {
    font-size: 0.92rem;
  }

  .invisalign-why-card p {
    font-size: 0.84rem;
  }

  /* Aligner hero section */
  .invisalign-hero-row {
    flex-direction: column !important;
    gap: 28px;
  }

  .invisalign-hero-left,
  .invisalign-hero-right {
    width: 100% !important;
    flex: none !important;
  }

  .aligner-3d-stage {
    height: 320px !important;
  }

  .aligner-badge {
    display: none;
  }

  /* Aligner feature chips */
  .aligner-features-strip {
    gap: 6px;
  }

  .aligner-feature-chip {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .aligner-benefits-list li {
    font-size: 0.84rem;
    margin-bottom: 8px;
  }

  /* Invisalign section on index */
  .invisalign-section .invisalign-hero-row {
    display: flex;
    flex-direction: column;
  }

  /* ── Certificate marquee ────────────────────────────────── */
  .cert-slide {
    width: 180px;
    height: 130px;
  }

  .cert-marquee::before,
  .cert-marquee::after {
    width: 40px;
  }

  .cert-modal-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    padding: 14px 12px;
  }

  .cert-modal-item img {
    height: 130px;
  }

  /* ── Experience list (about page) ───────────────────────── */
  .exp-item {
    margin-bottom: 16px;
  }

  .exp-role {
    font-size: 0.88rem;
  }

  .exp-place {
    font-size: 0.8rem;
  }

  .exp-desc {
    font-size: 0.8rem;
  }

  /* ── Team cards ─────────────────────────────────────────── */
  .team-grid {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }

  .team-card {
    flex: 0 0 100% !important;
    max-width: 300px !important;
  }

  /* ── Page end CTA ───────────────────────────────────────── */
  .page-end-cta {
    padding: 28px 16px !important;
    text-align: center;
  }

  .page-end-cta h2 {
    font-size: 1.2rem;
  }

  .page-end-cta p {
    font-size: 0.84rem;
  }

  .page-end-cta-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-end-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── 8. Home Services Grid (Grid instead of carousel) ───── */
  .home-services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: visible !important;
  }
  
  /* ── 9. Show Specific Service Descriptions ──────────────── */
  .services-grid .service-card p.show-mobile-desc {
    display: block !important;
    font-size: 0.8rem;
    margin-top: 8px;
    color: var(--text-muted);
  }

  /* ── 10. 3D Model Ordering ──────────────────────────────── */
  .invisalign-hero-row {
    flex-direction: column !important;
  }
  .invisalign-hero-left {
    order: 2;
  }
  .invisalign-hero-right {
    order: 1;
    margin-bottom: 24px;
  }
}

/* ─── Small Tablet (576px – 767.98px) ────────────────────── */
@media (min-width: 576px) and (max-width: 767.98px) {

  :root {
    --section-pad: 64px;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-subtitle-heading {
    font-size: 1.3rem;
  }

  .hero-section {
    background: linear-gradient(180deg, 
      rgba(227, 242, 253, 0.98) 0%, 
      rgba(227, 242, 253, 0.92) 60%, 
      rgba(227, 242, 253, 0.85) 100%
    );
  }

  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-image-frame {
    height: 320px;
    border-radius: 18px;
  }

  .hero-image-col {
    order: -1;
  }

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

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

  .about-image-col {
    position: static;
  }

  .why-marquee .why-card {
    width: 270px;
  }

  .why-marquee-track {
    animation-duration: 28s;
  }

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

  .tech-layout {
    grid-template-columns: 1fr;
  }

  .three-container-large {
    height: 360px;
  }

  .hotspot {
    display: none;
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  /* Community Outreach */
  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-cta {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .clinic-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .timeline::before {
    left: 26px;
  }

  .timeline-item {
    grid-template-columns: 52px 1fr;
    direction: ltr !important;
  }

  .timeline-item:nth-child(even) {
    direction: ltr !important;
  }

  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-dot {
    margin: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-content {
    grid-column: 2;
    grid-row: 1;
  }

  /* Clear Aligners — better spacing on small tablet */
  .conditions-grid {
    gap: 20px !important;
  }

  .condition-card {
    flex: 0 0 calc(50% - 15px) !important;
    max-width: none !important;
  }

  .brochure-img-card {
    flex: 0 0 calc(50% - 15px) !important;
    max-width: none !important;
  }

  .invisalign-why-card {
    flex: 0 0 calc(50% - 15px) !important;
    max-width: none !important;
  }

  .invisalign-hero-row {
    flex-direction: column !important;
  }

  .invisalign-hero-left {
    order: 2;
    width: 100% !important;
    flex: none !important;
  }

  .invisalign-hero-right {
    order: 1;
    margin-bottom: 24px;
    width: 100% !important;
    flex: none !important;
  }

  /* Overflow fix for small tablets */
  html {
    overflow-x: clip;
  }

  .container-xl {
    max-width: 100vw;
  }
}

/* ─── Tablet (768px – 991.98px) ──────────────────────────── */
@media (min-width: 768px) and (max-width: 991.98px) {

  :root {
    --section-pad: 72px;
  }

  .hero-content {
    max-width: 520px;
    text-align: left;
  }

  .hero-badge {
    margin-left: 0;
    margin-right: 0;
  }

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

  .hero-subtitle-heading {
    font-size: 1.4rem;
  }

  .hero-section {
    background: linear-gradient(90deg, 
      #00b0ff 0%, 
      #42a5f5 15%, 
      #e3f2fd 55%, 
      rgba(227, 242, 253, 0.8) 75%, 
      rgba(255, 255, 255, 0) 100%
    );
  }

  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image-frame {
    height: 380px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .about-grid {
    grid-template-columns: 300px 1fr;
    gap: 36px;
  }

  .doctor-image-placeholder {
    height: 380px;
  }

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

  .tech-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .three-container-large {
    height: 420px;
  }

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

  .hotspot {
    display: none;
  }

  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 190px;
  }

  /* Community Outreach */
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clinic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  /* Timeline stays centered on tablet */
  .timeline::before {
    left: 50%;
  }
}

/* ─── Small Desktop (992px – 1199.98px) ──────────────────── */
@media (min-width: 992px) and (max-width: 1199.98px) {

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

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

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.8fr 1fr 1.1fr 1.4fr;
  }
}

/* ─── Large Desktop (≥ 1200px) ───────────────────────────── */
@media (min-width: 1200px) {

  .container-xl {
    padding: 0 24px;
  }

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

  .hero-content {
    max-width: 680px;
  }

  .about-grid {
    grid-template-columns: 460px 1fr;
    gap: 80px;
  }
}

/* ─── Print Styles ───────────────────────────────────────── */
@media print {

  .navbar-wrapper,
  .whatsapp-float,
  .back-to-top,
  #preloader,
  .hero-floating-el,
  .scroll-indicator,
  .hero-bg-orb,
  .service-tabs,
  .gallery-filters,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination,
  .three-container,
  .three-container-large {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: black;
  }

  .hero-section {
    background: white;
    padding: 20pt 0;
    min-height: auto;
  }

  .stats-section {
    background: #f0f0f0;
    color: black;
  }

  .section-padding {
    padding: 24pt 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="tel:"]::after,
  a[href^="https://wa.me"]::after {
    content: none;
  }
}

/* ─── High DPI / Retina ──────────────────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  .nav-logo-icon,
  .stat-icon,
  .why-icon,
  .service-icon {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ─── Dark Mode (Optional, system-based) ─────────────────── */
@media (prefers-color-scheme: dark) {
  /* Only apply if user hasn't explicitly set light mode */
  /* Currently opted out to maintain medical trust white design */
  /* Uncomment below to enable system dark mode support */

  /*
  :root {
    --bg: #0D1B2A;
    --bg-alt: #1A2C3D;
    --text-dark: #FFFFFF;
    --text: #B0BEC5;
    --text-muted: #78909C;
    --accent: rgba(255,255,255,0.08);
  }
  */
}

/* ─── Landscape Mobile ───────────────────────────────────── */
@media (max-width: 767.98px) and (orientation: landscape) {

  .hero-section {
    padding: 80px 0 40px;
    min-height: auto;
  }

  .three-container {
    height: 260px;
  }
}

/* ─── Touch Device Optimizations ─────────────────────────── */
@media (hover: none) and (pointer: coarse) {

  /* Remove hover-only states on touch */
  .service-card:hover,
  .why-card:hover,
  .why-card:hover .why-icon {
    transform: none;
  }

  /* Larger touch targets */
  .nav-link,
  .faq-question,
  .gallery-filter-btn,
  .service-tab {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Show gallery overlay on touch */
  .gallery-overlay {
    opacity: 0.85;
    background: linear-gradient(to top, rgba(30, 136, 229, 0.70), transparent);
  }

  .gallery-overlay-content i {
    display: block;
  }

  /* Disable float animation on touch */
  .hero-float-card {
    animation: none;
  }
}