/* ==========================================================================
   EverRestore Solutions LLC — Design System
   Navy = stability & competence.  Teal = water, clean, restored.
   Amber = urgency, reserved exclusively for the emergency call action.
   ========================================================================== */

:root {
  --navy-900: #0A1B2A;
  --navy-800: #0D2438;
  --navy-700: #133150;
  --navy-100: #E7EEF4;

  --teal-600: #0B8478;
  --teal-500: #12A594;
  --teal-400: #2FC0AE;
  --teal-50:  #E6F7F4;

  --amber-500: #E8863B;
  --amber-600: #CE6F27;

  --ink:      #10202E;
  --body:     #43596B;
  --muted:    #6C8296;
  --line:     #DCE5EC;
  --surface:  #F4F8FA;
  --white:    #FFFFFF;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(13,36,56,.08), 0 1px 2px rgba(13,36,56,.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.125rem); margin-top: 2.5rem; }
h3 { font-size: 1.1875rem; margin-top: 1.75rem; }
p { margin: 0 0 1.15rem; }
a { color: var(--teal-600); }
strong { color: var(--ink); font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ── Skip link ─────────────────────────────────────────── */
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy-800); color: #fff; padding: 12px 20px; }
.skip:focus { left: 0; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo svg { width: 38px; height: 38px; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-weight: 800; font-size: 1.185rem; color: var(--navy-800); letter-spacing: -.035em; }
.logo-name em { font-style: normal; color: var(--teal-600); }
.logo-tag { font-size: .625rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--navy-700); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-600); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--radius);
  font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  min-height: 52px;
}
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--amber-500); color: #fff; }
.btn-call:hover { background: var(--amber-600); }
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: #096F65; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.10); }
.btn-outline { border-color: var(--line); color: var(--navy-700); background: #fff; }
.btn-outline:hover { border-color: var(--teal-500); color: var(--teal-600); }
.btn svg { width: 18px; height: 18px; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(18,165,148,.20), transparent 62%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff; padding: 84px 0 76px;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { font-size: 1.1875rem; color: #C3D4E1; max-width: 56ch; margin-bottom: 2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(18,165,148,.15); border: 1px solid rgba(47,192,174,.35);
  color: var(--teal-400);
  padding: 7px 15px; border-radius: 999px;
  font-size: .8125rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:.35 } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }

/* ── Page header (interior pages) ──────────────────────── */
.page-head { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; padding: 58px 0 52px; }
.page-head h1 { color: #fff; margin-bottom: .4rem; }
.page-head p { color: #C3D4E1; max-width: 60ch; margin: 0; font-size: 1.0625rem; }

/* ── Sections ──────────────────────────────────────────── */
section { padding: 68px 0; }
section.tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); font-size: 1.0625rem; margin: 0; }

/* ── Cards ─────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 46px; height: 46px; border-radius: 11px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; margin-bottom: 16px; }
.card-icon svg { width: 24px; height: 24px; }

/* ── Steps ─────────────────────────────────────────────── */
.steps { counter-reset: s; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { counter-increment: s; position: relative; padding-top: 52px; }
.step::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9375rem;
}
.step h3 { margin: 0 0 .35rem; font-size: 1.0625rem; }
.step p { font-size: .9375rem; margin: 0; color: var(--muted); }

/* ── Lists ─────────────────────────────────────────────── */
.ticks { list-style: none; padding: 0; margin: 0 0 1.15rem; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 16px; height: 9px; border-left: 2.5px solid var(--teal-500); border-bottom: 2.5px solid var(--teal-500);
  transform: rotate(-45deg);
}

/* ── Tables ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .96875rem; min-width: 420px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); color: var(--ink); font-weight: 650; font-size: .875rem; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }

/* ── Callout ───────────────────────────────────────────── */
.callout { background: var(--teal-50); border-left: 4px solid var(--teal-500); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 1.75rem 0; }
.callout p:last-child { margin-bottom: 0; }

/* ── CTA band ──────────────────────────────────────────── */
.cta-band { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; text-align: center; padding: 66px 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #C3D4E1; max-width: 52ch; margin: 0 auto 1.85rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ── Phone display ─────────────────────────────────────── */
.phone-xl { display: inline-block; font-size: clamp(1.85rem, 5.5vw, 2.75rem); font-weight: 800; color: var(--navy-800); text-decoration: none; letter-spacing: -.03em; }
.phone-xl:hover { color: var(--teal-600); }

/* ── Forms ─────────────────────────────────────────────── */
.form { display: grid; gap: 17px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; width: 100%; min-height: 52px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(18,165,148,.14); }
.form-note { font-size: .875rem; color: var(--muted); }

/* ── Legal pages ───────────────────────────────────────── */
.legal { padding: 56px 0 72px; }
.legal h2 { font-size: 1.3125rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: .5rem; }
.updated { color: var(--muted); font-size: .9375rem; margin-bottom: 2.5rem; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--navy-900); color: #93AABD; padding: 56px 0 30px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: .8125rem; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #93AABD; text-decoration: none; }
.site-footer a:hover { color: var(--teal-400); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .logo-name { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: .875rem; color: #6C8296; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* ── Mobile ────────────────────────────────────────────── */
.mobile-call {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  background: var(--amber-500); color: #fff;
  text-align: center; text-decoration: none;
  padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
  font-weight: 700; font-size: 1.0625rem;
  box-shadow: 0 -3px 14px rgba(10,27,42,.22);
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header-inner { height: 66px; }
  .hero { padding: 58px 0 52px; }
  section { padding: 52px 0; }
  body { padding-bottom: 62px; }
  .mobile-call { display: block; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
}

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