/* RecoveryTools common styles. Loaded on every page: https://www.recovery-tools.org/assets/css/common.css
   Holds fonts, palette (:root), base, buttons, icons, header, footer, section basics, FAQ and the help band.
   Page-only styles live in their own file, for example /assets/css/home.css. Change the palette in :root only. */

/* Self-hosted fonts (latin). No request to Google Fonts. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Manrope Fallback"; font-weight: 200 500; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 101.5%; ascent-override: 105%; descent-override: 29.6%; line-gap-override: 0%; }
@font-face { font-family: "Manrope Fallback"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 96%; ascent-override: 111%; descent-override: 31.3%; line-gap-override: 0%; }
@font-face { font-family: "Manrope Fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 100%; ascent-override: 106.6%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Manrope Fallback"; font-weight: 800; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 101.5%; ascent-override: 105%; descent-override: 29.6%; line-gap-override: 0%; }
@font-face { font-family: "DM Mono Fallback"; src: local("Courier New"), local("Liberation Mono"), local("Courier"); size-adjust: 100%; ascent-override: 99.2%; descent-override: 31%; line-gap-override: 0%; }
:root {
  --accent: #C2410C;
  --accent-text: #C2410C;
  --accent-dark: #9A3412;
  --accent-tint: #FFEDD5;
  --accent-soft: #FDBA74;
  --accent-ink: #431407;
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #4B5563;
  --ink-4: #6B7280;
  --page: #F4F5F7;
  --card: #FFFFFF;
  --card-soft: #F9FAFB;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --radius-m: 14px;
  --radius-l: 20px;
  --font: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", "DM Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* Icons */
.ic { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 14px 28px; font-weight: 700; font-size: 16px;
  border: 2px solid transparent; line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-green { background: var(--accent); color: #fff; }
.btn-green:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(194, 65, 12, .28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; transform: translateY(-1px); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn-soft:hover { color: var(--accent-ink); transform: translateY(-1px); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand img { height: 40px; width: auto; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 8px; padding: 8px 12px; font-weight: 700; color: var(--ink); }
.nav-panel { display: flex; align-items: center; gap: 32px; flex: 1; margin-left: 16px; }
.nav-panel nav { flex: 1; }
.nav-list { display: flex; gap: 28px; justify-content: center; }
.nav-list a { font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-list a:hover { color: var(--accent); border-color: var(--accent); }
.chat-btn svg { width: 18px; height: 18px; fill: currentColor; }
.nav-list a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }

/* Section basics and shared bits */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }
.tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 500; background: var(--accent-tint); color: var(--accent-dark); padding: 3px 10px; border-radius: 6px; }
.all-link { display: inline-block; margin-top: 24px; font-weight: 700; color: var(--accent-text); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.all-link:hover { color: var(--ink); }
.section { padding: clamp(40px, 6vw, 64px) 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin-bottom: 10px; }
.section .sub { font-size: 17px; color: var(--ink-3); max-width: 620px; margin-bottom: 30px; }

/* Help band */
.help { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.help-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.help h2 { font-size: 30px; letter-spacing: -.03em; margin-bottom: 8px; }
.help p { font-size: 17px; color: var(--ink-3); max-width: 560px; }

/* FAQ */
.faq-wrap { max-width: 900px; }
.faq-wrap h2 { margin-bottom: 24px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 18px 54px 18px 22px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 500; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 20px; color: var(--ink-3); }

/* Footer */
.site-footer { background: var(--page); padding: 52px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.foot-brand .contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-3); }
.foot-brand .contact strong { color: var(--ink); font-weight: 700; }
.foot-brand .contact a:hover { color: var(--accent); text-decoration: underline; }
.foot-col h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-col a { color: var(--ink-3); }
.foot-col a:hover { color: var(--accent); text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-strong); font-size: 13px; color: var(--ink-3); }
.legal a, .legal strong { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; gap: 12px; }
  .nav-panel.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; margin: 0; }
  .nav-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .chat-btn { align-self: flex-start; }
  .site-header .wrap { position: relative; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .foot-grid { grid-template-columns: 1fr; }
  .help-inner .btn-row { width: 100%; }
  .foot-col ul { gap: 0; }
  .foot-col a, .foot-brand .contact a { display: inline-block; padding: 7px 0; }
  .legal a { display: inline-block; padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
