/* EBM Roofing — site styles (theme B: dark, photo-led). Hand-built, mobile-first.
   Logo colors only: EBM blue, logo gray, black, white, and light tints of the gray. */

@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/roboto-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #000000;
  --panel: #1c1c1c;      /* raised surface on black */
  --rule-dark: #2a2a2a;  /* rules on black */
  --blue: #2c6fb8;
  --blue-on-dark: #6aa6e8; /* same hue, lightened to pass 4.5:1 on black */
  --blue-deep: #235a96;
  --slate: #6c6c6c;
  --soft: #d6d6d6;       /* body text on black, borders on white */
  --cloud: #f2f2f2;
  --line: #d6d6d6;
  --white: #ffffff;
  --wrap: 1200px;
  --gutter: 24px;
  --r: 16px;             /* card and image radius */
  --r-sm: 4px;
  --skew: 12px;          /* button slant */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 72px;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 { font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; line-height: 1.6; max-width: 56ch; }

/* two-tone heading: first line blue, second line indented */
.two .a { display: block; color: var(--blue); }
.two .b { display: block; padding-left: 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* ---------- Buttons (slanted) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 32px;
  font: inherit; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(var(--skew) 0, 100% 0, calc(100% - var(--skew)) 100%, 0 100%);
  transition: background-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sun, .btn-blue { background: var(--blue); color: var(--white); }
.btn-sun:hover, .btn-blue:hover { background: var(--blue-deep); color: var(--white); }
.btn-line, .btn-dark { background: var(--panel); color: var(--white); }
.btn-line:hover, .btn-dark:hover { background: var(--white); color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--blue); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.more { font-weight: 700; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: var(--soft); font-size: 0.82rem; border-bottom: 1px solid var(--rule-dark); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; color: var(--white); }
.topbar .lic { display: inline-flex; align-items: center; gap: 8px; }
.topbar .lic svg { width: 16px; height: 16px; color: var(--white); }
.topbar .areas { display: none; }
@media (min-width: 760px) { .topbar .areas { display: inline; } }
.topbar-right { display: inline-flex; gap: 18px; }
/* Phones: logo and menu only. Phone number lives in the bottom call bar; the Spanish link moves into the menu. */
@media (max-width: 759px) { .topbar { display: none; } }
@media (min-width: 760px) { .nav-mobile-only { display: none; } }
.lic-word { display: none; }
@media (min-width: 760px) { .lic-word { display: inline; } .lic-short { display: none; } }

.site-header { background: var(--ink); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand {
  display: flex; flex: none; background: var(--white); border-radius: 999px; padding: 6px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.brand img { height: 46px; width: auto; }
@media (min-width: 1040px) {
  .brand { padding: 10px 26px; margin-bottom: -34px; }
  .brand img { height: 62px; }
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--rule-dark);
  border-radius: var(--r-sm); padding: 8px 12px; font: inherit; font-weight: 700; color: var(--white); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink); border-top: 1px solid var(--rule-dark); box-shadow: 0 12px 24px rgba(0,0,0,.4);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.site-nav a, .sub-toggle {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  padding: 12px 0; text-decoration: none; color: var(--white); background: none; border: 0;
  border-bottom: 1px solid var(--rule-dark); font: inherit; font-weight: 500; font-size: 0.95rem; cursor: pointer; text-align: left;
}
.site-nav a[aria-current="page"] { color: var(--blue); }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .15s ease; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav .submenu { display: none; padding: 0 0 8px 14px !important; }
.site-nav .submenu.is-open { display: block; }
.site-nav .submenu a { font-weight: 400; padding: 9px 0; }
.nav-phone, .nav-cta { display: none; }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav > ul { display: flex; gap: 26px; padding: 0; }
  .site-nav > ul > li > a, .sub-toggle {
    width: auto; gap: 6px; padding: 8px 0; border: 0; border-bottom: 2px solid transparent;
    font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  }
  .site-nav > ul > li > a:hover, .sub-toggle:hover, .site-nav > ul > li > a[aria-current="page"] { color: var(--blue); }
  .site-nav .has-sub { position: relative; }
  .site-nav .submenu {
    position: absolute; top: calc(100% + 14px); left: -18px; min-width: 280px;
    background: var(--ink); border: 1px solid var(--rule-dark); border-top: 3px solid var(--blue); border-radius: 0 0 var(--r-sm) var(--r-sm);
    box-shadow: 0 14px 30px rgba(0,0,0,.4); padding: 10px 18px 14px !important; flex-direction: column;
  }
  .site-nav .submenu.is-open, .site-nav .has-sub:hover .submenu, .site-nav .has-sub:focus-within .submenu { display: flex; }
  .site-nav .submenu a { border: 0; padding: 8px 0; text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
  .site-nav .submenu a:hover { color: var(--blue); }
  .site-nav .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
  #sub-types { min-width: 220px; }
  .header-actions { display: flex; align-items: center; gap: 18px; }
  .nav-phone { display: inline; font-weight: 700; color: var(--white); text-decoration: none; white-space: nowrap; }
  .nav-phone:hover { color: var(--blue); }
  .nav-cta { display: inline-flex; min-height: 44px; padding: 0 24px; }
}

/* ---------- Photo hero ---------- */
.hero {
  position: relative; color: var(--white);
  background-color: var(--ink); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.5) 100%);
}
.hero > .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 1040px) { .hero > .wrap { padding-top: 110px; padding-bottom: 96px; } }
.hero h1 { max-width: 16ch; }
.hero .lede { color: var(--white); margin-left: 1.2em; }
.hero .btn-row { margin-left: 1.1em; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 18px; color: var(--white); }
.credential { margin: 26px 0 0; font-size: 0.95rem; color: var(--white); display: flex; align-items: center; gap: 10px; }
.credential svg { width: 20px; height: 20px; flex: none; color: var(--white); }
.hero .credential { margin-left: 1.3em; }
.crumbs { font-size: 0.85rem; margin: 0 0 18px; color: var(--white); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--white); }
.guide-meta { font-size: 0.9rem; color: var(--soft); margin: 22px 0 0 1.3em; }

