/* ==========================================================================
   Tapco HomeDry — main stylesheet
   Matches the existing tapcohomedry.com design (fonts, colours, sizes and layout
   measured from the live Elementor site), rebuilt without Elementor.
   1 Tokens  2 Base  3 Buttons & type  4 Header  5 Homepage  6 Inner pages
   7 Content blocks  8 FAQs, links & cards  9 Site-wide sections  10 Footer
   11 Motion  12 Responsive
   ========================================================================== */

/* 1. Tokens (Elementor global colours from the live site) ------------------ */
:root {
  --navy: #05244c;      /* primary */
  --blue: #2a6ca2;      /* secondary */
  --sky: #84c5fb;       /* accent */
  --text: #304768;      /* text */
  --ink: #33383d;
  --title: #1c244b;
  --desc: #324a6d;
  --soft: #f5f7fa;
  --soft-2: #f9fafd;
  --band: rgb(200 212 219 / .35);
  --line: #c8d5dc;
  --white: #ffffff;
  --story-bg: #ebf3f7;
  --shadow: 0 20px 40px -24px rgb(5 36 76 / .3);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --head: 'Poppins', sans-serif;
  --body: 'Figtree', sans-serif;
  --gutter: 24px;
  --header-h: 100px;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; color: var(--navy); line-height: 1.2; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.container { width: 100%; max-width: 1265px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.center { text-align: center; }
.icon { flex-shrink: 0; transition: transform .3s var(--ease); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 20px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* 3. Buttons & type ------------------------------------------------------- */
.h-display { font-size: clamp(40px, 5.6vw, 72px); color: var(--title); }
.h-section { font-size: clamp(30px, 3.2vw, 40px); font-weight: 700; color: var(--navy); }
.lead { font-size: 18px; color: var(--text); }
.eyebrow { font-family: var(--head); font-size: 14px; font-weight: 600; color: var(--blue); }
.muted { color: var(--desc); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 20px; border: 1px solid transparent; font-family: var(--head); font-size: 16px; font-weight: 500; line-height: 1; text-align: center; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--sky); border-radius: 25px; padding: 15px; }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-pill { border-radius: 100px; padding: 16px 55px; }
.btn-block { width: 100%; }

/* 4. Header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); transition: box-shadow .3s; }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -14px rgb(5 36 76 / .35); }
.header-inner { display: flex; align-items: center; gap: 24px; max-width: 1440px; height: var(--header-h); margin: 0 auto; padding: 0 clamp(20px, 8vw, 101px); }
.site-brand { flex-shrink: 0; }
.site-logo { width: auto; height: 60px; }

.main-nav { margin-left: auto; display: flex; align-items: center; }
.main-nav .menu { list-style: none; display: flex; align-items: center; gap: 0; }
.main-nav .menu > li { position: relative; display: flex; align-items: center; margin-right: 15px; }
.main-nav .menu > li > a { position: relative; padding: 5px 0; font-family: var(--head); font-size: 18px; font-weight: 600; line-height: 18px; color: var(--navy); white-space: nowrap; transition: color .2s; }
.main-nav .menu > li > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav .menu > li:hover > a::after, .main-nav .menu > .current-menu-item > a::after, .main-nav .menu > .current-menu-ancestor > a::after, .main-nav .menu > .current_page_item > a::after { transform: scaleX(1); }
.submenu-toggle { display: grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer; transition: transform .3s var(--ease); }
.menu-item-has-children:hover > .submenu-toggle, .menu-item-has-children.is-open > .submenu-toggle { transform: rotate(180deg); }
.main-nav .sub-menu { position: absolute; top: 100%; left: -12px; z-index: 110; min-width: 260px; list-style: none; padding: 8px 0; background: var(--white); box-shadow: 0 10px 30px -10px rgb(5 36 76 / .3); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
.main-nav .menu > li:hover > .sub-menu, .main-nav .menu > li:focus-within > .sub-menu, .main-nav .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.main-nav .sub-menu a { display: block; padding: 10px 18px; font-family: var(--head); font-size: 15px; font-weight: 500; color: var(--navy); transition: background .2s, color .2s; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu a:focus-visible { background: var(--soft); color: var(--blue); }
.nav-extra { display: none; }
.header-cta { flex-shrink: 0; height: 40px; padding: 12px 24px; }

.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; cursor: pointer; place-items: center; }
.menu-toggle-bars { display: grid; gap: 5px; width: 24px; }
.menu-toggle-bars span { height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. Homepage ------------------------------------------------------------- */
.hero { position: relative; display: grid; place-items: center; min-height: 600px; padding: 114px 0; overflow: hidden; text-align: center; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.5s ease, transform 7s linear; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: rgb(245 247 250 / .75); }
.hero-content { position: relative; }
.hero-title { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.4; color: var(--navy); }
.hero-title .line { display: block; }
.hero-sub { margin-top: 10px; font-family: var(--body); font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; line-height: 1.2; color: var(--blue); }

.intro { background: var(--soft-2); padding: 90px 0; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 60px; align-items: start; }
.intro-title { font-size: clamp(38px, 5.5vw, 70px); line-height: 1.2; color: var(--blue); }
.intro-copy { display: grid; gap: 20px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.intro-badges { display: flex; gap: 16px; }
.intro-badges img { width: 88px; height: 88px; object-fit: contain; }

.services { padding: 100px 0; }
.section-head { display: grid; gap: 12px; margin-bottom: 50px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.cta-card { display: flex; flex-direction: column; text-align: center; }
.cta-card-media { display: block; height: 175px; overflow: hidden; }
.cta-card-img { display: block; height: 100%; background: center / cover no-repeat; transition: transform .8s var(--ease); }
.cta-card:hover .cta-card-img { transform: scale(1.06); }
.cta-card-body { display: flex; flex-direction: column; align-items: center; flex: 1; padding-top: 25px; }
.cta-card-title { font-size: 24px; color: var(--title); margin-bottom: 18px; }
.cta-card-desc { font-size: 16px; line-height: 1.5; color: var(--desc); margin-bottom: 24px; }
.cta-card-body .btn { margin-top: auto; }

.clients { padding: 10px 0 90px; }
.clients .h-section { margin-bottom: 30px; }
.marquee { position: relative; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-reverse .marquee-track { animation-direction: reverse; }
.marquee-item { display: grid; place-items: center; width: clamp(150px, 16vw, 210px); height: 120px; padding: 10px 24px; }
.marquee-item img { max-height: 90px; width: auto; object-fit: contain; }

/* 6. Inner pages ---------------------------------------------------------- */
.page-hero { position: relative; display: grid; place-items: center; min-height: 400px; padding: 80px 0; overflow: hidden; text-align: center; }
.page-hero-compact { min-height: 280px; padding: 60px 0; }
.page-hero-img { position: absolute; inset: 0; background: center / cover no-repeat; }
.page-hero-overlay { position: absolute; inset: 0; background: rgb(245 247 250 / .75); }
.page-hero-inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.page-title { font-size: clamp(34px, 4vw, 45px); line-height: 1.2; color: var(--navy); }
.page-sub { max-width: 560px; font-family: var(--head); font-size: 16px; line-height: 1.6; color: var(--text); }
.page-hero .eyebrow { margin: 0; }

.content-band { background: var(--soft-2); padding: 80px 0; }
.content-band-after { background: var(--white, #fff); }
.content-narrow { max-width: 960px; }
.page .content-narrow:not(.content-band .content-narrow), .single .content-narrow { padding-top: 70px; padding-bottom: 70px; }
.post-section { padding-top: 60px; padding-bottom: 80px; }

/* 7. Content blocks ------------------------------------------------------- */
.entry-content { color: var(--text); font-size: 18px; line-height: 1.6; min-width: 0; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content .lead { font-size: 20px; color: var(--text); }
.entry-content h2 { font-size: clamp(30px, 3.6vw, 45px); line-height: 1.2; color: var(--blue); margin-top: 1.6em; }
.entry-content h3 { font-size: 22px; color: var(--navy); margin-top: 1.3em; }
.entry-content > h2:first-child, .entry-content > p:first-child { margin-top: 0; }
.entry-content a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:not(.btn):hover { color: var(--navy); }
.entry-content ul:not([class]), .entry-content ol:not([class]) { padding-left: 1.3em; }
.entry-content img { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

.ticks { list-style: none; display: grid; gap: 8px; padding: 0; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; background: var(--blue); }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.info-card { padding: 26px 22px; background: var(--band); text-align: center; }
.info-card h3 { margin: 0 0 10px; font-family: var(--head); font-size: 22px; color: var(--blue); }
.info-card p { font-size: 16px; color: var(--text); }

.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; padding: 0; }
.steps li { position: relative; padding: 4px 0 4px 64px; min-height: 46px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: var(--white); font-family: var(--head); font-weight: 600; }
.steps h3 { margin: 0 0 4px; font-size: 20px; }
.steps p { font-size: 16px; }

.callout { padding: 20px 24px; background: var(--band); border-left: 4px solid var(--blue); }
.before-after, .img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.before-after img, .img-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.before-after figcaption, .img-pair figcaption { grid-column: 1 / -1; font-size: 15px; color: var(--desc); text-align: center; }
.entry-thumb img { width: 100%; }

.timeline { display: grid; gap: 24px; }
.timeline-item { padding: 24px; background: var(--white); border-left: 4px solid var(--blue); }
.timeline-year { font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--blue); }
.timeline-item h3 { margin: 6px 0 8px; font-size: 22px; }
.timeline-item p { font-size: 17px; }

.symptom-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.symptom { padding: 22px; background: var(--white); border: 1px solid var(--line); }
.symptom h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.symptom p { font-size: 16px; }
.symptom p + p { margin-top: 8px; font-weight: 600; }

.town-list { padding: 24px; background: var(--white); border: 1px solid var(--line); }
.town-list-title { font-family: var(--head); font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.town-list ul { list-style: none; columns: 4 140px; column-gap: 16px; font-size: 15px; line-height: 1.9; color: var(--text); }
.project-links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; }
.project-links a { display: block; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); text-decoration: none !important; font-weight: 600; }
.project-links a:hover { border-color: var(--blue); }

/* 8. FAQs, links & cards -------------------------------------------------- */
.faq-band { padding: 80px 0; }
.faq-section { margin-top: 0; }
.faq-section .h-section { margin-bottom: 24px; text-align: center; color: var(--blue); }
.faq-list { display: grid; gap: 10px; }
.faq { border: 1px solid var(--line); background: var(--white); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-family: var(--head); font-weight: 600; font-size: 17px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 0; top: 50%; width: 18px; height: 2px; margin-top: -1px; background: var(--blue); transition: transform .3s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0); }
.faq-answer { padding: 0 22px 20px; color: var(--text); font-size: 17px; }

.links-band { padding: 80px 0; background: var(--band); }
.links-band .lead { margin: 10px auto 26px; }
.links-sub { margin-top: 34px !important; font-weight: 600; }
.pill-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.pill-link { display: inline-block; padding: 12px 20px; border-radius: 25px; border: 1px solid var(--sky); background: var(--white); font-family: var(--head); font-size: 15px; font-weight: 500; color: var(--blue); transition: background .3s, color .3s, border-color .3s; }
.pill-link:hover, .pill-link-strong { background: var(--blue); border-color: var(--blue); color: var(--white); }

.cta-band { padding: 80px 0; }
.cta-title { font-family: var(--body); font-size: clamp(32px, 4vw, 45px); font-weight: 500; line-height: 1.3; color: var(--blue); }
.cta-text { max-width: 640px; margin: 14px auto 0; font-size: 16px; font-weight: 600; color: var(--text); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

.areas-section { padding: 80px 0; }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.area-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--soft-2); border: 1px solid var(--line); scroll-margin-top: 120px; }
.area-head { display: flex; align-items: center; gap: 10px; }
.area-head h3 { font-size: 24px; color: var(--title); }
.area-icon { color: var(--blue); }
.area-towns, .area-note { font-size: 15px; color: var(--text); }
.area-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.area-links a { display: inline-block; padding: 7px 14px; border-radius: 25px; border: 1px solid var(--sky); background: var(--white); font-size: 14px; font-weight: 500; color: var(--blue); }
.area-links a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

.reviews { padding: 60px 0 80px; }
.review-grid { columns: 3 300px; column-gap: 24px; }
.review-grid .review-card { break-inside: avoid; margin-bottom: 24px; }
.review-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--soft-2); border: 1px solid var(--line); }
.review-stars { display: flex; gap: 2px; color: #f5b731; }
.review-stars .icon { fill: #f5b731; }
.review-title { font-family: var(--head); font-weight: 600; color: var(--navy); }
.review-card blockquote p { font-size: 16px; color: var(--text); }
.review-card figcaption { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; color: var(--blue); }
.review-avatar { display: none; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 32%); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; }
.review-track .review-card { scroll-snap-align: start; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; }
.slider-arrows { display: flex; gap: 8px; }
.slider-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sky); background: var(--white); color: var(--blue); cursor: pointer; display: grid; place-items: center; }
.slider-arrow:first-child .icon { transform: rotate(180deg); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.post-card { display: flex; flex-direction: column; text-align: center; }
.post-card-img { position: relative; display: grid; place-items: center; height: 200px; background: var(--soft) center / cover no-repeat; overflow: hidden; }
.post-card-placeholder { color: var(--line); }
.post-card-body { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; padding-top: 22px; }
.post-card-title { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.3; color: var(--title); }
.post-card-excerpt { font-size: 16px; color: var(--desc); }
.post-date { font-size: 14px; font-weight: 600; color: var(--blue); }
.service-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 12px 18px; border-radius: 25px; border: 1px solid var(--sky); font-family: var(--head); font-size: 15px; font-weight: 500; color: var(--blue); transition: background .3s, color .3s; }
.post-card:hover .service-more { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pagination { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 48px; padding-top: 70px; padding-bottom: 80px; align-items: start; }
.contact-form-card { padding: 34px; background: var(--soft-2); }
.contact-details { display: grid; gap: 16px; }
.side-card { display: block; padding: 26px; background: var(--soft-2); border: 1px solid var(--line); }
.side-card-cta { background: var(--navy); color: rgb(255 255 255 / .85); border-color: var(--navy); }
.side-kicker { font-family: var(--head); font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.side-card-quiz { display: flex; align-items: center; gap: 14px; }
.side-card-quiz > span:nth-child(2) { display: grid; flex: 1; font-size: 15px; color: var(--text); }
.side-card-quiz strong { font-family: var(--head); color: var(--navy); }
.side-quiz-icon { color: var(--blue); }
.contact-details .contact-list { list-style: none; display: grid; gap: 16px; }
.contact-details .contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-details .contact-list small { display: block; font-size: 13px; font-weight: 600; color: var(--sky); }
.contact-details .contact-list a { color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.contact-icon { color: var(--sky); }

/* 9. Site-wide sections --------------------------------------------------- */
.quiz-band { padding: 90px 0; background: var(--soft-2); }

.coverage { padding: 90px 0; }
.coverage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.coverage-copy { display: grid; gap: 16px; color: var(--ink); }
.coverage-copy .h-section { line-height: 1.3; }
.client-list { list-style: disc; padding-left: 1.3em; display: grid; gap: 2px; }
.coverage-map img { width: 100%; }

.accreditations { padding: 70px 0; background: #fbfbfb; }
.accreditations .lead { margin: 12px auto 30px; max-width: 60ch; }

.why { padding: 100px 0; background: linear-gradient(rgb(240 245 246 / .81), rgb(240 245 246 / .81)), var(--why-bg) center / cover no-repeat; }
.why .h-display { color: var(--navy); font-size: clamp(40px, 5vw, 65px); }
.why .lead { max-width: 62ch; margin: 16px auto 0; }
.rotator { position: relative; display: grid; height: 1.3em; margin: 8px auto 16px; overflow: hidden; font-family: var(--body); font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; color: var(--navy); }
.rotator-word { grid-area: 1 / 1; transform: translateY(110%); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.rotator-word.is-active { transform: none; opacity: 1; }
.rotator-word.is-leaving { transform: translateY(-110%); opacity: 0; }
.why-list { list-style: none; display: inline-grid; gap: 0; text-align: left; margin: 0 auto; }
.why-list li { display: flex; align-items: center; gap: 12px; padding-bottom: 7.5px; font-size: 18px; color: var(--ink); }
.why-square { width: 14px; height: 14px; flex-shrink: 0; background: var(--blue); }
.why-close { max-width: 62ch; margin: 22px auto 0; color: var(--ink); }

.fca { background: var(--navy); color: var(--white); padding: 60px 0; }
.fca h2 { color: var(--white); font-size: 24px; margin-bottom: 14px; }
.fca p { max-width: 90ch; margin: 0 auto; font-size: 16px; line-height: 1.6; color: var(--white); }
.fca-banner { margin: 30px auto 0; width: 100%; max-width: 1100px; }

/* 10. Footer -------------------------------------------------------------- */
.site-footer { background: var(--white); padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 48px; padding-bottom: 50px; }
.footer-brand { display: grid; gap: 10px; align-content: start; color: var(--text); font-size: 16px; }
.footer-brand img { width: 180px; height: auto; }
.footer-name { font-family: var(--head); font-weight: 600; font-size: 22px; color: var(--title); }
.social { display: flex; gap: 14px; margin-top: 6px; }
.social a { color: var(--sky); }
.social a:hover { color: var(--blue); }
.footer-heading { font-size: 22px; color: var(--title); margin-bottom: 16px; }
.footer-links { list-style: none; columns: 2; column-gap: 24px; font-size: 16px; }
.footer-links li { break-inside: avoid; }
.footer-links a { display: inline-block; padding: 4px 0; color: var(--text); }
.footer-links a:hover { color: var(--blue); }
.site-footer .contact-list { list-style: none; display: grid; gap: 12px; font-size: 16px; color: var(--text); }
.site-footer .contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .contact-list .icon { color: var(--blue); margin-top: 3px; }
.site-footer .contact-list a:hover { color: var(--blue); }
.footer-bottom { background: var(--white); border-top: 1px solid #eef1f4; }
.footer-bottom-inner { display: flex; align-items: center; min-height: 73px; font-size: 18px; color: var(--ink); }

/* 11. Motion -------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.page-hero-inner > *, .hero-content > * { animation: rise-in .9s var(--ease) both; }
.page-hero-inner > :nth-child(2), .hero-content > :nth-child(2) { animation-delay: .12s; }
.page-hero-inner > :nth-child(3), .hero-content > :nth-child(3) { animation-delay: .24s; }
.page-hero-inner > :nth-child(4) { animation-delay: .36s; }
.faq[open] .faq-answer { animation: fade-down .35s var(--ease); }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--blue); }

/* Small hover lifts (same colours and shapes as the live site) */
.btn, .pill-link, .project-links a, .area-links a { transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.btn:hover, .pill-link:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgb(5 36 76 / .45); }
.project-links a:hover { transform: translateX(4px); }
.story-card, .area-card, .review-card { transition: transform .4s var(--ease), box-shadow .4s; }
.story-card:hover, .area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Header tightens slightly once you scroll (desktop) */
@media (min-width: 1025px) {
  .header-inner, .site-logo { transition: height .3s var(--ease); }
  .site-header.is-scrolled .header-inner { height: 80px; }
  .site-header.is-scrolled .site-logo { height: 50px; }
}

/* Count-up statistics */
.stats { padding: 70px 0; background: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: grid; gap: 6px; align-content: start; padding: 10px 24px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--head); font-size: clamp(40px, 4.4vw, 60px); font-weight: 600; line-height: 1.1; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 16px; line-height: 1.4; color: var(--text); }

/* "On this page" jump links on long service and county pages */
.toc { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.toc-title { font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--navy); }
.toc .pill-links { justify-content: flex-start; margin-top: 14px; gap: 8px; }
.toc .pill-link { padding: 9px 16px; font-size: 14px; }
.entry-content h2[id] { scroll-margin-top: 110px; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--blue); color: var(--white); cursor: pointer; box-shadow: 0 10px 24px -10px rgb(5 36 76 / .5); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s, background .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease), background .3s; }
.to-top:hover { background: var(--navy); }

/* 12. Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .main-nav .menu > li { margin-right: 12px; }
  .main-nav .menu > li > a { font-size: 16px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 80px; }
  .site-logo { height: 50px; }
  .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h)); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 20px; padding: 10px var(--gutter) 40px; background: var(--white); border-top: 1px solid var(--line); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
  .main-nav.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
  .main-nav .menu { flex-direction: column; align-items: stretch; }
  .main-nav .menu > li { flex-wrap: wrap; justify-content: space-between; margin: 0; border-bottom: 1px solid var(--line); }
  .main-nav .menu > li > a { padding: 16px 0; font-size: 18px; line-height: 1.2; }
  .main-nav .menu > li > a::after { display: none; }
  .submenu-toggle { width: 44px; height: 44px; }
  .menu-item-has-children:hover > .submenu-toggle { transform: none; }
  .menu-item-has-children.is-open > .submenu-toggle { transform: rotate(180deg); }
  .main-nav .sub-menu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 10px; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; }
  .main-nav .menu > li:hover > .sub-menu, .main-nav .menu > li:focus-within > .sub-menu { display: none; }
  .main-nav .menu > li.is-open > .sub-menu { display: block; }
  .main-nav .sub-menu a { padding: 10px 12px; font-size: 16px; }
  .nav-extra { display: grid; }
  .admin-bar .main-nav { top: calc(var(--header-h) + 32px); }

  .intro-grid, .coverage-grid, .contact-layout { grid-template-columns: 1fr; }
  .card-grid, .area-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .hero { min-height: 0; padding: 80px 0; }
  .hero-title { line-height: 1.25; }
  .intro { padding: 60px 0; }
  .services { padding: 70px 0; }
  .page-hero { min-height: 320px; padding: 60px 0; }
  .btn-pill { padding: 15px 34px; }
  .content-band, .faq-band, .links-band, .cta-band, .areas-section { padding: 56px 0; }
  .card-grid, .area-grid, .post-grid, .cards-3, .symptom-table, .project-links { grid-template-columns: 1fr; }
  .before-after, .img-pair { grid-template-columns: 1fr; }
  .town-list ul { columns: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { columns: 1; }
  .quiz-band { padding: 56px 0; }
  .stats { padding: 50px 0; }
  .stat { padding: 6px 10px; }
  .stat-label { font-size: 14px; }
  .to-top { right: 14px; width: 42px; height: 42px; }
  .cta-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .pill-link:hover, .story-card:hover, .area-card:hover, .project-links a:hover { transform: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-item[aria-hidden="true"] { display: none; }
}

/* About: "The Tapco HomeDry Story" (copies the live page) */
.story { background: var(--story-bg); padding: 100px 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 47px 80px; align-items: start; }
.story-intro { display: grid; gap: 16px; padding-top: 40px; color: var(--ink); font-size: 18px; line-height: 1.6; }
.story-title { font-size: clamp(45px, 5vw, 65px); line-height: 1.2; color: var(--navy); max-width: 75%; }
.story-sub { margin: 4px 0 8px; font-family: var(--head); font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; line-height: 1.2; color: var(--blue); max-width: 420px; }
.story-intro p + p { margin-top: 24px; }
.story-img { width: 100%; height: auto; margin-top: 40px; border: 1px solid var(--blue); border-radius: 40px; }
.story-cards { display: grid; gap: 24px; padding-left: 24px; border-left: 1px solid var(--text); }
.story-card { display: grid; gap: 16px; padding: 24px 40px 32px; border: 1px solid var(--blue); border-radius: 31px; }
.story-card h3 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.3; color: var(--blue); }
.story-card p { font-size: 16px; line-height: 1.4; color: var(--text); }
@media (max-width: 1024px) {
  .story { padding: 64px 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-intro { padding-top: 0; }
  .story-title { max-width: none; }
  .story-cards { padding-left: 16px; }
  .story-card { padding: 24px; }
}
/* County pages: nearby counties row */
.nearby-band { padding: 0 0 90px; }
.nearby-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 48px; align-items: center; padding: 36px 40px; border: 1px solid var(--blue); border-radius: 31px; background: var(--story-bg); }
.nearby-copy { display: grid; gap: 8px; color: var(--text); font-size: 16px; }
.nearby-title { font-size: clamp(22px, 2.2vw, 28px); color: var(--blue); }
.nearby-inner .pill-links { justify-content: flex-start; margin-top: 0; }
@media (max-width: 1024px) {
  .nearby-inner { grid-template-columns: 1fr; padding: 28px 24px; }
  .nearby-band { padding-bottom: 60px; }
}
/* ==========================================================================
   Service, county and landlord pages: sectioned layout (heading left,
   content right, alternating bands, like the live intro section)
   ========================================================================== */
.toc-band { padding: 34px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.toc-band .toc { margin: 0; padding-bottom: 0; border: 0; }
.csec { padding: 90px 0; background: var(--white); }
.csec-alt { background: var(--soft-2); }
.csec-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 70px; align-items: start; }
.csec-head { position: sticky; top: 110px; display: grid; gap: 12px; }
.csec-num { font-family: var(--head); font-size: 15px; font-weight: 600; letter-spacing: .12em; color: var(--sky); }
.csec-num::after { content: ''; display: inline-block; width: 40px; height: 2px; margin-left: 12px; vertical-align: middle; background: var(--sky); }
.csec-title { font-size: clamp(30px, 3.4vw, 45px); line-height: 1.2; color: var(--blue); scroll-margin-top: 110px; }
.csec-body { font-size: 18px; }
.csec-body > :first-child { margin-top: 0; }
.csec-wide .csec-grid { grid-template-columns: 1fr; gap: 36px; }
.csec-wide .csec-head { position: static; max-width: 760px; }

/* Checklists become tiles */
.csec .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.csec .ticks li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; font-size: 16px; line-height: 1.45; transition: border-color .3s, transform .3s var(--ease); }
.csec-alt .ticks li { background: var(--white); }
.csec:not(.csec-alt) .ticks li { background: var(--soft-2); }
.csec .ticks li:hover { border-color: var(--sky); transform: translateY(-2px); }
.csec .ticks li::before { position: static; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Steps become numbered cards with a connecting line */
.csec .steps { position: relative; gap: 14px; }
.csec .steps::before { content: ''; position: absolute; left: 23px; top: 30px; bottom: 30px; width: 2px; background: var(--sky); opacity: .5; }
.csec .steps li { padding: 20px 22px 20px 78px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.csec:not(.csec-alt) .steps li { background: var(--soft-2); }
.csec .steps li::before { left: 0; top: 50%; transform: translateY(-50%); box-shadow: 0 0 0 6px var(--white); }
.csec .steps h3 { margin: 0 0 4px; font-size: 19px; color: var(--navy); }

/* Info cards, callouts, photos */
.csec .cards-3 { gap: 24px; }
.csec .info-card { padding: 30px 26px; background: var(--white); border: 1px solid var(--blue); border-radius: 31px; text-align: left; transition: transform .4s var(--ease), box-shadow .4s; }
.csec:not(.csec-alt) .info-card { background: var(--story-bg); }
.csec .info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.csec .info-card h3 { margin: 0 0 10px; font-size: 22px; color: var(--blue); }
.csec .callout { padding: 22px 26px; background: var(--story-bg); border: 1px solid var(--blue); border-left-width: 1px; border-radius: 20px; }
.csec .before-after img, .csec .img-pair img { border-radius: 24px; border: 1px solid var(--line); }
.csec .entry-content h3, .csec-body h3 { font-size: 21px; color: var(--navy); }

/* Town list and local projects */
.csec .town-list { padding: 28px 30px; border-radius: 24px; background: var(--white); }
.csec:not(.csec-alt) .town-list { background: var(--soft-2); }
.csec .town-list ul { columns: 5 150px; }
.csec .project-links { gap: 12px; }
.csec .project-links a { position: relative; padding: 16px 44px 16px 18px; border-radius: 16px; color: var(--navy); }
.csec .project-links a::after { content: '\2192'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--blue); transition: transform .3s var(--ease); }
.csec .project-links a:hover::after { transform: translate(4px, -50%); }

/* About page sections */
.about-h2 { font-size: clamp(34px, 4vw, 50px); line-height: 1.2; color: var(--navy); }
.about-lead { margin-top: 12px; font-size: 18px; color: var(--text); }
.about-accred { padding: 100px 0; }
.about-accred-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 80px; align-items: center; }
.about-accred-copy { display: grid; gap: 20px; color: var(--ink); }
.about-accred-copy .why-list { display: grid; gap: 4px; }
.about-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.about-logo { display: grid; place-items: center; gap: 10px; aspect-ratio: 3 / 2; padding: 24px; background: var(--white); border: 1px solid var(--sky); border-radius: 31px; text-align: center; transition: transform .4s var(--ease), box-shadow .4s; }
.about-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-logo img { max-height: 100%; width: auto; object-fit: contain; }
.about-logo-ibg { background: var(--story-bg); color: var(--blue); }
.about-logo-ibg strong { font-family: var(--head); font-size: 18px; color: var(--navy); }
.about-how { padding: 100px 0; background: var(--story-bg); }
.about-how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 50px; }
.about-how-card { align-content: start; background: var(--white); }
.about-how-card h3 { font-size: 24px; }
.about-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--story-bg); color: var(--blue); }
.about-reviews { padding: 100px 0 60px; }
.about-reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.about-quote { position: relative; margin: 0; padding: 40px 40px 34px; }
.about-quote-mark { position: absolute; top: 6px; right: 30px; font-family: var(--head); font-size: 110px; line-height: 1; color: var(--sky); opacity: .45; }
.about-quote blockquote { margin: 0; }
.about-quote blockquote p { font-size: 18px; line-height: 1.6; color: var(--ink); }
.about-quote figcaption { font-family: var(--head); font-weight: 600; color: var(--blue); }
.about-more { margin-top: 36px; }
.about-where { padding-top: 30px; }

