/* ==========================================================================
   Safewild Technologies — site styles
   Tokens follow Branding/Safewild/README.md (forest + signal on warm paper).
   ========================================================================== */

/* --- Self-hosted webfonts (Latin subsets, SIL OFL — see assets/fonts/SOURCES.md) ---
   Same families, weights and axes the site used from Google Fonts; nothing else changed. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 100% 112%;
  font-display: swap;
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Forest (foundation) */
  --forest-950: #0A2018;
  --forest-900: #0F2E22;
  --forest-800: #123B2B;
  --forest-700: #1C5A41;
  --forest-500: #2E7A55;
  --forest-200: #9FD3B7;
  --forest-100: #C9E8D6;
  /* Signal (one move per screen) */
  --signal-500: #F26A1B;
  --signal-600: #D4560F;
  --signal-700: #C2540F;
  --signal-300: #FFB27A;
  /* Text-safe signal: 5.4:1 on paper, 5.9:1 on white. Brand #F26A1B stays for fills/accents. */
  --signal-text: #A8460B;
  --signal-text-hover: #9E430B;
  /* Paper & ink */
  --paper: #F6F4EE;
  --card: #FFFFFF;
  --line: #E4E0D6;
  --muted: #5C6660;        /* 5.4:1 on paper (was #6B7570, 4.3:1) */
  --body: #3A4640;
  --ink: #14211B;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 6px;
  --radius-lg: 10px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(56px, 8vw, 96px);
  --max: 1440px;
}

/* --- Reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--signal-text); text-decoration: none; }
a:hover { color: var(--signal-text-hover); text-decoration: underline; }
/* Two-color focus ring: ink outline over a white inner ring — visible on paper, white cards, forest panels and orange buttons. */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px #FFFFFF; border-radius: 2px; }
address { font-style: normal; }
code { font-family: var(--font-mono); font-size: 0.92em; }
strong { color: var(--ink); font-weight: 600; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* --- Type --------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.h2--lg { font-size: clamp(28px, 2.8vw, 40px); }
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.h3--lg { font-size: clamp(24px, 2.1vw, 30px); }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 36em; }
.measure { max-width: 38em; }
.small { font-size: 15px; line-height: 1.6; }
.muted { color: var(--muted); }
.accent { color: var(--signal-300); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  color: var(--forest-500);
}
.eyebrow--mint { color: var(--forest-200); }
.label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  color: var(--muted);
}
.label--signal { color: var(--signal-text); }
.label--green { color: var(--forest-500); }
.label--mint { color: var(--forest-200); }
.num { color: var(--signal-text); font-size: 12px; }

/* --- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--rule { border-top: 1px solid var(--line); }
.section--forest { background: var(--forest-900); color: var(--forest-100); }
.section--forest .h2, .section--forest .h3 { color: var(--paper); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--sm { gap: 10px; }
.stack--lg { gap: 40px; }

.grid { display: grid; gap: clamp(20px, 3vw, 64px); }
.grid--1-2 { grid-template-columns: 1fr 2fr; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--about { grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 72px); }
.grid--end { align-items: end; }
.grid--center { align-items: center; }
.cards { gap: 20px; }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.card--forest { background: var(--forest-800); border-color: var(--forest-800); color: var(--forest-100); }
.card--forest .h3, .card--forest strong { color: var(--paper); }
.cards--numbered .card { gap: 14px; }
.cards--numbered .num { font-size: 12px; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease;
}
.btn:hover { text-decoration: none; }
/* Signal button uses ink text for 4.5:1+ contrast (white on #F26A1B is ~3:1). */
.btn--signal { background: var(--signal-500); color: var(--ink); }
.btn--signal:hover { background: var(--signal-300); color: var(--ink); }
.btn--forest { background: var(--forest-800); color: var(--paper); }
.btn--forest:hover { background: var(--forest-700); color: var(--paper); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.text-link { font-weight: 600; color: var(--ink); display: inline-block; min-height: 44px; line-height: 44px; }
.text-link:hover { color: var(--signal-text); }

/* --- Header / nav ------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 10; }
.site-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { width: 34px; height: 40px; overflow: visible; }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.035em; }
.brand__sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
.brand--footer .mark { width: 26px; height: 30px; }
.brand--footer .brand__word { font-size: 18px; }

.site-nav__list { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; }
.site-nav__list a:not(.btn) { color: var(--ink); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.site-nav__list a:not(.btn):hover { color: var(--signal-text); text-decoration: none; }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; padding-bottom: 12px; }
  .js .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-top: 1px solid var(--line); }
  .site-nav__list a:not(.btn) { width: 100%; min-height: 48px; padding: 0 4px; }
  .site-nav__cta { padding-top: 12px; }
  .site-nav__cta .btn { width: 100%; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { padding-block: clamp(44px, 6.5vw, 96px) clamp(36px, 5.5vw, 80px); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4.4vw, 64px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: clamp(20px, 2vw, 28px); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__proof { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.hero__figure { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px; box-shadow: 0 24px 48px -24px rgba(15, 46, 34, 0.35); }
.hero__figure img { border-radius: var(--radius); width: 100%; }

/* --- Quotes ------------------------------------------------------------- */
.quote { padding: 32px; gap: 20px; }
.quote--lg { padding: 40px; }
.quote__mark { width: 36px; height: 28px; }
.quote__text {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; color: var(--ink);
  font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25;
}
.quote--lg .quote__text { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.2; }
.quote figcaption { font-size: 15px; line-height: 1.4; }

/* --- Case study "squeeze" card ----------------------------------------- */
.squeeze { padding: 32px; gap: 22px; }
.squeeze__list { display: flex; flex-direction: column; gap: 16px; }
.squeeze__list li { display: flex; gap: 14px; align-items: flex-start; color: var(--paper); font-size: 16px; line-height: 1.5; }
.squeeze__list .num { color: var(--signal-300); flex-shrink: 0; padding-top: 3px; }
.squeeze__kicker { font-size: 14px; line-height: 1.55; color: var(--forest-200); border-top: 1px solid var(--forest-700); padding-top: 16px; }

/* --- Steps (dark band) -------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { background: var(--forest-800); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 180px; position: relative; }
.step__n { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest-200); }
.step .small { color: var(--forest-100); }
@media (min-width: 901px) {
  .step + .step::before {
    content: ""; position: absolute; left: -24px; top: 50%; width: 24px; height: 2.5px; background: var(--signal-500); transform: translateY(-50%);
  }
}

/* --- Checklist ---------------------------------------------------------- */
.checklist { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.checklist li {
  display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line);
  color: var(--ink); font-size: 17px; line-height: 1.5; align-items: flex-start;
}
.checklist li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M5 12.5 L10 17 L19 7' stroke='%232E7A55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}

