/* CR Restoration Group — one-page site */

:root {
  --navy-950: #061528;
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #13315c;
  --blue-700: #075985;
  --blue-600: #0369a1;
  --blue-100: #e0f2fe;
  --blue-50: #f0f9ff;
  --cyan-300: #67e8f9;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --ink: #0f172a;
  --muted: #475569;
  --on-dark: #ffffff;
  --on-dark-muted: #cbd5e1;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f1f6fa;
  --placeholder-bg: #fef3c7;
  --placeholder-ink: #78350f;
  --error: #b91c1c;
  --success: #15803d;

  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06), 0 1px 3px rgb(15 23 42 / 0.08);
  --shadow: 0 10px 30px -12px rgb(15 23 42 / 0.25);
  --shadow-lg: 0 24px 60px -20px rgb(6 21 40 / 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
  --mobile-cta-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  padding-bottom: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom));
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue-600); }
img, svg { display: block; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan-300); }

/* Placeholder text that must be replaced before launch */
.ph {
  background: var(--placeholder-bg); color: var(--placeholder-ink);
  border-bottom: 2px dashed #d97706; padding: 0 4px; border-radius: 3px;
}
.ph-dark { background: rgb(254 243 199 / 0.15); color: #fde68a; border-bottom-color: #fbbf24; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.3em;
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.2;
  border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-lg { min-height: 56px; padding: 0.85em 1.6em; font-size: 1.125rem; }
.btn-block { width: 100%; }

.btn-emergency { background: var(--orange-700); color: #fff; box-shadow: 0 6px 18px -8px rgb(194 65 12 / 0.7); }
.btn-emergency:hover { background: var(--orange-800); }

.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.45); }
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.1); border-color: #fff; }

.btn-outline { background: #fff; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline:hover { background: var(--blue-50); }

/* ---------- Test banner + header ---------- */
.test-banner {
  background: var(--placeholder-bg); color: var(--placeholder-ink);
  font-size: 0.875rem; font-weight: 600; text-align: center; padding: 6px 16px;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-800); margin-right: auto; }
.brand-mark { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--font-display); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--blue-600); margin-top: 4px; }

.site-nav { display: none; gap: 4px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 10px 12px; border-radius: var(--radius-sm);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.site-nav a:hover { background: var(--blue-50); color: var(--blue-600); }

.header-call { min-height: 44px; min-width: 44px; padding: 0.55em 0.75em; }
.header-call-label { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(900px 500px at 85% -10%, rgb(56 189 248 / 0.22), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgb(3 105 161 / 0.35), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  padding: 48px 0 96px;
}
.hero-grid { display: grid; gap: 40px; align-items: center; position: relative; z-index: 1; }

.eyebrow-live {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.9375rem; color: var(--cyan-300);
  background: rgb(103 232 249 / 0.1); border: 1px solid rgb(103 232 249 / 0.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgb(74 222 128 / 0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0.55); }
  70% { box-shadow: 0 0 0 10px rgb(74 222 128 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0); }
}

.hero h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); font-weight: 700; text-wrap: balance; }
.hero-lead { margin-top: 18px; font-size: 1.1875rem; color: var(--on-dark-muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { flex: 1 1 240px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-weight: 600; color: #e2e8f0; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .icon { color: #4ade80; }

.first-steps {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--orange-700);
}
.first-steps-kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-700); }
.first-steps h2 { font-size: 1.375rem; margin-top: 6px; }
.first-steps ol { counter-reset: step; margin-top: 18px; display: grid; gap: 14px; }
.first-steps li { counter-increment: step; position: relative; padding: 3px 0 0 46px; min-height: 32px; color: var(--muted); }
.first-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem;
}
.first-steps li strong { color: var(--ink); }
.first-steps-call {
  display: block; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-weight: 700; color: var(--orange-700); text-decoration: none;
}
.first-steps-call:hover { text-decoration: underline; }

.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 56px; fill: var(--surface); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--surface-soft); }
.section-dark {
  color: var(--on-dark);
  background:
    radial-gradient(800px 400px at 100% 0%, rgb(56 189 248 / 0.16), transparent 60%),
    var(--navy-800);
}

.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px; }
.eyebrow-light { color: var(--cyan-300); }
.section h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 700; text-wrap: balance; }
.lead { margin-top: 14px; font-size: 1.1875rem; color: var(--muted); }
.section-dark .lead { color: var(--on-dark-muted); }

