/* ==========================================================
   RAPID PLUMBER DANA POINT — SHARED DESIGN SYSTEM
   Brand colors derived from the Coastal Wave logo:
   navy pipe (#0A3A80) + coastal orange wave (#FF5722)
   ========================================================== */

:root {
    /* Brand */
    --navy: #0A3A80;
    --navy-700: #082F68;
    --navy-800: #062452;
    --navy-900: #04183A;
    --navy-050: #EEF3FB;
    --navy-100: #DCE6F5;
    --orange: #FF5722;          /* decorative / large text on dark */
    --orange-soft: #FF7A4D;     /* text on navy */
    --cta: #D84315;             /* AA-compliant CTA background with white text */
    --cta-dark: #B5360F;
    --orange-050: #FFF2EC;
    --orange-100: #FFE0D3;

    /* Neutrals */
    --text: #1E2A3B;
    --text-light: #4D5B6E;
    --text-muted: #6B7A8E;
    --white: #FFFFFF;
    --off-white: #F6F8FC;
    --sand: #FBF7F2;
    --border: #DCE3EC;

    /* Typography */
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Layout */
    --container: 1200px;
    --narrow: 780px;
    --header-h: 80px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(6, 36, 82, 0.06);
    --shadow-md: 0 6px 24px rgba(6, 36, 82, 0.09);
    --shadow-lg: 0 14px 44px rgba(6, 36, 82, 0.14);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy-800); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--navy-800); font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 3000; background: var(--navy-800); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* Prose links inside content */
main p a, main li a:not(.btn), main td a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(216, 67, 21, .45); text-underline-offset: 3px; }
main p a:hover, main li a:not(.btn):hover, main td a:hover { color: var(--cta); text-decoration-color: var(--cta); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 30px; font-family: var(--font-heading); font-size: 1rem; font-weight: 700; border-radius: var(--radius-md); border: 2px solid transparent; cursor: pointer; transition: all .3s var(--ease); letter-spacing: .2px; text-align: center; line-height: 1.2; text-decoration: none; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 6px 18px rgba(216, 67, 21, .32); }
.btn-primary:hover { background: var(--cta-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(216, 67, 21, .42); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--navy-800); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn-sm { min-height: 42px; padding: 10px 20px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 16px 36px; font-size: 1.08rem; }

/* ---------- Section primitives ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--off-white); }
.section-sand { background: var(--sand); }
.section-dark { background: linear-gradient(140deg, var(--navy-800) 0%, var(--navy-900) 100%); color: rgba(255, 255, 255, .85); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark strong { color: #fff; }
.section-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.4px; color: var(--cta); margin-bottom: 14px; }
.section-label::before { content: ''; width: 32px; height: 3px; border-radius: 3px; background: var(--orange); }
.section-dark .section-label { color: var(--orange-soft); }
.section-title { font-size: clamp(1.75rem, 3.8vw, 2.55rem); font-weight: 800; margin-bottom: 18px; }
.section-subtitle { font-size: 1.06rem; color: var(--text-light); max-width: 720px; }
.section-dark .section-subtitle { color: rgba(255, 255, 255, .75); }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 52px; }

/* ---------- Image placeholders ---------- */
.ph { position: relative; width: 100%; aspect-ratio: var(--ar, 4 / 3); border-radius: var(--radius-lg); overflow: hidden; background:
      radial-gradient(circle at 78% 18%, rgba(255, 87, 34, .22), transparent 42%),
      linear-gradient(135deg, var(--navy-100) 0%, var(--navy-050) 55%, var(--orange-050) 100%);
      border: 1px dashed rgba(10, 58, 128, .28); display: flex; align-items: center; justify-content: center; }
.ph::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 30 Q15 18 30 30 T60 30 T90 30 T120 30' fill='none' stroke='%230A3A80' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E"); }
.ph-label { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: .78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--navy); opacity: .75; text-align: center; padding: 12px; }
.ph-label svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ph-dark { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); border-color: rgba(255, 255, 255, .2); }
.ph-dark .ph-label { color: #fff; }

/* ==========================================================
   TOP BAR + HEADER
   ========================================================== */
.top-bar { background: var(--navy-900); color: rgba(255, 255, 255, .82); font-size: .84rem; padding: 9px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-bar-group { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.top-bar-item { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .85); }
.top-bar-item svg { width: 14px; height: 14px; fill: var(--orange-soft); flex-shrink: 0; }
a.top-bar-item:hover { color: #fff; }
.badge-247 { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #fff; }
.badge-247 .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }

.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-logo img { height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .dropdown-trigger { font-family: var(--font-heading); font-size: .95rem; font-weight: 600; color: var(--navy-800); padding: 10px 14px; border-radius: var(--radius-sm); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1.3; }
.main-nav > a:hover, .main-nav > a[aria-current="page"], .dropdown-trigger:hover, .nav-dropdown.is-current .dropdown-trigger { color: var(--cta); background: var(--orange-050); }
.nav-dropdown { position: relative; }
.dropdown-icon { width: 14px; height: 14px; fill: currentColor; transition: transform .2s var(--ease); }
.nav-dropdown.open .dropdown-icon { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s var(--ease); }
.dropdown-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu, .nav-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-family: var(--font-heading); font-weight: 600; font-size: .92rem; color: var(--navy-800); border-left: 3px solid transparent; }
.dropdown-menu a:hover, .dropdown-menu a[aria-current="page"] { background: var(--navy-050); border-left-color: var(--orange); color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); }
.header-phone-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--orange-050); display: grid; place-items: center; }
.header-phone-icon svg { width: 18px; height: 18px; fill: var(--cta); }
.header-phone-text { display: flex; flex-direction: column; line-height: 1.15; }
.header-phone-text small { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.header-phone-text span { font-size: 1.08rem; font-weight: 800; color: var(--navy-800); }
.header-phone:hover .header-phone-text span { color: var(--cta); }
.mobile-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.mobile-toggle span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--navy-800); }
.mobile-nav-head, .mobile-nav-foot { display: none; }
.nav-backdrop { display: none; }