@media (max-width: 1024px) {
  .csec { padding: 64px 0; }
  .csec-grid, .about-accred-grid { grid-template-columns: 1fr; }
  .csec-head { position: static; }
  .about-how-grid { grid-template-columns: 1fr; }
  .about-accred, .about-how { padding: 64px 0; }
  .about-reviews { padding: 64px 0 40px; }
}
@media (max-width: 680px) {
  .csec { padding: 52px 0; }
  .csec .ticks { grid-template-columns: 1fr; }
  .about-reviews-grid { grid-template-columns: 1fr; }
  .about-quote { padding: 30px 24px 26px; }
  .csec .steps li { padding: 18px 18px 18px 70px; }
}
/* ==========================================================================
   Shared elements (layout ideas adapted to Tapco's colours and fonts)
   ========================================================================== */
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.kicker-line { color: var(--sky); flex-shrink: 0; }
.accent { display: block; color: var(--blue); }
.principles-title .accent, .contact-title .accent { font-weight: 500; }

.arrow-link { display: inline-flex; align-items: center; gap: 14px; font-family: var(--head); font-size: 16px; font-weight: 600; color: var(--navy); }
.arrow-circle { display: inline-grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border: 1px solid var(--sky); border-radius: 50%; color: var(--blue); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.arrow-link:hover .arrow-circle, a:hover > .arrow-circle { background: var(--blue); border-color: var(--blue); color: var(--white); transform: rotate(45deg); }

/* Trust tick strip under heroes */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-top: 22px; padding-bottom: 22px; }
.trust-list li { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 15px; font-weight: 500; color: var(--navy); }
.tick-circle { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--story-bg); color: var(--blue); }

