/* Hester's Roofing & Coating — repair landing page
   Palette sampled from Will's camo pattern (PIL cluster averages)
   plus a high-contrast tan CTA from the brown family. */
:root {
  --black: #040807;
  --forest: #172C21;
  --brown: #4C3922;
  --tan: #C4A36A;
  --tan-hover: #B89554;
  --ink: #040807;
  --ink-soft: #172C21;
  --paper: #F4F1EA;
  --paper-2: #E8E2D6;
  --white: #ffffff;
  --line: #D6CFC2;
  --danger: #8a1f11;
  --ok: #172C21;
  --shadow: 0 10px 30px rgba(4, 8, 7, 0.14);
  --header-h: 72px;
  --radius: 10px;
  --font-body: "Open Sans", system-ui, sans-serif;
  --font-head: "Roboto", system-ui, sans-serif;
  --camo: url("/assets/camo.jpg");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--white);
  line-height: 1.55;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
a:hover { color: var(--forest); }
h1, h2, h3, .footer-head {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.7rem, 5.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
p { margin: 0 0 1em; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.wrap.narrow { width: min(720px, calc(100% - 32px)); }
.lede { font-size: 1.05rem; max-width: 46rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background-color: var(--black);
  background-image: linear-gradient(rgba(4, 8, 7, 0.9), rgba(4, 8, 7, 0.92)), var(--camo);
  background-size: auto, 720px auto;
  background-position: center;
  border-bottom: 1px solid rgba(196, 163, 106, 0.28);
  color: var(--white);
}
.header-inner {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); flex: 0 0 auto; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.brand-text strong { font-family: var(--font-head); font-size: 0.92rem; letter-spacing: 0; text-transform: none; }
.header-nav { display: none; gap: 18px; margin-left: auto; }
.header-nav a { text-decoration: none; color: var(--white); font-weight: 600; font-size: 0.92rem; }
.header-nav a:hover { color: var(--tan); }
.header-actions { display: flex; gap: 8px; margin-left: auto; }
.header-actions .btn-primary { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  line-height: 1.2;
  font-size: 0.95rem;
}
.btn-lg { padding: 16px 22px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--tan); color: var(--black); }
.btn-primary:hover, .btn-primary:focus { background: var(--tan-hover); color: var(--black); }
.btn-call { background: var(--white); color: var(--black); }
.btn-call:hover, .btn-call:focus { background: var(--paper); color: var(--black); }
.btn-call-ghost { background: transparent; color: var(--tan); border: 2px solid var(--tan); }
.btn-call-ghost:hover { background: rgba(196, 163, 106, 0.14); color: var(--tan); }
.btn-icon { display: inline-flex; }

.hero { position: relative; color: #fff; min-height: 92vh; display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 7, 0.62) 0%, rgba(4, 8, 7, 0.78) 45%, rgba(4, 8, 7, 0.94) 100%);
}
.hero-content { position: relative; width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 40px; }
.hero .eyebrow {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  background: var(--tan);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.hero h1 { color: #fff; }
.hero-offer { font-size: 1.12rem; max-width: 40rem; }
.hero-bullets { margin: 0 0 24px; padding: 0; list-style: none; }
.hero-bullets li { position: relative; padding: 6px 0 6px 28px; }
.hero-bullets li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 14px; height: 14px;
  background: var(--tan);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--tan), inset 0 0 0 5px var(--ink);
}
.hero-proof { margin: 0 0 16px; }
.hero-rating {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.hero-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hero-badges li {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(196, 163, 106, 0.75);
  background: rgba(4, 8, 7, 0.35);
  padding: 4px 9px;
  border-radius: 99px;
}
.guarantee-box {
  background: #E8D5A8;
  color: #4C3922;
  border-left: 4px solid var(--tan);
  border-radius: 8px;
  padding: 12px 14px;
  max-width: 40rem;
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.cta-micro {
  margin: 0 0 14px;
  font-size: 0.88rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.9);
}
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 8px 0;
  list-style: none; margin: 0; padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.trust-strip li {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,0.25);
}
.trust-strip li:first-child { padding-left: 0; }
.trust-strip li:last-child { border-right: 0; }

.section { padding: 72px 0; }
.section-alt {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(4, 8, 7, 0.4), rgba(4, 8, 7, 0.4)), var(--camo);
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 14px, 100% 14px;
  background-position: top center, top center;
}
.section-cta { margin: 32px 0 0; }
.split { display: grid; gap: 36px; align-items: center; }
.photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 36px; border-bottom: 1px solid var(--line); font-weight: 600; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  width: 24px; height: 24px;
  background: var(--ink); color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.steps li {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--font-head); font-weight: 700; margin-bottom: 10px;
}
.steps h3 { margin-bottom: 0.35em; }
.steps p { margin: 0; }

