/* Best Prices Roofing — Design DNA
   Register: BRAND
   Mood: itemized-estimate honesty — a roofing bid written out line by line on
   a dark job-site clipboard, not a glossy sales brochure.
   Anchor refs: a torn paper estimate ticket, a carpenter's pencil tally on
   plywood, a brass tape-measure clip
   Color: dark espresso-brown canvas (distinct dark register from the light
   Missouri City Roofing build in this same batch), warm cream ink, copper/brass
   brand accent, deep rust for CTA emphasis (Committed dark palette, warm-only —
   no blue/steel-gray)
   Type: IBM Plex Mono (spec-sheet/estimate display) + Public Sans (body)
   Layout: fixed left rail (nav + call CTA + price promise, persistent) with
   scrolling main content — distinct from every other layout in this batch
   Motion: calm, slow fade-up — quint easing
   Signature element: itemized price-tag / estimate-ticket card with a torn
   bottom edge, listing sample line items
*/

:root {
  --canvas: oklch(21% 0.022 50);
  --canvas-alt: oklch(26% 0.025 50);
  --panel: oklch(29% 0.028 50);
  --ink: oklch(92% 0.012 70);
  --ink-soft: oklch(74% 0.015 65);
  --copper: oklch(70% 0.13 60);
  --copper-dark: oklch(58% 0.13 58);
  --rust: oklch(48% 0.15 35);
  --rust-dark: oklch(40% 0.14 33);
  --line: oklch(38% 0.02 55);
  --rail-width: 264px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.container { max-width: 900px; margin: 0 auto; padding: 0 40px; }

/* ---- Fixed left rail ---- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-width);
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
}
.rail-brand { font-family: 'IBM Plex Mono', monospace; font-size: 18px; font-weight: 700; }
.rail-brand span { color: var(--copper); }
.rail-nav { display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; }
.rail-nav a { color: var(--ink-soft); transition: color 0.25s ease; }
.rail-nav a:hover { color: var(--copper); }
.rail-cta {
  background: var(--copper);
  color: oklch(18% 0.02 50) !important;
  padding: 13px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.rail-cta:hover { background: var(--copper-dark); }
.rail-promise {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}
.rail-promise strong { display: block; color: var(--copper); font-family: 'IBM Plex Mono', monospace; font-size: 15px; margin-bottom: 6px; }

.main { margin-left: var(--rail-width); }

/* ---- Hero ---- */
.hero { padding: 72px 40px 0; max-width: 900px; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 16px;
}
.hero-copy h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.12;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-copy .sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.18s forwards;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.34s forwards; }

.btn-primary {
  background: var(--rust);
  color: white;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-block;
  transition: background 0.25s ease;
}
.btn-primary:hover { background: var(--rust-dark); }
.btn-secondary {
  border: 1.5px solid var(--line);
  padding: 13px 25px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.btn-secondary:hover { border-color: var(--copper); color: var(--copper); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Signature: torn-edge estimate ticket */
.estimate-ticket {
  max-width: 340px;
  margin: 48px 40px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px 4px 0 0;
  padding: 22px 24px 26px;
  position: relative;
}
.estimate-ticket h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper); margin-bottom: 14px; }
.estimate-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.estimate-row:last-child { border-bottom: none; }
.estimate-torn {
  height: 14px;
  background: repeating-linear-gradient(115deg, var(--canvas) 0 8px, transparent 8px 16px);
  margin-top: 4px;
}

/* ---- Sections ---- */
section { padding: 68px 0; }
.section-alt { background: var(--canvas-alt); }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12.5px;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 16px; max-width: 600px; }
.section-head p { color: var(--ink-soft); font-size: 16px; max-width: 540px; }

/* ---- Services list ---- */
.services-list { margin-top: 40px; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.service-row .num { font-family: 'IBM Plex Mono', monospace; color: var(--copper); font-size: 14px; }
.service-row h3 { font-size: 17px; margin-bottom: 6px; font-weight: 600; }
.service-row p { font-size: 14.5px; color: var(--ink-soft); }

/* ---- Trust strip ---- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; }
.trust-strip .big-rating { font-family: 'IBM Plex Mono', monospace; font-size: clamp(24px, 4vw, 34px); color: var(--copper); margin-bottom: 8px; }
.trust-strip p { color: var(--ink-soft); font-size: 14.5px; max-width: 520px; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--rust);
  color: white;
  padding: 60px 40px;
  border-radius: 8px;
  margin: 0 40px;
}
.cta-band h2 { color: white; font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 14px; }
.cta-band p { color: oklch(92% 0.03 40); margin-bottom: 24px; }
.cta-band .btn-primary { background: var(--canvas); color: var(--copper); }
.cta-band .btn-primary:hover { background: oklch(16% 0.02 50); }

/* ---- Footer ---- */
footer {
  padding: 36px 40px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---- Inner page layout ---- */
.page-header { padding: 56px 40px 36px; max-width: 700px; }
.page-header h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
.page-header p { font-size: 17px; color: var(--ink-soft); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  max-width: 860px;
  margin: 0 40px 56px;
}
.stat-strip .stat { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { font-family: 'IBM Plex Mono', monospace; font-size: 22px; display: block; color: var(--copper); margin-bottom: 6px; }
.stat span { font-size: 13.5px; color: var(--ink-soft); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
  margin: 0 40px 72px;
}
.contact-card { border: 1px solid var(--line); border-radius: 8px; padding: 32px; background: var(--panel); }
.contact-card a.phone { font-family: 'IBM Plex Mono', monospace; font-size: 24px; color: var(--copper); display: block; margin: 8px 0 22px; }
.contact-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact-row:last-child { border-bottom: none; }

form.light-form { display: flex; flex-direction: column; gap: 14px; }
form.light-form label { font-size: 13px; font-weight: 700; color: var(--ink); }
form.light-form input, form.light-form select, form.light-form textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--canvas);
  color: var(--ink);
}
form.light-form textarea { resize: vertical; min-height: 84px; }
form.light-form button {
  background: var(--rust);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 13px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.25s ease;
}
form.light-form button:hover { background: var(--rust-dark); }

@media (max-width: 900px) {
  .rail { position: static; width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; }
  .rail-nav { flex-direction: row; gap: 20px; }
  .rail-promise { display: none; }
  .main { margin-left: 0; }
  .services-list .service-row { grid-template-columns: 1fr; gap: 6px; }
  .stat-strip, .contact-layout { grid-template-columns: 1fr; margin-left: 40px; margin-right: 40px; }
  .cta-band { margin: 0 20px; }
}
