/*
Theme Name: Mercy Medical Equipment
Theme URI: https://mercymedicalequip.com
Author: Mercy Medical Equipment, Inc.
Description: Custom theme for Mercy Medical Equipment, Inc. — a durable medical equipment supplier in Ann Arbor, Michigan serving workers' compensation and auto accident injury patients.
Version: 4.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mercy-medical
*/

/* ==========================================================================
   1. Fonts & tokens
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #1c1f24;
    --ink-900: #14171a;
    --ink-800: #22262c;
    --ink-700: #2d323a;
    --heading: #111827;
    --text: #4b5563;
    --muted: #6b7280;
    --subtle: #9ca3af;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --soft: #f8f9fb;
    --soft-2: #f1f3f6;
    --white: #ffffff;
    --on-dark: #e5e7eb;
    --on-dark-muted: #a1a8b3;
    --success: #059669;
    --success-bg: #ecfdf5;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --star: #f59e0b;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05), 0 1px 3px rgba(17, 24, 39, .06);
    --shadow: 0 10px 30px -12px rgba(17, 24, 39, .18);
    --shadow-lg: 0 24px 60px -20px rgba(17, 24, 39, .35);

    --container: 1220px;
    --gutter: 20px;
    --header-h: 72px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.modal-open, body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    color: var(--heading);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.45rem); }
h3 { font-size: 1.175rem; letter-spacing: -.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-700); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid #64748b; outline-offset: 2px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container-narrow { max-width: 860px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.muted { color: var(--muted); }
.fine-print { margin-top: 16px; font-size: .8125rem; line-height: 1.6; color: var(--muted); }

/* ==========================================================================
   3. Buttons & links
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .65; pointer-events: none; }

.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(20, 23, 26, .7); }
.btn-primary:hover { background: var(--ink-700); color: #fff; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef0f3; color: var(--ink); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-outline-light { border-color: rgba(255, 255, 255, .38); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-xs { min-height: 36px; padding: 7px 16px; font-size: .8125rem; gap: 6px; box-shadow: none; }
.btn-xs .icon { width: 15px; height: 15px; }
.icon-flip { transform: rotate(180deg); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
}
.text-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
}

/* ==========================================================================
   4. Top bar & header
   ========================================================================== */

.topbar {
    display: none;
    background: var(--ink-900);
    color: var(--on-dark-muted);
    font-size: .8125rem;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 24px; }
.topbar-group { display: flex; align-items: center; gap: 22px; }
.topbar a, .topbar-group > span { display: inline-flex; align-items: center; gap: 7px; color: var(--on-dark-muted); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 14px; height: 14px; }
.topbar a, .topbar-group > span { white-space: nowrap; }
@media (max-width: 1199px) {
    .topbar-address, .topbar-local { display: none !important; }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
    .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(10px); }
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(17, 24, 39, .35); }

.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: block; flex-shrink: 0; margin-right: auto; }
.brand img { width: 150px; height: auto; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    display: block;
    padding: 9px 12px;
    border-radius: 999px;
    color: #374151;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s, color .2s;
}
.main-nav a:hover { background: var(--soft-2); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; }


.header-cta { display: none; }
.header-actions:empty { display: none; }

.menu-toggle {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 12px var(--gutter) 32px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav li { border-bottom: 1px solid var(--line); }
.mobile-menu nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4px;
    color: var(--heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
}
.mobile-menu nav a .icon { width: 18px; height: 18px; color: var(--subtle); }
.mobile-menu nav a[aria-current="page"] { color: var(--ink); }
.mobile-menu nav a[aria-current="page"]::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 10px; }
.mobile-menu nav a[aria-current="page"] { justify-content: flex-start; }
.mobile-menu nav a[aria-current="page"] .icon { margin-left: auto; }
.mobile-menu-footer { display: grid; gap: 12px; margin-top: 24px; }
.mobile-menu-meta { margin-top: 8px; font-size: .875rem; color: var(--muted); text-align: center; }

/* ==========================================================================
   5. Shared section scaffolding
   ========================================================================== */

