/* ============================================================
   OBSIDIAN SYSTEM — Peerless Protection Group
   Shared tokens + global components (nav, footer, buttons,
   labels, REVIEW badge, imagery treatment)
   Fonts are self-hosted in /fonts (same files on the main and jobs sites).
   Clash Display and General Sans © Indian Type Foundry, free via Fontshare
   under the ITF Free Font License. Clash and General are trademarks of ITF.
   ============================================================ */

@font-face { font-family: 'Clash Display'; src: url('../fonts/clash-display-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('../fonts/clash-display-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #0B0B0D;
  --charcoal: #16151A;
  --footer-bg: #08080A;
  --ink: #ECEAE5;
  --muted: rgba(236, 234, 229, 0.70); /* was 0.54 — readability pass Oct 2026 */
  --body: rgba(236, 234, 229, 0.80);  /* paragraphs */
  --hair: rgba(236, 234, 229, 0.12);
  --oxblood: #6B2737;
  --gold: #C9A24B;
  --gold-hair: rgba(201, 162, 75, 0.45);
  --clash: 'Clash Display', sans-serif;
  --gen: 'General Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Headings wrap into even lines (no single word left alone on a line);
   paragraphs avoid a lone last word. Browsers without support ignore it. */
h1, h2, h3, h4, .h2 { text-wrap: balance; }
p, li, summary { text-wrap: pretty; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }

/* ---------- shared type ---------- */
.kicker {
  font-family: var(--gen); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold);
}
.h2 {
  font-family: var(--clash); font-weight: 700; color: var(--ink);
  font-size: 52px; line-height: 1.06; letter-spacing: -0.005em;
  margin-top: 22px;
}
.h2-form { font-size: clamp(40px, 4.2vw, 58px); }
@media (max-width: 400px) { .h2-form { font-size: 32px; } }
.body-copy { font-size: 17px; line-height: 1.7; color: rgba(236,234,229,0.74); }
.gold-rule { width: 44px; height: 1px; background: var(--gold); }

/* ---------- REVIEW badge (removable) ---------- */
.rev {
  display: inline-block; vertical-align: 2px;
  font-family: var(--gen); font-weight: 500; font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-hair);
  padding: 2px 7px 1px; margin-left: 10px; border-radius: 1px;
  white-space: nowrap;
}

/* ---------- buttons: rectangular, sharp, letterspaced ---------- */
.btn {
  display: inline-block; border-radius: 0;
  font-family: var(--gen); font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 18px 40px; text-align: center; white-space: nowrap;
  color: var(--ink);
}
.btn-primary { background: var(--oxblood); border: 1px solid var(--oxblood); }
.btn-primary:hover { color: var(--ink); box-shadow: 0 0 34px rgba(107,39,55,0.55); }
.btn-ghost { background: transparent; border: 1px solid var(--hair); }
.btn-ghost:hover { color: var(--ink); border-color: rgba(236,234,229,0.35); }

/* ---------- imagery: duotone, sits IN the obsidian field ---------- */
.img-slab { position: relative; overflow: hidden; background: var(--charcoal); border: 1px solid rgba(236,234,229,0.4); }
.img-slab img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.9); /* was contrast 1.32, brightness 0.7 */
}
.img-slab::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,11,13,0.10), rgba(11,11,13,0.26));
  border: 1px solid var(--hair);
}

/* ============================================================
   NAV (desktop) — transparent over hero
   ============================================================ */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 64px; height: 88px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-brand img { width: 34px; height: auto; display: block; }
.nav-brand .word {
  font-family: var(--clash); font-weight: 600; font-size: 16px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
/* Lockup: shield + PEERLESS PROTECTION GROUP on one line; on phones it
   stacks as PEERLESS / PROTECTION GROUP (see the 520px rule below). */
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-family: var(--gen); font-weight: 500; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(236,234,229,0.72);
}
.nav-links a:hover { color: var(--ink); }
.nav-links .caret { display: inline-block; margin-left: 6px; font-size: 9px; color: var(--muted); font-weight: 500; }
.nav-phone {
  font-family: var(--gen); font-weight: 500; font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink); border: 1px solid var(--oxblood); padding: 12px 20px; border-radius: 0;
}
.nav-phone:hover { background: var(--oxblood); color: var(--ink); }

/* ============================================================
   FOOTER — #08080A, three columns
   ============================================================ */