/* hero background photos */
.bg-replacement { background-image: url("../assets/img/home/svc-replacement.webp"); }
.bg-repair { background-image: url("../assets/img/home/svc-repair.webp"); }
.bg-storm { background-image: url("../assets/img/home/svc-storm.webp"); }
.bg-tarp { background-image: url("../assets/img/home/svc-tarp.webp"); }
.bg-inspection { background-image: url("../assets/img/home/svc-inspection.webp"); }
.bg-msfh { background-image: url("../assets/img/home/svc-msfh.webp"); }
.bg-newbuild { background-image: url("../assets/img/home/svc-newbuild.webp"); }
.bg-shingle { background-image: url("../assets/img/home/type-shingle.webp"); }
.bg-tile { background-image: url("../assets/img/home/type-tile.webp"); }
.bg-metal { background-image: url("../assets/img/home/type-metal.webp"); }
.bg-tpo { background-image: url("../assets/img/home/type-tpo.webp"); }
.bg-sbs { background-image: url("../assets/img/home/type-sbs.webp"); }
.bg-home { background-image: url("../assets/img/home/home-hero.webp"); }
.bg-metalhero { background-image: url("../assets/img/home/metal-hero.webp"); }
.hero-page.bg-tile { background-position: center top; }

/* home hero: copy + estimate card */
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; } }
.hero-home h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.badges { display: flex; gap: 14px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.badge {
  width: 96px; height: 96px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-size: 0.68rem; line-height: 1.2; padding: 8px; color: var(--white);
}
.badge strong { font-size: 1.05rem; display: block; }
.quote-card { background: rgba(0,0,0,.74); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); overflow: hidden; color: var(--white); }
.quote-card h2 { margin: 0; padding: 22px 26px; font-size: 1.25rem; font-weight: 500; border-bottom: 1px solid var(--blue); }
.quote-card h2 span { color: var(--blue-on-dark); }
.quote-card form { padding: 22px 26px 26px; }
.quote-card .field label { color: var(--soft); font-weight: 400; font-size: 0.85rem; }
.quote-card .field input, .quote-card .field select { border: 0; }
.quote-card .field-error { color: var(--white); }
.quote-card .btn { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 100px 0; } }
.section-tight-top { padding-top: 24px; }
.section-cloud { background: var(--cloud); }
.section-head { max-width: 64ch; margin-bottom: 36px; }
.section-head p { color: var(--slate); }

/* rounded black panel section */
.dark-panel { background: var(--ink); color: var(--white); padding: 80px 0 90px; }
@media (min-width: 900px) { .dark-panel { border-radius: 18px; margin: 0 var(--gutter); padding: 90px 0 100px; } }
.dark-panel .two .b { color: var(--white); }
.dark-panel .rule { height: 1px; background: var(--rule-dark); margin: 8px 0 44px; }
.dark-panel p { color: var(--soft); }

