/* ============================================================
   SHARED MOBILE STYLES  —  styles/shared.css
   Link this AFTER the page-specific CSS on every page
   ============================================================ */


/* Desktop: scroll row is invisible passthrough */
.hero-services-scroll-row {
  display: contents;
}

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


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

  /* ── HEADER ── */
  #site-header {
    padding: 0 20px !important;
    height: 70px !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
  }
  .site-logo img { height: 55px !important; }

  /* ── NAV — hidden by default, opens as dropdown ── */
  .nav-toggle { display: flex; }

  #site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  }
  #site-nav.open { display: flex; }

  #site-nav a {
    height: auto !important;
    line-height: 1 !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-left: none !important;
    font-size: 13px !important;
  }
  #site-nav a:last-child { border-bottom: none !important; }
  #site-nav a.active,
  #site-nav a:hover {
    background: #f9f9f9;
    color: #c8a84b !important;
    border-bottom-color: #f0f0f0 !important;
  }

  /* ── FOOTER NAV ── */
  .footer-nav { flex-wrap: wrap; justify-content: center; }
  .footer-nav a { padding: 6px 12px !important; }

  /* ── HOME — HERO ── */
  .hero-slider:not(.hero-short) { height: auto !important; }
  .hero-slider.hero-short { height: 180px !important; }
  .hero-slider-inner { padding: 0 20px !important; }

  .hero-top {
    padding: 50px 0 36px !important;
    text-align: left;
  }
  .hero-tag {
    font-size: 10px !important;
    letter-spacing: 3px !important;
    margin-bottom: 20px !important;
  }
  .hero-words-list { margin-bottom: 28px !important; }
  .hero-word {
    font-size: 28px !important;
    letter-spacing: 3px !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-btn {
    padding: 13px 28px !important;
    font-size: 10px !important;
  }

  /* Services strip — horizontal scroll on mobile */
  .hero-services-strip {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 -20px !important;
    gap: 0 !important;
    overflow: hidden !important;
  }
  .hero-services-scroll-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 20px 0 !important;
    gap: 0 !important;
    background: rgba(0,0,0,0.35) !important;
  }
  .hero-services-list {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    scroll-snap-type: x mandatory !important;
  }
  .hero-services-list::-webkit-scrollbar { display: none !important; }
  .hero-service-item {
    flex: 0 0 calc(100vw - 150px) !important;
    padding: 0 16px 0 20px !important;
    gap: 6px !important;
    scroll-snap-align: start !important;
  }
  .hero-service-divider {
    display: flex !important;
    flex-shrink: 0 !important;
    height: 60px !important;
    margin: 0 !important;
    width: 1px !important;
    scroll-snap-align: none !important;
  }
  .hero-service-label { font-size: 11px !important; }
  .hero-service-desc { font-size: 10px !important; line-height: 1.5 !important; }
  .hero-service-icon { width: 20px !important; height: 20px !important; }
  .hero-services-btn {
    flex-shrink: 0 !important;
    width: auto !important;
    text-align: center !important;
    padding: 14px 14px !important;
    font-size: 10px !important;
    letter-spacing: 1px !important;
    margin-right: 20px !important;
    white-space: nowrap !important;
  }

  /* Services carousel dots — full width below strip */
  .hero-services-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 20px 12px !important;
    background: rgba(0,0,0,0.35) !important;
    width: 100% !important;
  }
  .hero-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.3) !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
  }
  .hero-dot.active {
    background: #c8a84b !important;
  }
  .holistic-section { padding: 50px 24px !important; }
  .holistic-heading-light { font-size: 22px !important; }
  .holistic-heading-bold { font-size: 28px !important; }
  .holistic-text { font-size: 14px !important; }

  /* ── HOME — INDUSTRIES SECTION ── */
  .home-industries-section { padding: 50px 20px !important; }
  .home-industries-layout { flex-direction: column !important; }
  .home-industries-grid { grid-template-columns: 1fr 1fr !important; }
  .home-industries-cta-col { width: 100% !important; }
  .home-industries-cta-inner {
    flex-direction: column !important;
    padding: 30px 24px !important;
    gap: 16px !important;
  }
  .home-cta-col-text {
    order: 3 !important;
    margin-bottom: 0 !important;
  }
  .home-cta-col-btn.primary { order: 1 !important; }
  .home-cta-col-btn.secondary { order: 2 !important; }

  /* ── HOME — TEAM ── */
  .home-team-section { padding: 50px 20px !important; }
  .home-team-grid {
    grid-template-columns: 1fr 1fr !important;
    max-width: 100% !important;
    gap: 24px !important;
  }
  .home-team-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* ── SERVICES PAGE — fix image height ── */
  .service-block-image {
    position: relative !important;
    min-height: 0 !important;
    height: 260px !important;
  }
  .service-block-image img {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
  }
  .service-block-content { padding: 36px 24px !important; }

  /* ── ABOUT — TEAM PHOTO ── */
  .team-member-photo,
  .team-member-photo img {
    width: 100% !important;
    height: 300px !important;
    object-position: center 20% !important;
  }

  /* ── CONTACT — PILL MAP ── */
  .pill-map { height: 160px !important; }

}


/* ============================================================
   SMALL MOBILE  (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-word { font-size: 22px !important; letter-spacing: 2px !important; }
  .home-industries-grid { grid-template-columns: 1fr !important; }
  .home-team-grid { grid-template-columns: 1fr !important; }
  .ind-tile { height: 160px !important; }
  .hero-services-list { grid-template-columns: 1fr !important; }
}