/* The base look of a client site built by lib/client-site.js. Each client's
   site is then designed for them (Client websites, the draft); this file is the
   starting point, with --brand set from the site config's brandColor. */
:root {
  --brand: #0f766e;
  --ink: #14171a;
  --muted: #5b636b;
  --line: #e3e6e9;
  --paper: #ffffff;
  --soft: #f4f6f7;
  --night: #0e1215;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a[aria-current="page"] { color: var(--brand); }
.call { background: var(--brand); color: #fff; text-decoration: none; padding: 10px 16px; border-radius: 999px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px -8px var(--brand); }

.hero { background: radial-gradient(120% 90% at 50% -10%, #263038 0%, var(--night) 60%); color: #fff; padding: 72px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .lead { color: #c9d1d7; font-size: 1.15rem; max-width: 34em; }
.hero-img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 13px 22px; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px -12px var(--brand); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }

.band { padding: 64px 0; }
.band-alt { background: var(--soft); }
.lead { font-size: 1.1rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 24px 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 28px -20px rgba(0, 0, 0, 0.25); }
.card p { color: var(--muted); margin: 0; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 24px 0; }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review blockquote { margin: 0 0 12px; }
.review p { margin: 0; }
.review figcaption { font-weight: 600; }
.review figcaption span { font-weight: 400; color: var(--muted); }
.cta { background: var(--night); color: #fff; padding: 56px 0; text-align: center; }
.cta .ctas { justify-content: center; }

.form-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; }
.form-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 600; }
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.lead-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; scroll-margin-top: 90px; box-shadow: 0 12px 28px -22px rgba(0, 0, 0, 0.3); }
.lead-form:target { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.lead-form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }
.lead-form input, .lead-form select, .lead-form textarea { display: block; width: 100%; margin-top: 6px; font: 1rem var(--font); padding: 11px 12px; border: 1px solid #c9ced3; border-radius: 10px; background: #fff; color: var(--ink); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.lead-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.form-status { margin: 10px 0 0; font-weight: 600; }
.form-status[data-state="ok"] { color: #15803d; }
.form-status[data-state="error"] { color: #9a3412; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; width: 40%; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); }

.foot { background: var(--night); color: #c9d1d7; padding: 40px 0 96px; font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.foot a { color: #fff; }
.foot-nav { display: flex; flex-direction: column; gap: 6px; }
.call-bar { display: none; }

@media (max-width: 820px) {
  .top nav { display: none; }
  .hero { padding: 48px 0; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .call-bar { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 6; background: var(--brand); color: #fff; text-align: center; padding: 14px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); }
}