/* ==========================================================
   HOMEPAGE — HERO
   ========================================================== */
.hero { position: relative; min-height: 680px; display: flex; align-items: center; overflow: hidden; background: var(--navy-900); color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media .ph { height: 100%; aspect-ratio: auto; border-radius: 0; border: 0; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.hero-media .ph-label { position: absolute; right: 24px; bottom: 20px; color: #fff; opacity: .45; flex-direction: row; font-size: .7rem; }
.hero-media .ph-label svg { width: 22px; height: 22px; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4, 24, 58, .78) 0%, rgba(4, 24, 58, .72) 50%, rgba(4, 24, 58, .94) 100%); }
.hero::after { content: ''; position: absolute; z-index: 1; width: 860px; height: 860px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 87, 34, .2) 0%, transparent 66%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 96px; width: 100%; }
.hero-content { max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 20px; border-radius: 50px; background: rgba(255, 87, 34, .2); border: 1px solid rgba(255, 122, 77, .55); font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 22px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .25); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 22px; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.hero h1 span { color: var(--orange-soft); }
.hero-desc { font-size: 1.14rem; color: rgba(255, 255, 255, .9); max-width: 740px; margin-bottom: 32px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; width: 100%; max-width: 820px; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 28px; }
.hero-point { padding: 0 16px; border-right: 1px solid rgba(255, 255, 255, .12); }
.hero-point:last-child { border-right: 0; }
.hero-point strong { display: block; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: #fff; }
.hero-point span { font-size: .78rem; text-transform: uppercase; letter-spacing: .9px; color: rgba(255, 255, 255, .7); }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; }