/* Principles: headline left, numbered points right */
.principles { padding: 110px 0; background: var(--white); }
.principles-alt { background: var(--story-bg); }
.principles-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px 90px; align-items: start; }
.principles-head { position: sticky; top: 120px; display: grid; justify-items: start; gap: 18px; }
.principles-head .kicker { margin-bottom: 0; }
.principles-title { font-size: clamp(34px, 4vw, 52px); line-height: 1.15; color: var(--navy); }
.principles-text { max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--text); }
.principles-list { list-style: none; border-top: 1px solid var(--line); }
.principles-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.principles-num { font-family: var(--head); font-size: 22px; font-weight: 500; font-style: italic; color: var(--sky); }
.principles-list h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; color: var(--navy); }
.principles-list .dot { color: var(--blue); }
.principles-list p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--text); }

/* Featured testimonial */
.quote-feature { padding: 110px 0; background: var(--soft-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-inner { display: grid; justify-items: center; gap: 22px; max-width: 980px; text-align: center; }
.quote-inner .kicker { margin-bottom: 0; }
.quote-mark { color: var(--sky); }
.quote-stage { display: grid; width: 100%; }
.quote-slide { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.quote-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote-slide blockquote { margin: 0; }
.quote-slide blockquote p { font-family: var(--head); font-size: clamp(20px, 2.4vw, 30px); font-weight: 400; line-height: 1.5; color: var(--navy); }
.quote-slide figcaption { margin-top: 22px; font-family: var(--head); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.quote-dots { display: flex; gap: 8px; }
.quote-dot { width: 10px; height: 10px; padding: 0; border: 1px solid var(--blue); border-radius: 10px; background: transparent; cursor: pointer; transition: width .3s var(--ease), background .3s; }
.quote-dot.is-active { width: 28px; background: var(--blue); }

/* Services as numbered rows */
.section-head-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 20px 60px; }
.section-head-split .lead { max-width: 46ch; }
.service-rows { list-style: none; border-top: 1px solid var(--line); }
.service-row a { display: grid; grid-template-columns: 90px minmax(0, 1.3fr) minmax(0, 1fr) 46px; align-items: center; gap: 20px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s var(--ease); }
.service-row a:hover { background: var(--soft-2); padding-left: 14px; padding-right: 14px; }
.service-row-icon { display: grid; justify-items: start; gap: 6px; color: var(--blue); }
.service-row-icon .icon { box-sizing: content-box; padding: 13px; border: 1px solid var(--sky); border-radius: 50%; background: var(--white); }
.service-row-icon em { font-family: var(--head); font-size: 15px; color: var(--sky); }
.service-row-title { font-family: var(--head); font-size: clamp(24px, 2.8vw, 36px); font-weight: 600; line-height: 1.2; color: var(--navy); }
.service-row-desc { font-size: 16px; line-height: 1.55; color: var(--text); }
.tagline-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 34px; }
.tagline { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-size: 19px; font-style: italic; color: var(--navy); }
.tagline .icon { color: var(--blue); }

/* Contact page */
.contact-section { padding: 90px 0; }
.contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px 80px; padding-top: 0; padding-bottom: 0; }
.contact-intro { display: grid; align-content: start; justify-items: start; gap: 18px; }
.contact-intro .kicker { margin-bottom: 0; }
.contact-title { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.15; color: var(--navy); }
.contact-text { max-width: 48ch; font-size: 18px; color: var(--text); }
.contact-rows { list-style: none; width: 100%; margin-top: 10px; border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--navy); }
a.contact-row:hover { color: var(--blue); }
.contact-row-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--sky); border-radius: 50%; color: var(--blue); }
.contact-row-text { display: grid; gap: 2px; min-width: 0; font-family: var(--head); font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.contact-row-text small { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.contact-quiz { display: flex; align-items: center; gap: 16px; width: 100%; margin-top: 10px; padding: 20px 22px; border-radius: 24px; background: var(--story-bg); color: var(--text); font-size: 15px; transition: transform .3s var(--ease); }
.contact-quiz:hover { transform: translateY(-2px); }
.contact-quiz strong { display: block; font-family: var(--head); font-size: 17px; color: var(--navy); }
.contact-form-card { padding: 40px; background: var(--white); border: 1px solid var(--blue); border-radius: 31px; box-shadow: var(--shadow); }
.contact-form-title { font-family: var(--head); font-size: 26px; font-weight: 600; color: var(--blue); }
.contact-form-sub { margin: 6px 0 24px; font-size: 15px; color: var(--text); }

@media (max-width: 1024px) {
  .principles, .quote-feature { padding: 70px 0; }
  .principles-grid, .section-head-split, .contact-layout { grid-template-columns: 1fr; }
  .principles-head { position: static; }
  .service-row a { grid-template-columns: 70px minmax(0, 1fr) 46px; }
  .service-row-desc { grid-column: 2 / 3; }
  .service-row .arrow-circle { grid-row: 1 / 3; grid-column: 3; }
  .contact-section { padding: 60px 0; }
  .trust-list { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .trust-list { display: grid; grid-template-columns: 1fr; gap: 10px; padding-top: 18px; padding-bottom: 18px; }
  .principles-list li { grid-template-columns: 44px minmax(0, 1fr); padding: 22px 0; }
  .service-row a { grid-template-columns: 1fr 46px; gap: 10px 16px; }
  .service-row-icon { grid-column: 1; flex-direction: row; display: flex; align-items: center; gap: 10px; }
  .service-row-title, .service-row-desc { grid-column: 1; }
  .service-row .arrow-circle { grid-row: 1 / 4; grid-column: 2; }
  .contact-form-card { padding: 26px 20px; }
  .tagline { font-size: 17px; }
}
/* Call to action panel */
.cta-band { padding: 90px 0; text-align: left; }
.cta-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 30px 60px; padding: 60px 64px; overflow: hidden; border-radius: 31px; background: var(--navy); color: var(--white); }
.cta-graphic { position: absolute; right: -90px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); color: var(--sky); opacity: .14; pointer-events: none; }
.cta-copy, .cta-side { position: relative; }
.cta-panel .kicker { color: var(--white); }
.cta-panel .cta-title { font-family: var(--head); font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; line-height: 1.15; color: var(--white); }
.cta-panel .cta-text { max-width: 52ch; margin: 14px 0 0; font-size: 17px; font-weight: 400; line-height: 1.6; color: rgb(255 255 255 / .8); }
.cta-side { display: grid; justify-items: start; gap: 22px; }
.cta-btn { background: var(--white); color: var(--navy); }
.cta-btn:hover { background: var(--sky); color: var(--navy); }
.cta-phone { display: flex; align-items: center; gap: 14px; font-family: var(--head); font-size: 22px; font-weight: 600; color: var(--white); }
.cta-phone small { display: block; font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.cta-phone-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; transition: background .3s, color .3s; }
.cta-phone:hover .cta-phone-icon { background: var(--white); color: var(--navy); }
@media (max-width: 1024px) {
  .cta-band { padding: 60px 0; }
  .cta-panel { grid-template-columns: 1fr; padding: 44px 32px; }
}
@media (max-width: 680px) {
  .cta-panel { padding: 36px 24px; border-radius: 24px; }
  .cta-side, .cta-btn { width: 100%; }
}
/* Fixes */
.intro-title-long { font-size: clamp(34px, 3.8vw, 54px); }
.toc-band .toc { margin: 0 auto; }
.csec .ticks li { display: block; position: relative; padding: 16px 18px 16px 52px; }
.csec .ticks li::before { position: absolute; left: 18px; top: 17px; margin: 0; }
.csec .ticks li strong { color: var(--navy); }
.quote-slide { transition: opacity .35s ease, transform .35s ease, visibility 0s .35s; visibility: hidden; }
.quote-slide.is-active { visibility: visible; transition: opacity .55s ease .35s, transform .55s var(--ease) .35s, visibility 0s .35s; }
.section-head-split .h-display { font-size: clamp(36px, 4.4vw, 58px); }
/* Section numbers: plain badge, no trailing line */
.csec-num::after { content: none; display: none; }
.csec-num { display: inline-grid; place-items: center; justify-self: start; min-width: 44px; height: 30px; padding: 0 12px; border-radius: 30px; background: var(--story-bg); font-size: 14px; letter-spacing: .08em; color: var(--blue); }
.csec-alt .csec-num { background: var(--white); }

/* "On this page" contents panel */
.toc-band { padding: 40px 0; border-bottom: 0; }
.toc-panel { padding: 28px 32px 18px; border: 1px solid var(--line); border-radius: 31px; background: var(--soft-2); }
.toc-panel .toc-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.toc-panel .toc-title .icon { color: var(--blue); }
.toc-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 32px; }
.toc-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--head); font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--navy); transition: color .2s; }
.toc-grid li:nth-last-child(-n+1) .toc-item { border-bottom-color: transparent; }
.toc-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 1px solid var(--sky); font-size: 12px; font-weight: 600; color: var(--blue); transition: background .25s, color .25s, border-color .25s; }
.toc-arrow { color: var(--sky); transition: transform .25s var(--ease), color .25s; }
.toc-item:hover { color: var(--blue); }
.toc-item:hover .toc-num { background: var(--blue); border-color: var(--blue); color: var(--white); }
.toc-item:hover .toc-arrow { color: var(--blue); transform: translateY(3px); }