/* intro split with rule */
.intro { position: relative; }
@media (min-width: 900px) { .intro::after { content: ""; position: absolute; left: 0; right: 0; top: 232px; height: 1px; background: var(--line); } }
.intro-grid { display: grid; gap: 40px; position: relative; z-index: 1; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } }
.intro-pic { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--cloud); }
.intro-pic figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--white); font-weight: 500; font-size: 0.9rem; padding: 8px 22px 8px 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.intro-pic img { width: 100%; height: 100%; object-fit: cover; }
.intro h2 { background: var(--white); display: inline-block; padding-right: 16px; font-size: clamp(2rem, 4vw, 3rem); }
.intro h3 { font-size: 1.1rem; font-weight: 700; }
.icon-facts { display: grid; gap: 12px; margin: 24px 0 30px; padding: 0; list-style: none; }
@media (min-width: 600px) { .icon-facts { grid-template-columns: 1fr 1fr; } }
.icon-facts li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.icon-facts svg { width: 22px; height: 22px; color: var(--blue); flex: none; }

/* service cards on black */
.svc-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px 26px; }
@media (min-width: 640px) { .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .svc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-card .pic { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--panel); margin-bottom: 18px; }
.svc-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.svc-card:hover .pic img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .svc-card .pic img { transition: none; } }
.svc-card h3 { display: flex; align-items: center; gap: 10px; color: var(--blue-on-dark); font-size: 1.25rem; margin: 0 0 8px; }
.svc-card h3 a { color: inherit; text-decoration: none; }
.svc-card h3 svg { width: 22px; height: 22px; flex: none; }
.svc-card p { color: var(--soft); font-size: 0.95rem; margin: 0 0 20px; }

/* full-bleed photo band */
.band { position: relative; color: var(--white); text-align: center; background-color: var(--ink); background-position: center; background-size: cover; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.band .wrap { position: relative; padding-top: 110px; padding-bottom: 110px; max-width: 860px; }
.band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.band p { margin: 0 auto 28px; max-width: 60ch; }
.band .btn-row { justify-content: center; }

/* black / photo alternating grid */
.alt-grid { display: grid; gap: 22px; margin-top: 12px; }
@media (min-width: 700px) { .alt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .alt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-card { background: var(--ink); color: var(--white); border-radius: var(--r); padding: 30px 28px; display: flex; flex-direction: column; min-height: 300px; }
.g-card h3 { margin: 0; font-size: 1.5rem; color: var(--blue); display: flex; gap: 10px; align-items: center; }
.g-card h3 a { color: inherit; text-decoration: none; }
.g-card h3 svg { width: 24px; height: 24px; flex: none; }
.g-card .sub { font-size: 1.5rem; font-weight: 500; margin: 0 0 12px; line-height: 1.2; }
.g-card p { color: var(--soft); font-size: 0.95rem; flex: 1; }
.g-card .btn { align-self: flex-start; }
.g-tile { border-radius: var(--r); overflow: hidden; min-height: 300px; background: var(--cloud); }
.g-tile img { width: 100%; height: 100%; object-fit: cover; }

/* testimonials */
.quotes { display: grid; gap: 22px; }
@media (min-width: 900px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quotes blockquote { margin: 0; background: var(--ink); color: var(--white); border-radius: var(--r); padding: 30px 30px 26px; }
.quotes blockquote p { font-size: 1.15rem; line-height: 1.55; margin-bottom: 16px; }
.quotes footer { color: var(--soft); font-size: 0.95rem; }
.quotes cite { font-style: normal; font-weight: 700; color: var(--blue-on-dark); }
.page-body .quotes blockquote p { font-size: 1.05rem; }

/* closing "Let's talk" */
.closing { background: var(--ink); color: var(--white); padding: 90px 0 56px; }
.closing h2 { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; margin-bottom: 16px; }
.closing .two .b { color: var(--white); }
.closing .lead { max-width: 56ch; color: var(--soft); margin: 0 0 28px 1.2em; }
.closing .btn-row { margin-left: 1.1em; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); padding: 30px 0; margin: 56px 0 40px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-size: 0.9rem; color: var(--soft); }
.trust svg { width: 40px; height: 40px; color: var(--white); }
.stats { display: grid; gap: 18px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { background: var(--panel); border-radius: 14px; padding: 26px; text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1.15; }
.stat span { color: var(--soft); font-size: 0.9rem; }

/* ---------- Interior page layout ---------- */
.page-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .page-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; } }
.page-grid > *, .split > *, .hero-grid > *, .intro-grid > * { min-width: 0; }
.page-body { overflow-wrap: break-word; }
.page-body h2 { margin-top: 1.6em; }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin-top: 1.4em; }