.section { padding: clamp(56px, 4rem + 3vw, 104px) 0; }
.section-soft { background: var(--soft); }
.section-dark { background: linear-gradient(160deg, var(--ink-900) 0%, var(--ink) 60%, var(--ink-800) 100%); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow .icon { width: 14px; height: 14px; }
.eyebrow-light { color: var(--on-dark-muted); }
.hero .eyebrow::before { display: none; }

.section-head { max-width: 760px; margin: 0 auto 44px; }
.section-head-center { text-align: center; }
.section-head-left { margin-left: 0; margin-bottom: 28px; }
.section-lead { font-size: 1.0625rem; color: var(--muted); }
.section-dark .section-lead { color: var(--on-dark-muted); }

.center-actions { display: flex; justify-content: center; margin-top: 40px; }

.card-grid { display: grid; gap: 20px; }

.checklist li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}
.checklist li::before {
    content: '';
    position: absolute;
    left: 0; top: 4px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--ink) 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section-dark .checklist li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1f24' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ==========================================================================
   6. Home hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 56px;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(148, 163, 184, .16), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(148, 163, 184, .08), transparent 60%),
        linear-gradient(160deg, var(--ink-900) 0%, var(--ink) 55%, var(--ink-800) 100%);
    color: var(--on-dark-muted);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent 40%, #000);
    -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 44px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 span {
    background: linear-gradient(90deg, #ffffff 0%, #b8bec8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead { max-width: 600px; margin-bottom: 28px; font-size: 1.0625rem; color: #c3c8d0; }
.hero-note { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: .9rem; color: #aab1bc; }
.hero-note .icon { width: 18px; height: 18px; color: #fff; }
.hero-note strong { color: #fff; white-space: nowrap; }
.collage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, clamp(78px, 21vw, 142px));
    gap: 12px;
    max-width: 580px;
    margin: 0 auto;
}
.collage-item {
    margin: 0;
    display: grid;
    place-items: center;
    padding: 10%;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
}
.collage-item img { width: 100%; height: 100%; object-fit: contain; }
.collage-a { grid-column: 1 / 3; grid-row: 1 / 3; }
.collage-b { grid-column: 3; grid-row: 1; }
.collage-c { grid-column: 4; grid-row: 1; }
.collage-f { grid-column: 3 / 5; grid-row: 2 / 4; }
.collage-d { grid-column: 1; grid-row: 3; }
.collage-e { grid-column: 2; grid-row: 3; }
.collage-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
}
.collage-badge-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; }
.collage-badge-icon .icon { width: 18px; height: 18px; }
.collage-badge strong { display: block; font-size: .85rem; color: var(--heading); line-height: 1.25; }
.collage-badge small { display: block; font-size: .72rem; color: var(--muted); }

/* Service pillars under the hero */
.pillars { position: relative; z-index: 2; background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-800) 50%, #fff 50%); }
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.pillar { display: flex; align-items: center; gap: 12px; padding: 18px 16px; background: #fff; }
.pillar-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: #fff; }
.pillar-icon .icon { width: 20px; height: 20px; }
.pillar-step { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pillar strong { display: block; color: var(--heading); font-size: .9rem; line-height: 1.3; }

/* ==========================================================================
   7. Insurer marquee
   ========================================================================== */

.insurer-strip { padding: 26px 0 22px; background: #fff; border-bottom: 1px solid var(--line); }
.insurer-strip-title { margin: 0 0 14px; text-align: center; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-group li {
    display: flex;
    align-items: center;
    padding: 6px 26px;
    color: #374151;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.marquee-group li::after { content: ''; width: 6px; height: 6px; margin-left: 52px; border-radius: 50%; background: var(--line-strong); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   8. Cards, steps, products, benefits
   ========================================================================== */

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 30px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature-card p { flex: 1; color: var(--text); }
.feature-card .text-link { margin-top: 10px; }
.feature-icon {
    display: grid; place-items: center;
    width: 54px; height: 54px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: var(--ink);
    color: #fff;
}
.feature-icon .icon { width: 26px; height: 26px; }

.steps { display: grid; gap: 16px; }
.step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .2s, box-shadow .25s var(--ease);
}
.step:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.step-icon {
    display: grid; place-items: center;
    width: 50px; height: 50px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
}
.step-icon .icon { width: 24px; height: 24px; }
.step-num {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--soft-2);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { font-size: .9375rem; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, var(--soft) 0%, var(--soft-2) 100%);
}
.product-media img {
    position: absolute;
    inset: 10%;
    width: 80%;
    height: 80%;
    max-width: none;
    object-fit: contain;
    transition: transform .35s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body { padding: 16px 16px 20px; }
.product-body h3 { margin-bottom: 6px; font-size: 1rem; }
.product-body h3 a { color: var(--heading); text-decoration: none; }
.product-body h3 a:hover { text-decoration: underline; }
.product-body { display: flex; flex-direction: column; flex: 1; }
.product-body p { font-size: .875rem; color: var(--muted); }
.product-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.product-actions .text-link { font-size: .85rem; }

.split { display: grid; gap: 40px; align-items: center; }
.split-copy h2 { margin-bottom: 16px; }
.split-copy > p { margin-bottom: 26px; }

.benefit-list { display: grid; gap: 14px; }
.benefit-list li {
    display: flex;
    gap: 16px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
}
.benefit-list h3 { margin-bottom: 4px; font-size: 1.05rem; }
.benefit-list p { font-size: .9rem; color: var(--on-dark-muted); }
.benefit-icon {
    display: grid; place-items: center;
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
}
.benefit-icon .icon { width: 22px; height: 22px; }

/* Light variant for benefit lists outside dark sections */
.section:not(.section-dark) .benefit-list li { background: #fff; border-color: var(--line); }
.section:not(.section-dark) .benefit-list p { color: var(--text); }
.section:not(.section-dark) .benefit-icon { background: var(--ink); color: #fff; }

/* ==========================================================================
   9. Insurer grid
   ========================================================================== */

.insurer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.insurer-grid li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--heading);
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1.3;
}
.insurer-grid .icon { width: 18px; height: 18px; color: var(--ink); }
.insurer-grid-compact { grid-template-columns: repeat(2, 1fr); }
.insurer-grid-compact li { font-size: .875rem; min-height: 50px; padding: 10px 12px; }

/* ==========================================================================
   10. Referral band, FAQ, CTA band
   ========================================================================== */

.referral-band {
    display: grid;
    gap: 20px;
    padding: 30px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.referral-band-icon {
    display: grid; place-items: center;
    width: 60px; height: 60px;
    border-radius: 18px;
    background: var(--ink);
    color: #fff;
}
.referral-band-icon .icon { width: 28px; height: 28px; }
.referral-band h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin-bottom: 8px; }

.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    color: var(--heading);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
    width: 32px; height: 32px;
    padding: 7px;
    border-radius: 50%;
    background: var(--soft-2);
    transition: transform .25s var(--ease), background-color .2s;
}
.faq-item[open] .faq-icon { transform: rotate(180deg); background: var(--ink); color: #fff; }
.faq-answer { padding: 0 22px 22px; }
.faq-answer p { color: var(--text); }

.cta-band {
    padding: clamp(56px, 4rem + 2vw, 88px) 0 40px;
    background:
        radial-gradient(700px 300px at 100% 0%, rgba(148, 163, 184, .16), transparent 60%),
        linear-gradient(160deg, var(--ink) 0%, var(--ink-900) 100%);
    color: var(--on-dark-muted);
}
.cta-band-inner { display: grid; gap: 26px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band-text p { max-width: 640px; color: #c3c8d0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .9rem;
}
.cta-band-meta li { display: inline-flex; align-items: center; gap: 8px; }
.cta-band-meta strong { color: #fff; }
.cta-band-meta a { color: var(--on-dark); }
.cta-band-meta .icon { width: 16px; height: 16px; }

/* ==========================================================================
   11. Inner page hero & content blocks
   ========================================================================== */

.page-hero {
    position: relative;
    padding: 40px 0 56px;
    background:
        radial-gradient(800px 380px at 90% 0%, rgba(148, 163, 184, .16), transparent 60%),
        linear-gradient(160deg, var(--ink-900) 0%, var(--ink) 60%, var(--ink-800) 100%);
    color: var(--on-dark-muted);
}
.page-hero h1 { max-width: 900px; color: #fff; margin-bottom: 16px; }
.page-hero-lead { max-width: 760px; margin-bottom: 28px; font-size: 1.0625rem; color: #c3c8d0; }
.page-hero-inner { display: grid; gap: 36px; align-items: center; }
.hero-card {
    display: none;
    padding: 26px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
}
.hero-card-title { margin: 0 0 16px; color: #fff; font-weight: 700; font-size: 1rem; }
.hero-card-list { display: grid; gap: 14px; }
.hero-card-list li { display: flex; align-items: center; gap: 14px; }
.hero-card-list small { display: block; color: var(--on-dark-muted); font-size: .75rem; }
.hero-card-list a, .hero-card-list strong { color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; }
.hero-card-list a:hover { text-decoration: underline; }
.hero-card-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--ink); }
.hero-card-icon .icon { width: 18px; height: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: .8125rem; }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; }

.info-panel {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.info-panel h3 { margin-bottom: 14px; }
.info-panel-dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark-muted); }
.info-panel-dark h3 { color: #fff; }

.notice {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-left: 4px solid var(--ink);
    border-radius: var(--radius-sm);
    font-size: .9375rem;
}
.notice .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--ink); }

.two-col { display: grid; gap: 32px; align-items: start; }

.need-list { display: grid; gap: 12px; counter-reset: need; }
.need-list li {
    position: relative;
    padding: 16px 18px 16px 62px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--heading);
    font-weight: 600;
}
.need-list li small { display: block; font-weight: 400; color: var(--muted); font-size: .875rem; }
.need-list li::before {
    counter-increment: need;
    content: counter(need);
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    display: grid; place-items: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
}

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat {
    padding: 22px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.stat .icon { width: 26px; height: 26px; margin-bottom: 12px; color: var(--ink); }
.stat strong { display: block; color: var(--heading); font-size: 1.02rem; line-height: 1.3; }
.stat span { display: block; margin-top: 4px; font-size: .875rem; color: var(--muted); }

/* Equipment page */
.chip-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
}
.chip-nav .container { position: relative; }
.chip-nav .container::before, .chip-nav .container::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 40px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    z-index: 1;
}
.chip-nav .container::before { left: var(--gutter); background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.chip-nav .container::after { right: var(--gutter); background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.chip-nav.can-scroll-left .container::before, .chip-nav.can-scroll-right .container::after { opacity: 1; }
.chip-nav ul { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.chip-nav ul::-webkit-scrollbar { display: none; }
.chip-nav li { scroll-snap-align: start; }
.chip-nav a {
    display: block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color .2s, background-color .2s, color .2s;
}
.chip-nav a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.assurance-row { display: grid; gap: 12px; margin-bottom: 32px; }
.assurance-row li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.assurance-row .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--ink); color: #fff; }
.assurance-row strong { display: block; color: var(--heading); font-size: .95rem; line-height: 1.3; }
.assurance-row span { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }

.equipment-grid { display: grid; gap: 22px; }
.equipment-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    scroll-margin-top: calc(var(--header-h) + 76px);
    transition: box-shadow .25s var(--ease), border-color .2s;
}
.equipment-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.equipment-card:target { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 31, 36, .12); }
.equipment-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(180deg, var(--soft) 0%, var(--soft-2) 100%);
    border-bottom: 1px solid var(--line);
}
.equipment-media img { position: absolute; inset: 9% 20%; width: 60%; height: 82%; max-width: none; object-fit: contain; }
.equipment-body { display: flex; flex-direction: column; flex: 1; padding: 24px 22px 26px; }
.equipment-body h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin-bottom: 10px; }
.equipment-body > p { font-size: .95rem; }
.equipment-items-label { margin: 6px 0 10px; color: var(--heading); font-size: .8125rem; font-weight: 700; }
.item-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.item-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    transition: border-color .2s, background-color .2s, color .2s;
}
.item-chip .icon { width: 14px; height: 14px; color: var(--muted); transition: color .2s; }
.item-chip:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.item-chip:hover .icon { color: #fff; }
.equipment-actions { margin-top: auto; }

.notice-center { margin-top: 32px; }
/* Contact page */
.contact-cards { display: grid; gap: 14px; }
.contact-card {
    display: flex;
    gap: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.contact-card-icon {
    display: grid; place-items: center;
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
}
.contact-card-icon .icon { width: 22px; height: 22px; }
.contact-card h2 { margin-bottom: 4px; font-size: 1rem; letter-spacing: 0; }
.contact-card p { margin: 0; font-size: .9375rem; }
.contact-card a { font-weight: 700; color: var(--heading); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 2px; }

.contact-layout { display: grid; gap: 28px; align-items: start; }
.form-card {
    padding: clamp(22px, 4vw, 40px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; }

.map-embed {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--soft-2);
    height: clamp(300px, 45vw, 440px);
}
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
    font-size: .9375rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list strong { color: var(--heading); text-align: right; }
.hours-list-dark li { flex-direction: column; gap: 2px; border-color: rgba(255, 255, 255, .12); color: var(--on-dark-muted); font-size: .875rem; }
.hours-list-dark strong { color: #fff; text-align: left; }
.hours-list strong { white-space: nowrap; }

/* 404 */
.not-found { padding: clamp(72px, 10vw, 140px) 0; text-align: center; }
.not-found-code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1; color: var(--soft-2); letter-spacing: -.05em; margin-bottom: 12px; }
.not-found .btn-row { justify-content: center; margin-top: 28px; }

/* ==========================================================================
   12. Forms
   ========================================================================== */

.mercy-form fieldset { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.mercy-form legend {
    width: 100%;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--heading);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.field-grid { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label { color: #374151; font-size: .875rem; font-weight: 600; }
.req { color: var(--danger); }

.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--heading);
    font-size: 1rem; /* 16px prevents iOS zoom */
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: var(--subtle); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(28, 31, 36, .1);
}
.field .is-invalid, .field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(185, 28, 28, .08); }

.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 12px 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: #374151;
    font-size: .8125rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s;
}
.choice span .icon { width: 22px; height: 22px; }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid #64748b; outline-offset: 2px; }
.choice-row.is-invalid .choice span { border-color: var(--danger); }

.file-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--soft);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.file-drop:hover, .file-drop.is-dragging { border-color: var(--ink); background: var(--soft-2); }
.file-drop.has-file { border-style: solid; border-color: var(--ink); }
.file-drop .icon { width: 26px; height: 26px; color: var(--ink); }
.file-drop-text { color: var(--heading); font-weight: 600; font-size: .9rem; word-break: break-all; }
.file-drop small { color: var(--muted); font-size: .78rem; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.consent { display: flex; gap: 12px; margin: 4px 0 18px; font-size: .85rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.consent input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); }
.consent.is-invalid span { color: var(--danger); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status { margin-bottom: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .9rem; }
.form-status.is-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }

