/* Roofing template styles. Mobile first, no external fonts or frameworks. */
:root {
  --brand: #1f4e79;
  --brand-dark: #163a5a;
  --accent: #f2b632;
  --ink: #1d232b;
  --muted: #55606c;
  --soft: #f3f5f7;
  --line: #dde2e7;
  --error: #b00020;
  --radius: 10px;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  padding-bottom: 60px;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 46em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-block; padding: .8em 1.3em; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-primary:hover { filter: brightness(.94); }
.btn-outline { border-color: currentColor; color: var(--brand-dark); background: transparent; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; color: var(--brand); flex: none; }
.header-phone { display: none; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a { display: block; padding: 12px 4px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--soft); }
.site-nav li a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; }
.nav-cta { display: block; width: 100%; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; align-items: center; gap: 16px; padding: 0; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; gap: 2px; margin: 0; }
  .site-nav li a { border: 0; padding: 8px 10px; }
  .nav-cta { display: inline-block; width: auto; }
  .header-phone { display: inline; }
  body { padding-bottom: 0; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 48px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero .lead { font-size: 1.2rem; max-width: 38em; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .btn-outline { color: #fff; }
.hero-art svg { display: block; width: 100%; max-width: 260px; margin: 0 auto; }
@media (min-width: 900px) { .hero-art svg { max-width: 420px; } }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 24px 0 0; font-weight: 600; font-size: .95rem; }
.trust li::before { content: "\2713\00a0"; color: var(--accent); }
@media (min-width: 900px) { .hero { padding: 72px 0 80px; } .hero-grid { grid-template-columns: 1.25fr .75fr; } }

.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 36px 0; }
.page-hero p { color: var(--muted); max-width: 42em; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }

/* Sections */
section { padding: 52px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 42em; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .icon { width: 44px; height: 44px; color: var(--brand); margin-bottom: 12px; }
.card p { color: var(--muted); flex: 1; }
.card .more { font-weight: 700; text-decoration: none; }
.card .more::after { content: " \2192"; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.steps strong { display: block; margin-bottom: 4px; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } .two-col.wide-left { grid-template-columns: 1.6fr 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 1.7em; margin: .45em 0; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.aside-box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; }
.aside-box .btn { display: block; margin-top: 10px; }
.answer-box { border-left: 4px solid var(--accent); background: #fff; padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 24px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { position: relative; padding: 16px 52px 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-answer { padding: 0 20px 16px; }
.faq .faq-answer p:last-child { margin: 0; }
.faq-group + .faq-group { margin-top: 32px; }

/* CTA band */
.cta-band { background: var(--brand-dark); color: #fff; text-align: center; }
.cta-band p { opacity: .92; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-outline { color: #fff; }

/* Form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px; font: inherit; color: inherit;
  background: #fff; border: 1px solid #aab3bd; border-radius: 8px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.field .error { color: var(--error); font-size: .92rem; margin-top: 4px; }
.field .error:empty { display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); border-width: 2px; }
.req { color: var(--error); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 20px; }
.form-actions .btn { width: 100%; }
@media (min-width: 640px) { .form-actions .btn { width: auto; } }
.form-status { display: none; margin-top: 16px; padding: 16px; border-radius: 8px; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f6ec; border: 1px solid #8fcca2; }
.form-status.err { background: #fdecee; border: 1px solid #ec9ea9; }
.form-status.info { background: #fff6dc; border: 2px solid #c99700; font-weight: 600; }
/* Shown above the form when it cannot send (no email and no form service): same look as the info status. */
.form-notice { margin: 0 0 16px; padding: 16px; border-radius: 8px; background: #fff6dc; border: 2px solid #c99700; font-weight: 600; }
.form-notice a, .form-status a { display: inline-block; padding: 10px 0; margin: -10px 0; font-weight: 700; }
.consent-privacy { margin: 2px 0 0 32px; font-size: 1rem; }
.consent-privacy a { display: inline-block; padding: 10px 0; min-height: 44px; font-weight: 600; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1em; }
.contact-list li { margin-bottom: 14px; }
.contact-list strong { display: block; }

/* Footer */
.site-footer { background: #14191f; color: #c9d1d9; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 16px; border-top: 1px solid #2a323b; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -2px 10px rgba(0,0,0,.15); }
.mobile-bar a { padding: 17px 8px; text-align: center; font-weight: 800; text-decoration: none; }
.mobile-bar .call { background: var(--brand-dark); color: #fff; }
.mobile-bar .quote { background: var(--accent); color: #1a1a1a; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* Demo preview banner (DEMO mode only). In normal flow so it never covers the sticky header or bottom bar. */
.demo-banner { background: #fff3c4; color: #3d2e00; border-bottom: 2px solid #c99700; text-align: center; }
.demo-banner p { margin: 0; padding: 10px 20px; font-weight: 700; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.demo-note { color: #ffe08a; font-weight: 700; }

/* Job photo gallery (client-owned photos only) */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.gallery figcaption { padding: 12px 16px; color: var(--muted); font-size: .95rem; }
.reviews-link { padding: 32px 0; text-align: center; }
.reviews-link p { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