.cards { display: grid; gap: 16px; margin-top: 24px; }
.card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--tan);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}
.card p { margin: 0; }

.quotes { display: grid; gap: 16px; margin-top: 24px; }
blockquote {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border-left: 4px solid var(--tan);
}
blockquote p { margin: 0 0 12px; font-size: 1.02rem; }
blockquote footer { color: var(--ink); font-weight: 700; font-size: 0.9rem; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--ink);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brown); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }

.section-form {
  background-color: var(--black);
  background-image: linear-gradient(rgba(4, 8, 7, 0.4), rgba(4, 8, 7, 0.4)), var(--camo);
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 14px, 100% 14px;
  background-position: top center, top center;
  color: #fff;
}
.section-form h2, .section-form .lede { color: #fff; }
.form-micro {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--tan);
  margin: 0 0 16px;
}
.optional { font-style: normal; font-weight: 600; color: #555; }
.footer-cta { margin: 16px 0 0; }
#lead-form {
  display: grid; gap: 16px;
  background: #fff; color: var(--ink-soft);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-top: 8px;
}
#lead-form label, #lead-form fieldset { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; }
#lead-form label span, #lead-form legend { font-weight: 700; color: var(--ink); font-size: 0.92rem; }
#lead-form input[type="text"],
#lead-form input[type="tel"],
#lead-form textarea,
#lead-form select {
  font: inherit;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-soft);
  width: 100%;
}
#lead-form input:focus, #lead-form textarea:focus, #lead-form select:focus {
  outline: 2px solid var(--brown);
  outline-offset: 1px;
  background: #fff;
}
#lead-form label.check, #lead-form label.radio {
  display: flex; align-items: flex-start; gap: 10px; font-weight: 400;
  grid-template-columns: unset;
}
#lead-form label.check span, #lead-form label.radio { font-weight: 400; font-size: 0.9rem; }
#lead-form input[type="checkbox"], #lead-form input[type="radio"] { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
#lead-form fieldset { display: flex; flex-wrap: wrap; gap: 16px; }
.hp { position: absolute !important; left: -9999px !important; height: 0 !important; width: 0 !important; opacity: 0 !important; }
.form-status { min-height: 1.4em; font-weight: 600; margin: 0; }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--ok); }
.fine-print { font-size: 0.88rem; margin: 0; color: #555; }

.site-footer {
  background-color: var(--black);
  background-image: linear-gradient(rgba(4, 8, 7, 0.4), rgba(4, 8, 7, 0.4)), var(--camo);
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 14px, 100% 14px;
  background-position: top center, top center;
  color: var(--paper-2);
  padding: 48px 0 32px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--tan); }
.footer-grid { display: grid; gap: 28px; }
.footer-head { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.site-footer img { width: 72px; height: 72px; margin-bottom: 12px; border-radius: 50%; }

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(4, 8, 7, 0.97);
  border-top: 1px solid rgba(196, 163, 106, 0.28);
}
.mobile-bar .btn { width: 100%; min-height: 52px; }
.mobile-bar .btn-call {
  background: var(--tan);
  color: var(--black);
  padding: 8px 10px;
}
.mobile-bar .btn-call:hover,
.mobile-bar .btn-call:focus { background: var(--tan-hover); color: var(--black); }
.mobile-bar .btn-primary {
  background: var(--white);
  color: var(--black);
  font-size: 0.84rem;
  padding: 8px 8px;
}
.mobile-bar-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  gap: 1px;
}
.mobile-bar-kicker { font-size: 0.78rem; font-weight: 800; }
.mobile-bar .js-phone-label { font-size: 0.95rem; font-weight: 800; }

.thanks { padding: 40px 0 80px; }
.thanks-page { padding-bottom: 0; }

