/* Desktop: top header visible, content has padding-top: 72px (from main.css). */

/* Large desktop: 1440px+ */
@media (min-width: 1440px) {
  .content { max-width: 100%; }
  .section,
  .stats,
  .booking-cta,
  .site-footer { padding: 5rem 8% !important; }
  .hero__content { max-width: 700px; }
}

/* Tablet: 768px–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar { padding: 0 1.5rem; }
  .sidebar__nav-link { font-size: 0.65rem; padding: 0.4rem 0.6rem; }
  .sidebar__cta { font-size: 0.65rem; padding: 0.5rem 1rem; }
  .section,
  .stats,
  .booking-cta,
  .site-footer { padding: 4rem 5% !important; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro { gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile: < 768px — top header hidden, mobile header + hamburger */
@media (max-width: 768px) {
  .sidebar { display: none !important; }
  .mobile-header { display: flex !important; }
  .content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 56px !important;
  }
  .hero {
    min-height: 80vh;
    margin-top: -56px;
    padding-top: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero__overlay {
    background: linear-gradient(180deg, rgba(15,23,42,.65) 0%, rgba(15,23,42,.45) 50%, rgba(15,23,42,.30) 100%) !important;
  }
  .hero__scroll-hint { display: none !important; }
  .page-hero {
    margin-top: -56px !important;
    padding-top: 4rem !important;
  }
  .hero__content {
    padding: 3rem 2rem !important;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 92%;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
    border: 1px solid rgba(255,255,255,0.08);
  }
  .hero__accent-number {
    font-size: clamp(3rem, 14vw, 5rem) !important;
    font-weight: 800 !important;
    letter-spacing: normal !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
    display: block !important;
    text-align: center !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 4px 24px rgba(0,0,0,0.4) !important;
  }
  .hero__content .hero__divider {
    width: 60px !important;
    height: 2px !important;
    margin: 14px auto 18px !important;
    display: block !important;
    background: var(--accent) !important;
  }
  .hero__title {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 24px !important;
    text-align: center !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.4) !important;
  }
  .hero__actions {
    justify-content: center;
    gap: 15px !important;
  }
  .hero .hero__actions .btn {
    width: 100% !important;
    min-height: 52px !important;
    padding: 0 28px !important;
    font-size: 0.9375rem !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .hero .hero__actions a.btn--outline,
  .hero .hero__actions a.btn--outline:link,
  .hero .hero__actions a.btn--outline:visited {
    background: #ffffff !important;
    color: #1E293B !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
  }
  .hero .hero__actions .btn--accent {
    background: var(--accent) !important;
    color: #ffffff !important;
    border: 2px solid var(--accent) !important;
    box-shadow: 0 6px 24px rgba(13, 148, 136, 0.45) !important;
  }
  h1, h2, .section__title, .page-hero__title { font-weight: 800 !important; }
  .section,
  .stats,
  .booking-cta,
  .site-footer { padding: 3.5rem 5% !important; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail--reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-map { margin-top: 0; }
  .contact-map iframe { height: 300px; }
  .chat-widget {
    right: max(0.75rem, env(safe-area-inset-right));
    left: max(0.75rem, env(safe-area-inset-left));
    bottom: 100px;
    width: auto;
    max-height: min(70vh, calc(100vh - 6rem));
  }
  .chat-toggle {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    min-width: 140px;
    padding: 0.5rem 0.75rem 0.5rem 1rem;
  }
}

/* Small mobile: 320px–480px */
@media (max-width: 480px) {
  .section,
  .stats,
  .site-footer,
  .booking-cta { padding: 3rem 1.25rem !important; }
  .stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .stats__number { font-size: var(--text-4xl); }
  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 0.25rem; }
  .booking-cta { flex-direction: column; text-align: center; gap: 0.75rem; }
  .section__title { font-size: var(--text-2xl); overflow-wrap: break-word; }
  .page-hero__title { font-size: var(--text-3xl); }
  .hero__accent-number {
    font-size: clamp(2.75rem, 13vw, 4rem) !important;
  }
  .hero__title { font-size: clamp(0.85rem, 3.5vw, 1rem); line-height: 1.4; }
  .hero__actions { flex-direction: column; gap: 12px !important; }
  .hero__content { padding: 2.5rem 1.5rem !important; }
  .gallery-filters { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .chat-widget {
    right: max(0.5rem, env(safe-area-inset-right));
    left: max(0.5rem, env(safe-area-inset-left));
    bottom: 100px;
    width: auto;
    max-height: min(65vh, calc(100dvh - 5rem));
    border-radius: 16px;
  }
  .chat-toggle {
    right: max(0.5rem, env(safe-area-inset-right));
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    min-width: 120px;
    height: 44px;
  }
  .chat-toggle__text { font-size: 0.8rem; }
}

/* Extra small: 320px */
@media (max-width: 320px) {
  .content { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
  .section,
  .stats,
  .site-footer,
  .booking-cta { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
  .section__title { font-size: 1.35rem; }
  .hero__title { font-size: 0.875rem; }
  .btn { padding: 0.65rem 1rem; font-size: 0.7rem; }
  .chat-toggle { min-width: 100px; padding: 0.4rem 0.6rem; }
  .chat-toggle__text { font-size: 0.75rem; }
}