.aside-box { background: var(--ink); color: var(--white); border-radius: var(--r); overflow: hidden; }
@media (min-width: 1000px) { .aside-box { position: sticky; top: 24px; } }
.aside-box h2 { margin: 0; padding: 20px 24px; font-size: 1.2rem; border-bottom: 1px solid var(--blue); }
.aside-box > p, .aside-box form, .aside-box .credential { padding-left: 24px; padding-right: 24px; }
.aside-box > p { color: var(--soft); font-size: 0.95rem; margin: 18px 0 0; }
.aside-box form { padding-top: 16px; }
.aside-box .field label { color: var(--soft); font-weight: 400; font-size: 0.85rem; }
.aside-box .field input { border: 0; }
.aside-box .field-error { color: var(--white); }
.aside-box .btn { width: 100%; }
.aside-box a { color: var(--white); }
.aside-or { text-align: center; color: var(--soft); }
.aside-finance { margin: 18px 24px 0 !important; padding: 16px 0 0 !important; border-top: 1px solid var(--rule-dark); }
.aside-box .credential { color: var(--soft); font-size: 0.85rem; margin: 18px 0 24px; }
.aside-box .credential svg { color: var(--blue); }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; } }

.steps { list-style: none; counter-reset: step; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 0 0 20px 54px; margin: 0 !important; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px;
  display: grid; place-items: center; background: var(--blue); color: var(--white); font-weight: 700; font-size: 0.95rem;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.steps strong { display: block; }

.check-list { list-style: none; padding: 0 !important; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 10px; background: var(--blue);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.info-box { border-radius: var(--r); padding: 22px 26px; margin: 1.4em 0; background: var(--cloud); border-left: 4px solid var(--blue); }
.info-box h2, .info-box h3 { margin-top: 0 !important; }
.info-box p:last-child { margin-bottom: 0; }
.fine { font-size: 0.88rem; color: var(--slate); }

.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 32px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--slate); }

.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border-radius: var(--r); border: 1px solid var(--line); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--ink); color: var(--white); font-weight: 500; }
.table-wrap tbody tr:nth-child(even) { background: var(--cloud); }