.form-success {
    padding: 36px 20px;
    text-align: center;
}
.form-success-icon {
    display: grid; place-items: center;
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
}
.form-success-icon .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.form-success h3 { font-size: 1.35rem; }
.form-success p { color: var(--text); max-width: 440px; margin: 0 auto 22px; }

.rating-field legend { border: 0; padding: 0; margin-bottom: 8px; }
.rating { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { cursor: pointer; color: var(--line-strong); transition: color .15s, transform .15s; }
.rating label .icon { width: 34px; height: 34px; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--star); }
.rating label:hover { transform: scale(1.08); }
.rating input:focus-visible + label { outline: 3px solid #64748b; outline-offset: 2px; border-radius: 6px; }

/* Request wizard */
.wizard-progress { display: flex; gap: 6px; margin: 0 0 24px; }
.wizard-progress li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 3px solid var(--line);
    color: var(--subtle);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    transition: border-color .25s, color .25s;
}
.wizard-progress li span {
    display: grid; place-items: center;
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--soft-2);
    font-size: .72rem;
}
.wizard-progress li.is-active, .wizard-progress li.is-done { border-color: var(--ink); color: var(--heading); }
.wizard-progress li.is-active span, .wizard-progress li.is-done span { background: var(--ink); color: #fff; }
.wizard-step[hidden] { display: none; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.wizard-nav [data-wizard="next"], .wizard-nav [type="submit"] { margin-left: auto; }

.selected-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--soft);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
}
.selected-item[hidden] { display: none; }
.selected-item img { width: 56px; height: 56px; padding: 6px; border-radius: 10px; background: #fff; object-fit: contain; }
.selected-item small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.selected-item strong { display: block; color: var(--heading); font-size: 1rem; line-height: 1.3; }
.selected-item-cat { display: block; color: var(--muted); font-size: .8125rem; }

.cat-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
.cat-grid.is-invalid .cat-option > span { border-color: var(--danger); }
.cat-option { position: relative; }
.cat-option input { position: absolute; opacity: 0; inset: 0; }
.cat-option > span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 7px 36px 7px 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: #374151;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.cat-option > span::after {
    content: '';
    position: absolute;
    right: 10px; top: 50%;
    width: 18px; height: 18px;
    margin-top: -9px;
    border: 1.5px solid var(--line-strong);
    border-radius: 5px;
    background: #fff center / 11px no-repeat;
}
.cat-option img, .cat-other-icon { width: 36px; height: 36px; flex-shrink: 0; padding: 3px; border-radius: 8px; background: var(--soft-2); object-fit: contain; }
.cat-other-icon { display: grid; place-items: center; color: var(--ink); }
.cat-other-icon .icon { width: 16px; height: 16px; }
.cat-option input:checked + span { border-color: var(--ink); background: var(--soft); color: var(--heading); }
.cat-option input:checked + span::after {
    border-color: var(--ink);
    background-color: var(--ink);
    background-image: 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.cat-option input:focus-visible + span { outline: 3px solid #64748b; outline-offset: 2px; }

/* ==========================================================================
   13. Modals
   ========================================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.modal[hidden] { display: none; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 14, 17, .62);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .25s var(--ease);
}
.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 100%;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    transform: translateY(24px);
    opacity: 0;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-dialog { transform: none; opacity: 1; }
.modal-wide { max-width: 1020px; }
.modal-close {
    position: sticky;
    top: 12px;
    float: right;
    z-index: 2;
    display: grid; place-items: center;
    width: 42px; height: 42px;
    margin: 12px 12px 0 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
}
.modal-close:hover { background: var(--ink); color: #fff; }
.modal-close .icon { width: 20px; height: 20px; }
.modal-main { padding: 28px 22px 32px; }
.modal-main h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 10px; padding-right: 30px; }
.modal-intro { color: var(--text); font-size: .9375rem; margin-bottom: 24px; }
.modal-side { display: none; }

.mini-steps { display: grid; gap: 18px; counter-reset: mini; }
.mini-steps li { position: relative; padding-left: 44px; font-size: .875rem; color: var(--on-dark-muted); }
.mini-steps li::before {
    counter-increment: mini;
    content: counter(mini);
    position: absolute;
    left: 0; top: 0;
    display: grid; place-items: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 700;
    font-size: .8125rem;
}
.mini-steps strong { display: block; color: #fff; font-size: .9375rem; }
.mini-steps span { display: block; margin-top: 2px; line-height: 1.5; }
.modal-side-contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.modal-side-contact p { margin: 0 0 6px; font-size: .85rem; color: var(--on-dark-muted); }
.modal-side-contact a { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.modal-side-contact .muted { color: var(--on-dark-muted); }

/* ==========================================================================
   14. Footer & floating UI
   ========================================================================== */

.site-footer { background: var(--ink-900); color: var(--on-dark-muted); font-size: .9375rem; }
.footer-grid { display: grid; gap: 36px; padding-top: 64px; padding-bottom: 48px; }
.footer-logo img { width: 190px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 380px; font-size: .9rem; }
.footer-feedback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
}
.footer-feedback .icon { color: var(--star); width: 16px; height: 16px; }
.footer-feedback:hover { background: rgba(255, 255, 255, .08); }
.footer-title { margin-bottom: 18px; color: #fff; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-links .link-button { color: var(--on-dark-muted); text-decoration: none; font-size: .9375rem; }
.footer-links a:hover, .footer-links .link-button:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; line-height: 1.5; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: #fff; }
.footer-contact a { color: var(--on-dark); text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact small { color: #7b828d; font-size: .78rem; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner { display: grid; gap: 10px; padding-top: 22px; padding-bottom: 22px; font-size: .8125rem; }
.footer-bottom p { margin: 0; }
.footer-disclaimer { color: #7b828d; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--on-dark-muted); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* App-style bottom navigation (phones) */
.app-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 800;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 0 6px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgba(17, 24, 39, .45);
}
@supports (backdrop-filter: blur(10px)) {
    .app-bar { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); }
}
.app-bar > a, .app-bar > button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 66px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.app-bar .icon { width: 22px; height: 22px; }
.app-bar > a[aria-current="page"] { color: var(--ink); }
.app-bar > a[aria-current="page"]::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 26px; height: 3px;
    margin-left: -13px;
    border-radius: 0 0 3px 3px;
    background: var(--ink);
}
.app-bar > a:active, .app-bar > button:active { transform: scale(.94); }
.app-bar .app-bar-main { color: var(--ink); justify-content: flex-end; padding-bottom: 9px; }
.app-bar-fab {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    margin-top: -26px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 22px -8px rgba(20, 23, 26, .7);
}
.app-bar-fab .icon { width: 24px; height: 24px; stroke-width: 2.5; }
.site-footer { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }

/* Menu bottom sheet */
.modal-sheet { align-items: flex-end; padding: 0; }
.modal-sheet .modal-dialog {
    max-width: 640px;
    height: auto;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 8px 20px calc(22px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    opacity: 1;
    box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4);
}
.modal-sheet.is-open .modal-dialog { transform: none; }
.sheet-handle { width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 5px; background: var(--line-strong); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font-size: 1.25rem; }
.sheet-close {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--soft-2);
    color: var(--ink);
}
.sheet-close .icon { width: 18px; height: 18px; }
.sheet-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.sheet-tiles li { display: flex; }
.sheet-tiles a, .sheet-tiles button {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 12px 4px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--heading);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}
.sheet-tile-icon {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 13px;
    background: var(--soft-2);
    color: var(--ink);
}
.sheet-tile-icon .icon { width: 20px; height: 20px; }
.sheet-tiles a[aria-current="page"] { border-color: var(--ink); }
.sheet-tiles a[aria-current="page"] .sheet-tile-icon { background: var(--ink); color: #fff; }
.sheet-tiles .icon[class] path[fill] { fill: var(--star); }
.sheet-contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.sheet-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--soft);
}
.sheet-contact li:nth-child(n+3) { grid-column: 1 / -1; }
.sheet-contact .icon { width: 18px; height: 18px; color: var(--ink); }
.sheet-contact span { min-width: 0; }
.sheet-contact small { display: block; color: var(--muted); font-size: .68rem; }
.sheet-contact a, .sheet-contact strong { display: block; overflow: hidden; color: var(--heading); font-size: .8rem; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.sheet-meta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: .78rem; }
.sheet-meta .icon { width: 15px; height: 15px; }
.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 86px;
    z-index: 790;
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top .icon { width: 22px; height: 22px; }