/* Quick action strip below hero */
.quick-strip { position: relative; z-index: 3; margin-top: -54px; }
.quick-strip-inner { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.quick-item { display: flex; gap: 14px; align-items: center; padding: 24px 22px; border-right: 1px solid var(--border); }
.quick-item:last-child { border-right: 0; }
.quick-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--navy-050); display: grid; place-items: center; }
.quick-icon svg { width: 22px; height: 22px; fill: var(--navy); }
.quick-item strong { display: block; font-family: var(--font-heading); font-size: 1rem; color: var(--navy-800); line-height: 1.25; }
.quick-item span { font-size: .85rem; color: var(--text-muted); line-height: 1.4; }
.quick-item.is-cta { background: var(--cta); }
.quick-item.is-cta .quick-icon { background: rgba(255, 255, 255, .18); }
.quick-item.is-cta svg { fill: #fff; }
.quick-item.is-cta strong, .quick-item.is-cta span { color: #fff; }
a.quick-item.is-cta:hover { background: var(--cta-dark); }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.split-media .float-card { position: absolute; right: -18px; bottom: -22px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 18px 22px; display: flex; gap: 14px; align-items: center; max-width: 280px; }
.float-card .fc-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--cta); display: grid; place-items: center; flex-shrink: 0; }
.float-card .fc-icon svg { width: 20px; height: 20px; fill: #fff; }
.float-card strong { display: block; font-family: var(--font-heading); font-size: 1rem; line-height: 1.2; }
.float-card span { font-size: .82rem; color: var(--text-muted); }
.split-content p { color: var(--text-light); }
.check-list { display: grid; gap: 12px; margin: 22px 0 28px; }
.check-list li { position: relative; padding-left: 34px; color: var(--text); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23D84315'/%3E%3C/svg%3E") center / 14px no-repeat; }
.section-dark .check-list li { color: rgba(255, 255, 255, .88); }
.section-dark .check-list li::before { background-color: rgba(255, 255, 255, .1); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }

/* ---------- Services grid (homepage) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: all .35s var(--ease); position: relative; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service-card:hover::after { transform: scaleX(1); }
.service-card .ph { border-radius: 0; border: 0; border-bottom: 1px dashed rgba(10, 58, 128, .2); --ar: 16 / 10; }
.service-card > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--border); }
.service-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--cta); background: var(--orange-050); padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.service-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.service-card p { color: var(--text-light); font-size: .95rem; flex: 1; }
.service-card-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; color: var(--navy); font-size: .95rem; }
.service-card-link svg { width: 16px; height: 16px; fill: currentColor; transition: transform .3s var(--ease); }
.service-card:hover .service-card-link { color: var(--cta); }
.service-card:hover .service-card-link svg { transform: translateX(4px); }

/* ---------- Symptom grid ---------- */
.symptom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.symptom-card { background: #fff; border-radius: var(--radius-md); padding: 26px 22px; border: 1px solid var(--border); border-top: 4px solid var(--navy); transition: all .3s var(--ease); }
.symptom-card:nth-child(even) { border-top-color: var(--orange); }
.symptom-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.symptom-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy-050); display: grid; place-items: center; margin-bottom: 16px; }
.symptom-icon svg { width: 24px; height: 24px; fill: var(--navy); }
.symptom-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.symptom-card p { font-size: .92rem; color: var(--text-light); }
.symptom-card .route { display: block; margin-top: 12px; font-size: .85rem; font-weight: 700; }

/* ---------- Diagnosis feature (dark) ---------- */
.diag-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: start; }
.diag-list { display: grid; gap: 18px; }
.diag-item { display: flex; gap: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-md); padding: 22px; }
.diag-num { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--cta); color: #fff; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; }
.diag-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.diag-item p { font-size: .95rem; color: rgba(255, 255, 255, .78); }

/* ---------- Process timeline ---------- */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative; counter-reset: step; }
.process-steps::before { content: ''; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--navy-100) 0 10px, transparent 10px 18px); }
.process-step { position: relative; text-align: center; padding: 0 6px; }
.process-step-num { position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); display: grid; place-items: center; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: var(--navy); box-shadow: 0 0 0 8px var(--off-white); }
.process-step:nth-child(even) .process-step-num { border-color: var(--orange); color: var(--cta); }
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: .9rem; color: var(--text-light); }