.tbd {
  background: #fff3cd; color: #6b4e00; border: 1px dashed #d4a72c;
  padding: 1px 6px; border-radius: 3px; font-size: 0.9em; font-weight: 600;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

.job-grid { display: grid; gap: 16px; margin: 1.2em 0 1.6em; }
@media (min-width: 640px) { .job-grid { grid-template-columns: 1fr 1fr; } }
.job { margin: 0; }
.job img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.job figcaption { font-size: 0.9rem; color: var(--slate); padding-top: 8px; }
.photo-slot {
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 16px; border-radius: var(--r);
  background: repeating-linear-gradient(135deg, #e8e8e8 0 12px, var(--cloud) 12px 24px);
  border: 1px dashed var(--slate); color: var(--slate); font-size: 0.9rem;
}
.review-slot { border-left: 4px solid var(--line); padding: 14px 18px; margin: 1.2em 0; background: var(--cloud); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.map-wrap { margin: 1.4em 0 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--cloud); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FS 489.147 disclosures: 18px text; headings on these pages are capped at 36px */
.disclosure { border: 2px solid var(--ink); border-radius: var(--r); padding: 20px 22px; margin: 2em 0 0; font-size: 18px; line-height: 1.5; background: var(--white); }
.disclosure p { margin: 0 0 .5em; font-weight: 700; font-size: 18px; }
.disclosure ul { margin: 0; padding-left: 1.2em; }
.disclosure li { margin-bottom: .45em; font-size: 18px; }
.disclosure .es { margin-top: 1em; padding-top: 1em; border-top: 1px solid var(--line); }
body.has-disclosures h1 { font-size: clamp(1.8rem, 4.4vw, 36px); }
body.has-disclosures .page-body h2, body.has-disclosures .section > .wrap > h2, body.has-disclosures .band h2, body.has-disclosures .closing h2 { font-size: clamp(1.4rem, 3vw, 30px); }
body.has-disclosures .lede, body.has-disclosures .quotes blockquote p { font-size: 18px; }

/* guide and city lists */
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 760px) { .guide-list { grid-template-columns: 1fr 1fr; } }
.guide-list li { background: var(--ink); color: var(--white); border-radius: var(--r); padding: 24px 26px; }
.guide-list li.has-icon { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.guide-list a { font-weight: 500; font-size: 1.15rem; color: var(--blue); text-decoration: none; }
.guide-list a:hover { color: var(--white); }
.guide-list p { color: var(--soft); margin: 6px 0 0; font-size: 0.95rem; }
.g-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--blue); color: var(--blue); }
.g-icon svg { width: 20px; height: 20px; }
.city-cols { display: grid; gap: 24px 40px; }
@media (min-width: 760px) { .city-cols { grid-template-columns: repeat(3, 1fr); } }
.city-cols ul { list-style: none; padding: 0; margin: 0; }
.city-cols li { padding: 6px 0; border-bottom: 1px solid var(--line); }

.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 700px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related li { background: var(--ink); color: var(--white); border-radius: var(--r); padding: 24px 26px; }
.related a { font-weight: 500; font-size: 1.2rem; text-decoration: none; color: var(--blue-on-dark); }
.related a:hover { color: var(--white); }
.related p { color: var(--soft); font-size: 0.95rem; margin: 8px 0 0; }

.prose .gallery, .gallery { display: grid; padding-left: 0; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.gallery .tbd { display: block; margin-top: 4px; }
.gallery figcaption { font-size: 0.9rem; color: var(--slate); padding-top: 8px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { margin-bottom: 12px; }
.form-grid .field { margin-bottom: 0; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; min-height: 48px;
  border: 2px solid #8c8c8c; border-radius: var(--r-sm); background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(44,111,184,.35); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--blue); }
.field-error { color: var(--ink); font-weight: 700; font-size: 0.88rem; margin-top: 6px; display: none; }
.field-error.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mini-form .btn { width: 100%; }
.quote-card .form-grid { gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--soft); padding: 56px 0 28px; font-size: 0.95rem; border-top: 1px solid var(--rule-dark); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-name { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-base { border-top: 1px solid var(--rule-dark); margin-top: 40px; padding-top: 20px; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #9a9a9a; }
body.has-disclosures .footer-name { font-size: 18px; }

/* ---------- Mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: var(--ink); border-top: 1px solid var(--rule-dark);
}
.call-bar .btn { min-height: 50px; padding: 0 12px; }
.call-bar .btn-blue { background: var(--panel); }
@media (min-width: 900px) { .call-bar { display: none; } }

@media print {
  .site-header, .topbar, .call-bar, .band, .closing, .site-footer, .aside-box { display: none !important; }
  .hero { background: none !important; color: var(--ink); }
  .hero::before { display: none; }
}

/* owner block (About) */
.owner { display: grid; gap: 22px; align-items: center; background: var(--ink); color: var(--white); border-radius: var(--r); padding: 22px; margin: 0 0 2em; }
@media (min-width: 600px) { .owner { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; } }
.owner img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.owner-name { font-size: 1.6rem; font-weight: 700; margin: 0; line-height: 1.2; }
.owner .owner-title { color: var(--blue); font-weight: 500; margin: 0 0 12px; }
.owner p { color: var(--soft); }
.owner a { color: var(--white); }

/* ---------- Home: rolling reviews ---------- */
.reviews-strip { background: var(--cloud); overflow: hidden; }
.rs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 36px; }
.rs-head h2 { margin: 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 150s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 22px; padding-right: 22px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card { margin: 0; width: min(380px, 80vw); flex: none; background: var(--ink); color: var(--white); border-radius: var(--r); padding: 28px 28px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.review-card blockquote { margin: 0 0 18px; }
.review-card blockquote p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.review-card figcaption { color: var(--soft); font-size: 0.92rem; }
.review-card cite { font-style: normal; font-weight: 700; color: var(--blue-on-dark); }
.review-card-slot { background: var(--white); border: 1px dashed var(--slate); justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-set[aria-hidden="true"] { display: none; }
}

/* ---------- Home: metal roof feature ---------- */
.metal-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .metal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; } }
.metal-grid > * { min-width: 0; }
.metal-pic { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--cloud); }
.metal-pic img { width: 100%; height: 100%; object-fit: cover; }
.metal-feature h2 { font-size: clamp(2rem, 4vw, 3rem); }
.icon-facts-1 { grid-template-columns: 1fr !important; }
.icon-facts-1 li { align-items: flex-start; font-weight: 400; }
.icon-facts-1 svg { margin-top: 3px; }

/* pull quote (owner's words, metal page) */
.pull-quote { margin: 0 0 32px; padding: 26px 30px; background: var(--ink); color: var(--white); border-radius: var(--r); border-left: 6px solid var(--blue, #2c6fb8); }
.pull-quote p { font-size: 1.2rem; line-height: 1.5; margin: 0 0 12px; }
.pull-quote cite { font-style: normal; font-weight: 600; font-size: .95rem; opacity: .85; }
.owner-line { font-size: 1.15rem; font-weight: 600; color: var(--blue-deep); border-left: 4px solid var(--blue); padding-left: 14px; margin: 0 0 20px; }
.owner-line span { display: block; font-size: .9rem; font-weight: 500; color: var(--ink); margin-top: 4px; }

/* Hearth financing banners + calculator */
.hearth-banner { margin: 0 0 28px; }
.hearth-banner img, .aside-hearth img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.hearth-home { margin: 36px 0 0 1.1em; max-width: 700px; }
.aside-hearth { margin: 14px 24px 0 !important; padding: 0 !important; }
.hearth-calc { margin: 0 0 32px; }
.hearth-calc iframe { display: block; width: 100%; min-height: 520px; border: 0; }

/* Where we work strip (home) + nearby rows (town pages) */
.areas-strip .lead { max-width: 60ch; margin: 0 0 28px 1.2em; }
.areas-cols { display: grid; gap: 28px; }
@media (min-width: 700px) { .areas-cols { grid-template-columns: repeat(4, 1fr); } }
.areas-cols h3 { font-size: 1.1rem; margin: 0 0 10px; }
.areas-cols h3 a { color: var(--blue-deep); text-decoration: none; }
.areas-cols ul { list-style: none; margin: 0; padding: 0; }
.areas-cols li { margin: 0 0 6px; }
.areas-cols li a { text-decoration: none; }
.areas-cols li a:hover, .areas-cols h3 a:hover { text-decoration: underline; }
.nearby { margin: 32px 0 8px; padding: 18px 22px; border: 1px solid var(--soft); border-radius: var(--r); }
.nearby h2 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 10px; }
.nearby ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nearby a { text-decoration: none; font-weight: 500; }
.nearby a:hover { text-decoration: underline; }
.hero-trust { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; font-size: 0.95rem; color: var(--soft); max-width: 60ch; }
.hero-trust svg { width: 20px; height: 20px; flex: none; color: var(--blue-on-dark); margin-top: 2px; }
.hero-trust strong { color: var(--white); }
.hero-trust a { color: var(--white); }

/* larger hero backgrounds for wide screens */
@media (min-width: 1000px) {
  .bg-replacement { background-image: url("../assets/img/home/lg/svc-replacement.webp"); }
  .bg-repair { background-image: url("../assets/img/home/lg/svc-repair.webp"); }
  .bg-storm { background-image: url("../assets/img/home/lg/svc-storm.webp"); }
  .bg-tarp { background-image: url("../assets/img/home/lg/svc-tarp.webp"); }
  .bg-inspection { background-image: url("../assets/img/home/lg/svc-inspection.webp"); }
  .bg-msfh { background-image: url("../assets/img/home/lg/svc-msfh.webp"); }
  .bg-newbuild { background-image: url("../assets/img/home/lg/svc-newbuild.webp"); }
  .bg-shingle { background-image: url("../assets/img/home/lg/type-shingle.webp"); }
  .bg-tile { background-image: url("../assets/img/home/lg/type-tile.webp"); }
  .bg-metal { background-image: url("../assets/img/home/lg/type-metal.webp"); }
  .bg-tpo { background-image: url("../assets/img/home/lg/type-tpo.webp"); }
  .bg-sbs { background-image: url("../assets/img/home/lg/type-sbs.webp"); }
  .bg-home { background-image: url("../assets/img/home/lg/home-hero.webp"); }
  .bg-metalhero { background-image: url("../assets/img/home/lg/metal-hero.webp"); }
}
