/* ============================================================
   bookaplumber · theme.css
   Canonical source: ~/Desktop/bookaplumber/theme.css
   Sync with: ~/Desktop/bookaplumber/sync-theme.sh
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

/* -- Tokens (light) ---------------------------------------- */
:root {
  --bg:          #ffffff;
  --bg-alt:      var(--muted);
  --surface:     #ffffff;
  --ink:         #0a1d2e;
  --ink-soft:    #3e5266;
  --ink-muted:   #6b7b8c;
  --accent:      #ff5a1f;
  --accent-dark: #e04410;
  --accent-soft: #fff0e9;
  --blue:        #1e5fa4;
  --blue-soft:   rgba(30,95,164,0.1);
  --cream:       #fff8f2;
  --line:        #e5e9ee;
  --muted:       #f4f6f8;
  --green:       #0b8f5a;
  --red:         #c0392b;
  --ring:        rgba(255,90,31,0.35);
  --shadow-sm:   0 1px 2px rgba(10,29,46,0.06);
  --shadow-md:   0 4px 14px rgba(10,29,46,0.08);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-pill: 999px;
  --header-bg:   rgba(255,255,255,0.95);
  color-scheme: light;
}

/* -- Tokens (dark) ----------------------------------------- */
:root[data-theme="dark"] {
  --bg:          #0a1d2e;
  --bg-alt:      #0f1c2b;
  --surface:     #172635;
  --ink:         #e7edf3;
  --ink-soft:    #97a6b6;
  --ink-muted:   #6b7b8c;
  --accent:      #ff6b35;
  --accent-dark: #e04410;
  --accent-soft: #3a1d10;
  --blue:        #5a9ad6;
  --blue-soft:   rgba(90,154,214,0.15);
  --cream:       #0f1c2b;
  --line:        #25384c;
  --muted:       #0f1c2b;
  --header-bg:   rgba(10,29,46,0.9);
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 14px rgba(0,0,0,0.5);
  color-scheme: dark;
}

/* -- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.15s, color 0.15s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* -- Container --------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* -- Header ------------------------------------------------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; display: block; }
nav ul { display: flex; gap: 28px; align-items: center; }
nav a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
nav a:hover, nav a.active { color: var(--accent); }
.header-cta {
  background: var(--accent); color: #fff !important;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; gap: 6px;
}
.header-cta:hover { background: var(--accent-dark); }

/* -- Hero & headings --------------------------------------- */
.hero { padding: 72px 0 60px; }
.crumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--ink); font-weight: 600; }
.eyebrow {
  display: inline-block;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
h1 {
  font-size: 56px; line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 800; margin-bottom: 20px;
}
h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 19px; color: var(--ink-soft); max-width: 720px; }
.hero-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 28px; }

/* -- Buttons ------------------------------------------------ */
.btn-primary {
  background: var(--accent); color: #fff !important;
  padding: 16px 26px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: var(--surface); color: var(--ink);
  padding: 16px 26px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 16px;
  border: 2px solid var(--line);
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--ink); }

/* -- Sections ---------------------------------------------- */
section { padding: 60px 0; background: var(--bg); }
section.alt { background: var(--bg-alt); }
h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
h2 em { font-style: normal; color: var(--accent); }
.lede { color: var(--ink-soft); font-size: 17px; max-width: 680px; margin-bottom: 40px; }

/* -- List style (em-dash orange) --------------------------- */
.list-dash { list-style: none; }
.list-dash li {
  font-size: 14px; color: var(--ink-soft);
  padding-left: 18px; position: relative; margin-bottom: 6px;
}
.list-dash li::before {
  content: "—"; color: var(--accent); font-weight: 800;
  position: absolute; left: 0;
}

/* -- FAQ ---------------------------------------------------- */
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 24px; margin-bottom: 12px;
}
.faq-item h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.faq-item p { color: var(--ink-soft); font-size: 14px; }

/* -- CTA band ---------------------------------------------- */
.cta-band {
  background: var(--ink); color: #fff;
  padding: 72px 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p {
  color: rgba(255,255,255,0.75);
  max-width: 620px; margin: 0 auto 26px; font-size: 17px;
}
.cta-band .btn-primary { padding: 18px 32px; font-size: 17px; }

/* -- Footer ------------------------------------------------- */
footer {
  background: var(--ink); color: #fff;
  padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo img { height: 40px; }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 16px; font-size: 14px; max-width: 320px; }
.footer-col h5 {
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.8); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; color: rgba(255,255,255,0.5); font-size: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* -- Theme toggle ------------------------------------------ */
.theme-toggle {
  background: transparent; border: 1px solid var(--line);
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-soft);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* -- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  nav ul { display: none; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero { padding: 48px 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