.footer { background: var(--footer-bg); position: relative; z-index: 2; }
.footer-main {
  display: grid; grid-template-columns: 1.25fr 0.8fr 1.25fr 1fr; gap: 56px; /* brand · Navigate · Contact · Follow */
  padding: 64px 64px 56px; border-top: 1px solid var(--hair);
}
.footer-brand img { width: 44px; height: auto; opacity: 0.92; }
.footer-brand p { margin-top: 20px; font-size: 14px; line-height: 1.7; color: var(--body); max-width: 300px; }
.footer h5 {
  font-family: var(--gen); font-weight: 500; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px;
}
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col a, .footer-col span { font-size: 14px; color: rgba(236,234,229,0.74); }
.footer-col a:hover { color: var(--ink); }
.footer-bar {
  border-top: 1px solid var(--gold-hair);
  margin: 0 64px; padding: 26px 0 34px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; /* 5.2:1 on the footer (was 3.1:1) */
}
.footer-bar a { color: var(--muted); }
.footer-bar a:hover { color: var(--ink); }
.footer .footer-h { font-family: var(--gen); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }

/* footer social handles: small logo + @handle */
.footer-social { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-top: -6px; } /* links carry 6px padding: first row lines up with the other columns */
.footer-social a { display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; color: rgba(236,234,229,0.74); }
.footer-social a:hover { color: var(--ink); }
.footer-social svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.footer-social svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; }

/* "Cookie settings" (added to the footer bar by js/ga.js) */
.cookie-settings { background: none; border: none; padding: 6px 0; font: inherit; color: var(--muted); letter-spacing: 0.04em; cursor: pointer; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.cookie-settings:hover { color: var(--ink); }

/* consent banner (built by js/ga.js) — full-width bar along the bottom edge, never over the header */
.cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--charcoal); border-top: 1px solid rgba(236,234,229,0.22); padding: 20px 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; box-shadow: 0 -12px 40px rgba(0,0,0,0.5); }
.cc-text { font-family: var(--gen); font-size: 14px; line-height: 1.6; color: rgba(236,234,229,0.78); margin: 0; max-width: 820px; }
.cc-text a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(236,234,229,0.35); text-underline-offset: 3px; }
.cc-actions { display: flex; gap: 12px; flex: none; }
.cc-btn { font-family: var(--gen); font-weight: 500; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid rgba(236,234,229,0.3); padding: 13px 24px; min-height: 44px; cursor: pointer; border-radius: 0; }
.cc-btn:hover { border-color: rgba(236,234,229,0.6); }
.cc-yes { background: var(--oxblood); border-color: var(--oxblood); }
.cc-yes:hover { border-color: var(--oxblood); box-shadow: 0 0 24px rgba(107,39,55,0.5); }
@media (max-width: 767px) {
  .cc-banner { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .cc-btn { flex: 1; }
}

/* skip link: first Tab stop on every page */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 400; background: var(--ink); color: var(--bg); font-family: var(--gen); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 18px; }
.skip-link:focus { top: 12px; color: var(--bg); }
main:focus { outline: none; }

/* bigger tap targets in the mobile header (visual size unchanged) */
.nav .only-m .burger { width: 44px; height: 44px; margin: -10px -12px -10px -8px; align-items: center; justify-content: center; }
.nav .only-m .burger span { width: 20px; }
.nav .only-m a.nav-phone { padding: 14px 0; margin: -14px 0; }

/* ============================================================
   MOBILE overrides
   ============================================================ */
.burger { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.burger span { height: 1.5px; background: var(--ink); display: block; }

/* Mobile footer at the site's 1080px breakpoint */
@media (max-width: 1080px) {
  .footer-main { grid-template-columns: 1fr; gap: 40px; padding: 52px 22px 44px; }
  .footer-bar { margin: 0 22px; flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 767px) {
  .nav-brand img { width: 26px; }
  .nav-brand .word { font-size: 13px; }
  .nav-phone { letter-spacing: 0.08em; }
  .btn { padding: 16px 28px; font-size: 11.5px; white-space: normal; width: 100%; }
}

/* Two-line brand lockup on phones, so the phone number and menu still fit */
@media (max-width: 520px) {
  .nav-brand { gap: 10px; }
  .nav-brand .word { display: flex; flex-direction: column; line-height: 1; }
  .nav-brand .w1 { font-size: 14px; letter-spacing: 0.08em; }
  .nav-brand .w2 { font-size: 8.5px; letter-spacing: 0.2em; margin-top: 4px; color: rgba(236,234,229,0.78); }
}
