/* Mobile experience for Pentest Security, aligned with getsherlocklegal.com
   (breakpoint max-width: 850px). Rules here must not change the desktop layout
   above 850px. The hamburger itself stays available up to 1080px so the mid-width
   desktop header still fits; typography, spacing and tap targets below follow
   the main site's 850px sheet. */

.menu-btn-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 850px) {
  html { scroll-padding-top: 92px; }
  body { font-size: 15px; line-height: 1.55; }
  body.menu-open { overflow: hidden; }

  .wrap { padding: 0 22px; }
  .site-header .wrap { padding: 0 18px; }

  .site-header { backdrop-filter: blur(18px); }
  .header-row { min-height: 76px; height: 76px; gap: 12px; }
  .brand { gap: 10px; min-width: 0; }
  .brand img { height: auto; width: 170px; max-width: 100%; object-fit: contain; }
  .brand-sub { display: none; } /* already hidden at 420px; keep the 76px bar uncluttered */

  .menu-btn {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    width: auto;
    height: auto;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 12px;
    font-weight: 650;
    gap: 0;
  }
  .menu-btn .ico { display: none; }
  .menu-btn-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
  }

  .menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    padding: 24px 22px 36px;
    gap: 8px;
    min-height: calc(100dvh - 76px);
    max-height: calc(100dvh - 76px);
    background: var(--navy);
    box-shadow: 0 30px 30px rgba(7, 33, 65, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav a {
    font-size: 24px;
    font-weight: 550;
    line-height: 1.2;
    padding: 14px 6px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    overflow-wrap: anywhere;
  }
  .header-actions {
    margin-top: 12px;
    gap: 8px;
    padding-top: 16px;
  }
  .header-actions .btn {
    flex: 1 1 100%;
    min-height: 54px;
    border-radius: 12px;
    font-size: 15px;
    box-shadow: 0 8px 22px rgba(25, 211, 189, 0.24);
  }
  .link-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 750;
  }
  .lang-opt { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }

  /* Hero and headings — same scale as the main site's mobile hero */
  .hero { padding: 34px 0 32px; }
  .hero h1, .page-hero h1 {
    font-size: clamp(39px, 7.8vw, 62px);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }
  .page-hero-sm h1, .text-hero h1, .contact-layout h1 {
    font-size: clamp(34px, 7vw, 52px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .hero .eyebrow, .page-hero .eyebrow, .section .eyebrow {
    font-size: 9px;
    letter-spacing: 0.11em;
    margin-bottom: 20px;
    max-width: 280px;
  }
  .hero-lead, .page-hero .hero-lead, .page-hero-sm .hero-lead {
    font-size: 19px;
    line-height: 1.5;
    margin-top: 21px;
  }
  .cta-row { margin-top: 24px; gap: 10px; }
  .cta-row .btn, .hero .btn-lg, .page-hero .btn-lg {
    flex: 1 1 100%;
    min-height: 54px;
    font-size: 15px;
    border-radius: 12px;
  }
  .cta-row .btn-outline, .cta-row .btn-ghost, .hero .btn-outline, .page-hero .btn-outline, .page-hero .btn-ghost {
    min-height: 44px;
    font-size: 14px;
  }
  .btn { border-radius: 12px; }
  .btn-sm { min-height: 44px; }
  .strip { margin-top: 16px; font-size: 10px; gap: 12px; flex-wrap: wrap; }

  .section { padding: 44px 0; }
  .section.compact, .compact { padding-top: 26px; }
  h2 { font-size: 34px; line-height: 1.15; overflow-wrap: anywhere; }
  h3 { font-size: 20px; overflow-wrap: anywhere; }
  .section-heading, .section .lead, .section p.lead { font-size: 14px; }

  .page-hero { padding: 30px 0 32px; }
  .page-hero-sm { padding: 34px 0 20px; }
  .svc-hero { gap: 20px; }
  .svc-list, .types, .plans, .safety, .timeline, .detail-grid, .login-grid, .tc-steps, .tc-vis-grid, .closing-points { gap: 12px; }
  .card, .type, .plan, .login-card, .svc { padding: 22px; border-radius: 16px; }
  .svc h3 { font-size: clamp(19px, 4.6vw, 26px); line-height: 1.2; }

  .site-footer { padding: 36px 0 25px; }
  .footer-grid { gap: 25px; }
  .site-footer img { width: 215px; height: auto; max-width: 100%; object-fit: contain; }
  .foot-list a, .foot-bottom a {
    min-height: 42px;
    display: flex;
    align-items: center;
    overflow-wrap: anywhere;
  }
  .foot-bottom { margin-top: 0; gap: 8px; }
  .foot-bottom p { padding: 8px 0; line-height: 1.5; font-size: 10px; }

  input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    font-size: 16px; /* keep 16px so iOS does not zoom */
    min-height: 48px;
    border-radius: 12px;
  }
  .chip, .check-line { min-height: 44px; }
  .form .btn, form .btn { min-height: 54px; width: 100%; border-radius: 12px; }

  img, svg, video { max-width: 100%; height: auto; }
  .preview, .pv-window, .tc-window, .doc { max-width: 100%; overflow: hidden; }
  .pv-window { transform: none; }

  .faq details, .faq-list details { padding: 17px 0; }
  .faq summary, .faq-list summary { font-size: 16px; line-height: 1.5; min-height: 44px; }

  /* avoid mid-word overflow at 375px */
  .hero, .section, .page-hero, .page-hero-sm, .site-footer, .form, .card, .plan, .type, .login-card, .closing-points {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { padding: 0 12px; gap: 7px; }
  .header-row { gap: 7px; }
  .brand img { width: 140px; }
  .hero h1, .page-hero h1 { font-size: 38px; }
}
