/* Tech Team Store — shared styles. Mobile-first, works from 360px.
   Palette (SPEC): navy headings, blue CTA, off-white bg, amber accent, red = errors only.
   Debug tip: add ?debug=1 to any URL to see JS logs in the console (CSS cannot log). */
:root {
  --navy: #0A2463;
  --blue: #256EFF;
  --bg: #F5F5F6;
  --amber: #B36400;
  --red: #C62828;
  --wa: #167C3A;
  --text: #1d2433;
  --muted: #5a6275;
  --line: #e1e4ea;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); }
img, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.15rem; }
a { color: var(--blue); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
section { padding: 48px 0; }
.alt { background: #fff; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; }
.small { font-size: .875rem; color: var(--muted); }
.placeholder { background: #fff3e0; outline: 1px dashed var(--amber); padding: 0 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border-radius: var(--radius); border: 2px solid var(--blue); background: var(--blue); color: #fff; font: 600 1rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-outline { background: transparent; color: var(--blue); }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-accent { background: var(--amber); border-color: var(--amber); }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.brand img { display: block; height: 44px; width: auto; }
@media (max-width: 419px) { body.lp .brand span { display: none; } } /* LP header: logo + Call button must fit 360px */
.nav-toggle { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--navy); cursor: pointer; }
.nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.nav.open { display: flex; }
.nav a { padding: 10px 0; color: var(--navy); font-weight: 600; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 20px; padding: 0; border: 0; }
  .nav a.btn { color: #fff; padding: 6px 16px; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 56px 0; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; max-width: 640px; opacity: .92; }
.hero .btn-outline { color: #fff; border-color: #fff; }

/* Photo hero (home + service pages): text + CTAs + trust on the left, photo on the right */
.hero-media { background: radial-gradient(circle at 85% 35%, #1d47b0 0, var(--navy) 55%); padding: 40px 0 56px; }
.hero .eyebrow { display: inline-block; margin: 0 0 14px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ffd7a6; font-size: .9rem; font-weight: 600; }
.hero .eyebrow svg { width: 1.1em; height: 1.1em; margin-right: 6px; vertical-align: -.2em; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none; color: #cfd8ee; }
.trust strong { margin-right: 4px; color: #fff; font-size: 1.3rem; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-photo { width: 100%; height: 260px; object-fit: cover; object-position: center 30%; border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
@media (min-width: 800px) {
  .hero-media { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .hero-photo { height: 440px; }
}

/* Cards, stats, steps */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); padding: 20px; border-top: 3px solid var(--blue); box-shadow: 0 1px 3px rgba(10, 36, 99, .08); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(10, 36, 99, .12); }
.alt .card { background: var(--bg); box-shadow: none; border-top-color: var(--amber); }
.sub { margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: .95rem; }
.card h3 { margin-top: 0; }
.card a.more { font-weight: 600; text-decoration: none; }
.stat { display: block; font-size: 2rem; font-weight: 700; color: var(--amber); }
.checks { padding-left: 1.2em; }
.checks li { margin-bottom: 6px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 700; }
.alt .steps li { background: var(--bg); }

/* FAQ */
.faq details { background: #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; }
.alt .faq details { background: var(--bg); }
.faq summary { font-weight: 600; color: var(--navy); cursor: pointer; }
.faq details p { margin: 10px 0 0; }

/* NAP + map */
.two-col { display: grid; gap: 24px; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
address { font-style: normal; }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); background: #dde2ea; }

/* Text pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--navy); color: #dfe5f3; padding: 40px 0 24px; }
.site-footer a { color: #fff; }
.site-footer .grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer nav a { display: block; padding: 4px 0; }
.site-footer .copy { margin: 24px 0 0; font-size: .85rem; opacity: .8; }
body.lp .site-footer { padding-bottom: 80px; }

/* Mobile sticky bar (LPs) */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(2, 1fr); box-shadow: 0 -2px 8px rgba(0, 0, 0, .15); }
.sticky-bar a { padding: 15px 4px; text-align: center; color: #fff; font-weight: 700; text-decoration: none; background: var(--blue); }
.sticky-bar a:nth-child(2) { background: var(--wa); }
@media (min-width: 768px) { .sticky-bar { display: none; } body.lp .site-footer { padding-bottom: 24px; } }

/* Floating WhatsApp (injected by main.js). On LPs: desktop only, mobile uses sticky bar. */
.wa-float { position: fixed; right: 16px; bottom: 88px; /* sits above Netlify's bottom-right badge */ z-index: 60; padding: 12px 18px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
body.lp .wa-float { display: none; }
@media (min-width: 768px) { body.lp .wa-float { display: block; } }

/* Cookie banner (injected by main.js) */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 560px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0, 0, 0, .15); }
.cookie p { flex: 1 1 100%; margin: 0; font-size: .9rem; }
body.lp .cookie { bottom: 64px; }
@media (min-width: 768px) { body.lp .cookie { bottom: 12px; } }