/* Section photo and illustrated graphic under each heading */
.csec-photo { margin: 18px 0 0; max-width: 420px; }
.csec-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--blue); border-radius: 31px; }
.csec-graphic { position: relative; display: grid; place-items: center; width: 200px; max-width: 100%; aspect-ratio: 1; margin-top: 18px; }
.csec-rings { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sky); animation: rings-spin 40s linear infinite; }
.csec-graphic-icon { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--white); color: var(--blue); box-shadow: 0 14px 30px -16px rgb(5 36 76 / .45); }
.csec-alt .csec-graphic-icon { background: var(--white); }
.csec:not(.csec-alt) .csec-graphic-icon { background: var(--story-bg); }
@keyframes rings-spin { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .csec-photo { max-width: 100%; }
  .csec-graphic { display: none; }
  .toc-panel { padding: 22px 20px 12px; }
}
/* Service cards: boxed, whole card clickable, lift on hover */
.card-grid { gap: 32px; }
.cta-card { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 30px -22px rgb(5 36 76 / .35); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.cta-card:hover, .cta-card:focus-within { transform: translateY(-6px); border-color: var(--sky); box-shadow: 0 26px 50px -24px rgb(5 36 76 / .45); }
.cta-card-media { position: relative; height: 210px; overflow: hidden; }
.cta-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(5 36 76 / .28)); opacity: 0; transition: opacity .4s; }
.cta-card:hover .cta-card-media::after { opacity: 1; }
.cta-card-go { position: absolute; right: 16px; bottom: 16px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--blue); box-shadow: 0 8px 20px -10px rgb(5 36 76 / .5); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease), background .3s, color .3s; }
.cta-card:hover .cta-card-go { opacity: 1; transform: none; }
.cta-card-body { padding: 26px 26px 30px; }
.cta-card-title { margin-bottom: 12px; }
.cta-card-link { color: inherit; }
.cta-card-link::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 24px; }
.cta-card-link:focus-visible { outline: none; }
.cta-card-link:focus-visible::after { outline: 3px solid var(--sky); outline-offset: -3px; }
.cta-card:hover .cta-card-title { color: var(--blue); }
.cta-card:hover .btn-outline { background: var(--blue); border-color: var(--blue); color: var(--white); }
.cta-card .btn-outline { padding: 13px 24px; }
@media (max-width: 680px) {
  .cta-card-media { height: 190px; }
  .cta-card-go { opacity: 1; transform: none; }
}
/* ==========================================================================
   Top navigation: more breathing room, pill hover, richer dropdowns
   ========================================================================== */
