/* Site Studio template styles. Change the brand in :root only; everything else reads these tokens. */
:root {
  --brand: #2c3e50;        /* slate: headings, links, header bar */
  --brand-dark: #1b2733;
  --accent: #b3261e;       /* roof-tile red: call-to-action buttons */
  --accent-dark: #8a1c16;
  --ink: #1d1d1f;
  --muted: #4a4a4f;        /* body copy secondary (8.8:1 on white) */
  --bg: #ffffff;
  --bg-soft: #f2f3f5;
  --line: #d6dae0;
  --radius: 10px;
  --max: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1.0625rem/1.6 var(--font); color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Skip link: hidden until focused */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; color: #fff; }

/* Preview banner (required on every preview, see CLAUDE.md). Remove on launch. */
.preview-banner { background: #1f1f1f; color: #fff; text-align: center; font-size: .9rem; padding: .5rem 1rem; }
.preview-banner strong { color: #ffd88a; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .9rem; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; padding: .35rem 0; display: inline-block; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  padding: .85rem 1.4rem; border-radius: var(--radius); border: 2px solid var(--accent); min-height: 48px; font-size: 1rem; cursor: pointer; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* Sections */
section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.soft { background: var(--bg-soft); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 760px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card p { color: var(--muted); margin: 0; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.facts strong { display: inline-block; min-width: 6.5rem; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .6rem; }

/* Call-to-action band */
.cta-band { background: var(--brand); color: #fff; text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .btn { background: #fff; color: var(--brand-dark); border-color: #fff; }
.cta-band .btn:hover { background: var(--bg-soft); color: var(--brand-dark); }
.cta-band :focus-visible { outline-color: #fff; }

/* Forms */
form { display: grid; gap: 1rem; max-width: 36rem; }
label { font-weight: 600; display: block; margin-bottom: .3rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
input, select, textarea { width: 100%; font: inherit; padding: .7rem .8rem; border: 2px solid #8a96a0; border-radius: 8px; background: #fff; color: var(--ink); min-height: 48px; }
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--brand); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0; }
legend { font-weight: 700; padding: 0 .3rem; }
.choice { display: flex; gap: .6rem; align-items: center; margin: .4rem 0; font-weight: 400; }
.choice input { width: 1.3rem; min-height: 1.3rem; margin: 0; }
.form-note { padding: .9rem 1rem; border-radius: 8px; background: #e7f3ec; color: #14532d; border: 1px solid #9ccfb0; }
.form-note[hidden] { display: none; }

/* Footer */
.site-footer { background: #15202b; color: #e8edf1; padding-block: 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

/* Sticky call button on phones: the main CTA is always one tap away */
.call-bar { position: sticky; bottom: 0; display: none; background: var(--accent); text-align: center; z-index: 50; }
.call-bar a { display: block; color: #fff; font-weight: 700; text-decoration: none; padding: .9rem; }
.call-bar a:focus-visible { outline-color: #fff; outline-offset: -6px; }
@media (max-width: 640px) { .call-bar { display: block; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
