/* Shared tokens. Each page picks a theme on <body>. */
:root {
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --gutter: 16px;
  --maxw: 1100px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --fill-bg: #ffe58a;
  --fill-ink: #3a2e00;
  --review-bg: #e0ecff;
  --review-ink: #123a7a;
}

/* Law firm theme: dark, sober, orange accent taken from the Instagram posts. */
.theme-cz {
  --bg: #0f1419;
  --bg-alt: #161d25;
  --surface: #1c242e;
  --text: #f3efe8;
  --muted: #b5afa5;
  --primary: #d9561c;
  --primary-hover: #c04a16;
  --primary-ink: #ffffff;
  --accent: #f0a26b;
  --line: rgba(255, 255, 255, 0.1);
  --whats: #25d366;
}

/* Advisory theme: light, warm, teal accent. Distinct from the law firm on purpose. */
.theme-mat {
  --bg: #fbf7f2;
  --bg-alt: #f3ebe1;
  --surface: #ffffff;
  --text: #1f2a2e;
  --muted: #5b6770;
  --primary: #0f766e;
  --primary-hover: #0b5e58;
  --primary-ink: #ffffff;
  --accent: #e36c5c;
  --line: rgba(0, 0, 0, 0.08);
  --whats: #25d366;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--primary); color: var(--primary-ink); padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 8px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.brand .brand-text { font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.02em; }
.brand .brand-sub { display: block; font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nav { display: none; gap: 22px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background 0.15s, transform 0.15s;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-whats { background: var(--whats); color: var(--whats-ink, #062a14); }
.btn-whats:hover { background: #1fbf5b; }
.btn-sm { padding: 10px 16px; min-height: 40px; font-size: 0.9rem; }

/* Hero */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); aspect-ratio: 4 / 3; display: grid; place-items: center; }

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: var(--bg-alt); }
.trust ul { list-style: none; margin: 0; padding: 16px 0; display: grid; gap: 10px; font-size: 0.95rem; }
.trust li { display: flex; gap: 10px; align-items: flex-start; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 9px; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.grid { display: grid; gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 20px 20px 20px 70px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: var(--primary); color: var(--primary-ink);
}
.steps h3 { margin-bottom: 6px; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Notices and placeholders */
.notice {
  border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px; margin: 18px 0;
}
.notice p:last-child { margin-bottom: 0; }
.fill { background: var(--fill-bg); color: var(--fill-ink); padding: 0 6px; border-radius: 6px; font-weight: 600; }
.badge-review {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--review-bg); color: var(--review-ink); padding: 3px 8px; border-radius: 6px; vertical-align: middle;
}
.source { font-size: 0.85rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.map-placeholder { min-height: 220px; border-radius: var(--radius); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); background: var(--surface); text-align: center; padding: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 96px; font-size: 0.9rem; color: var(--muted); }
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: var(--text); }

/* Floating WhatsApp */
.whats-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--whats); color: var(--whats-ink, #062a14); font-weight: 700; text-decoration: none; box-shadow: var(--shadow);
}
.whats-float svg { width: 22px; height: 22px; fill: currentColor; }

/* Review hub (private index) */
.hub { padding: 48px 0; }
.hub .card a { text-decoration: none; }
.hub .card h3 a { color: var(--primary); }

@media (min-width: 720px) {
  .hero { padding: 80px 0 64px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
  .trust ul { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: 40px; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.theme-base {
  /* Generic theme. Copy this block as .theme-<slug> and replace the values with the client palette. */
  --bg: #0f1419;
  --bg-alt: #161d25;
  --surface: #1c242e;
  --text: #f3efe8;
  --muted: #b5afa5;
  --primary: #d9561c;
  --primary-hover: #c04a16;
  --primary-ink: #ffffff;
  --accent: #f0a26b;
  --line: rgba(255, 255, 255, 0.1);
  --whats: #25d366;
}

.theme-zambotech {
  /* Light palette chosen by the owner on 2026-10-09: white and gray base, purple primary, gold and yellow accents, near-black text. Checked by tools/contraste.py. */
  --font-head: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #ffffff;
  --bg-alt: #f3f1f8;
  --surface: #ffffff;
  --text: #15121c;
  --muted: #5a5566;
  --primary: #5b21b6;
  --primary-hover: #4c1d95;
  --primary-ink: #ffffff;
  --accent: #7a5c00;
  --amber: #f5c518;
  --line: rgba(21, 18, 28, 0.14);
  --whats: #25d366;
  --whats-ink: #062a14;
  --example-bg: #fff3b0;
  --example-ink: #4a3b00;
}

/* Theme-specific components for the Zambotech page. */
.theme-zambotech h1, .theme-zambotech h2, .theme-zambotech h3 { font-weight: 800; letter-spacing: -0.01em; }
.theme-zambotech .brand img { border-radius: 0; background: transparent; }
.theme-zambotech .brand .brand-text { font-weight: 800; font-size: 1.15rem; }
.theme-zambotech .trust li::before { background: var(--amber); }
.theme-zambotech .hero { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero-figure.hero-art { background: transparent; box-shadow: none; aspect-ratio: auto; }
.hero-art svg { width: 100%; height: auto; max-width: 460px; margin-inline: auto; display: block; }
.badge-example {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--example-bg); color: var(--example-ink); padding: 4px 10px; border-radius: 6px;
}
.offer-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.offer-card .tagline { font-size: 0.85rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.segment-card .searches { font-size: 0.92rem; color: var(--muted); margin-top: 10px; }
.segment-card .searches strong { color: var(--text); }
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.report-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.report-head h3 { margin: 0; }
.report-metrics { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-metrics li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.report-metrics .value { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.report-metrics .label { display: block; font-size: 0.85rem; color: var(--muted); }
.report table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.report caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.report th, .report td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.area-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.92rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

@media (min-width: 720px) {
  .report-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
