/* Complete Roof Group — site styles. Brand colors come from the logo. */
:root {
  --navy: #163f7a; --blue: #1f5fb4; --orange: #e8742a; --orange-d: #c95f1b;
  --ink: #1b2430; --muted: #5a6575; --line: #e3e8ef; --bg: #f5f7fa; --white: #fff;
  --radius: 12px; --shadow: 0 6px 24px rgba(22, 63, 122, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--orange-d); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1em 0 .4em; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--muted); margin-top: -.4em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; padding: .5rem 1rem; }

/* Top bar & header */
.topbar { background: var(--navy); color: #dfe8f5; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 1.5rem; justify-content: flex-end; padding: .35rem 0; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand img { height: 62px; width: auto; }
nav#nav { margin-left: auto; }
nav#nav > ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
nav#nav a { display: block; padding: .55rem .7rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 8px; }
nav#nav a:hover, nav#nav a[aria-current] { color: var(--blue); background: var(--bg); }
.has-sub { position: relative; }
.has-sub > ul { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.has-sub:hover > ul, .has-sub:focus-within > ul { display: block; }
.nav-toggle { display: none; margin-left: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .9rem; font: inherit; font-weight: 700; }

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.3rem; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-call { background: var(--navy); color: #fff; white-space: nowrap; }
.btn-call:hover { background: var(--blue); color: #fff; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg), #fff); padding: 2.5rem 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero-img img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.3rem 0; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.trust li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; font-size: .82rem; color: var(--muted); line-height: 1.3; }
.trust strong { display: block; color: var(--navy); font-size: 1rem; }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: .9rem 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .4rem; }
.crumbs a { color: var(--muted); }

/* Layout */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; padding: 1rem 0 3rem; }
.side { position: relative; }
.side > .quote { position: sticky; top: 100px; }
.band { background: var(--bg); padding: 2.5rem 0; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.checks { list-style: none; padding-left: 0 !important; }
.checks li { position: relative; padding-left: 1.8rem; margin: .45rem 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--orange); width: 1.25rem; height: 1.25rem; border-radius: 50%; font-size: .75rem; display: grid; place-items: center; margin-top: .25rem; }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; margin: .8rem 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card h3, .card p { margin-inline: 1rem; }
.card p { font-size: .93rem; color: var(--muted); margin-bottom: 1.1rem; }
.svc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.svc-links a { display: block; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--bg); }
.svc-links a:hover { border-color: var(--blue); }
.svc-links strong { display: block; color: var(--navy); }
.svc-links span { font-size: .85rem; color: var(--muted); }

/* Pills & town lists */
.pill-list { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list a { display: inline-block; padding: .4rem .85rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; }
.pill-list a:hover { border-color: var(--blue); }
.county h3 { margin-top: 1.6rem; }
.town-list { list-style: none; padding: 0 !important; columns: 4 170px; column-gap: 1.5rem; }
.town-list li { margin: .25rem 0; break-inside: avoid; }

/* Quote form */
.quote { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.quote h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.quote label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin: .55rem 0; }
.quote input, .quote select, .quote textarea { display: block; width: 100%; margin-top: .25rem; padding: .65rem .7rem; font: inherit; font-size: 1rem; border: 1px solid #cfd7e2; border-radius: 8px; background: #fff; color: var(--ink); }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.quote .btn { width: 100%; margin-top: .6rem; }
.hp { position: absolute; left: -9999px; }

/* Testimonials */
.testimonial { margin: 1.8rem 0; padding: 1.3rem 1.4rem; background: var(--bg); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; }
.testimonial blockquote { margin: 0; font-size: 1.05rem; }
.testimonial figcaption { margin-top: .5rem; font-weight: 700; color: var(--navy); font-size: .92rem; }
.side .testimonial { margin-top: 1.5rem; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.t-grid .testimonial { margin: 0; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; margin: .6rem 0; background: #fff; }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; color: var(--navy); list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--orange); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.1rem .4rem; }

/* Before / after slider */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.ba { margin: 0; }
.ba-frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; background: #ddd; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.4); pointer-events: none; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; bottom: .6rem; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; pointer-events: none; }
.ba-tag.l { left: .6rem; } .ba-tag.r { right: .6rem; }
.ba figcaption { font-weight: 700; color: var(--navy); margin-top: .4rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: .35rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; padding: 3rem 0; text-align: center; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band a:not(.btn) { color: #fff; font-weight: 700; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: #fff; }

/* Footer */
.site-footer { background: #0f2547; color: #c7d3e6; padding: 3rem 0 1rem; font-size: .93rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-top: 0; }
.site-footer a { color: #e6edf8; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer img { background: #fff; border-radius: 10px; padding: .3rem; width: 150px; }
.site-footer address { font-style: normal; margin: .8rem 0; }
.grid4 { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; font-size: .82rem; }
.callbar { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .hide-sm { display: none; }
  .nav-toggle { display: block; }
  nav#nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: 75vh; overflow: auto; }
  nav#nav.open { display: block; }
  nav#nav > ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .has-sub > ul { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; }
  .btn-call { margin-left: 0; }
}
@media (max-width: 900px) {
  .hero-grid, .two-col, .grid4 { grid-template-columns: 1fr; }
  .hero-img img { aspect-ratio: 16/9; }
  .side > .quote { position: static; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .topbar span:first-child { display: none; }
}
@media (max-width: 640px) {
  body { padding-bottom: 60px; }
  .btn-call { display: none; }
  .brand img { height: 50px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
  .callbar a { padding: 1rem; text-align: center; font-weight: 800; text-decoration: none; color: #fff; background: var(--navy); }
  .callbar a + a { background: var(--orange); }
  .topbar .wrap { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
