/*
  Theme #2 — Modern (ZIP-inspired)
  -------------------------------------------------
  Visual cues:
  - Roboto-like system font stack
  - Accent orange around #e6652f
  - Charcoal nav around #34363b
  - Whitespace, rounded cards, simple sections
*/

:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --text: #111317;
  --muted: #5d616b;
  --border: #e2e5ea;

  --primary: #e6652f;
  --primary-contrast: #ffffff;

  --header-bg: #34363b;
  --header-text: #ffffff;

  --focus: #2b8aeb;

  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 14px 40px rgba(17, 19, 23, 0.10);

  --container: 1120px;
  --section-pad: clamp(2.25rem, 5vw, 4.5rem);
  --gutter: clamp(1rem, 3vw, 1.75rem);

  --h1: clamp(2.1rem, 4vw, 3.4rem);
  --h2: clamp(1.6rem, 2.4vw, 2.2rem);
  --h3: clamp(1.15rem, 1.6vw, 1.35rem);
  --body: 1rem;
  --small: 0.95rem;
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 25% 15%, rgba(230, 101, 47, 0.18), transparent 55%),
    radial-gradient(680px 420px at 82% 20%, rgba(52, 54, 59, 0.16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Utils */
.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}
.section {
  padding: var(--section-pad) 0;
}
section { scroll-margin-top: 6.5rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.muted { color: var(--muted); }

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* Typography */
h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--h1); margin: 0 0 0.75rem; }
h2 { font-size: var(--h2); margin: 0 0 1rem; }
h3 { font-size: var(--h3); margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }

/* Header — transparent, solid on scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  transition: background 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled {
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(17, 19, 23, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
}
.brand {
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: "Inter", "SF Pro Display", ui-sans-serif, system-ui, sans-serif;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  text-decoration: none;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  font-family: "Inter", "SF Pro Display", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: background 140ms ease, border-color 140ms ease;
}
.site-nav a:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--border);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.header-phone { font-weight: 900; letter-spacing: 0.01em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }

/* Floating theme widget — hidden until scroll */
.theme-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9000;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.theme-widget.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.theme-widget-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(17, 19, 23, 0.16);
  transition: background 140ms ease;
}
.theme-widget-toggle:hover { background: var(--surface-2); }
.theme-widget-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.theme-widget-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  box-shadow: 0 14px 40px rgba(17, 19, 23, 0.14);
}
.theme-widget-panel.is-open { display: block; }
.theme-widget-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.theme-widget-option {
  display: flex;
  align-items: center;
  position: relative;
}
.theme-widget-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.theme-widget-option span {
  display: block;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.theme-widget-option span:hover { background: var(--surface-2); }
.theme-widget-option input:checked + span {
  background: var(--primary);
  color: var(--primary-contrast);
}
.theme-widget-option input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}


/* Hero */
.hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero-inner {
  display: grid;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  grid-template-columns: 1fr;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.kicker {
  margin: 0 0 0.6rem;
  font-weight: 900;
  color: rgba(17, 19, 23, 0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.hero-lede {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-bullets {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
}
.hero-bullets li { margin: 0.3rem 0; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.fineprint {
  margin: 1rem 0 0;
  font-size: var(--small);
  color: var(--muted);
  max-width: 70ch;
}
.hero-visual {
  display: grid;
  gap: 1rem;
}
.hero-visual-card {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}
.hero-visual-img {
  display: block;
  width: 100%;
  max-height: 480px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: var(--radius);
}

.price-inline { font-weight: 950; font-size: 1.3rem; color: var(--primary); }

/* Prose */
.prose p { color: var(--muted); max-width: 70ch; }

/* Cards & grids */
.feature-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 10px 22px rgba(17, 19, 23, 0.06);
}
.card-title { margin-bottom: 0.35rem; }
.card-text { margin: 0.2rem 0 0; color: var(--muted); }

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.step-title { margin: 0 0 0.35rem; }
.step-text { margin: 0; color: var(--muted); }

/* Pricing */
.pricing { margin-top: 1rem; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 10px 22px rgba(17, 19, 23, 0.06);
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.price-label { margin: 0; font-weight: 900; }
.price-note { margin: 0.1rem 0 0; color: var(--muted); }
.price { margin: 0; font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; }
.pricing-meta { margin: 0.9rem 0 0; padding-left: 1.1rem; color: var(--muted); }

/* FAQ */
.faq { margin-top: 1rem; display: grid; gap: 0.75rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.1rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.05rem;
  font-weight: 900;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-panel { padding: 0 1.05rem 1rem; color: var(--muted); }
.faq-panel p { margin: 0; }
.faq-item[open] { box-shadow: 0 10px 22px rgba(17, 19, 23, 0.06); }

/* Link styling */
.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 900;
}
.link:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner { display: grid; gap: 0.5rem; }
.footer-line { margin: 0; font-weight: 900; }

/* Mobile — small screens */
@media (max-width: 599px) {
  .header-inner {
    padding: 0.75rem 0;
    gap: 0.5rem 0.75rem;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 0.25rem;
  }
  .site-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.95rem;
  }
  .brand { font-size: 1.05rem; }
  .hero {
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }
  :root { --gutter: 1.25rem; }
  .hero-visual { order: -1; }
  .hero-visual-img {
    max-height: 280px;
  }
  h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero-lede { font-size: 0.98rem; }
  .hero-bullets { padding-left: 1rem; font-size: 0.95rem; }
  .btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    min-height: 44px;
  }
  .card { padding: 0.9rem; }
  .faq-item summary { padding: 0.85rem 0.9rem; font-size: 0.95rem; }
}

/* Breakpoints */
@media (min-width: 780px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}