/* --- Stats -------------------------------------------------------------- */
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 8px; }
.stats > div { display: flex; flex-direction: column; gap: 4px; flex: 0 1 auto; max-width: 200px; }
.stat__n { font-size: 34px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.stat__n--accent { color: var(--signal-300); }
.stats--dark .stat__n { color: var(--paper); }
.stats--dark .stat__n--accent { color: var(--signal-300); }
.stats--dark .label { color: var(--forest-200); }

/* --- About -------------------------------------------------------------- */
.about__copy p { max-width: 40em; }
.about__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--mobile { display: none; }
.capacity { padding: 36px; gap: 18px; border-radius: var(--radius-lg); }
.capacity .small { color: var(--forest-100); }

/* --- Pricing ------------------------------------------------------------ */
.pricing { gap: 20px; align-items: stretch; }
.price { padding: 32px; gap: 14px; }
.price__amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .stat__n { font-size: 40px; }
.card--forest .stat__n { color: var(--paper); }
.card--forest .small { color: var(--forest-100); }
.price__unit { color: var(--forest-200); }

.cta-band {
  background: var(--forest-900); color: var(--forest-100);
  border-radius: var(--radius-lg); padding: clamp(28px, 3.3vw, 48px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 3.3vw, 48px); align-items: center;
}
.cta-band .h3 { color: var(--paper); }
.cta-band__actions { display: flex; flex-direction: column; gap: 10px; }

/* --- Secondary contact options (text, then email) ------------------------ */
/* Quiet text links under a primary button: smaller, muted, underlined on hover only. */
.contact-alt { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; line-height: 1.4; }
.contact-alt li { display: flex; }
.contact-alt a { color: var(--muted); display: inline-flex; align-items: center; gap: 0.35em; min-height: 40px; }
.contact-alt a .mono { color: var(--ink); font-size: 14px; }
.contact-alt a:hover { color: var(--signal-text); text-decoration: underline; }
.contact-alt--dark a { color: var(--forest-200); }
.contact-alt--dark a .mono { color: var(--paper); }
.contact-alt--dark a:hover { color: var(--paper); }
.contact-alt--center { justify-content: center; }
.hero .contact-alt { margin-top: -8px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 14px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer__contact { font-size: 13px; color: var(--muted); line-height: 1.7; }
.site-footer__contact a { color: var(--muted); display: inline-block; padding: 4px 0; }
.site-footer__contact a:hover { color: var(--signal-text); }
.site-footer__nav { display: flex; gap: 48px; }
.site-footer__heading { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.site-footer__nav ul { display: flex; flex-direction: column; gap: 2px; }
.site-footer__nav a { color: var(--ink); display: inline-block; min-height: 32px; line-height: 32px; }

/* --- 404 ---------------------------------------------------------------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .stack { max-width: 40em; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__inner, .grid--1-2, .grid--2, .grid--3, .grid--about, .cta-band { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { min-height: 0; padding: 20px; }
  .grid--end { align-items: start; }
  .about__photo--mobile { display: block; }
  .about__photo--desktop { display: none; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .text-link { width: 100%; text-align: center; }
  .contact-alt { flex-direction: column; gap: 0; }
  .hero .contact-alt { margin-top: -4px; }
  .contact-alt--center li { justify-content: center; }
  .quote, .quote--lg, .squeeze, .price, .capacity { padding: 22px 20px; }
  .site-footer__inner { flex-direction: column; }
}
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .stats { gap: 20px; }
  .stat__n { font-size: 28px; }
  .price .stat__n { font-size: 32px; }
  .site-footer__nav { gap: 32px; }
}