/* Services */
.card-grid { display: grid; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.card:hover { border-color: #bae6fd; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); margin-bottom: 16px; }
.card-icon .icon { width: 24px; height: 24px; }
.card h3 { font-size: 1.1875rem; font-weight: 600; }
.card p { margin-top: 8px; color: var(--muted); }

/* Process */
.steps { display: grid; gap: 16px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--blue-600); box-shadow: var(--shadow-sm); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: var(--blue-600); line-height: 1; }
.step h3 { margin-top: 14px; font-size: 1.1875rem; font-weight: 600; }
.step p { margin-top: 8px; color: var(--muted); }

/* Insurance */
.split { display: grid; gap: 36px; align-items: center; }
.split .btn { margin-top: 26px; }
.checklist { display: grid; gap: 12px; background: var(--surface-soft); border-radius: var(--radius-lg); padding: 20px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.checklist .icon { color: #fff; background: var(--success); border-radius: 50%; padding: 4px; width: 28px; height: 28px; stroke-width: 3; }
.checklist strong { display: block; font-size: 1.0625rem; }
.checklist span { color: var(--muted); }

/* About */
.owner-card {
  display: grid; gap: 24px; align-items: start;
  background: var(--surface); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-sm);
  max-width: 900px;
}
.owner-avatar {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: 0.02em;
  box-shadow: 0 0 0 4px var(--blue-100);
}
.owner-card p { margin-top: 14px; color: var(--muted); }
.owner-card p strong { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 180ms var(--ease); }
.faq details[open] { border-color: #bae6fd; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; min-height: 56px; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2.5px solid var(--blue-600); border-bottom: 2.5px solid var(--blue-600);
  transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-info .btn { margin-top: 26px; }
.contact-facts { margin-top: 28px; display: grid; gap: 12px; color: var(--on-dark-muted); }
.contact-facts li { display: flex; gap: 10px; align-items: center; }
.contact-facts .icon { color: var(--cyan-300); }
.contact-facts a { color: inherit; text-decoration: underline; text-decoration-color: rgb(203 213 225 / 0.5); text-underline-offset: 3px; }
.contact-facts a:hover { color: #fff; text-decoration-color: currentColor; }

.form-card { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 1.375rem; }
.form-note { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }
.field { margin-top: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #cbd5e1; border-radius: 10px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgb(3 105 161 / 0.18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 6px; color: var(--error); font-size: 0.9375rem; font-weight: 600; }
.form-card .btn-block { margin-top: 24px; }

.text-card .card-icon { margin-bottom: 14px; }
.text-tips { margin-top: 18px; display: grid; gap: 10px; }
.text-tips li { position: relative; padding-left: 28px; color: var(--muted); }
.text-tips li::before {
  content: ""; position: absolute; left: 4px; top: 0.45em; width: 11px; height: 6px;
  border-left: 2.5px solid var(--success); border-bottom: 2.5px solid var(--success); transform: rotate(-45deg);
}
.text-card .btn-block { margin-top: 12px; }
.text-card .btn-primary { margin-top: 26px; }

.form-success { text-align: center; padding: 24px 8px; }
.form-success:focus { outline: none; }
.form-success .icon { width: 56px; height: 56px; color: var(--success); margin: 0 auto 14px; }
.form-success p { margin-top: 8px; color: var(--muted); }
.form-test-note { display: inline-block; margin-top: 16px !important; font-size: 0.875rem; background: var(--placeholder-bg); color: var(--placeholder-ink) !important; padding: 4px 10px; border-radius: 6px; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 56px 0 24px; font-size: 1rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid p + p, .footer-grid p + address { margin-top: 6px; }
.site-footer address { font-style: normal; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: #fff; margin-bottom: 8px; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 8px; }
.site-footer a { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.9375rem; }

/* Mobile call bar */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgb(15 23 42 / 0.25);
}
.mobile-cta .btn { min-height: 52px; padding: 0.6em 0.8em; }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .owner-card { grid-template-columns: auto 1fr; padding: 36px; gap: 32px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .header-call { padding: 0.55em 1em; }
  .header-call-label { display: inline; }
  .header-call-sr { display: none; }
  .hero { padding: 72px 0 120px; }
  .hero-wave { height: 80px; }
  .section { padding: 96px 0; }
  .first-steps { padding: 32px; }
  .form-card { padding: 36px; }
}

@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

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