/* =============================================
   RESPONSIVE.CSS — Experience Economics™
   Mobile-first overrides for all pages
   Breakpoint: 768px
   ============================================= */

/* HAMBURGER BUTTON — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0a0a0a;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Dropdown hover bridge fix — all pages */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* =============================================
   MOBILE STYLES
   ============================================= */
@media (max-width: 768px) {

  /* NAV */
  nav {
    padding: 0 20px !important;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    padding: 8px 0 32px !important;
    overflow-y: auto;
    z-index: 99;
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }

  .nav-links.mobile-open {
    display: flex !important;
  }

  .nav-links > li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .nav-links > li:last-child {
    border-bottom: none;
    padding: 16px 20px 0;
  }

  .nav-links > li > a {
    display: block !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    opacity: 1 !important;
    white-space: normal !important;
  }

  .nav-cta {
    display: block !important;
    text-align: center !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }

  /* Dropdown in mobile nav */
  .nav-dropdown > a {
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static !important;
    display: none;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 4px 0 8px 32px !important;
    background: transparent !important;
    min-width: unset !important;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu.open {
    display: block !important;
  }

  .dropdown-menu a {
    padding: 11px 20px 11px 0 !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(0,0,0,0.04) !important;
    background: transparent !important;
  }

  .dropdown-menu a:hover {
    background: transparent !important;
  }

  .dropdown-divider {
    margin: 4px 0 !important;
  }

  /* SECTIONS */
  section {
    padding: 48px 24px !important;
  }

  footer {
    padding: 48px 24px 32px !important;
  }

  /* HOMEPAGE HERO */
  .hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .hero-left {
    padding: 48px 24px 56px !important;
  }

  .hero-right {
    display: none !important;
  }

  /* PAGE HERO */
  .page-hero {
    grid-template-columns: 1fr !important;
  }

  .page-hero-inner {
    padding: 48px 24px 56px !important;
  }

  .page-hero-image {
    display: none !important;
  }

  /* TYPOGRAPHY */
  .hero-heading {
    font-size: clamp(38px, 11vw, 54px) !important;
  }

  .page-hero h1 {
    font-size: clamp(36px, 10vw, 54px) !important;
  }

  .section-heading {
    font-size: clamp(28px, 7vw, 40px) !important;
    max-width: 100% !important;
  }

  /* GRIDS — all collapse to single column */
  .pain-grid,
  .insight-inner,
  .diagnostic-inner,
  .services-grid,
  .focus-grid,
  .models-grid,
  .how-grid,
  .about-strip,
  .products-grid,
  .case-study-grid,
  .contact-split {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Sectors: 2-column on mobile, not 4 */
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

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

  /* PAGE CTA */
  .page-cta {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .cta-actions {
    align-items: flex-start !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  /* CTA BLOCK (homepage) */
  .cta-block {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .cta-block-actions {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* ABOUT STRIP (homepage) */
  .about-image {
    width: 100% !important;
    height: 280px !important;
  }

  .about-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top !important;
  }

  /* CONTACT PAGE */
  .contact-left,
  .contact-right {
    padding: 40px 24px !important;
  }

  /* SERVICE CARDS that span full width on desktop */
  .models-grid [style*="grid-column"],
  .products-grid [style*="grid-column"] {
    grid-column: 1 !important;
  }

  /* Products grid on for-clinics */
  .product-card.featured {
    grid-column: 1 !important;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary,
  .btn-lime,
  .btn-white-outline {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .page-hero-actions,
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .page-hero-actions .btn-secondary,
  .hero-actions .btn-secondary,
  .hero-actions .btn-ghost {
    text-align: center !important;
  }

}

/* Very small screens */
@media (max-width: 480px) {
  .sectors-grid {
    grid-template-columns: 1fr !important;
  }
}
