/* ──────────────────────────────────────
   AC Security — Patch v1.1
   Mobile overflow fix, status LED,
   hamburger menu, form enhancements
   ────────────────────────────────────── */

/* ─── Global overflow fix ─── */
html, body { overflow-x: hidden; max-width: 100vw; }
.nav, .page-head, .section, .foot, .cta-band-inner,
.hero-grid, .contact-grid, .about-hero, .svc-index,
.case-grid, .equip, .tier-grid { overflow-x: hidden; }

/* ─── Hamburger toggle (mobile) ─── */
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px;
  color: var(--ink-1); cursor: pointer;
}

/* ─── Status LED states ─── */
.status-pill .dot.dot--on {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.65 0.15 145) !important;
  box-shadow: 0 0 6px oklch(0.65 0.15 145 / 0.6) !important;
  animation: pulse-dot 2s ease-in-out infinite !important;
}
.status-pill .dot.dot--off {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-4) !important;
  box-shadow: none !important;
  animation: none !important;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── Form field hint ─── */
.field-hint {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.06em;
  margin-top: 6px; min-height: 16px;
}

/* ─── Nav right area ─── */
.nav-right { display: flex; gap: 10px; align-items: center; }

/* ─── Mobile breakpoint ─── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-0);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px var(--pad-x); border-bottom: 1px solid var(--line-soft); }
  .nav-links a:last-child { border-bottom: none; }

  .nav-right { gap: 6px; }
  .nav-right .btn { padding: 8px 14px; font-size: 12px; }
  .status-pill { padding: 4px 8px; font-size: 8px; }

  /* Hero fixes */
  .hero-grid { grid-template-columns: 1fr !important; padding: 16px var(--pad-x); }
  .hero-grid .img { display: none; }
  .hero-grid h1 { font-size: 32px !important; }

  /* Dashboard grid */
  .dash-strip { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Section padding */
  .section { padding: 48px var(--pad-x); }
  .page-head { padding: 48px var(--pad-x) 36px; }
  .page-head h1 { font-size: 28px !important; }

  /* Equip cards */
  .equip { grid-template-columns: 1fr 1fr !important; gap: 12px; }

  /* Contact grid */
  .contact-grid { padding: 32px var(--pad-x) !important; gap: 32px !important; }

  /* Lead form seg buttons */
  .lead-form .seg { gap: 4px; }
  .lead-form .seg button { padding: 8px 10px; font-size: 12px; }

  /* Footer */
  .foot { padding: 36px var(--pad-x) 20px; }
  .foot-grid { gap: 28px; }
  .foot-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* CTA band */
  .cta-band-inner { padding: 48px var(--pad-x); gap: 32px; }

  /* FAB WhatsApp */
  .fab { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .fab svg { width: 22px; height: 22px; }
}

/* Extra small screens */
@media (max-width: 400px) {
  .brand-name { font-size: 13px; }
  .brand-name small { font-size: 7px; }
  .brand-logo { width: 28px; height: 28px; }
  .equip { grid-template-columns: 1fr !important; }
  .status-pill { display: none; }
}