/* Generic page fallback */
.page-content { padding: clamp(48px, 7vw, 88px) 0; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */

@media (max-width: 575px) {
    .hero .btn-row .btn, .page-hero .btn-row .btn, .cta-band-actions .btn { flex: 1 1 100%; }
}

@media (min-width: 480px) {
    .product-grid { gap: 18px; }
    .stat-row { gap: 16px; }
}

@media (min-width: 576px) {
    :root { --gutter: 24px; }
    .brand img { width: 170px; }
    .field-grid { grid-template-columns: repeat(2, 1fr); }
    .field-full { grid-column: 1 / -1; }
    .benefit-list { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .modal-main { padding: 34px 34px 36px; }
}

@media (min-width: 640px) {
    .modal { align-items: center; padding: 24px; }
    .modal-dialog { height: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .assurance-row { grid-template-columns: repeat(3, 1fr); }
}

/* Phones: app layout */
@media (max-width: 767px) {
    .header-inner { justify-content: center; min-height: 62px; }
    .brand { margin: 0; }
    .brand img { width: 158px; }
    .header-actions { display: none; }
    .mobile-menu { display: none !important; }
    :root { --header-h: 62px; }
    .back-to-top { display: none; }

    .section { padding: 56px 0; }
    .section-head { margin-bottom: 30px; }
    .section-lead { font-size: 1rem; }
    .eyebrow { font-size: .6875rem; letter-spacing: .12em; }

    .hero { padding: 36px 0 44px; }
    .hero-inner { gap: 32px; }
    .hero-lead { font-size: 1rem; }
    .page-hero { padding: 26px 0 40px; }
    .breadcrumb { margin-bottom: 18px; }
    .page-hero-lead { font-size: 1rem; margin-bottom: 22px; }

    .pillars-grid { border-radius: var(--radius); }
    .pillar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 14px; }

    .page-hero .btn-row { display: none; }
    .page-hero-lead { margin-bottom: 0; }

    .feature-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; padding: 22px 20px; }
    .feature-card .feature-icon { width: 48px; height: 48px; margin: 0; border-radius: 14px; }
    .feature-card .feature-icon .icon { width: 22px; height: 22px; }
    .feature-card h3 { margin: 0; font-size: 1.05rem; }
    .feature-card p, .feature-card .text-link { grid-column: 1 / -1; }
    .feature-card p { margin-top: 12px; }

    .steps { position: relative; gap: 12px; }
    .steps::before { content: ''; position: absolute; left: 44px; top: 30px; bottom: 30px; width: 2px; background: var(--line); }
    .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px 18px 18px 20px; }
    .step-top { grid-row: 1 / span 2; display: block; margin: 0; }
    .step-icon { position: relative; z-index: 1; width: 48px; height: 48px; }
    .step-num { display: none; }
    .step h3 { margin: 2px 0 4px; font-size: 1rem; }
    .step p { font-size: .875rem; }
    .info-panel { padding: 22px 20px; }

    .product-grid { gap: 12px; }
    .product-body { padding: 12px 12px 14px; }
    .product-body h3 { font-size: .9375rem; line-height: 1.3; }
    .product-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .8125rem; }
    .product-actions { padding-top: 12px; }
    .product-actions .btn { flex: 1; }
    .product-actions .text-link { display: none; }

    .benefit-list li { padding: 18px; }
    .insurer-grid li { min-height: 50px; padding: 10px 12px; font-size: .875rem; }
    .referral-band { padding: 24px 20px; text-align: left; }
    .referral-band-actions .btn { width: 100%; }
    .faq-item summary { padding: 18px; font-size: .97rem; }
    .faq-answer { padding: 0 18px 18px; }

    .cta-band { padding: 48px 0 32px; }
    .cta-band-meta { flex-direction: column; gap: 10px; margin-top: 28px; }

    .equipment-body { padding: 20px 18px 22px; }
    .item-chip { font-size: .78rem; padding: 7px 10px 7px 12px; }
    .equipment-actions .btn { width: 100%; }
    .assurance-row { margin-bottom: 22px; }

    .contact-card { padding: 18px; }
    .form-card { padding: 22px 18px; }
    .map-embed { height: 280px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 44px; padding-bottom: 32px; }
    .footer-brand, .footer-col:nth-child(4), .footer-col:nth-child(5) { grid-column: 1 / -1; }
    .footer-logo img { width: 170px; }
    .footer-bottom-inner { text-align: center; justify-items: center; }
    .footer-legal { justify-content: center; }
}