/* ---------- Repair vs replace ---------- */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: stretch; }
.versus-col { background: #fff; border-radius: var(--radius-lg); padding: 34px 30px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.versus-col h3 { font-size: 1.3rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.versus-col h3 .pill { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 20px; background: var(--navy-050); color: var(--navy); }
.versus-col.alt h3 .pill { background: var(--orange-050); color: var(--cta); }
.versus-col > p { color: var(--text-light); font-size: .95rem; margin-bottom: 14px; }
.versus-vs { align-self: center; width: 60px; height: 60px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; }

/* ---------- Estimate factors ---------- */
.factor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.factor { padding: 30px 28px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.factor:nth-child(3n) { border-right: 0; }
.factor:nth-last-child(-n+3) { border-bottom: 0; }
.factor-k { font-family: var(--font-heading); font-size: .78rem; font-weight: 800; letter-spacing: 1.6px; color: var(--cta); margin-bottom: 8px; display: block; }
.factor h3 { font-size: 1.1rem; margin-bottom: 8px; }
.factor p { font-size: .93rem; color: var(--text-light); }

/* ---------- Local context ---------- */
.local-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.local-grid > div > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.local-cards { display: grid; gap: 18px; }
.local-card { padding: 22px 24px; border-radius: var(--radius-md); background: #fff; border-left: 4px solid var(--orange); box-shadow: var(--shadow-sm); }
.local-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.local-card p { font-size: .94rem; color: var(--text-light); }

/* ---------- FAQ (details/summary) ---------- */
.faq-list { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.faq-item[open] { border-color: var(--navy-100); box-shadow: var(--shadow-md); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--navy-800); line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--navy-050); color: var(--navy); display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; transition: all .25s var(--ease); }
.faq-item[open] summary::after { content: '−'; background: var(--cta); color: #fff; }
.faq-item summary:hover { color: var(--navy); }
.faq-answer { padding: 0 24px 22px; color: var(--text-light); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-800) 60%, var(--navy-900) 100%); color: #fff; padding: 84px 0; }
.cta-band::before { content: ''; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 87, 34, .35), transparent 65%); }
.cta-band::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C240 10 480 60 720 35 S1200 10 1440 40 V60 H0Z' fill='%23FF5722' fill-opacity='.12'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.cta-band .container { position: relative; z-index: 1; }
.cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .82); font-size: 1.05rem; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.cta-phone-big { display: block; text-align: center; font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; color: #fff; letter-spacing: -0.01em; }
.cta-phone-big small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--orange-soft); }

/* ==========================================================
   INNER PAGES (About, Contact, Legal, Sitemap, 404)
   ========================================================== */
.page-hero { background: linear-gradient(140deg, var(--navy-800), var(--navy-900)); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 87, 34, .28), transparent 65%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: 1.08rem; max-width: 680px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-bottom: 20px; color: rgba(255, 255, 255, .55); }
.breadcrumbs a { color: rgba(255, 255, 255, .7); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: var(--orange-soft); font-weight: 600; }

