/* ============================================
   MOBILE RESPONSIVE — all pages
   ============================================ */
@media (max-width: 768px) {

  /* Reset fixed viewport locks */
  html, body { height: auto; overflow: auto; }
  .shell { height: auto; overflow: visible; grid-template-rows: 56px auto; }

  /* NAV */
  nav {
    padding: 0 20px;
    position: relative;
  }
  .nav-links {
    display: none !important;
  }
  .nav-btn {
    font-size: 12px;
    padding: 8px 14px;
  }

  /* Hamburger menu */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
  }
  .hamburger span {
    width: 22px; height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all .2s;
    display: block;
  }
  .mobile-menu {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 16px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu a.active { color: var(--green); }

  /* ── INDEX PAGE ── */

  /* Kill 3-col grid */
  .main {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
  }
  .col-divider { display: none; }

  /* Left col / hero */
  .col-left {
    overflow: visible;
    order: 1;
  }
  .hero {
    padding: 32px 24px 24px;
    flex: none;
  }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
  }
  .hero-logo-large img {
    width: 90px !important;
    height: 90px !important;
  }
  h1 { font-size: 36px !important; margin-bottom: 10px; }
  .hero-sub { font-size: 15px; margin-bottom: 20px; }

  .slide-section-label { padding: 6px 16px; }
  .company-slideshow-wrap,
  .slideshow-wrap {
    height: 90px;
  }

  /* Middle col — services */
  .col-mid {
    order: 2;
    padding: 28px 24px;
    overflow: visible;
  }
  .services-list { justify-content: flex-start; }
  .svc { padding: 14px 0; }
  .svc-name { font-size: 15px; }
  .svc-desc { font-size: 13px; }

  /* Right col */
  .col-right {
    order: 3;
    padding: 28px 24px;
    overflow: visible;
  }

  /* ── SERVICES PAGE ── */
  .main.svc-layout,
  .main:has(.content) {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
  }
  .content {
    padding: 28px 20px;
    overflow: visible;
    height: auto;
  }
  .page-title { font-size: 28px !important; }
  .deliverables { grid-template-columns: 1fr !important; }
  .process-steps { flex-direction: column; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }

  /* Top CTA bar */
  .top-cta-bar {
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px;
    text-align: center;
  }

  /* Right panel on services/about/process/contact */
  .col-right,
  .right-panel {
    width: 100% !important;
    overflow: visible !important;
    height: auto !important;
  }

  /* ── ABOUT PAGE ── */
  .main:has(.col) {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }
  .col {
    overflow-y: visible !important;
    height: auto !important;
    padding: 28px 20px !important;
  }
  .person-bio { font-size: 13.5px; }
  .exp-tags { gap: 5px; }

  /* ── PROCESS PAGE ── */
  .universal-steps {
    flex-direction: column;
    border-radius: 8px;
  }
  .u-step { border-right: none; border-bottom: 1px solid var(--border); }
  .u-step:last-child { border-bottom: none; }
  .phase { flex-direction: column; gap: 0; }
  .phase-left {
    width: 100% !important;
    text-align: left !important;
    padding: 10px 0 0 0 !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .phase-center { flex-direction: row; padding: 0; width: auto; }
  .phase-line { display: none; }
  .phase-right { padding: 6px 0 16px 0 !important; }
  .proc-block { margin-bottom: 36px; }

  /* ── CONTACT PAGE ── */
  .form-grid { grid-template-columns: 1fr !important; }
  .form-group.full { grid-column: 1 !important; }
  .contact-options { grid-template-columns: 1fr !important; }
  .service-links { gap: 6px; }

  /* Toast */
  .toast { width: 88vw !important; padding: 32px 24px !important; }
  .toast-title { font-size: 22px !important; }

  /* Panel sections */
  .panel-section { padding: 20px; }
  .panel-cta { margin: 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .included-grid { grid-template-columns: 1fr; }
  .skill-tags { gap: 5px; }

  /* FAQ */
  .faq-item { padding: 14px 0; }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .hamburger { display: none !important; }
  .mobile-menu { display: none !important; }
}

/* Fix right column and slideshows scaling on mobile */
@media (max-width: 768px) {
  .col-right {
    padding: 20px !important;
  }
  .audit-mini {
    padding: 14px;
  }
  .audit-mini-title { font-size: 18px; }
  .audit-mini-desc { font-size: 12px; }
  .audit-mini-btn { padding: 10px; font-size: 13px; }
  .why-list { gap: 7px; }
  .why-text { font-size: 12px; }
  .how-steps { gap: 7px; }
  .how-text { font-size: 12px; }
  .r-label { font-size: 10px; margin-bottom: 10px; }
  .r-divider { margin: 12px 0; }
  .r-cta-btn { padding: 8px; font-size: 12px; }

  /* Slideshows — compact on mobile */
  .company-slideshow-wrap,
  .slideshow-wrap {
    height: 70px !important;
  }
  .slide-section-label {
    font-size: 9px;
    padding: 4px 12px;
  }
  .slide-card { width: 110px; }
}

/* ── HOMEPAGE SPECIFIC MOBILE FIXES ── */
@media (max-width: 768px) {

  /* Hero section */
  .hero {
    padding: 20px 16px 16px !important;
  }
  .eyebrow {
    font-size: 9px !important;
    margin-bottom: 8px;
  }
  .hero-inner {
    gap: 10px !important;
    margin-bottom: 12px !important;
    flex-wrap: nowrap;
  }
  .hero-text { flex: 1 !important; min-width: 0; }
  h1 {
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
    word-break: break-word;
  }
  .hero-logo-large {
    flex-shrink: 0 !important;
    margin-left: 0 !important;
  }
  .hero-logo-large img {
    width: 70px !important;
    height: 70px !important;
  }
  .hero-sub {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 14px !important;
    max-width: 100% !important;
    word-break: break-word;
  }
  .btn-s { font-size: 13px; }

  /* Slideshows — tighter */
  .slide-section-label {
    font-size: 9px !important;
    padding: 4px 10px !important;
    letter-spacing: 0.1em;
  }
  .company-slideshow-wrap,
  .slideshow-wrap {
    height: 72px !important;
  }
  .slide-card { width: 100px !important; }
  .slide-label { padding: 3px 6px !important; font-size: 8px !important; }

  /* Services col */
  .col-mid { padding: 20px 16px !important; }
  .col-label { font-size: 10px !important; margin-bottom: 10px !important; }
  .svc { padding: 10px 0 !important; }
  .svc-name { font-size: 13px !important; }
  .svc-desc { font-size: 11.5px !important; max-width: 100% !important; }
  .svc-audit { padding-left: 10px !important; padding-right: 10px !important; }

  /* Right col */
  .col-right { padding: 20px 16px !important; }
  .r-label { font-size: 10px !important; margin-bottom: 8px !important; }
  .why-text { font-size: 11.5px !important; }
  .audit-mini-title { font-size: 16px !important; }
  .audit-mini-desc { font-size: 11px !important; }
  .how-text { font-size: 11.5px !important; }
  .how-num { width: 18px !important; height: 18px !important; font-size: 9px !important; }

  /* Prevent any horizontal overflow */
  .col-left, .col-mid, .col-right {
    width: 100% !important;
    max-width: 100vw;
    overflow-x: hidden;
  }
  body { overflow-x: hidden; }
}

/* Footer mobile */
@media (max-width: 768px) {
  .site-footer {
    grid-template-columns: 1fr 1fr !important;
    padding: 24px 20px !important;
    gap: 20px !important;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    padding: 12px 20px !important;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* Testimonials mobile */
@media (max-width: 768px) {
  .testimonials { gap: 8px; }
  .testimonial { padding: 12px; }
  .testimonial-quote { font-size: 11px; }
}

/* About page mobile */
@media (max-width: 768px) {
  .person-card {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
    padding-bottom: 40px !important;
  }
  .headshot-wrap {
    width: 120px !important;
    height: 150px !important;
  }
  .person-name { font-size: 22px !important; }
  .person-bio { font-size: 13px !important; }
  .page-title { font-size: 26px !important; }
  .page-sub { font-size: 13px !important; }
}