@media (min-width: 1025px) {
  .site-header { background: rgb(255 255 255 / .92); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); }
  .header-inner { gap: 36px; }
  .main-nav .menu { gap: 6px; }
  .main-nav .menu > li { margin-right: 0; }
  .main-nav .menu > li > a { padding: 11px 16px; border-radius: 40px; font-size: 17px; line-height: 1; transition: background .25s, color .25s; }
  .main-nav .menu > li.menu-item-has-children > a { padding-right: 6px; }
  .main-nav .menu > li > a::after { left: 50%; right: auto; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; transform: translateX(-50%) scale(0); transition: transform .3s var(--ease); }
  .main-nav .menu > li:hover > a, .main-nav .menu > li.is-open > a, .main-nav .menu > li:focus-within > a { background: var(--story-bg); color: var(--blue); }
  .main-nav .menu > li:hover > a::after, .main-nav .menu > .current-menu-item > a::after, .main-nav .menu > .current-menu-ancestor > a::after, .main-nav .menu > .current_page_item > a::after { transform: translateX(-50%) scale(1); }
  .main-nav .menu > .current-menu-item > a, .main-nav .menu > .current-menu-ancestor > a, .main-nav .menu > .current_page_item > a { color: var(--blue); }
  .menu-item-has-children { border-radius: 40px; }
  .menu-item-has-children:hover, .menu-item-has-children.is-open { background: var(--story-bg); }
  .menu-item-has-children:hover > a, .menu-item-has-children.is-open > a { background: transparent !important; }
  .submenu-toggle { margin: 0 8px 0 0; color: var(--blue); }

  .main-nav .sub-menu { top: calc(100% + 14px); left: 50%; min-width: 300px; padding: 10px; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 50px -20px rgb(5 36 76 / .35); transform: translate(-50%, 10px); }
  .main-nav .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .main-nav .sub-menu::after { content: ''; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; background: var(--white); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
  .main-nav .menu > li:hover > .sub-menu, .main-nav .menu > li:focus-within > .sub-menu, .main-nav .menu > li.is-open > .sub-menu { transform: translate(-50%, 0); }
  .main-nav .sub-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: 15px; transition: background .2s, color .2s; }
  .main-nav .sub-menu a:hover, .main-nav .sub-menu a:focus-visible { background: var(--story-bg); color: var(--blue); }
  .sub-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--story-bg); color: var(--blue); transition: background .2s, color .2s, transform .3s var(--ease); }
  .main-nav .sub-menu a:hover .sub-icon { background: var(--blue); color: var(--white); transform: scale(1.06); }
  .sub-label { transition: transform .3s var(--ease); }
  .main-nav .sub-menu a:hover .sub-label { transform: translateX(3px); }

  .header-cta { gap: 10px; height: 46px; padding: 0 8px 0 22px; border-radius: 40px; font-size: 15px; box-shadow: 0 10px 22px -12px rgb(42 108 162 / .7); }
  .header-cta-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--blue); transition: transform .3s var(--ease); }
  .header-cta:hover .header-cta-arrow { transform: rotate(45deg); }
}
@media (min-width: 1025px) and (max-width: 1280px) {
  .header-inner { gap: 20px; }
  .main-nav .menu { gap: 2px; }
  .main-nav .menu > li > a { padding: 10px 11px; font-size: 15px; }
  .header-cta { padding-left: 16px; font-size: 14px; }
}
@media (max-width: 1024px) {
  .sub-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--story-bg); color: var(--blue); vertical-align: middle; }
  .main-nav .sub-menu a { display: flex; align-items: center; }
  .header-cta-arrow { display: none; }
}
/* ==========================================================================
   Low-opacity backgrounds: Tapco roof-mark watermark and faint photos
   ========================================================================== */
