/* J&J Roofing Specialists – shared site styles, build v3 (22 Nov 2026) */
:root { --red: #c82333; --red-dark: #a51b29; --bar: #b0202c; --ink: #2b2d30; --muted: #555b61; --line: #e5e7eb; --soft: #f8f9fa; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; -webkit-text-size-adjust: 100%; }
a { color: var(--red); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* Top bar */
.topbar { background: var(--bar); color: #fff; padding: 9px 16px; text-align: center; font-size: 14px; font-weight: 700; }
.topbar a { display: inline-block; margin-left: 10px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: 999px; text-transform: uppercase; text-decoration: none; }

/* Header */
.headbar { background: #fff; border-bottom: 1px solid var(--line); }
.header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-name { display: block; font-size: 22px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--red); line-height: 1.05; }
.logo-sub { display: block; font-size: 11px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav a.phone, .nav a.phone:hover { background: var(--red); color: #fff; padding: 11px 20px; border-radius: 8px; white-space: nowrap; }
.nav a.phone:hover { background: var(--red-dark); }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.burger { display: none; cursor: pointer; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 8px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); }
.nav-toggle:focus-visible + .burger { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Page banner */
.page-hero { background: linear-gradient(135deg, #25272a 0%, #3a3d42 100%); border-bottom: 5px solid var(--red); color: #fff; padding: 52px 0 56px; }
.crumbs { font-size: 14px; color: #d9dce0; margin: 0 0 14px; }
.crumbs a { color: #fff; }
.page-hero h1 { font-size: 44px; line-height: 1.15; font-weight: 900; margin: 0 0 14px; color: #fff; }
.page-hero p { font-size: 18px; color: #e6e8ea; max-width: 700px; margin: 0; }

/* Sections */
.section { padding: 56px 0; }
.section h2 { font-size: 30px; line-height: 1.2; font-weight: 800; margin: 0 0 10px; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 28px; max-width: 720px; }

/* Buttons */
.btn { display: inline-block; padding: 15px 26px; font-size: 16px; font-weight: 700; border-radius: 8px; text-align: center; text-decoration: none; border: 2px solid var(--red); background: var(--red); color: #fff; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.gallery a.thumb { display: block; line-height: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .25s ease; }
.gallery a.thumb:hover img { transform: scale(1.03); }
.gallery .thumb-wrap { overflow: hidden; }
.gallery figcaption { padding: 12px 16px; font-size: 15px; font-weight: 600; border-top: 4px solid var(--red); }
.lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(20,21,23,.92); align-items: center; justify-content: center; padding: 24px; }
.lightbox:target { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox .close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 26px; font-weight: 800; line-height: 44px; text-align: center; text-decoration: none; }
.lightbox .backdrop { position: absolute; inset: 0; }
.lightbox figure { position: relative; margin: 0; max-width: 1100px; }

/* FAQ */
.faq details { border: 2px solid var(--line); border-radius: 10px; margin: 0 0 12px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-size: 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-size: 20px; font-weight: 800; line-height: 30px; text-align: center; }
.faq details[open] { border-color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); font-size: 16px; }
.faq .answer p { margin: 0; }

/* Legal text */
.legal h2 { font-size: 24px; margin: 38px 0 10px; }
.legal h2:first-of-type { margin-top: 10px; }
.legal p, .legal li { font-size: 16px; color: #3b3f44; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.updated { display: inline-block; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }

/* Call-to-action band */
.cta-band { background: var(--soft); border-top: 2px solid var(--line); padding: 48px 0; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-inner h2 { font-size: 26px; margin: 0 0 6px; }
.cta-inner p { margin: 0; color: var(--muted); }

/* Footer */
.footer { background: #25272a; color: #d9dce0; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer h3 { color: #fff; font-size: 16px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.footer p { margin: 0 0 8px; font-size: 15px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #ff9aa4; text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; font-size: 15px; }
.footer .logo-name { color: #fff; }
.footer .logo-sub { color: #d9dce0; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0; font-size: 13px; color: #aeb3b8; text-align: center; }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 12px 24px rgba(0,0,0,.15); }
  .nav a { padding: 14px 18px; border-top: 1px solid #f1f3f5; }
  .nav a.phone { margin: 10px; text-align: center; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .page-hero { padding: 36px 0 40px; }
  .page-hero h1 { font-size: 32px; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner .btn { width: 100%; }
}

/* Logo images */
.logo-img { display: block; height: 64px; width: auto; }
.logo-img-foot { height: auto; width: 220px; max-width: 100%; }
@media (max-width: 480px) { .logo-img { height: 48px; } }
