/*
Theme Name: We Hit Bottom
Theme URI: https://www.whbllc-tn.com
Author: We Hit Bottom Inc
Description: Custom theme for We Hit Bottom pressure washing & soft washing, with membership care plans (Paid Memberships Pro).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: whb
*/

:root {
	--red: #d61f26;
	--red-dark: #a8161c;
	--black: #0c0c0c;
	--ink: #1a1a1a;
	--grey: #5b5b5b;
	--line: #e6e6e6;
	--soft: #f5f5f5;
	--white: #fff;
	--radius: 10px;
	--head: 'Oswald', 'Arial Narrow', sans-serif;
	--body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.fine { font-size: .9rem; color: var(--grey); }

h1, h2, h3, h4 { font-family: var(--head); text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin: 0 0 .5em; }

/* Buttons */
.btn { display: inline-block; padding: .85em 1.6em; border-radius: 6px; font-family: var(--head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: background .15s, color .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #333; color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--black); }
.section:not(.dark) .btn-ghost { border-color: var(--black); color: var(--black); }

/* Top bar + header */
.topbar { background: var(--black); color: #fff; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.site-header { background: #fff; border-bottom: 4px solid var(--red); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { display: block; height: 76px; width: auto; margin-block: 4px; }
.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav .menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a { color: var(--black); text-decoration: none; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.primary-nav .menu a:hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--black); margin: 5px 0; }

/* Hero */
.hero { background: #000 url('assets/hero-poster.jpg') center / cover no-repeat; color: #fff; position: relative; overflow: hidden; min-height: min(78vh, 720px); display: flex; align-items: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.25) 100%), linear-gradient(0deg, rgba(168,22,28,.35) 0%, transparent 35%); }
.hero-in { padding: 90px 0 80px; position: relative; z-index: 1; width: min(1160px, 100% - 40px); }
.hero-copy { text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.hero-copy { max-width: 720px; }
.eyebrow { color: var(--red); background: #fff; display: inline-block; padding: 4px 12px; border-radius: 4px; font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .85rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-top: .5em; }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: 1.15rem; color: #ddd; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; color: #ddd; font-size: .95rem; }
.hero-points li::before { content: '\2713'; color: var(--red); font-weight: 700; margin-right: 8px; }

/* Sections */
.section { padding: 72px 0; }
.section.light { background: var(--soft); }
.section.dark { background: var(--black); color: #fff; }
.sec-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; position: relative; padding-bottom: 18px; }
.sec-title::after { content: ''; display: block; width: 64px; height: 4px; background: var(--red); margin: 14px auto 0; }
.sec-title.left { text-align: left; }
.sec-title.left::after { margin-left: 0; }
.sec-sub { text-align: center; max-width: 640px; margin: 0 auto 40px; color: var(--grey); }
.dark .sec-sub { color: #cfcfcf; }
.page-head { background: var(--black); color: #fff; padding: 56px 0; border-bottom: 4px solid var(--red); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.page-head p { margin: 10px 0 0; color: #ccc; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); margin-bottom: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 26px; margin: 0; }
.card h3 { font-size: 1.3rem; }
.card p { margin: 0; color: var(--grey); }
.review blockquote { margin: 8px 0 14px; color: var(--ink); }
.review figcaption { font-weight: 700; }
.review figcaption span { display: block; font-weight: 400; font-size: .8rem; color: var(--grey); }
.stars { color: var(--red); letter-spacing: 2px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; margin-bottom: 32px; }
.plan { position: relative; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px 26px; display: flex; flex-direction: column; border: 2px solid transparent; }
.plan-featured { border-color: var(--red); transform: translateY(-10px); box-shadow: 0 18px 40px rgba(214, 31, 38, .35); }
.badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.plan-tag { margin: 0; color: var(--red); font-family: var(--head); text-transform: uppercase; letter-spacing: .15em; font-weight: 600; }
.plan h3 { font-size: 1.7rem; margin: 4px 0 6px; }
.plan-blurb { color: var(--grey); font-size: .95rem; margin: 0 0 12px; min-height: 3em; }
.plan-price { font-family: var(--head); font-size: 3.4rem; line-height: 1; margin: 0; }
.plan-price span { font-size: 1.5rem; vertical-align: top; margin-right: 2px; }
.plan-price small { font-size: 1rem; color: var(--grey); font-family: var(--body); margin-left: 4px; }
.plan-year { color: var(--grey); font-size: .85rem; margin: 6px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li { padding: 8px 0 8px 26px; border-top: 1px solid var(--line); position: relative; font-size: .95rem; }
.plan li::before { content: '\2713'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.plan .btn { text-align: center; }

/* Misc blocks */
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 28px; position: relative; margin: 10px 0; }
.checks li::before { content: '\2713'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.callout { background: var(--black); color: #fff; padding: 34px; border-radius: var(--radius); border-left: 6px solid var(--red); }
.callout a { color: #fff; }
.form-box { background: var(--soft); padding: 30px; border-radius: var(--radius); border-top: 4px solid var(--red); }
.form-box h3 { font-size: 1.6rem; }
.area-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li { background: var(--black); color: #fff; padding: 8px 18px; border-radius: 30px; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; }
.area-list li:first-child, .area-list li:nth-child(2) { background: var(--red); }

/* Forms (quote form, login, PMPro) */
.quote-form label, .form-box label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 6px; font: inherit; background: #fff; margin-top: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 6px; margin-bottom: 18px; font-weight: 600; }
.notice.ok { background: #e9f7ec; color: #14532d; }
.notice.err { background: #fde8e8; color: #7f1d1d; }
#loginform p { margin: 0 0 14px; }
#loginform input[type=submit] { background: var(--red); color: #fff; border: 0; padding: .85em 1.6em; border-radius: 6px; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }

/* Paid Memberships Pro polish */
.pms-form, .pms-account-navigation { background: var(--soft); border-radius: var(--radius); }
.pms-form input[type=submit], .pms-form .pms-submit, input.pms-submit { background: var(--red) !important; color: #fff !important; border: 0 !important; border-radius: 6px !important; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; padding: .85em 1.6em; cursor: pointer; }
.entry { margin-top: 28px; }
.entry h2 a { color: var(--black); text-decoration: none; }

/* Footer */
.site-footer { background: var(--black); color: #cfcfcf; padding-top: 56px; border-top: 4px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 110px; width: auto; }
.site-footer h4 { color: #fff; font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.legal { border-top: 1px solid #2a2a2a; margin-top: 40px; padding: 20px 0 80px; font-size: .85rem; }
.mobile-call { display: none; }

/* Responsive */
@media (max-width: 900px) {
	.cards, .plans { grid-template-columns: 1fr; }
	.cards.two, .split, .footer-grid { grid-template-columns: 1fr; }
	.plan-featured { transform: none; }
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 20px; gap: 16px; border-bottom: 4px solid var(--red); }
	.primary-nav.open { display: flex; }
	.primary-nav .menu { flex-direction: column; gap: 14px; }
	.nav-cta { text-align: center; }
	.topbar-in span { display: none; }
	.topbar-in { justify-content: center; }
	.mobile-call { display: block; position: fixed; left: 0; right: 0; bottom: 0; background: var(--red); color: #fff; text-align: center; padding: 14px; font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; z-index: 60; }
	.mobile-call:hover { color: #fff; }
}
@media (max-width: 560px) {
	.quote-form .row { grid-template-columns: 1fr; }
	.section { padding: 52px 0; }
	.hero-in { padding: 60px 0; }
}

/* Before / after sliders */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.ba { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); border: 4px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); background: #000; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba-line i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.ba-line i::before, .ba-line i::after { content: ''; position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; }
.ba-line i::before { left: 6px; border-right-color: #fff; border-left: 0; }
.ba-line i::after { right: 6px; border-left-color: #fff; border-right: 0; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-tag { position: absolute; top: 12px; padding: 4px 10px; background: rgba(0,0,0,.7); color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; border-radius: 4px; pointer-events: none; }
.ba-tag-l { left: 12px; }
.ba-tag-r { right: 12px; background: var(--red); }
.ba figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; pointer-events: none; }
.ba:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
@media (max-width: 900px) {
	.ba-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
	.hero { min-height: 70vh; }
	.hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.8), rgba(0,0,0,.55)); }
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ===== Hub & spoke pages ===== */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .85rem; }
.crumbs li + li::before { content: '/'; color: #888; margin-right: 6px; }
.crumbs a { color: #ddd; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li[aria-current] { color: #fff; font-weight: 600; }
.head-lead { max-width: 760px; color: #ddd; font-size: 1.1rem; margin: 12px 0 0; }
.head-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.page-head .btn-ghost { border-color: #fff; color: #fff; }
.page-head .btn-ghost:hover { background: #fff; color: var(--black); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.detail-main h2 { font-size: 1.9rem; margin-top: 1.6em; padding-bottom: .3em; border-bottom: 3px solid var(--red); display: inline-block; }
.detail-main > h2:first-child { margin-top: 0; }
.detail-main p, .detail-main li { font-size: 1.03rem; }
.detail-hero { margin: 0 0 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.detail-hero > img { display: block; width: 100%; height: auto; }
.detail-hero figcaption { background: var(--black); color: #cfcfcf; font-size: .82rem; padding: 8px 14px; }
.detail-hero .ba-grid { display: block; }
.detail-hero .ba { border: 0; box-shadow: none; border-radius: 0; max-width: 420px; margin-inline: auto; }
.detail-side { position: relative; }
.sticky { position: sticky; top: 110px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 28px 0; }
.panel { background: var(--soft); border-radius: var(--radius); padding: 22px 24px; border-top: 4px solid var(--red); }
.panel h3 { font-size: 1.2rem; }
.panel .checks { margin: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; position: relative; }
.steps li::before { content: counter(s); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--head); font-size: 1.15rem; }
.steps li strong { font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; }
.steps li span { color: var(--grey); font-size: .98rem; }
.plan-callout { margin: 36px 0 8px; }
.plan-callout h3 { color: #fff; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; padding: 0 18px; }
.faq details[open] { border-color: var(--red); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { margin: 0 0 16px; color: var(--grey); }

/* Service cards (spokes) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-bottom: 4px solid var(--red); transition: transform .15s, box-shadow .15s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.16); color: var(--ink); }
.svc-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; flex: 1; }
.svc-body strong { font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; font-size: 1.2rem; line-height: 1.15; }
.svc-body span { color: var(--grey); font-size: .95rem; }
.svc-body em { font-style: normal; color: var(--red); font-weight: 700; margin-top: auto; padding-top: 6px; }
.svc-card:hover .svc-body em::after { content: ' \2192'; }

/* City grids */
.city-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 22px; }
.city-grid a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.city-grid a:hover { color: var(--black); padding-left: 6px; }
.city-grid-dark a { color: #fff; border-color: #2a2a2a; }
.city-grid-dark a:hover { color: var(--red); }
.near-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.near-grid-lg { grid-template-columns: repeat(5, 1fr); }
.near { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; transition: box-shadow .15s; }
.near:hover { box-shadow: 0 10px 26px rgba(0,0,0,.14); color: var(--ink); }
.near strong { font-family: var(--head); text-transform: uppercase; font-size: 1.2rem; }
.near span { color: var(--grey); font-size: .85rem; }
.near em { font-style: normal; font-size: .92rem; }
.county-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.county { background: var(--soft); border-radius: var(--radius); padding: 20px 22px; border-top: 4px solid var(--red); }
.county h3 { font-size: 1.15rem; }
.county ul { list-style: none; padding: 0; margin: 0; }
.county li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #e3e3e3; }
.county li span { color: var(--grey); font-size: .85rem; }
.area-list li a { color: inherit; text-decoration: none; }
.area-list li.pri { background: var(--red); }
.area-list li:first-child, .area-list li:nth-child(2) { background: var(--black); }
.area-list li.pri:first-child, .area-list li.pri:nth-child(2) { background: var(--red); }
.dark .area-list li { background: #1f1f1f; border: 1px solid #333; }
.dark .area-list li.pri { background: var(--red); border-color: var(--red); }
.dark .area-note { color: #cfcfcf; }
.dark .area-note a { color: #fff; }

/* Area page bits */
.facts { background: var(--black); color: #fff; padding: 26px; border-radius: var(--radius); border-left: 6px solid var(--red); position: sticky; top: 110px; }
.facts h3 { color: #fff; font-size: 1.4rem; }
.facts dl { margin: 0 0 18px; }
.facts dt { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-size: .8rem; margin-top: 12px; }
.facts dd { margin: 2px 0 0; color: #ddd; }
.landmarks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.landmarks li { background: var(--soft); border-left: 4px solid var(--red); border-radius: 6px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.landmarks strong { font-weight: 700; }
.landmarks span { color: var(--grey); font-size: .96rem; }
.feat-list { display: grid; gap: 16px; margin: 18px 0; }
.feat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; border-top: 4px solid var(--red); }
.feat h3 { font-size: 1.25rem; margin-bottom: .3em; }
.feat h3 a { color: var(--black); text-decoration: none; }
.feat h3 a:hover { color: var(--red); }
.feat p { margin: 0; color: var(--grey); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 16px; }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }
.dark-form { background: #1a1a1a; }
.dark-form label { color: #fff; }

/* Nav dropdowns */
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: -12px; background: #fff; list-style: none; margin: 0; padding: 10px 0; min-width: 270px; border-top: 4px solid var(--red); box-shadow: 0 18px 40px rgba(0,0,0,.2); z-index: 70; }
.sub-wide { grid-template-columns: repeat(2, 1fr); min-width: 460px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.has-sub:hover > .sub-wide, .has-sub:focus-within > .sub-wide { display: grid; }
.sub a { display: block; padding: 7px 18px; font-size: .95rem; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 500; }
.primary-nav .menu > .has-sub > a::after { content: ' \25BE'; font-size: .7em; }
.ba-single { display: block; }

@media (max-width: 1100px) {
	.near-grid-lg { grid-template-columns: repeat(3, 1fr); }
	.svc-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.detail-grid { grid-template-columns: 1fr; }
	.sticky, .facts { position: static; }
	.two-col, .svc-grid, .svc-grid-4, .near-grid, .near-grid-lg, .county-grid { grid-template-columns: 1fr; }
	.city-grid { grid-template-columns: repeat(2, 1fr); }
	.sub, .sub-wide { position: static; box-shadow: none; border-top: 0; min-width: 0; padding: 0 0 0 14px; }
	.has-sub:focus-within > .sub-wide, .has-sub:hover > .sub-wide { display: block; }
	.facts { order: -1; }
}
@media (max-width: 560px) {
	.city-grid { grid-template-columns: 1fr; }
}

/* ===== Mobile optimization ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
a, button, summary, .btn { touch-action: manipulation; -webkit-tap-highlight-color: rgba(214, 31, 38, .15); }
.sub-toggle { display: none; }
.mobile-bar { display: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Desktop dropdowns only open on hover where a real pointer exists */
@media (max-width: 900px) {
	.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
	.has-sub.open > .sub { display: block; }
	.has-sub.open > .sub-wide { display: block; }
}

@media (max-width: 900px) {
	html.nav-open body { overflow: hidden; }

	/* Header + nav */
	.site-header { position: sticky; top: 0; }
	.header-in { gap: 8px; }
	.brand img { height: 58px; margin-block: 3px; }
	.nav-toggle { padding: 14px; margin-right: -10px; min-width: 48px; min-height: 48px; }
	.primary-nav { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 20px 24px; gap: 4px; }
	.primary-nav .menu { gap: 0; }
	.primary-nav .menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { flex: 1; padding: 15px 0; min-height: 48px; font-size: 1.05rem; }
	.primary-nav .menu > .has-sub > a::after { content: none; }
	.sub-toggle { display: block; width: 48px; height: 48px; background: none; border: 0; position: relative; cursor: pointer; }
	.sub-toggle::before { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -7px 0 0 -5px; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(45deg); transition: transform .2s; }
	.has-sub.open > .sub-toggle::before { transform: rotate(-135deg); margin-top: -2px; }
	.primary-nav .sub { flex-basis: 100%; padding: 0 0 10px 12px; margin: 0; }
	.primary-nav .sub a { padding: 12px 0; min-height: 44px; font-size: 1rem; border-top: 1px solid #f0f0f0; }
	.nav-cta { margin-top: 14px; min-height: 52px; display: flex; align-items: center; justify-content: center; }

	/* Sticky call / quote bar */
	.mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.25); padding-bottom: env(safe-area-inset-bottom); background: var(--black); }
	.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 54px; font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; text-decoration: none; color: #fff; }
	.mb-call { background: var(--black); border-top: 3px solid var(--red); }
	.mb-quote { background: var(--red); border-top: 3px solid var(--red); }
	.legal { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
	.mobile-call { display: none; }

	/* Hero */
	.hero { min-height: 0; }
	.hero-in { padding: 52px 0 46px; }
	.hero h1 { font-size: clamp(2.1rem, 9.5vw, 3rem); }
	.lead { font-size: 1.05rem; }
	.hero-actions .btn { flex: 1 1 100%; text-align: center; }
	.hero-points { gap: 6px 16px; font-size: .9rem; }

	/* Sections + type */
	.section { padding: 44px 0; }
	.sec-title { font-size: clamp(1.6rem, 7vw, 2.2rem); padding-bottom: 12px; }
	.sec-sub { margin-bottom: 26px; font-size: .98rem; }
	.page-head { padding: 34px 0 38px; }
	.page-head h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
	.head-lead { font-size: 1rem; }
	.head-actions .btn { flex: 1 1 100%; text-align: center; }
	.detail-main h2 { font-size: 1.5rem; }
	.detail-main p, .detail-main li { font-size: 1rem; line-height: 1.65; }
	.detail-grid { gap: 28px; }
	.wrap { width: min(1160px, 100% - 32px); }
	.narrow { width: min(820px, 100% - 32px); }

	/* Buttons & forms */
	.btn { min-height: 48px; padding: .8em 1.4em; }
	.quote-form .btn, .plan .btn, .callout .btn, .facts .btn { display: flex; align-items: center; justify-content: center; width: 100%; text-align: center; }
	input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea { font-size: 16px; padding: 13px 14px; min-height: 48px; }
	.form-box { padding: 22px 18px; }
	.quote-form label, .form-box label { margin-bottom: 12px; }

	/* Plans: most popular first */
	.plans { gap: 18px; }
	.plan-featured { order: -1; }
	.plan { padding: 28px 20px; }
	.plan-price { font-size: 3rem; }

	/* Cards */
	.cards { gap: 14px; }
	.svc-grid { gap: 12px; }
	.svc-grid-4 { gap: 10px; }
	.svc-card { flex-direction: row; align-items: stretch; border-bottom-width: 1px; border-left: 4px solid var(--red); }
	.svc-card:hover { transform: none; }
	.svc-card img { width: 38%; max-width: 160px; flex: none; aspect-ratio: auto; height: auto; object-fit: cover; }
	.svc-body { padding: 12px 14px; gap: 3px; justify-content: center; }
	.svc-body strong { font-size: 1.05rem; }
	.svc-body span { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.svc-body em { padding-top: 2px; font-size: .9rem; }
	.near, .feat, .panel, .landmarks li { padding: 14px 16px; }
	.steps li { grid-template-columns: 38px 1fr; padding: 12px 14px; }
	.steps li::before { width: 32px; height: 32px; font-size: 1rem; }
	.faq summary { padding: 16px 30px 16px 0; min-height: 52px; }
	.city-grid { grid-template-columns: 1fr 1fr; gap: 0 16px; }
	.city-grid a { padding: 13px 0; min-height: 46px; font-size: .94rem; }
	.county li { padding: 11px 0; min-height: 46px; }
	.area-list { gap: 8px; }
	.area-list li { padding: 0; }
	.area-list li a { display: block; padding: 11px 16px; }
	.map iframe { height: 260px; }
	.crumbs ol { font-size: .8rem; }
	.crumbs a { display: inline-block; padding: 6px 0; }
	.site-footer li { margin: 0; }
	.site-footer li a { display: inline-block; padding: 9px 0; }
	.footer-grid { gap: 26px; }
	.facts { padding: 20px; }
	.ba-grid { max-width: 420px; }
}

@media (max-width: 560px) {
	.city-grid { grid-template-columns: 1fr; }
	.svc-card img { width: 34%; }
	.topbar { font-size: .8rem; }
	.topbar-in { padding: 6px 0; }
}

@media (max-width: 360px) {
	.brand img { height: 50px; }
	.svc-card img { display: none; }
}

@media (hover: none) {
	.btn:hover, .svc-card:hover, .near:hover { transform: none; }
}

@media (max-width: 900px) {
	.pms-form-submit, input[type=submit], #loginform input[type=submit] { min-height: 48px; width: 100%; font-size: 16px; }
}