@media (max-width: 799px) {
  .hero { min-height: auto; }
  .hero-content { padding: 16px 0 calc(16px + 84px + env(safe-area-inset-bottom)); }
  .hero h1 { font-size: 1.5rem; }
  .hero-offer { font-size: 0.98rem; }
  .hero-bullets { margin-bottom: 12px; }
  .hero-bullets li { padding: 3px 0 3px 26px; }
  .micro-guarantee { margin: 0 0 12px; padding: 8px 10px; font-size: 0.9rem; }
  .guarantee-box { margin: 0 0 12px; padding: 10px 12px; font-size: 0.9rem; }
  .hero-proof { margin: 0 0 10px; }
  .hero-rating { font-size: 0.92rem; }
  .hero-ctas { margin-bottom: 8px; gap: 8px; }
  .hero-ctas .btn-lg { padding: 13px 16px; font-size: 0.95rem; }
  .cta-micro { margin: 0 0 10px; font-size: 0.82rem; }
  .hero .eyebrow { margin-bottom: 8px; }
}
@media (min-width: 800px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .header-nav { display: flex; }
  .header-actions { margin-left: 0; }
  .header-actions .btn-primary { display: inline-flex; font-size: 0.85rem; padding: 10px 12px; white-space: nowrap; }
  .brand img { width: 56px; height: 56px; }
  .hero { align-items: flex-start; min-height: auto; }
  .hero-content { padding: 36px 0 40px; }
  .steps, .cards { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  #lead-form { padding: 32px; }
}

.confirm-flag {
  display: inline-block;
  background: #E8D5A8;
  color: #4C3922;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: 1px;
  margin-right: 4px;
}
.micro-guarantee {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  padding: 10px 14px;
  max-width: 40rem;
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.compare-wrap { overflow-x: auto; margin-top: 24px; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 640px;
  font-size: 0.95rem;
}
.compare th, .compare td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
}
.compare thead th:nth-child(2) { background: var(--forest); }
.compare tbody th {
  font-family: var(--font-head);
  color: var(--ink);
  width: 22%;
}
.compare tbody td:nth-child(2) { background: #F3EBDC; font-weight: 600; }
.fine-note, .hours-source { font-size: 0.85rem; color: #555; margin-top: 12px; }
.proof-meta { display: grid; gap: 16px; margin: 8px 0 24px; }
.rating-placeholder, .badges, .ba-slot {
  background: var(--paper);
  border: 1px dashed #c9c0ae;
  border-radius: var(--radius);
  padding: 16px 18px;
}
.badge-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badge-list li {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 6px;
}
.muted { color: #555; font-weight: 400; }
.before-after { margin-top: 32px; }
.ba-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 12px; }
.ba-empty {
  min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #7a7468; background: #e8e2d4; border-radius: 6px;
}
.ba-slot { margin: 0; }
.ba-slot figcaption { margin-top: 8px; font-weight: 700; color: var(--ink); }
@media (min-width: 800px) {
  .proof-meta { grid-template-columns: 1fr 1fr; }
  .ba-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip li { font-size: 0.75rem; padding: 0 10px; }
}

.trust-block { margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.25); }
.trust-strip { border-top: 0; padding-top: 0; }
.trust-lead li { font-size: 0.95rem; letter-spacing: 0.03em; }
.trust-sub { margin-top: 6px; }
.trust-sub li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.9;
  border-right-color: rgba(255,255,255,0.18);
}
.trust-meta { margin-top: 10px; }
.trust-meta li { font-size: 0.72rem; opacity: 0.85; }
.badge-list-sub li {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 0.78rem;
  padding: 6px 10px;
  font-weight: 600;
}
.badge-list-meta li {
  background: var(--paper);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Hero + VSL layout */
.hero-grid { position: relative; }
.hero-vsl { margin: 16px 0 8px; }
.vsl-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #040807;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
}
.vsl-poster {
  appearance: none;
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  position: relative;
  background: #040807;
}
.vsl-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
.vsl-play {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.vsl-play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 22px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #040807;
}
.vsl-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.vsl-frame iframe,
.vsl-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
@media (min-width: 900px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    grid-template-areas:
      "eyebrow vsl"
      "title vsl"
      "proof vsl"
      "rest vsl"
      "trust trust";
    column-gap: 40px;
    row-gap: 0;
    align-items: center;
  }
  .hero-grid .eyebrow { grid-area: eyebrow; justify-self: start; }
  .hero-grid h1 { grid-area: title; margin-bottom: 0.3em; }
  .hero-grid .hero-proof { grid-area: proof; margin-bottom: 10px; }
  .hero-vsl { grid-area: vsl; margin: 0; }
  .hero-rest { grid-area: rest; }
  .trust-block { grid-area: trust; }
}
@media (max-width: 899px) {
  .trust-lead li,
  .trust-sub li,
  .trust-meta li {
    border-right: 0;
    padding: 2px 0;
    display: block;
    width: 100%;
  }
  .trust-strip { display: block; }
}

.rating {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--tan);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.rating-score {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
.rating-detail { margin: 0; font-weight: 600; }
.rating .badge-line {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  width: fit-content;
}