.bg-mark, .bg-photo { position: relative; isolation: isolate; overflow: hidden; }
.bg-mark::after { content: ''; position: absolute; z-index: -1; right: -60px; bottom: -70px; width: clamp(260px, 30vw, 440px); aspect-ratio: 120 / 110; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 110' fill='none' stroke='%232a6ca2' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'><path d='M8 52 60 12l52 40'/><path d='M86 32V16h12v25'/><circle cx='60' cy='74' r='26'/><path d='M40 70h40M42 80h36'/></svg>") center / contain no-repeat; opacity: .06; pointer-events: none; }
.bg-mark-left::after { right: auto; left: -70px; bottom: auto; top: -40px; }
.bg-photo::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--bg-photo) center / cover no-repeat; opacity: .08; filter: grayscale(.35); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); pointer-events: none; }
.bg-photo-left::before { -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 55%); mask-image: linear-gradient(270deg, transparent 0%, #000 55%); }
.cta-panel.bg-mark::after { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 110' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'><path d='M8 52 60 12l52 40'/><path d='M86 32V16h12v25'/><circle cx='60' cy='74' r='26'/><path d='M40 70h40M42 80h36'/></svg>"); opacity: .08; right: 30px; bottom: -50px; width: 300px; z-index: 0; }
.cta-panel .cta-graphic { display: none; }
.site-footer.bg-mark::after { right: 4%; bottom: 40px; opacity: .045; }
@media (max-width: 680px) {
  .bg-mark::after { width: 220px; opacity: .05; }
  .bg-photo::before { opacity: .06; }
}
/* Built-in "Request a survey" form */
.sf { display: grid; gap: 22px; }
.sf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.sf-field { display: grid; gap: 6px; font-family: var(--head); font-size: 14px; font-weight: 600; color: var(--navy); }
.sf-field em, .sf-chips legend em { font-style: normal; color: var(--blue); }
.sf-field input { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft-2); font: 400 16px/1.3 var(--body); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.sf-field input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgb(132 197 251 / .3); }
.sf-note { margin-top: -10px; font-size: 14px; color: var(--desc); }
.sf-chips { margin: 0; padding: 0; border: 0; min-width: 0; }
.sf-chips legend { margin-bottom: 10px; padding: 0; font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--navy); }
.sf-chips legend small { font-family: var(--body); font-weight: 400; color: var(--desc); }
.sf-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-chip { position: relative; cursor: pointer; }
.sf-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sf-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--sky); border-radius: 30px; background: var(--white); font-family: var(--head); font-size: 14px; font-weight: 500; color: var(--blue); transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.sf-chip:hover span { border-color: var(--blue); transform: translateY(-1px); }
.sf-chip input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.sf-chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.sf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sf-actions { display: grid; gap: 12px; justify-items: start; }
.sf-submit { min-width: 220px; }
.sf-submit:disabled { opacity: .7; cursor: wait; }
.sf-privacy { font-size: 13px; color: var(--desc); }
.sf-privacy a { color: var(--blue); text-decoration: underline; }
.sf-msg { min-height: 1em; font-size: 15px; font-weight: 600; color: var(--blue); }
.sf-msg.is-error { color: #b4232c; }
.sf-thanks { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 20px; background: var(--story-bg); outline: none; }
.sf-thanks-icon { display: grid; place-items: center; flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--blue); color: var(--white); }
.sf-thanks strong { display: block; font-family: var(--head); font-size: 18px; color: var(--navy); }
.sf-thanks p { margin-top: 6px; color: var(--text); }
.contact-form-card .entry-content > .sf { margin-top: 0; }
@media (max-width: 680px) {
  .sf-fields { grid-template-columns: 1fr; }
  .sf-submit { width: 100%; }
}
/* ==========================================================================
   Areas we cover: county explorer
   ========================================================================== */
