/* Response Roofing 247 — site styles
   Brand: terracotta orange + sky blue */
:root {
  --terracotta: #C4512F;
  --terracotta-dark: #9E3D1F;
  --terracotta-light: #FBE9E1;
  --sky: #5DB7E5;
  --sky-dark: #1F6F99;
  --sky-light: #E7F5FD;
  --ink: #16263A;
  --muted: #4F5E6E;
  --line: #E2E8EE;
  --sand: #FBF7F3;
  --bg: #FFFFFF;
  --shadow: 0 10px 30px rgba(22, 38, 58, .10);
  --radius: 16px;
  --heading: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--terracotta-dark); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 8px 14px; }
.muted { color: var(--muted); }
.kicker { display: block; text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-weight: 800; color: var(--terracotta); margin-bottom: 8px; }

/* Top bar + header */
.topbar { background: var(--ink); color: #fff; font-size: .875rem; text-align: center; padding: 7px 16px; }
.topbar a { color: #9FD8F7; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--heading); font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.brand b { color: var(--terracotta); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a.btn-primary { color: #fff; }
.site-nav > ul > li > a { display: block; padding: 10px 14px; border-radius: 8px; }
.site-nav > ul > li > a:hover, .site-nav > ul > li > a[aria-current="page"] { background: var(--sky-light); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.sub a:hover { background: var(--terracotta-light); color: var(--terracotta-dark); }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: -16px; right: -16px; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .sub a { padding: 6px 12px; color: var(--muted); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sky { background: var(--sky); color: var(--ink); }
.btn-sky:hover { background: #87CBEE; }
.btn-white { background: #fff; color: var(--terracotta-dark); }
.btn-sm { padding: 10px 16px; font-size: .95rem; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky-light) 0%, #F4FAFE 55%, #fff 100%); padding: 56px 0 48px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .85rem; color: var(--terracotta-dark); margin-bottom: 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #23A863; box-shadow: 0 0 0 0 rgba(35,168,99,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(35,168,99,0); } 100% { box-shadow: 0 0 0 0 rgba(35,168,99,0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } html { scroll-behavior: auto; } }
.hero h1 span { color: var(--terracotta); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.checks li { padding-left: 30px; position: relative; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316263A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 40px rgba(22,38,58,.16); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 440px; margin-inline: auto; order: -1; }
}
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust ul { list-style: none; margin: 0; padding: 20px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .98rem; }
.trust .i { color: var(--terracotta); }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: 76px 0; }
.section-alt { background: var(--sand); }
.section-sky { background: var(--sky-light); }
.section-head { max-width: 740px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.center { text-align: center; margin-inline: auto; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--terracotta); box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin: 8px 0 4px; }
.card p { color: var(--muted); margin: 0 0 8px; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; background: var(--terracotta-light); color: var(--terracotta); display: grid; place-items: center; }
.icon-box.sky { background: var(--sky-light); color: var(--sky-dark); }
.more { margin-top: auto; font-weight: 700; color: var(--terracotta-dark); }

/* Emergency band */
.band { background-color: var(--terracotta); color: #fff; position: relative; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28' viewBox='0 0 48 28'%3E%3Cpath d='M0 28 Q12 6 24 28 Q36 6 48 28' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='3'/%3E%3C/svg%3E"); }
.band h2, .band h3 { color: #fff; }
.band .lead { color: #FFE9E0; }
.band-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; gap: 28px; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; background: #fff; color: var(--ink); border-radius: 14px; padding: 22px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--ink); font-weight: 800; margin-bottom: 10px; font-family: var(--heading); }
.steps strong { display: block; font-family: var(--heading); font-size: 1.05rem; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .97rem; }

/* Why us */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3 { margin: 2px 0 4px; }
.feature p { color: var(--muted); margin: 0; }

/* Areas */
.area-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 90px; }
.area-card h3 a { color: var(--ink); text-decoration: none; }
.area-card h3 a:hover { color: var(--terracotta-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.chips li { background: var(--sky-light); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 500; }
.chips.lg li { background: #fff; border: 1px solid var(--line); padding: 7px 14px; font-size: .95rem; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--terracotta-light); color: var(--terracotta-dark); display: grid; place-items: center; font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq .faq-a p:last-child { margin: 0; }

/* Inner page hero */
.page-hero { background: linear-gradient(135deg, var(--sky-light) 0%, #fff 70%); padding: 32px 0 52px; border-bottom: 1px solid var(--line); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--muted); }
.answer { background: #fff; border-left: 4px solid var(--terracotta); padding: 18px 22px; border-radius: 0 12px 12px 0; max-width: 78ch; font-size: 1.08rem; box-shadow: 0 2px 10px rgba(22,38,58,.05); margin: 0; }

/* Content layout */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.7em; font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.prose h3 { margin-top: 1.7em; font-size: clamp(1.2rem, 2vw, 1.4rem); }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25em; }
.prose ul li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--terracotta); }
.process-list { list-style: none; counter-reset: p; padding: 0; margin: 0 0 1em; }
.process-list li { counter-increment: p; position: relative; padding: 0 0 18px 52px; }
.process-list li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--sky-light); color: var(--sky-dark); border: 2px solid var(--sky); font-weight: 800; display: grid; place-items: center; font-family: var(--heading); }
.process-list strong { display: block; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 16px; }
.side-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px; }
.side-card h2, .side-card h3 { color: #fff; font-size: 1.25rem; }
.side-card p { color: #C9D6E2; font-size: .97rem; }
.side-card .big { display: block; font-family: var(--heading); font-size: 1.7rem; font-weight: 800; color: #fff; text-decoration: none; margin: 4px 0 14px; }
.side-card .btn { width: 100%; }
.side-card.light { background: var(--sky-light); color: var(--ink); }
.side-card.light h3 { color: var(--ink); }
.side-card.light ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.side-card.light a { color: var(--ink); font-weight: 600; text-decoration: none; }
.side-card.light a:hover { color: var(--terracotta-dark); }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; gap: 36px; } .sidebar { position: static; } }

/* CTA */
.cta { background: var(--ink); color: #fff; border-radius: 22px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 100% 0%, rgba(93,183,229,.35), transparent 55%), radial-gradient(circle at 0% 100%, rgba(196,81,47,.35), transparent 50%); }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #C9D6E2; margin: 0; max-width: 56ch; }
.cta .cta-row { margin: 0; }
@media (max-width: 560px) { .cta { padding: 32px 22px; } }

/* Forms */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 600; display: grid; gap: 6px; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid #C5CFD8; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form textarea { min-height: 130px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.form .check input { width: 20px; height: 20px; accent-color: var(--terracotta); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form { padding: 20px; } }

.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { display: block; }

/* Footer */
.site-footer { background: #0F1B28; color: #B9C6D2; padding: 60px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9FD8F7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 960px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 -4px 20px rgba(0,0,0,.12); }
  .callbar a { padding: 16px 8px; text-align: center; font-weight: 800; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .callbar a:first-child { background: var(--terracotta); color: #fff; }
  .callbar a:last-child { background: var(--sky); color: var(--ink); }
  body { padding-bottom: 56px; }
  .header-cta { display: none; }
}

/* One-page layout */
section[id] { scroll-margin-top: 72px; }
article[id] { scroll-margin-top: 92px; }
.section-alt .faq details, .section-alt .answer { background: #fff; }
.band-sky { background: var(--sky-light); }
.areas-grid { align-items: start; }
.area-card p { color: var(--muted); }
.area-card h3 { font-size: 1.1rem; margin: 0; }
.area-card h4 { font-family: var(--heading); font-size: 1rem; margin: 1.2em 0 .4em; }
.area-issues { padding-left: 1.2em; margin: 0; color: var(--muted); font-size: .97rem; }
.area-issues li { margin-bottom: .3em; }
.area-issues li::marker { color: var(--terracotta); }
.fold-body { padding: 0 20px 20px; }
.fold summary { cursor: pointer; padding: 16px 56px 16px 20px; list-style: none; position: relative; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--terracotta-light); color: var(--terracotta-dark); display: grid; place-items: center; font-weight: 800; }
.fold[open] summary::after { content: "\2013"; }
#contact h2 { margin-bottom: .4em; }
#contact .form { margin-top: 20px; }

/* Small keyword pages */
.prose h2:first-child { margin-top: 0; }
.quick-links { margin: 24px 0 0; font-size: .95rem; color: var(--muted); }

/* Full service list */

.specialties-label { font-weight: 700; margin: 0 0 10px; }

/* Job photos */
.photo { margin: 0; }
.photo a { display: block; border-radius: 12px; overflow: hidden; background: var(--line); }
.photo img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center 30%; transition: transform .2s; }
.photo a:hover img { transform: scale(1.03); }
.photo > img { display: block; border-radius: 12px; background: var(--line); }
.photo figcaption { font-size: .88rem; font-weight: 600; color: var(--muted); margin-top: 6px; }
.service-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; max-width: 640px; }
#services { padding: 44px 0; }
#services .section-head { margin-bottom: 16px; }
#services .section-head p { margin-bottom: 0; }
.explorer { display: grid; gap: 12px; }
.svc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.svc-tabs .svc-tab:last-child { grid-column: 1 / -1; }
.svc-tab { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: inherit; font-weight: 700; font-size: .92rem; line-height: 1.15; text-align: left; cursor: pointer; }
.svc-tab svg { flex-shrink: 0; color: var(--terracotta); }
.svc-tab:hover { border-color: var(--terracotta); }
.svc-tab[aria-selected="true"] { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.svc-tab[aria-selected="true"] svg { color: #fff; }
.svc-tab:focus-visible { outline: 3px solid var(--sky-dark); outline-offset: 2px; }
.svc-pane { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.svc-pane + .svc-pane { margin-top: 12px; }
.svc-pane h3 { margin: 0 0 4px; font-size: 1.3rem; }
.svc-pane > p { margin: 0; color: var(--muted); }
.group-note { margin: -2px 0 6px; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.svc-pane > p.photo-note { margin: 14px 0 0; padding: 8px 12px; border-left: 3px solid var(--terracotta); background: var(--terracotta-light); border-radius: 0 8px 8px 0; color: var(--ink); font-size: .9rem; }
.svc-pane > p.svc-sub { margin: 0 0 6px; color: var(--terracotta-dark, var(--terracotta)); font-weight: 700; font-size: .95rem; }
.svc-pane .chips { margin: 8px 0 0; gap: 5px; }
.svc-pane .chips li { padding: 2px 10px; font-size: .82rem; }
.svc-pane .cta-row { margin: 12px 0 0; gap: 8px; }
.work-groups { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.work-group { flex: 1 1 100%; min-width: 0; }
.work-group h4 { font-size: .92rem; margin: 0 0 3px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.work-group figcaption { font-size: .78rem; line-height: 1.2; margin-top: 2px; }
@media (min-width: 900px) {
  .explorer { grid-template-columns: 230px minmax(0, 1fr); align-items: start; }
  .svc-tabs { grid-template-columns: 1fr; }
  .svc-tabs .svc-tab:last-child { grid-column: auto; }
  .svc-tab { padding: 12px 14px; font-size: .98rem; }
  .svc-pane { padding: 18px 20px; }
  /* Each job group takes as many photo widths as it has photos, so all photos are one size */
  .work-group { flex: 0 0 calc(var(--n) / var(--u) * (100% + 12px) - 12px); }
  .work-grid { grid-template-columns: repeat(var(--n), 1fr); }
}
@media (prefers-reduced-motion: reduce) { .photo img { transition: none; } }

/* Logo: has a white background, so it sits on a white tile in the dark footer */
.brand img { flex-shrink: 0; }
.site-footer .brand img { filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff); } /* the navy eagle needs an outline on the dark footer */

.hero-trust { margin: 18px 0 0; font-weight: 700; color: var(--terracotta-dark); }

/* Service details side panel */
html.panel-open { overflow: hidden; }
dialog.panel { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; width: min(720px, 100%); max-width: none; height: 100vh; height: 100dvh; max-height: none; overflow-y: auto; overscroll-behavior: contain; background: #fff; color: var(--ink); box-shadow: -12px 0 40px rgba(15,27,40,.25); }
dialog.panel[open] { animation: panel-in .25s ease-out; }
dialog.panel::backdrop { background: rgba(15,27,40,.55); }
@keyframes panel-in { from { transform: translateX(48px); opacity: 0; } }
.panel-inner { padding: 16px 40px 56px; }
.panel-inner h2 { margin-top: 14px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.panel-inner .answer { font-size: 1rem; }
.panel .prose { max-width: none; }
.panel .service-photos { max-width: none; }
.panel-close { position: sticky; top: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; width: fit-content; margin-left: auto; padding: 9px 14px; font: inherit; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 14px rgba(22,38,58,.12); cursor: pointer; }
.panel-close:hover { background: var(--sky-light); }
@media (max-width: 560px) { .panel-inner { padding: 12px 16px 40px; } }
@media (prefers-reduced-motion: reduce) { dialog.panel[open] { animation: none; } }

/* About section */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.about-main .photo img { aspect-ratio: 4 / 5; object-position: center 40%; }
.about-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.about-more .photo img { aspect-ratio: 1; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }
.about-reviews { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; margin-top: 48px; }
.about-reviews h3 { margin-top: 0; }
.about-reviews iframe { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 800px) { .about-reviews { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; } .about-reviews iframe { height: 300px; } }
.review-score { font-size: 1.05rem; margin-bottom: 10px; }
.stars { color: #E8A317; letter-spacing: 2px; }
.review-quote { margin: 18px 0 22px; padding-left: 16px; border-left: 3px solid var(--terracotta); }
.review-quote p { margin: 0 0 4px; font-weight: 600; }
.review-quote cite { font-style: normal; font-size: .9rem; color: var(--muted); }

/* Photo pop-up */
.photo > a { cursor: zoom-in; }
html.lightbox-open { overflow: hidden; }
dialog.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 60px 76px; border: 0; background: transparent; overflow: hidden; }
dialog.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lb-in .15s ease-out; }
dialog.lightbox::backdrop { background: rgba(10,18,28,.88); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; border-radius: 10px; }
.lightbox figcaption { margin-top: 12px; color: #fff; font-weight: 600; text-align: center; }
.lb-count { position: fixed; top: 24px; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255,255,255,.75); font-size: .9rem; }
.lb-btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.lb-btn:hover { background: #fff; color: var(--terracotta); }
.lb-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 600px) {
  dialog.lightbox { padding: 70px 10px 90px; }
  .lightbox img { max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { dialog.lightbox[open] { animation: none; } }

