/* =============================================
   Responsive Styles
   Mobile First Approach
   Breakpoints: 320 · 360 · 375 · 390 · 414 · 480 · 576 · 768 · 992 · 1200 · 1400
   ============================================= */

/* ---------- Foundation (all viewports) ---------- */
:root {
  --fluid-section-title: clamp(1.35rem, 1.05rem + 1.85vw, 2.25rem);
  --fluid-page-title: clamp(1.5rem, 1rem + 2.25vw, 2.75rem);
  --fluid-body: clamp(0.9375rem, 0.9rem + 0.18vw, 1.0625rem);
  --fluid-desc: clamp(0.95rem, 0.88rem + 0.28vw, 1.05rem);
  --touch-target: 44px;
}

html {
  overflow-x: clip;
}

body {
  font-size: var(--fluid-body);
}

main,
.site-header,
.site-footer {
  max-width: 100%;
  overflow-x: clip;
}

.section-title {
  font-size: var(--fluid-section-title);
}

.section-desc {
  font-size: var(--fluid-desc);
}

.page-banner h1,
.service-detail-hero h1 {
  font-size: var(--fluid-page-title);
}

/* Responsive embeds: maps, videos, iframes */
.map-embed-wrap iframe,
.footer-map iframe,
.map-section iframe,
.responsive-embed iframe,
.responsive-embed video {
  width: 100%;
  max-width: 100%;
  border: 0;
}

.blog-article .table-responsive,
.legal-content .table-responsive,
.blog-article table:not(.table-responsive table),
.legal-content table:not(.table-responsive table) {
  max-width: 100%;
}