.areas-intro { padding-top: 60px; }
.area-explorer { padding: 80px 0 100px; }
.explorer-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 30px 60px; align-items: center; margin-bottom: 50px; }
.explorer-title { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.15; color: var(--navy); }
.explorer-lead { max-width: 56ch; margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--text); }
.explorer-map { width: 100%; max-width: 420px; justify-self: end; filter: drop-shadow(0 20px 30px rgb(5 36 76 / .12)); }
.explorer { display: grid; gap: 30px; }
.is-tabbed .explorer { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
.explorer-tabs { position: sticky; top: 110px; display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 24px; background: var(--soft-2); }
.explorer-tab { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-radius: 16px; background: transparent; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.explorer-tab-pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--blue); transition: background .2s, color .2s; }
.explorer-tab-name { font-family: var(--head); font-size: 16px; font-weight: 600; color: var(--navy); }
.explorer-tab-count { font-size: 12px; color: var(--desc); }
.explorer-tab:hover { background: var(--white); }
.explorer-tab[aria-selected="true"] { background: var(--blue); }
.explorer-tab[aria-selected="true"] .explorer-tab-name, .explorer-tab[aria-selected="true"] .explorer-tab-count { color: var(--white); }
.explorer-tab[aria-selected="true"] .explorer-tab-pin { background: rgb(255 255 255 / .18); color: var(--white); }
.explorer-panels { display: grid; gap: 30px; min-width: 0; }
.explorer-panel { padding: 40px; border: 1px solid var(--line); border-radius: 31px; background: var(--white); box-shadow: 0 20px 50px -34px rgb(5 36 76 / .4); scroll-margin-top: 110px; outline: none; }
.explorer-panel.is-in { animation: rise-in .5s var(--ease); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.panel-title { font-size: clamp(30px, 3.4vw, 42px); color: var(--blue); }
.panel-response { max-width: 52ch; margin-top: 8px; font-size: 16px; color: var(--text); }
.panel-facts { list-style: none; display: flex; gap: 10px; }
.panel-facts li { display: grid; justify-items: center; min-width: 86px; padding: 12px 14px; border-radius: 18px; background: var(--story-bg); text-align: center; }
.panel-facts strong { font-family: var(--head); font-size: 26px; line-height: 1.1; color: var(--blue); }
.panel-facts span { font-size: 12px; color: var(--text); }
.panel-housing { margin-top: 22px; font-size: 17px; line-height: 1.65; color: var(--ink); }
.panel-sub { margin: 30px 0 14px; font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.panel-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.panel-place { padding: 18px 20px; border-radius: 18px; background: var(--soft-2); border: 1px solid var(--line); }
.panel-place-name { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-family: var(--head); font-weight: 600; color: var(--navy); }
.panel-place-name .icon { color: var(--blue); }
.panel-place p:last-child { font-size: 15px; line-height: 1.55; color: var(--text); }
.panel-services { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.panel-service { display: grid; grid-template-columns: 44px minmax(0, 1fr) 16px; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; color: var(--navy); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.panel-service:hover { border-color: var(--sky); background: var(--story-bg); transform: translateY(-2px); }
.panel-service-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--story-bg); color: var(--blue); transition: background .25s, color .25s; }
.panel-service:hover .panel-service-icon { background: var(--blue); color: var(--white); }
.panel-service-text { display: grid; gap: 2px; min-width: 0; }
.panel-service-text strong { font-family: var(--head); font-size: 15px; font-weight: 600; line-height: 1.3; }
.panel-service-text small { font-size: 13px; color: var(--desc); }
.panel-service-arrow { color: var(--sky); transition: transform .3s var(--ease), color .25s; }
.panel-service:hover .panel-service-arrow { color: var(--blue); transform: translate(2px, -2px); }
.panel-projects { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.panel-projects a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 30px; background: var(--soft-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy); transition: border-color .2s, color .2s; }
.panel-projects a:hover { border-color: var(--blue); color: var(--blue); }
.panel-projects .icon { color: var(--blue); }
.panel-towns { margin-top: 26px; border: 1px solid var(--line); border-radius: 18px; }
.panel-towns summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--navy); }
.panel-towns summary::-webkit-details-marker { display: none; }
.panel-towns[open] .faq-icon::after { transform: rotate(0); }
.panel-towns ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 20px; }
.panel-towns li { padding: 5px 12px; border-radius: 20px; background: var(--soft-2); font-size: 13px; color: var(--text); }
.panel-nearby { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; color: var(--desc); }
.panel-nearby span { font-weight: 600; color: var(--navy); }
.panel-nearby a { padding: 6px 14px; border: 1px solid var(--sky); border-radius: 30px; font-weight: 500; color: var(--blue); transition: background .2s, color .2s; }
.panel-nearby a:hover { background: var(--blue); color: var(--white); }
@media (max-width: 1024px) {
  .explorer-head { grid-template-columns: 1fr; }
  .explorer-map { justify-self: start; max-width: 320px; }
  .is-tabbed .explorer { grid-template-columns: 1fr; }
  .explorer-tabs { position: static; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px; border-radius: 20px; }
  .explorer-tab { flex: 0 0 auto; width: auto; grid-template-columns: auto auto; scroll-snap-align: start; }
  .explorer-tab-count { display: none; }
}
@media (max-width: 680px) {
  .area-explorer { padding: 56px 0 70px; }
  .explorer-panel { padding: 26px 20px; border-radius: 24px; }
  .panel-places, .panel-services { grid-template-columns: 1fr; }
  .panel-facts li { min-width: 72px; padding: 10px; }
}
/* ==========================================================================
   Faster images: responsive hero backgrounds and real <img> card photos
   ========================================================================== */
.hero-slide, .page-hero-img { background-image: var(--bg); }
@media (max-width: 768px) {
  .hero-slide, .page-hero-img { background-image: var(--bg-sm, var(--bg)); }
  .bg-photo::before { content: none; }
}
.cta-card-media { background: var(--soft); }
img.cta-card-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cta-card:hover img.cta-card-img { transform: scale(1.06); }
.csec-photo img, .story-img { display: block; height: auto; }

/* ==========================================================================
   Mobile: more engaging, less scrolling
   ========================================================================== */