/* Editorial (About) */
.editorial { display: grid; grid-template-columns: 220px 1fr; gap: 56px; }
.editorial-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-family: var(--font-heading); }
.editorial-aside .ed-k { font-size: .76rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cta); font-weight: 800; }
.editorial-aside p { font-size: 1.25rem; font-weight: 700; color: var(--navy-800); line-height: 1.35; margin-top: 8px; }
.editorial-body { max-width: 720px; }
.editorial-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 44px 0 14px; }
.editorial-body h2:first-child { margin-top: 0; }
.editorial-body h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.editorial-body p, .editorial-body li { color: var(--text-light); font-size: 1.04rem; }
.editorial-body .lead { font-size: 1.24rem; color: var(--navy-800); line-height: 1.65; font-family: var(--font-heading); font-weight: 500; }
.pull-quote { margin: 36px 0; padding: 26px 30px; border-left: 5px solid var(--orange); background: var(--sand); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--navy-800); line-height: 1.5; }
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px 0; }
.value-row > div { padding: 22px; border-radius: var(--radius-md); border: 1px solid var(--border); background: #fff; }
.value-row h3 { margin: 0 0 8px; font-size: 1.05rem; }
.value-row p { font-size: .92rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.contact-call-card { background: linear-gradient(140deg, var(--cta), #A9320C); color: #fff; border-radius: var(--radius-xl); padding: 40px; box-shadow: 0 18px 40px rgba(216, 67, 21, .3); }
.contact-call-card h2 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.contact-call-card p { color: rgba(255, 255, 255, .9); }
.contact-call-card .big-phone { display: block; margin: 22px 0; font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; color: #fff; letter-spacing: -0.02em; text-decoration: none; }
.contact-call-card .btn { background: #fff; color: var(--cta-dark); }
.contact-call-card .btn:hover { background: var(--navy-900); color: #fff; }
.contact-details { display: grid; gap: 16px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.contact-detail .cd-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--navy-050); display: grid; place-items: center; flex-shrink: 0; }
.contact-detail .cd-icon svg { width: 22px; height: 22px; fill: var(--navy); }
.contact-detail h2, .contact-detail h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-detail p, .contact-detail a { font-size: .98rem; color: var(--text-light); }
.contact-detail a { font-weight: 700; color: var(--navy); }
.prep-list { counter-reset: prep; display: grid; gap: 14px; }
.prep-list li { counter-increment: prep; position: relative; padding: 18px 20px 18px 66px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-light); }
.prep-list li::before { content: counter(prep); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; }
.prep-list li strong { display: block; }

/* Legal / document layout */
.doc { max-width: 820px; margin: 0 auto; }
.doc-meta { font-size: .9rem; color: var(--text-muted); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.doc h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.doc h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--text-light); }
.doc ul { list-style: disc; padding-left: 22px; margin-bottom: 1rem; display: grid; gap: 6px; }
.doc-toc { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 26px; margin-bottom: 30px; }
.doc-toc h2 { font-size: 1rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 1.4px; }
.doc-toc ol { list-style: decimal; padding-left: 20px; display: grid; gap: 4px; }

/* HTML sitemap */
.sitemap-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sitemap-group { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.sitemap-group h2 { font-size: 1.15rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--orange-100); }
.sitemap-group ul { display: grid; gap: 10px; }
.sitemap-group a { font-weight: 600; }

/* 404 */
.nf { min-height: 62vh; display: grid; place-items: center; padding: 80px 0; background: radial-gradient(circle at 50% 0%, var(--navy-050), #fff 60%); }
.nf-box { text-align: center; max-width: 560px; }
.nf-code { font-family: var(--font-heading); font-size: clamp(5rem, 16vw, 8rem); font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--navy), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 10px 0 12px; }
.nf p { color: var(--text-light); margin-bottom: 26px; }
.nf-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding: 64px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1.05fr 1.05fr; gap: 40px; align-items: start; }
.footer-brand p { line-height: 1.8; max-width: 300px; }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 22px; }
.footer-logo img { height: 50px; width: auto; }
.footer-heading { color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, .85); font-weight: 500; }
.footer-links a:hover { color: var(--orange-soft); }
.footer-phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-phone svg { width: 18px; height: 18px; fill: var(--orange-soft); }
.footer-phone:hover { color: var(--orange-soft); }
.footer-address { font-style: normal; line-height: 1.8; margin-bottom: 10px; }
.footer-hours { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: rgba(255, 255, 255, .85); }
.footer-hours svg, .footer-gbp svg { width: 16px; height: 16px; fill: var(--orange-soft); flex-shrink: 0; }
.footer-gbp { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.footer-gbp:hover { color: var(--orange-soft); }
.footer-map { border-radius: var(--radius-sm); overflow: hidden; background: rgba(255, 255, 255, .06); aspect-ratio: 4 / 3; }
.footer-map iframe { display: block; width: 100%; height: 100%; }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .86rem; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .85); }
.footer-bottom a:hover { color: #fff; }

/* Contact request form */
.contact-form-section { background: var(--surface, #f7f9fc); }
.contact-form-intro { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.contact-form-intro .section-title { margin-bottom: 12px; }
.contact-form-intro p, .contact-form-note { color: var(--text-light); }
.contact-form-embed { width: min(100%, 680px); margin: 0 auto; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.contact-form-embed iframe { display: block; width: 100%; max-width: 100%; min-height: 545px; border: 0; }
.contact-form-note { max-width: 760px; margin: 24px auto 0; font-size: .94rem; text-align: center; }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: 22px; bottom: 24px; z-index: 900; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .2s; }
.back-to-top svg { width: 22px; height: 22px; fill: currentColor; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--cta); }
.back-to-top:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
    .header-phone-text small { display: none; }
    .main-nav > a, .dropdown-trigger { padding: 10px 10px; }
    .process-steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
    .process-steps::before { display: none; }
    .symptom-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    :root { --header-h: 70px; }
    .section { padding: 72px 0; }
    .site-logo img { height: 46px; }
    .header-cta .btn, .header-phone-text { display: none; }
    .mobile-toggle { display: flex; }
    .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: #fff; z-index: 2000; flex-direction: column; align-items: stretch; gap: 2px; padding: 18px 18px 24px; transform: translateX(100%); transition: transform .32s var(--ease); overflow-y: auto; box-shadow: -10px 0 40px rgba(0, 0, 0, .18); visibility: hidden; }
    .main-nav.open { transform: translateX(0); visibility: visible; }
    .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(4, 24, 58, .55); z-index: 1500; opacity: 0; visibility: hidden; transition: opacity .3s; }
    .nav-backdrop.open { opacity: 1; visibility: visible; }
    .mobile-nav-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
    .mobile-nav-head img { height: 40px; width: auto; }
    .mobile-nav-close { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--navy-800); }
    .main-nav > a, .dropdown-trigger { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1rem; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 10px; min-width: 0; display: none; }
    .nav-dropdown.open .dropdown-menu { display: block; }
    .nav-dropdown:hover .dropdown-menu { opacity: 1; }
    .mobile-nav-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; }
    .split, .diag-grid, .local-grid, .cta-inner, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .split-media .float-card { right: 12px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .quick-item:nth-child(2) { border-right: 0; }
    .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .versus { grid-template-columns: 1fr; }
    .versus-vs { justify-self: center; }
    .factor-grid { grid-template-columns: 1fr 1fr; }
    .factor:nth-child(3n) { border-right: 1px solid var(--border); }
    .factor:nth-child(2n) { border-right: 0; }
    .factor:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
    .factor:nth-last-child(-n+2) { border-bottom: 0; }
    .editorial { grid-template-columns: 1fr; gap: 20px; }
    .editorial-aside { position: static; }
    .value-row, .sitemap-groups { grid-template-columns: 1fr 1fr; }

    /* Mobile sticky CTA bar */
    .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; background: #fff; box-shadow: 0 -6px 24px rgba(4, 24, 58, .16); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
    .mobile-cta .btn { min-height: 50px; padding: 12px 10px; font-size: .95rem; }
    body { padding-bottom: 76px; }
    .back-to-top { bottom: 92px; right: 14px; width: 46px; height: 46px; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .top-bar .hide-sm { display: none; }
    .top-bar .container { justify-content: center; }
    .hero { min-height: 0; }
    .hero .container { padding-top: 52px; padding-bottom: 84px; }
    .hero-desc { font-size: 1.02rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .hero-points { grid-template-columns: 1fr; gap: 14px; }
    .hero-point { border-right: 0; }
    .services-grid, .symptom-grid, .process-steps, .factor-grid, .value-row, .sitemap-groups, .cols-2, .footer-grid { grid-template-columns: 1fr; }
    .factor { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
    .factor:last-child { border-bottom: 0 !important; }
    .quick-strip-inner { grid-template-columns: 1fr; }
    .quick-item { border-right: 0 !important; border-bottom: 1px solid var(--border); }
    .quick-item:last-child { border-bottom: 0; }
    .split-media .float-card { position: relative; right: auto; bottom: auto; margin-top: -30px; margin-left: 16px; }
    .contact-call-card { padding: 30px 24px; }
    .faq-item summary { font-size: 1rem; padding: 18px 56px 18px 18px; }
    .faq-answer { padding: 0 18px 20px; }
}