@media (min-width: 640px) and (max-width: 991px) {
    .equipment-card { flex-direction: row; }
    .equipment-media { flex: 0 0 36%; aspect-ratio: auto; min-height: 240px; border-bottom: 0; border-right: 1px solid var(--line); }
    .equipment-media img { inset: 12%; width: 76%; height: 76%; }
}

@media (min-width: 768px) {
    .app-bar { display: none; }
    .site-footer { padding-bottom: 0; }
    .header-cta { display: inline-flex; }
    .back-to-top { bottom: 24px; right: 24px; }
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-row { grid-template-columns: repeat(4, 1fr); }
    .referral-band { grid-template-columns: auto 1fr; padding: 34px; }
    .referral-band-actions { grid-column: 2; }
    .footer-bottom-inner { grid-template-columns: 1fr auto; align-items: center; }
    .footer-disclaimer { grid-column: 1; grid-row: 2; }
    .footer-legal { grid-column: 2; grid-row: 1 / 3; }
    .two-col { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    :root { --header-h: 78px; }
    .topbar { display: block; }
    .hero { padding: 72px 0 84px; }
    .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
    .collage { grid-template-rows: repeat(3, 138px); }
    .collage-badge { left: 6%; top: auto; bottom: 30%; transform: none; }
    .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .referral-band { grid-template-columns: auto 1fr auto; align-items: center; padding: 36px 40px; gap: 28px; }
    .referral-band-actions { grid-column: auto; }
    .cta-band-inner { grid-template-columns: 1fr auto; gap: 40px; }
    .contact-layout { grid-template-columns: 1.35fr 1fr; gap: 36px; }
    .contact-cards { grid-template-columns: repeat(4, 1fr); }
    .equipment-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
    .pillars-grid { grid-template-columns: repeat(4, 1fr); }
    .pillar { padding: 22px 20px; }
    .page-hero-inner.has-aside { grid-template-columns: 1fr 360px; gap: 56px; }
    .hero-card { display: block; }
    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50px; right: -13px;
        z-index: 1;
        width: 10px; height: 10px;
        border-top: 2px solid var(--line-strong);
        border-right: 2px solid var(--line-strong);
        background: var(--soft);
        transform: rotate(45deg);
    }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.35fr 1.25fr; gap: 40px; }
    .footer-brand { grid-column: auto; }
    .modal-layout { display: grid; grid-template-columns: 1fr 320px; }
    .modal-wide .modal-close { position: absolute; top: 0; right: 0; float: none; }
    .modal-side {
        display: block;
        padding: 44px 32px;
        background: linear-gradient(170deg, var(--ink) 0%, var(--ink-900) 100%);
        color: var(--on-dark-muted);
    }
    .modal-side h3 { color: #fff; margin-bottom: 22px; }
    .page-hero { padding: 48px 0 72px; }
}

@media (min-width: 1100px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .split { grid-template-columns: 1fr 1.1fr; gap: 64px; }
    .split-reverse { grid-template-columns: .9fr 1.1fr; }
}

@media (min-width: 1200px) {
    .chip-nav ul { flex-wrap: wrap; justify-content: center; overflow: visible; }
    .chip-nav .container::before, .chip-nav .container::after { display: none; }
    .main-nav { display: block; }
    .menu-toggle { display: none; }
    .mobile-menu { display: none !important; }
    .brand { margin-right: 0; }
    .main-nav { margin: 0 auto; }
}


@media (max-width: 380px) {
    .choice-row { grid-template-columns: 1fr; }
    .choice span { flex-direction: row; justify-content: center; }
    .hero .btn-lg { width: 100%; }
    .product-body { padding: 14px 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .marquee-group[aria-hidden] { display: none; }
    .marquee-group { flex-wrap: wrap; justify-content: center; }
}

@media print {
    .topbar, .site-header, .app-bar, .back-to-top, .modal, .cta-band { display: none !important; }
    body { padding: 0; }
}