.hero-actions, .mobile-bar { display: none; }
@media (max-width: 680px) {
  :root { --gutter: 18px; }
  /* Homepage hero: buttons under the headline */
  .hero { padding: 64px 0 56px; }
  .hero-title { font-size: 38px; line-height: 1.2; }
  .hero-sub { font-size: 19px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
  .hero-actions .btn { padding: 14px 12px; font-size: 15px; }
  .hero-actions .btn-outline { background: rgb(255 255 255 / .85); }

  /* Inner page heroes */
  .page-hero { min-height: 0; padding: 54px 0 46px; }
  .page-title { font-size: 30px; }
  .page-sub { font-size: 15px; }

  /* Trust ticks: one swipeable line */
  .trust-list { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-top: 14px; padding-bottom: 14px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .trust-list::-webkit-scrollbar { display: none; }
  .trust-list li { flex: 0 0 auto; padding: 7px 12px 7px 8px; border-radius: 30px; background: var(--soft-2); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; scroll-snap-align: start; }
  .tick-circle { width: 20px; height: 20px; }

  /* Big headings sized for phones */
  .intro-title, .intro-title-long { font-size: 32px; line-height: 1.18; }
  .intro { padding: 48px 0; }
  .intro-copy { font-size: 16px; gap: 14px; }
  .h-display { font-size: 34px; }
  .csec-title, .principles-title, .story-title, .explorer-title, .contact-title, .about-h2 { font-size: 28px; }
  .section-head { margin-bottom: 26px; }

  /* Service cards: swipe carousel instead of a long stack */
  .card-grid { display: flex; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 22px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .card-grid::-webkit-scrollbar { display: none; }
  .card-grid > .cta-card { flex: 0 0 82%; scroll-snap-align: center; }
  .cta-card:hover, .cta-card:focus-within { transform: none; }
  .cta-card-media { height: 170px; }
  .cta-card-body { padding: 20px 18px 22px; }
  .cta-card-title { font-size: 20px; }
  .cta-card-desc { font-size: 14px; margin-bottom: 16px; }
  .services .section-head::after { content: 'Swipe to see more \2192'; font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--blue); }
  .services { padding: 56px 0 40px; }

  /* Stats as tiles */
  .stats { padding: 36px 0; }
  .stats-grid { gap: 10px; }
  .stat { padding: 18px 10px; border: 0 !important; border-radius: 18px; background: var(--story-bg); }
  .stat-num { font-size: 34px; }

  /* Slim action bar once you scroll past the top */
  .mobile-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px; border-radius: 40px; background: rgb(255 255 255 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 34px -14px rgb(5 36 76 / .45); transform: translateY(140%); transition: transform .4s var(--ease); }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 30px; font-family: var(--head); font-size: 15px; font-weight: 600; }
  .mobile-bar-call { background: var(--story-bg); color: var(--navy); }
  .mobile-bar-survey { background: var(--blue); color: var(--white); }
  body.has-mobile-bar .to-top { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: 80px; }
}
/* Before/after photos: labelled, and kept side by side on phones */
.before-after { position: relative; }
.before-after::before, .before-after::after { position: absolute; top: 12px; z-index: 1; padding: 5px 12px; border-radius: 20px; background: rgb(5 36 76 / .82); font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--white); pointer-events: none; }
.before-after::before { content: 'Before'; left: 12px; }
.before-after::after { content: 'After'; left: calc(50% + 20px); }
@media (max-width: 680px) {
  .csec .before-after, .csec .img-pair, .before-after, .img-pair { grid-template-columns: 1fr 1fr; gap: 8px; }
  .csec .before-after img, .csec .img-pair img { aspect-ratio: 1; border-radius: 16px; }
  .before-after::before, .before-after::after { top: 8px; padding: 4px 9px; font-size: 10px; }
  .before-after::before { left: 8px; }
  .before-after::after { left: calc(50% + 12px); }
  .before-after figcaption, .img-pair figcaption { font-size: 13px; text-align: left; }

  /* Checklists: compact rows instead of chunky tiles */
  .csec .ticks { gap: 6px; }
  .csec .ticks li { padding: 11px 12px 11px 42px; border-radius: 12px; font-size: 14.5px; line-height: 1.4; }
  .csec .ticks li::before { left: 12px; top: 12px; width: 19px; height: 19px; background-size: 11px; }

  /* Section photos: a short banner rather than a tall picture */
  .csec-photo { margin-top: 12px; }
  .csec-photo img { aspect-ratio: 16 / 8; border-radius: 18px; }

  /* Info cards a little tighter */
  .csec .cards-3 { gap: 10px; }
  .csec .info-card { padding: 20px 18px; border-radius: 20px; }
  .csec .info-card h3 { font-size: 19px; }
  .csec .info-card p { font-size: 14.5px; }
}
/* WordPress adds <br> between photos in a pair, which steals a grid cell */
.before-after > br, .img-pair > br { display: none; }

/* Keep photo pairs a sensible size on wide screens */
.csec .before-after, .csec .img-pair { max-width: 920px; }

/* Branded picture for posts without a featured image */
.post-graphic { position: absolute; inset: 0; display: grid; align-content: space-between; justify-items: start; padding: 22px 24px; overflow: hidden; color: var(--white); text-align: left; background: linear-gradient(135deg, var(--navy) 0%, #0d3a6e 55%, var(--blue) 100%); }
.post-graphic-1 { background: linear-gradient(135deg, #0b2f5c 0%, var(--blue) 100%); }
.post-graphic-2 { background: linear-gradient(160deg, var(--navy) 0%, #1d5689 70%, #3b7fb8 100%); }
.post-graphic-3 { background: linear-gradient(120deg, #123c6b 0%, var(--navy) 60%, #0a2a52 100%); }
.post-graphic::before { content: ''; position: absolute; right: -26px; bottom: -34px; width: 62%; aspect-ratio: 120 / 110; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 110' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'><path d='M8 52 60 12l52 40'/><path d='M86 32V16h12v25'/><circle cx='60' cy='74' r='26'/><path d='M40 70h40M42 80h36'/></svg>") center / contain no-repeat; opacity: .12; }
.post-graphic::after { content: ''; position: absolute; left: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgb(132 197 251 / .35); box-shadow: 0 0 0 26px rgb(132 197 251 / .06); }
.post-graphic-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .25); color: var(--sky); }
.post-graphic-cat { position: relative; z-index: 1; display: block; max-width: 85%; font-family: var(--head); font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--white); }
.post-graphic-brand { position: relative; z-index: 1; font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.post-graphic-brand em { font-style: normal; color: rgb(255 255 255 / .7); }
.post-card-img { position: relative; }
.post-card:hover .post-graphic-icon { background: var(--sky); color: var(--navy); }
.entry-thumb .post-graphic-wide { position: relative; display: grid; min-height: 280px; border-radius: 24px; padding: 34px 36px; }
.entry-thumb .post-graphic-wide .post-graphic-cat { font-size: 28px; }
.entry-thumb img { border-radius: 24px; }
/* "Why choose us": large heading left, copy right */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 80px; align-items: center; }
.why-head { display: grid; justify-items: start; gap: 6px; }
.why-head .kicker { margin-bottom: 4px; }
.why-head .h-display { font-size: clamp(42px, 5.4vw, 76px); line-height: 1.05; text-align: left; }
.why-head .rotator { margin: 6px 0 0; justify-items: start; text-align: left; font-size: clamp(26px, 3vw, 40px); color: var(--blue); }
.why-body { display: grid; gap: 20px; padding: 36px 40px; border-radius: 31px; background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 20px 50px -30px rgb(5 36 76 / .35); }
.why-body .lead { max-width: none; margin: 0; text-align: left; }
.why-body .why-list { display: grid; gap: 2px; margin: 0; }
.why-body .why-close { max-width: none; margin: 0; text-align: left; }
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-body { padding: 26px 22px; }
}
/* Contact form: message box, and the form card stays in view beside the contact details */
.sf-field small { font-family: var(--body); font-weight: 400; color: var(--desc); }
.sf-field textarea { width: 100%; min-height: 120px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft-2); font: 400 16px/1.5 var(--body); color: var(--ink); resize: vertical; transition: border-color .2s, box-shadow .2s, background .2s; }
.sf-field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgb(132 197 251 / .3); }
@media (min-width: 1025px) {
  .contact-layout { align-items: start; }
  .contact-form-card { position: sticky; top: 110px; }
}