.blog-article .table-responsive,
.legal-content .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prevent flex/grid children from forcing horizontal scroll */
.row {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

[class*="col-"] {
  min-width: 0;
}

/* ---------- Critical: stack grid columns on phones/tablets ---------- */
@media (max-width: 767.98px) {
  .row > [class*="col-md-"],
  .row > [class*="col-lg-"],
  .row > [class*="col-xl-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .row > .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .row > .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .row > [class*="col-lg-"]:not([class*="col-md-"]) {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}

/* ---------- Large Tablets & Small Desktops ---------- */
@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .related-swiper .service-card,
  .testimonial-swiper .testimonial-card {
    height: auto;
  }
}

/* ---------- Tablets ---------- */
@media (max-width: 991.98px) {
  .main-nav,
  .header-cta {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
    flex-shrink: 0;
    margin-left: auto;
  }

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

  .hero-section {
    padding-top: calc(var(--header-height) + 32px);
  }

  .hero-image-wrapper::before {
    display: none;
  }

  .profile-card {
    position: static;
  }

  .mobile-nav {
    width: min(100%, 320px);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-section {
    padding-bottom: 0;
  }

  .hero-credential-chips {
    justify-content: center;
  }

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

  .hero-stat-icon {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .hero-visual {
    max-width: 460px;
    margin: 0 auto 20px;
    padding: 8px 16px 16px;
  }

  .hero-photo img {
    min-height: 610px;
    max-height: 670px;
  }

  .hero-quick-stat {
    padding: 12px 14px;
  }

  .hero-quick-stat strong {
    font-size: 0.76rem;
  }

  .hero-quick-stat > div span {
    font-size: 0.64rem;
  }

  .hero-quick-stat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .hero-bottom-strip-track {
    gap: 8px 10px;
    padding: 14px 16px;
  }

  .hero-bottom-strip-item {
    font-size: 0.72rem;
    padding: 7px 12px;
  }

  .trust-bar {
    padding: 0 0 32px;
  }

  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .trust-bar-item {
    padding: 10px 12px;
  }

  .trust-bar-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .about-preview-img img {
    height: 350px;
  }

  .experience-badge {
    right: 20px;
  }

  .specialty-img img {
    height: 320px;
  }

  .blog-featured {
    flex-direction: column;
  }

  .blog-featured-img {
    flex: none;
    max-height: 300px;
  }

  .section-padding {
    padding: 70px 0;
  }

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

  .page-banner h1 {
    font-size: 2rem;
  }

  .floating-whatsapp {
    bottom: 24px;
    right: max(16px, env(safe-area-inset-right));
  }

  .scroll-to-top {
    bottom: 24px;
    left: max(16px, env(safe-area-inset-left));
  }
}

/* ---------- Mobile Landscape & Small Tablets ---------- */
@media (max-width: 767.98px) {
  :root {
    --header-height: 70px;
  }

  .section-padding {
    padding: 50px 0;
  }

  .section-padding-sm {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .mobile-toggle {
    display: flex !important;
    flex-shrink: 0;
    margin-left: auto;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 32px;
  }

  .hero-main-row {
    row-gap: 20px;
  }

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

  .hero-trust-badge {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    font-size: 0.72rem;
    margin-bottom: 1.25rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-trust-points {
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
  }

  .hero-trust-points li {
    font-size: 0.74rem;
    padding: 7px 12px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
  }

  .hero-buttons .btn-primary-custom,
  .hero-buttons .btn-outline-custom {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .hero-actions {
    text-align: center;
  }

  .hero-cta-note {
    justify-content: center;
    font-size: 0.76rem;
  }

  .hero-visual {
    max-width: 360px;
    margin: 0 auto;
    padding: 0 12px 8px;
  }

  .hero-floating-badge {
    font-size: 0.65rem;
    padding: 7px 11px;
  }

  .hero-floating-badge-gold {
    top: 4%;
    left: 2%;
  }

  .hero-floating-badge-verified {
    top: 4%;
    right: 2%;
  }

  .hero-orb-1 {
    width: 52px;
    height: 52px;
    right: 0;
  }

  .hero-orb-2 {
    width: 36px;
    height: 36px;
    left: 0;
  }

  .hero-photo img {
    min-height: 570px;
    max-height: 610px;
  }

  .hero-photo-name {
    font-size: 0.95rem;
  }

  .hero-photo-role {
    font-size: 0.72rem;
  }

  .hero-photo-rating {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .hero-quick-stat {
    padding: 10px 12px;
    gap: 8px;
  }

  .hero-quick-stat-icon {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
    border-radius: 8px;
  }

  .hero-quick-stat strong {
    font-size: 0.72rem;
  }

  .hero-quick-stat > div span {
    font-size: 0.6rem;
  }

  .hero-bottom-strip {
    margin-top: 24px;
  }

  .hero-bottom-strip-track {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
  }

  .hero-bottom-strip-item {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

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

  .about-preview-img img {
    height: 280px;
  }

  .experience-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 20px;
    display: inline-block;
  }

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

  .stats-section {
    padding: 50px 0;
  }

  .cta-banner {
    padding: 48px 22px;
    border-radius: var(--radius-lg);
    text-align: center;
  }

  .cta-banner-eyebrow {
    font-size: 0.68rem;
    padding: 6px 14px;
    margin-bottom: 10px;
  }

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

  .cta-banner-trust {
    gap: 8px;
    margin-top: 1.25rem;
  }

  .cta-banner-trust li {
    font-size: 0.72rem;
    padding: 6px 12px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .contact-form {
    padding: 24px;
  }

  .contact-sidebar-panel {
    padding: 22px;
  }

  .contact-info-card i {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .profile-card {
    padding: 0 0 24px;
  }

  .profile-card-body {
    padding: 20px 20px 0;
  }

  .profile-photo-ring {
    width: 160px;
    margin-top: 22px;
  }

  .profile-card h2 {
    font-size: 1.25rem;
  }

  .service-detail-hero h1 {
    font-size: 1.75rem;
  }

  .blog-detail-meta {
    gap: 12px;
  }

  .footer-bottom {
    text-align: left;
  }

  .footer-bottom-links {
    justify-content: flex-start;
    margin-top: 12px;
  }

  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .scroll-to-top {
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    width: 44px;
    height: 44px;
  }

  .floating-actions {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    gap: 12px;
  }

  .floating-action-btn {
    width: 52px;
    height: 52px;
  }

  .floating-action-btn::after {
    display: none;
  }

  .floating-whatsapp:not(.floating-action-btn) {
    bottom: calc(76px + env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    width: 50px;
    height: 50px;
  }

  .floating-call:not(.floating-action-btn) {
    display: none !important;
  }

  .sticky-appointment {
    display: none;
  }

  .sticky-appointment.legacy-bar {
    display: none;
  }

  .sticky-appointment.legacy-bar {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
  }

  .sticky-appointment .btn-primary-custom {
    width: 100%;
    max-width: 420px;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .error-page h1 {
    font-size: 5rem;
  }

  .blog-detail-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .blog-detail-header h1 {
    font-size: 1.45rem;
  }

  .error-page h2 {
    font-size: 1.5rem;
  }

  .page-banner h1 {
    font-size: 1.65rem;
    line-height: 1.25;
    padding: 0 8px;
  }

  .page-banner {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 32px;
  }

  .section-subtitle {
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .specialty-section .specialty-img {
    margin-bottom: 8px;
  }

  .specialty-section .btn-primary-custom,
  .specialty-section .btn-outline-custom,
  .about-preview .btn-primary-custom,
  .text-center .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }

  .profile-card {
    max-width: 360px;
    margin: 0 auto 24px;
  }

  .qualification-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .stats-section .col-6 {
    margin-bottom: 8px;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-icon-cluster {
    gap: 6px;
    min-height: 2.25rem;
  }

  .stat-mini-icon {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .stat-item-specialty .stat-label {
    max-width: 100%;
  }

  .faq-question {
    gap: 12px;
    align-items: flex-start;
  }

  .faq-question i {
    margin-top: 4px;
    flex-shrink: 0;
  }

  .site-footer {
    padding-top: 50px;
    text-align: left;
  }

  .footer-about,
  .footer-contact li,
  .footer-links {
    text-align: left;
  }

  .footer-contact li {
    justify-content: flex-start;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .map-embed-wrap {
    display: flex;
    flex-direction: column;
  }

  .map-embed-wrap iframe {
    height: 320px;
  }

  .map-place-card {
    position: static;
    width: 100%;
    margin-bottom: 0;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
}

/* ---------- Global Mobile Enhancements ---------- */
@media (max-width: 991.98px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .section-desc {
    max-width: 100%;
  }

  .breadcrumb-nav {
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 8px;
  }

  .hero-photo img {
    min-height: 570px;
    max-height: 630px;
    object-fit: cover;
  }

  .specialty-section .row {
    text-align: center;
  }

  .specialty-section .specialty-list {
    text-align: left;
  }

  .specialty-section .btn-primary-custom,
  .specialty-section .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }

  .reviews-widget-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer-map iframe,
  .map-section iframe {
    width: 100%;
    min-height: 260px;
  }

  .footer-contact li,
  .footer-about p {
    word-break: break-word;
  }
}

@media (max-width: 767.98px) {
  .site-header .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .header-inner {
    gap: 8px;
  }

  .mobile-nav {
    padding: 24px max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }

  .mobile-nav a {
    padding: 12px 0;
    font-size: 1rem;
  }

  .mobile-nav-close {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-nav .btn-primary-custom {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }

  .page-banner .section-desc {
    padding: 0 4px;
  }

  .gallery-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 28px;
    scrollbar-width: none;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .gallery-filter-btn {
    flex: 0 0 auto;
    padding: 10px 18px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .gallery-item-meta {
    padding: 14px 16px 18px;
  }

  .gallery-item-meta h4 {
    font-size: 0.9rem;
  }

  .gallery-item-desc {
    font-size: 0.85rem;
  }

  .lightbox-image {
    max-height: 55vh;
  }

  .lightbox-caption {
    font-size: 0.9rem;
    padding: 0 8px;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    min-width: 44px;
    min-height: 44px;
  }

  .contact-info-card {
    text-align: center;
  }

  .contact-form .btn-primary-custom {
    width: 100%;
    justify-content: center;
  }

  .working-hours li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .expertise-tags-panel {
    padding: 20px 18px;
    gap: 8px;
  }

  .expertise-tag {
    font-size: 0.8rem;
    padding: 9px 16px 9px 32px;
  }

  .expertise-tag::before {
    left: 12px;
    width: 7px;
    height: 7px;
  }

  .hospital-association-content,
  .hospital-association-visual {
    padding: 22px 18px;
  }

  .hospital-visual-frame img {
    height: 280px;
  }

  .hospital-visual-float {
    font-size: 0.72rem;
    padding: 8px 12px;
  }

  .hospital-visual-float--care {
    top: 28px;
    right: 8px;
  }

  .hospital-visual-float--surgery {
    bottom: 28px;
    left: 8px;
  }

  .philosophy-content,
  .philosophy-cards-panel {
    padding: 22px 18px;
  }

  .philosophy-section .philosophy-card {
    padding: 22px 16px;
  }

  .philosophy-section .philosophy-card .why-card-icon {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .recognition-panel {
    padding: 22px 18px;
  }

  .recognition-list li {
    padding: 12px 14px;
    font-size: 0.86rem;
  }

  .recognition-icon {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .experience-timeline {
    padding: 22px 18px 10px 42px;
  }

  .experience-timeline::before {
    left: 24px;
    top: 28px;
    bottom: 22px;
  }

  .timeline-item {
    padding: 16px 16px;
    margin-bottom: 12px;
  }

  .timeline-item::before {
    left: -24px;
    top: 20px;
    width: 12px;
    height: 12px;
  }

  .timeline-item h5 {
    font-size: 0.98rem;
  }

  .blog-sidebar {
    margin-top: 24px;
  }

  .service-card-body {
    padding: 20px;
  }

  .service-card-body h4 {
    font-size: 1.05rem;
  }

  .cta-banner .btn-white-custom {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
  }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 575.98px) {
  .logo-text {
    font-size: 0.95rem;
  }

  .logo-text span {
    font-size: 0.65rem;
  }

  .site-logo img,
  .site-logo-img {
    max-width: 120px;
    height: 38px;
  }

  .mobile-toggle {
    font-size: 1.35rem;
    padding: 6px;
  }

  .trust-bar-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trust-bar-item {
    justify-content: flex-start;
  }

  .hero-trust-badge {
    font-size: 0.68rem;
    padding: 7px 12px 7px 10px;
  }

  .hero-shapes {
    opacity: 0.5;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 12px);
  }

  .hero-content h1 {
    font-size: 1.65rem;
  }

  .hero-desc {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  .hero-trust-points li {
    font-size: 0.68rem;
    padding: 6px 10px;
  }

  .hero-visual {
    max-width: 100%;
    padding: 0 4px 4px;
  }

  .hero-floating-badge-verified span {
    display: none;
  }

  .hero-floating-badge-verified {
    padding: 8px 10px;
    top: 6%;
    right: 4%;
  }

  .hero-floating-badge-gold {
    top: 6%;
    left: 4%;
    font-size: 0.62rem;
    padding: 6px 10px;
  }

  .hero-orb {
    display: none;
  }

  .hero-photo img {
    min-height: 510px;
    max-height: 550px;
  }

  .hero-bottom-strip-item {
    font-size: 0.68rem;
    padding: 6px 10px;
  }

  .btn-primary-custom,
  .btn-outline-custom,
  .btn-white-custom {
    padding: 12px 20px;
    font-size: 0.88rem;
  }

  .why-card {
    padding: 24px 20px;
  }

  .service-card-img {
    height: 180px;
  }

  .blog-card-img {
    height: 180px;
  }

  .blog-featured-content {
    padding: 24px;
  }

  .blog-sidebar {
    padding: 20px;
  }

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

  .mobile-nav {
    width: 100%;
    right: -100%;
    max-width: 100%;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .section-padding {
    padding: 40px 0;
  }

  .why-choose .col-md-6,
  .services .col-md-6,
  #galleryGrid .col-md-6 {
    padding-left: 12px;
    padding-right: 12px;
  }

  .social-share {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }

  .social-share a {
    min-width: 44px;
    min-height: 44px;
  }

  .blog-detail-header h1 {
    font-size: 1.65rem;
    line-height: 1.25;
    word-wrap: break-word;
  }

  .blog-hero-banner {
    padding: 20px 18px;
    border-radius: 18px;
    margin-bottom: 1.5rem;
  }

  .blog-detail-header .breadcrumb-nav {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  .blog-detail-header .blog-detail-meta {
    gap: 8px;
  }

  .blog-detail-header .blog-detail-meta span {
    padding: 6px 12px 6px 8px;
    font-size: 0.82rem;
  }

  .blog-detail-header .blog-detail-meta i {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }

  .blog-detail-header.section-padding {
    padding-top: calc(var(--header-height) + 24px);
  }

  .blog-detail-img {
    max-height: 280px;
  }

  .blog-toc {
    padding: 18px 20px;
  }

  .blog-toc ol li {
    font-size: 0.85rem;
  }

  .blog-article h2 {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .blog-article h3 {
    font-size: 1.15rem;
  }

  .blog-article p,
  .blog-article li {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .blog-article .table,
  .legal-content .table {
    font-size: 0.8rem;
  }

  .blog-article .table-responsive,
  .legal-content .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .legal-content h2 {
    font-size: 1.25rem;
  }

  .legal-content {
    padding: 0 4px;
  }

  .blog-detail-header .col-lg-4,
  .blog-detail-header .col-lg-8,
  .blog-sidebar {
    margin-top: 1.5rem;
  }

  .blog-article,
  .blog-toc,
  .blog-sidebar,
  .legal-content {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .site-logo-img {
    max-width: 120px;
    height: auto;
  }

  .gallery-item-img {
    height: 220px;
  }

  .gallery-preview .gallery-item-img {
    height: 180px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .about-preview-img {
    margin-bottom: 16px;
  }

  .specialty-img {
    margin-top: 8px;
  }

  .specialty-img img {
    height: 260px;
  }

  .gallery-item-img {
    height: 200px;
  }

  .gallery-preview .gallery-item-img {
    height: 160px;
  }

  .gallery-item-meta {
    padding: 12px 14px 16px;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-title {
    margin-top: 8px;
  }

  .btn-primary-custom,
  .btn-outline-custom,
  .btn-white-custom {
    min-height: 44px;
  }

  .read-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .faq-answer-inner {
    font-size: 0.9rem;
  }

  .stat-item {
    padding: 16px 12px;
  }

  .error-page {
    padding: 40px 20px;
  }
}

/* Touch devices: reduce hover-only motion */
@media (hover: none) and (pointer: coarse) {
  .gallery-item:hover {
    transform: none;
  }

  .gallery-item:hover .gallery-item-img {
    transform: none;
  }

  .gallery-item-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(201, 101, 0, 0.75) 0%, transparent 50%);
  }

  .why-card:hover,
  .service-card:hover,
  .blog-card:hover {
    transform: none;
  }
}

/* ---------- Large desktops (1400px+) ---------- */
@media (min-width: 1400px) {
  .hero-visual {
    max-width: min(520px, 100%);
  }

  .section-desc {
    max-width: 640px;
  }

  .blog-article {
    font-size: 1.0625rem;
  }
}

/* ---------- Desktop layout stability (≥992px) ---------- */
@media (min-width: 992px) {
  body {
    width: 100%;
    min-width: 0;
  }

  /* Preserve Bootstrap centered containers at every breakpoint */
  .container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  main,
  .site-header,
  .site-footer {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .site-header .container,
  main .container,
  .site-footer .container {
    box-sizing: border-box;
  }

  /* Keep decorative elements inside their sections */
  .hero-section,
  .cta-banner,
  .specialty-section,
  .map-embed-wrap,
  .bg-grey {
    overflow: clip;
  }

  .hero-main-row {
    align-items: center;
  }

  .hero-content {
    max-width: min(580px, 100%);
  }

  .hero-desc {
    max-width: min(520px, 100%);
  }

  .hero-photo img {
    width: 100%;
    min-height: 0;
    max-height: 730px;
    height: auto;
  }

  .trust-bar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .geo-areas-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  }

  .about-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .col-lg-4:has(> .profile-card),
  .col-lg-3:has(> .profile-card) {
    align-self: flex-start;
  }

  .profile-card {
    width: 100%;
  }

  .service-card,
  .blog-card,
  .why-card,
  .benefit-card,
  .testimonial-card {
    max-width: 100%;
  }

  .blog-article img,
  .blog-detail-img img,
  .service-detail-content img {
    width: 100%;
    height: auto;
  }

  .reviews-widget-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .blog-featured {
    min-width: 0;
  }

  .blog-featured-img {
    flex: 1 1 42%;
    min-width: 0;
    max-width: 100%;
  }

  .blog-featured-content {
    flex: 1 1 50%;
    min-width: 0;
  }

  .blog-sidebar {
    max-width: 100%;
  }

  .service-detail-content,
  .blog-article {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .floating-actions {
    right: max(24px, env(safe-area-inset-right));
  }
}

@media (max-width: 480px) {
  .hero-visual {
    max-width: 100%;
  }

  .map-embed-wrap iframe,
  .footer-map iframe {
    height: 280px;
    min-height: 240px;
  }

  .page-banner h1 {
    font-size: 1.55rem;
  }

  .service-detail-hero h1 {
    font-size: 1.6rem;
  }
}

/* ---------- Phone widths: 414 · 390 · 375 · 360 · 320 ---------- */
@media (max-width: 414px) {
  .container {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .hero-quick-stat strong,
  .hero-quick-stat > div span {
    white-space: normal;
  }

  .blog-detail-meta span {
    font-size: 0.85rem;
  }
}

@media (max-width: 390px) {
  .hero-content h1 {
    font-size: clamp(1.55rem, 6.5vw, 1.85rem);
  }

  .floating-action-btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 375px) {
  .section-padding {
    padding: 36px 0;
  }

  .cta-banner {
    padding: 40px 18px;
  }
}

@media (max-width: 360px) {
  :root {
    --header-height: 64px;
  }

  .site-logo-img {
    max-width: 108px;
  }

  .mobile-nav a {
    font-size: 0.95rem;
  }
}

@media (max-width: 320px) {
  .container {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .hero-trust-points li {
    font-size: 0.62rem;
    padding: 5px 8px;
  }

  .hero-bottom-strip-item {
    font-size: 0.64rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .blog-detail-header h1 {
    font-size: 1.35rem;
  }

  .gallery-filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* ---------- Forms & touch targets (≤768px) ---------- */
@media (max-width: 767.98px) {
  .contact-form .form-control,
  .contact-form .form-select,
  .contact-form textarea {
    width: 100%;
    font-size: 16px;
    min-height: var(--touch-target);
  }

  .contact-form .form-label {
    font-size: 0.9rem;
  }

  .btn-primary-custom,
  .btn-outline-custom,
  .btn-white-custom,
  .faq-question,
  .gallery-filter-btn,
  .gallery-item-trigger,
  .mobile-toggle,
  .scroll-to-top {
    min-height: var(--touch-target);
  }

  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }

  .related-swiper,
  .testimonial-swiper,
  .gallery-preview-swiper {
    overflow: hidden;
    padding-bottom: 8px;
  }

  .gallery-lightbox.open {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  .lightbox-content {
    width: min(96%, calc(100% - 24px));
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .lightbox-image {
    max-height: min(55vh, calc(100dvh - 180px));
    width: auto;
    margin: 0 auto;
  }

  .benefit-card {
    padding: 20px 16px;
  }

  .service-detail-content .row > [class*="col-"] {
    margin-bottom: 0;
  }
}

/* ---------- Mobile Sticky Header (all pages) ---------- */
@media (max-width: 991.98px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 2px 14px rgba(15, 31, 51, 0.1);
    border-bottom: 1px solid var(--color-border);
    padding-top: env(safe-area-inset-top, 0);
    height: auto;
    min-height: calc(var(--header-height) + env(safe-area-inset-top, 0));
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  .site-header .header-inner {
    height: var(--header-height);
    min-height: var(--header-height);
  }

  .site-navbar-wrap.scrolled .site-header,
  .site-header.scrolled,
  .site-navbar-wrap.is-sticky,
  .site-header.is-sticky {
    box-shadow: 0 4px 20px rgba(15, 31, 51, 0.14);
  }

  .mobile-nav-overlay {
    z-index: 1105;
  }

  .mobile-nav {
    z-index: 1110;
    height: 100dvh;
    max-height: 100dvh;
    padding-top: calc(30px + env(safe-area-inset-top, 0));
  }

  .hero-section,
  .page-banner,
  .blog-detail-header,
  .service-detail-hero {
    scroll-margin-top: calc(var(--header-height) + env(safe-area-inset-top, 0) + 12px);
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .floating-actions,
  .floating-whatsapp,
  .floating-call,
  .floating-book,
  .sticky-appointment,
  .scroll-to-top,
  .page-loader {
    display: none !important;
  }

  body {
    color: #000;
  }
}
