:root {
  --teal: #2a7f79;
  --teal-dark: #1d5f5a;
  --teal-light: #5fb0a8;
  --teal-text: #4fb3a9;
  --black: #0b0b0b;
  --silver: #eef0f0;
  --ink: #161a1a;
  --muted: #5f6969;
  --line: #dde3e2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
h1, h2, h3 { font-family: Archivo, sans-serif; font-weight: 800; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
p { margin: 0 0 1em; }
p a:not(.btn) { color: var(--teal); font-weight: 600; }
.wrap { width: 100%; padding: 0 clamp(20px, 5vw, 96px); }
section { padding: 88px 0; scroll-margin-top: 72px; }
.kicker { color: var(--teal); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 620px; }
.alt { background: var(--silver); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head .lead { margin-bottom: 0; }

.btn { display: inline-block; padding: 14px 24px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font-family: inherit; font-size: 1rem; cursor: pointer; }
.btn-white { background: #fff; color: var(--teal-dark); }
.btn-white:hover { background: var(--silver); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { border-color: var(--teal); color: var(--teal-dark); }
.btn-ghost:hover { background: var(--teal); color: #fff; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: linear-gradient(#fff, var(--silver)); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; }
.logo img { height: 50px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--teal); }
nav a[aria-current="page"] { color: var(--teal-dark); border-bottom-color: var(--teal); }
nav .phone { font-weight: 700; color: var(--teal-dark); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }

/* Home hero. Drop a photo at img/hero.jpg; until then the striped placeholder shows through. */
.hero { position: relative; color: #fff; padding: 110px 0; background:
    linear-gradient(90deg, rgba(42,127,121,.95) 0%, rgba(42,127,121,.8) 40%, rgba(42,127,121,.25) 100%),
    url("../img/hero.jpg") center / cover no-repeat,
    repeating-linear-gradient(45deg, #3d6f6b 0 22px, #457a76 22px 44px); }
.ph-label { position: absolute; right: 20px; bottom: 16px; font-size: .8rem; background: rgba(0,0,0,.45); color: #fff; padding: 6px 10px; border-radius: 4px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 1000px; }
.hero p { font-size: 1.2rem; max-width: 560px; color: #e6f4f2; margin-bottom: 32px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Inner page banner */
.page-hero { background: linear-gradient(180deg, var(--teal) 0%, var(--teal-light) 100%); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .25em; }
.page-hero p { color: #e6f4f2; font-size: 1.15rem; max-width: 640px; margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.svc { border: 1px solid var(--line); border-radius: 10px; padding: 28px; background: #fff; }
.svc h3 { font-size: 1.2rem; margin-bottom: .4em; }
.svc p { color: var(--muted); margin: 0; }
.svc::before { content: ""; display: block; width: 36px; height: 4px; background: var(--teal); border-radius: 2px; margin-bottom: 18px; }
.svc-cta { background: var(--teal); border-color: var(--teal); color: #fff; text-decoration: none; }
.svc-cta:hover { background: var(--teal-dark); }
.svc-cta p { color: #e6f4f2; }
.svc-cta::before { background: #fff; }

/* Services page: detailed rows */
.svc-list { display: grid; gap: 56px; }
.svc-row { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: center; }
.svc-row:nth-child(even) { grid-template-columns: 2fr 1fr; }
.svc-row:nth-child(even) > :first-child { order: 2; }
.svc-row h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.svc-row p { color: var(--muted); }
.svc-row ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.svc-row li { margin: 4px 0; }
.specs { list-style: none; padding: 0 !important; margin: 0 0 1em; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line); }
.specs li span:first-child { color: var(--muted); }
.note { font-size: .85rem; color: var(--muted); }

/* Gallery + photo placeholders */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.ph { aspect-ratio: 4/3; border-radius: 8px; background: var(--silver); border: 1px dashed #c3cccb; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.ph-sm { aspect-ratio: 16/9; width: 100%; max-width: 360px; justify-self: center; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.member { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--silver); border: 1px dashed #c3cccb; display: grid; place-items: center; color: var(--muted); font-size: .72rem; overflow: hidden; }
.avatar img { width: 72px; height: 72px; object-fit: cover; display: block; }
.member h3 { font-size: 1.05rem; margin: 0 0 2px; }
.member p { color: var(--muted); margin: 0; font-size: .92rem; }

/* Service area */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.towns { columns: 2; list-style: none; padding: 0; margin: 24px 0; }
.towns li { padding: 5px 0; font-weight: 500; }
.towns li::before { content: "•"; color: var(--teal); font-weight: 800; margin-right: 10px; }
.map { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Dark sections (black, like the original site) */
.dark { background: var(--black); color: #fff; }
.dark .kicker { color: var(--teal-text); }
.dark .lead, .dark .note { color: #9aa5a4; }

/* CTA band */
.cta-band { background: var(--black); color: #fff; padding: 64px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .2em; }
.cta-band p { margin: 0; color: #9aa5a4; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact .big { display: block; font-family: Archivo; font-weight: 800; font-size: 2rem; color: var(--teal-text); text-decoration: none; margin: 20px 0 6px; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 24px 0; }
.contact dt { color: #9aa5a4; }
.contact dd { margin: 0; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .full { grid-column: 1 / -1; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: #cdd5d4; }
input, select, textarea { width: 100%; padding: 12px; border-radius: 6px; border: 1px solid #333; background: #151515; color: #fff; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-text); border-color: var(--teal-text); }
textarea { min-height: 110px; resize: vertical; }
.form-msg { display: none; padding: 12px 14px; border-radius: 6px; background: var(--teal-dark); }

/* Footer */
footer { background: var(--black); color: #8b9695; border-top: 1px solid #1d1d1d; padding: 56px 0 0; font-size: .92rem; }
footer a { color: #cdd5d4; text-decoration: none; }
footer a:hover { color: var(--teal-text); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid p { margin: 16px 0 0; max-width: 340px; }
footer h4 { color: #fff; font-family: Archivo; font-size: 1rem; margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #1d1d1d; margin-top: 44px; padding-top: 20px; padding-bottom: 24px; }
.foot-bottom a { color: var(--teal-text); }
.foot-logo { height: 40px; width: auto; display: block; }
a.svc { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.svc:hover { border-color: var(--teal); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
a.svc-cta { color: #fff; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

.callbar { display: none; }

@media (max-width: 860px) {
  nav a:not(.phone) { display: none; }
  .menu-btn { display: block; }
  nav.open { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 16px 20px 24px; gap: 16px; border-bottom: 1px solid var(--line); }
  nav.open a { display: block; }
  nav.open .menu-btn { position: absolute; top: -56px; right: 20px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .area, .contact, .svc-row { grid-template-columns: 1fr; gap: 28px; }
  .svc-row:nth-child(even) { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) > :first-child { order: 0; }
  .svc-row .photo, .split > .photo, .featured .photo { max-width: 560px; }
  #gallery-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .hero { padding: 72px 0; }
  .callbar { display: flex; position: fixed; inset: auto 0 0; z-index: 60; }
  .callbar a { flex: 1; text-align: center; padding: 14px; font-weight: 700; text-decoration: none; background: var(--teal); color: #fff; }
  .callbar a + a { background: var(--black); }
  body { padding-bottom: 50px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .logo img { height: 40px; }
  .gallery, form { grid-template-columns: 1fr; }
  nav .phone { display: none; }
}

/* ---------- Content sections ---------- */
.todo { background: #fff3cd; color: #7a5b00; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust .t { padding: 22px 16px; display: flex; align-items: center; gap: 12px; font-weight: 600; border-right: 1px solid var(--line); }
.trust .t:last-child { border-right: 0; }
.trust .i { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--silver); color: var(--teal); display: grid; place-items: center; font-weight: 800; font-family: Archivo; font-size: .8rem; }

/* Split: photo + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .ph { aspect-ratio: 5/4; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.stat { background: var(--silver); border-radius: 10px; padding: 20px; }
.stat b { display: block; font-family: Archivo; font-size: 2rem; color: var(--teal-dark); line-height: 1.1; }
.stat > span { color: var(--muted); font-size: .9rem; }
.alt .stat { background: #fff; border: 1px solid var(--line); }

/* Feature grid (why us / values) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; margin-top: 40px; }
.feature { display: flex; gap: 16px; }
.feature .n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: Archivo; }
.feature h3 { font-size: 1.15rem; margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; }
.dark .feature p { color: #9aa5a4; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; counter-reset: s; }
.step { border-top: 4px solid var(--teal); padding-top: 20px; }
.step::before { counter-increment: s; content: "Step " counter(s); display: block; color: var(--teal); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.dark .step::before { color: var(--teal-text); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); margin: 0; }
.dark .step p { color: #9aa5a4; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.stars { color: #e0a526; letter-spacing: 2px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 16px; }
.review cite { font-style: normal; font-weight: 600; }
.review cite small { display: block; color: var(--muted); font-weight: 500; }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 8px; margin-top: -4px; }

/* Chips (jump links, filters) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips a, .chips button { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.chips a:hover, .chips button:hover { border-color: var(--teal); color: var(--teal-dark); }
.chips button.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Two-up panels */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 32px; background: #fff; }
.panel h3 { font-size: 1.4rem; }
.panel ul { padding-left: 1.2em; margin: 0; color: var(--muted); }
.panel li { margin: 6px 0; }

/* Town cards */
.town-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.town { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: #fff; }
.town h3 { font-size: 1.1rem; margin-bottom: .2em; }
.town p { color: var(--muted); margin: 0; font-size: .92rem; }
.town.home { background: var(--teal); border-color: var(--teal); color: #fff; }
.town.home p { color: #e6f4f2; }

/* Info cards (contact) */
.info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.info { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: #fff; }
.info small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; margin-bottom: 6px; }
.info a, .info div { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.info a:hover { color: var(--teal); }

/* Featured project */
.featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.featured .ph { aspect-ratio: 16/10; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 24px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* Photos */
.photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; background: var(--silver); }
.split .photo { aspect-ratio: 4/3; }
.featured .photo { aspect-ratio: 4/3; }
/* Keep photos beside text at a moderate size */
.split:has(> .photo:first-child) { grid-template-columns: 1fr 2fr; }
.split:has(> .photo:last-child) { grid-template-columns: 2fr 1fr; }
.featured { grid-template-columns: 1fr 2fr; }
#gallery-grid { grid-template-columns: repeat(3, 1fr); }
.page-hero.has-photo { background-size: cover; background-position: center; padding: 104px 0 92px; }
.gitem { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--silver); }
.gitem img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .3s; }
.gitem:hover img { transform: scale(1.04); }
.gitem small { position: absolute; left: 12px; top: 12px; background: var(--teal); color: #fff; font: 600 .72rem Inter, sans-serif; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.gitem[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-width: 100%; max-height: 82vh; display: block; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; }

/* Gallery items + lightbox */
button.ph { cursor: zoom-in; position: relative; font: inherit; font-size: .9rem; width: 100%; }
.gallery .ph[hidden] { display: none; }
.ph small { position: absolute; left: 12px; top: 12px; background: var(--teal); color: #fff; font-size: .72rem; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85); display: none; place-items: center; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox .ph { width: min(1000px, 100%); font-size: 1.1rem; }

@media (max-width: 1100px) {
  .features, .reviews, .steps, .stats, .info-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .split, .two, .featured { grid-template-columns: 1fr; gap: 28px; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust .t:nth-child(2) { border-right: 0; }
  .trust .t { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .features, .reviews, .steps, .info-cards, .trust .wrap { grid-template-columns: 1fr; }
  .trust .t { border-right: 0; }
}

/* Small screens: stack photo layouts (placed last so it overrides the desktop sizing above) */
@media (max-width: 860px) {
  .split:has(> .photo:first-child), .split:has(> .photo:last-child), .featured { grid-template-columns: 1fr; }
  #gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  #gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Services dropdown ---------- */
.dd { position: relative; display: flex; align-items: center; gap: 2px; }
.dd-btn { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink); font-size: .8rem; line-height: 1; }
.dd-menu { display: none; position: absolute; top: 100%; left: -14px; min-width: 250px; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.1); padding: 8px; z-index: 60; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: flex; }
nav .dd-menu a { padding: 9px 12px; border-radius: 6px; border-bottom: 0; white-space: nowrap; }
nav .dd-menu a:hover, nav .dd-menu a[aria-current="page"] { background: var(--silver); color: var(--teal-dark); }

/* Breadcrumb in page banners */
.page-hero .crumbs { font-size: .9rem; margin-bottom: 10px; color: #d7ecea; }
.page-hero .crumbs a { color: #fff; font-weight: 600; text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }

/* Service cards (services overview) */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.svc-card:hover { border-color: var(--teal); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.svc-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.svc-card > div { padding: 22px 24px 24px; }
.svc-card h3 { font-size: 1.2rem; margin-bottom: .35em; }
.svc-card p { color: var(--muted); margin: 0 0 12px; }
.svc-card .more { color: var(--teal); font-weight: 600; }
.svc-card-cta { background: var(--teal); border-color: var(--teal); color: #fff; justify-content: center; }
.svc-card-cta:hover { background: var(--teal-dark); }
.svc-card-cta p { color: #e6f4f2; }
.svc-card-cta .more { color: #fff; }
.panel a:not(.btn) { color: var(--teal); font-weight: 600; text-decoration: none; }

@media (max-width: 1100px) { .svc-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .dd { display: none; }
  nav.open .dd { display: block; }
  nav.open .dd-btn { display: none; }
  nav.open .dd-menu { display: flex; position: static; min-width: 0; border: 0; box-shadow: none; padding: 6px 0 0 14px; gap: 2px; }
  nav.open .dd-menu a { padding: 6px 0; font-size: .95rem; color: var(--muted); }
}
@media (max-width: 560px) { .svc-cards { grid-template-columns: 1fr; } }

/* =====================================================================
   Layout polish: consistent proportions from phones to wide monitors.
   Kept last so it overrides the section rules above.
   ===================================================================== */

/* Content stops widening at 1920px so nothing gets stretched thin. */
.wrap { max-width: 1920px; margin-left: auto; margin-right: auto; }

/* Readable line lengths that scale with the text */
.lead { max-width: 40rem; }
.hero p { max-width: 36rem; }
.page-hero p { max-width: 42rem; }
.split > div:not(.dark) { max-width: 54rem; }

/* Fixed column counts so every grid fills evenly (8 service cards, 10 towns, 3 team cards) */
.services, .svc-cards { grid-template-columns: repeat(4, 1fr); }
.town-grid { grid-template-columns: repeat(5, 1fr); }
.team { grid-template-columns: repeat(3, 1fr); }
.svc-card-cta > div { padding: 32px; }
.svc-card-cta h3 { font-size: 1.4rem; }

/* Panels sit at their own height instead of stretching to match a taller neighbour */
.two { align-items: start; }

/* Maps: a calmer shape */
.map { aspect-ratio: 16/11; }

/* FAQ sections: heading on the left, questions on the right */
.wrap:has(> .faq) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 64px; align-items: start; }
.wrap:has(> .faq) > .kicker { grid-column: 1; grid-row: 1; }
.wrap:has(> .faq) > h2 { grid-column: 1; grid-row: 2; }
.wrap:has(> .faq) > .faq { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; max-width: none; }

@media (max-width: 1100px) {
  .services, .svc-cards, .town-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .team { grid-template-columns: 1fr; }
  .split > div:not(.dark) { max-width: none; }
  .wrap:has(> .faq) { display: block; }
  .wrap:has(> .faq) > .faq { margin-top: 24px; }
}
@media (max-width: 560px) {
  .services, .svc-cards, .town-grid { grid-template-columns: 1fr; }
}
.hero h1 { max-width: 15em; text-wrap: balance; }
h1, h2 { text-wrap: balance; }
nav a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1060px) {
  nav { gap: 16px; }
  nav a, .dd-btn { font-size: .92rem; }
  nav .phone { display: none; }
  .logo img { height: 42px; }
}
/* Phones: short items two across so pages don't become one long column */
@media (max-width: 560px) {
  #gallery-grid, .steps:has(.photo), .town-grid, .services { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .town { padding: 16px; }
  .gitem small { font-size: .6rem; left: 8px; top: 8px; }
}
/* Two plain white sections in a row: don't double the space between them */
section:not([class]):not([style]) + section:not([class]):not([style]) { padding-top: 0; }

/* ---------- Phone polish ---------- */
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .page-hero.has-photo { padding: 64px 0 56px; }
  .hero { padding: 64px 0; }
  .cta-band { padding: 48px 0; }

  /* Short items two across instead of one long column */
  .trust .wrap, .info-cards, .steps:not(:has(.photo)) { grid-template-columns: 1fr 1fr; }
  .trust .t { padding: 14px 8px; font-size: .85rem; border-right: 0; }
  .trust .i { width: 32px; height: 32px; font-size: .7rem; }
  .info { padding: 16px; }
  .info a, .info div { font-size: 1rem; }
  .steps { gap: 20px 14px; }
  .step h3 { font-size: 1.05rem; }
  .step p { font-size: .9rem; }

  /* Service cards: small photo beside the text instead of a full-width photo */
  .svc-card:not(.svc-card-cta) { flex-direction: row; align-items: stretch; }
  .svc-card:not(.svc-card-cta) img { width: 112px; aspect-ratio: auto; flex: none; }
  .svc-card > div { padding: 14px 16px; }
  .svc-card h3 { font-size: 1.05rem; }
  .svc-card p { font-size: .9rem; margin-bottom: 6px; }
  .svc-cards { gap: 12px; }

  /* Footer: brand on top, link columns side by side */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  footer { padding-top: 40px; }

  /* Buttons share a row where they fit */
  .ctas .btn { padding: 12px 18px; }
}

/* ---------- Tablet polish ---------- */
@media (min-width: 561px) and (max-width: 1100px) {
  .gallery:not(#gallery-grid) { grid-template-columns: repeat(3, 1fr); }
  form { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .services, .svc-cards { grid-template-columns: repeat(4, 1fr); }
  .svc-card h3 { font-size: 1.05rem; }
}
@media (min-width: 561px) and (max-width: 860px) {
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .map { aspect-ratio: auto; height: 320px; } }

/* ── Admin-driven content ── */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg:not(.ok) { background: #8a2c24; }
.announce { background: var(--teal); color: #fff; text-align: center; font-weight: 600; font-size: .92rem; padding: 9px 16px; line-height: 1.4; }
.avatar .ini { font: 800 1.4rem Archivo, sans-serif; color: var(--teal-dark); }
.member .bio { margin-top: 6px; font-size: .88rem; line-height: 1.5; }
.member:has(.bio) { align-items: flex-start; }

/* Phones: let 2-across cards shrink below their longest word */
.services > *, .town-grid > *, #gallery-grid > * { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }

/* Blocks that wait for real content from the admin panel stay hidden while
   they still hold a [placeholder]. */
[data-optional]:has(.todo),
[data-optional="feat_title"]:has([data-s="feat_title"].todo),
.facts dd:has(.todo), .facts dt:has(+ dd .todo) { display: none !important; }
[data-optional="feat_title"]:not(:has([data-s="feat_title"].todo)) { display: block !important; }
.stats:has(> [data-optional] .todo) { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ── Touch & small-screen usability ── */
/* Open phone menu: scroll inside it if it's taller than the screen, and stay
   clear of the fixed Call Now / Free Estimate bar at the bottom. */
@media (max-width: 860px) {
  nav.open { max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-shadow: 0 16px 30px rgba(0,0,0,.12); }
  nav.open > a, nav.open .dd-top { padding: 4px 0; }
  nav.open .dd-menu a { padding: 9px 0; }
  footer ul { gap: 4px; }
  footer li a { display: inline-block; padding: 7px 0; }
}
/* Comfortable tap sizes */
.dd-btn { min-width: 32px; min-height: 32px; display: inline-grid; place-items: center; }
header .phone { padding: 10px 0; }
.foot-bottom a { display: inline-block; padding: 10px 0; }
/* Readable labels */
.gitem small { font-size: .75rem; letter-spacing: .03em; max-width: calc(100% - 16px); white-space: normal; line-height: 1.3; }
.trust .i { font-size: .8rem; }
@media (max-width: 560px) {
  .gitem small { font-size: .75rem; left: 8px; top: 8px; padding: 3px 7px; }
  .trust .i { font-size: .75rem; }
}
.info a[href^="tel:"] { display: inline-block; padding: 8px 0; margin: -8px 0; }
/* Menu button now sits beside the nav (outside the scrolling menu) */
@media (max-width: 860px) {
  header .wrap { gap: 14px; }
  header nav { margin-left: auto; }
  .menu-btn { flex: none; min-height: 40px; }
}
/* Very narrow phones (320px, e.g. first-gen iPhone SE): one card per row so words don't split */
@media (max-width: 360px) {
  .services, .town-grid { grid-template-columns: 1fr; }
  .services > *, .town-grid > * { overflow-wrap: normal; hyphens: manual; }
}

/* The Call Now / Free Estimate bar steps aside while the phone menu is open */
body:has(nav.open) .callbar { display: none; }
/* Two-across cards on phones: tighter padding and headings so whole words fit;
   only break a word if it truly can't fit (no mid-word splits otherwise). */
.services > *, .town-grid > *, #gallery-grid > * { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 560px) {
  .svc { padding: 18px 14px; }
  .svc h3 { font-size: 1rem; line-height: 1.2; }
  .svc p { font-size: .9rem; line-height: 1.45; }
  .svc::before { margin-bottom: 12px; width: 28px; }
  .town { padding: 14px 12px; }
  .town h3 { font-size: 1rem; }
}
