/* Tim's Toolbox LLC — site styles
   Brand: safety orange #E0531E (accents), #B83E12 (AA-safe interactive), ink #1A1A1A.
   System-font stack for fast LCP, mobile-first, WCAG 2.2 AA. */

:root {
  --orange: #e0531e;
  --orange-d: #b83e12;   /* AA-safe with white text */
  --orange-dd: #97320d;  /* hover */
  --orange-tint: #fdf1ea;
  --ink: #1a1a1a;
  --ink-2: #2b2f34;
  --gray: #515b66;
  --gray-l: #616a75;
  --line: #e7e4de;
  --bg: #ffffff;
  --bg-alt: #f7f5f1;
  --bg-dark: #1f2227;
  --steel: #6b7280;
  --ok: #2e7d46;
  --shadow-sm: 0 1px 3px rgba(20,20,20,.08), 0 1px 2px rgba(20,20,20,.06);
  --shadow: 0 6px 22px rgba(20,20,20,.10);
  --shadow-lg: 0 18px 50px rgba(20,20,20,.16);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-d); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--orange-dd); }
a[href^="mailto:"], a[href^="tel:"] { overflow-wrap: anywhere; word-break: break-word; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p { color: var(--gray); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #e9eaec; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #b9bdc4; }
.center { text-align: center; }
.measure { max-width: 720px; margin-inline: auto; }
.eyebrow { display: inline-block; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--orange-d); margin-bottom: 10px; }
.lead { font-size: 1.18rem; color: var(--gray); }

/* Skip link + sr-only */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 2000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--orange-d); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: var(--tap); padding: 13px 24px; border-radius: 999px; font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange-d); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-dd); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange-d); color: var(--orange-d); }
.btn-light { background: #fff; color: var(--orange-d); }
.btn-light:hover { background: #fff8f4; color: var(--orange-dd); }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.btn svg { width: 20px; height: 20px; }

/* Top trust bar */
.topbar { background: var(--ink); color: #f1f1f1; font-size: .9rem; }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding-block: 8px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar .tb-items { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; color: #cfd2d7; }
.topbar .tb-item svg { width: 15px; height: 15px; fill: var(--orange); flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-style: italic; font-size: 1.28rem; letter-spacing: -.01em; color: var(--ink); }
.brand-name .o { color: var(--orange-d); }
.brand-name abbr { text-decoration: none; font-size: .62em; vertical-align: .35em; color: var(--gray-l); font-style: normal; letter-spacing: .04em; }
.brand-tag { font-size: .76rem; font-weight: 700; color: var(--orange-d); letter-spacing: .02em; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; padding: 9px 13px; border-radius: 8px; }
.nav a:hover { background: var(--orange-tint); color: var(--orange-d); }
.nav a[aria-current="page"] { color: var(--orange-d); }
.nav-cta { margin-left: 8px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; fill: var(--orange-d); }

.hamburger { display: none; width: var(--tap); height: var(--tap); border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s; }
.mobile-menu { display: none; flex-direction: column; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu a { padding: 13px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; }
.mobile-menu.open { display: flex; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink-2); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(20,20,20,.86) 0%, rgba(20,20,20,.66) 46%, rgba(20,20,20,.30) 100%); }
.hero .container { position: relative; z-index: 2; padding-block: clamp(64px, 11vw, 132px); }
.hero-inner { max-width: 660px; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--orange); }
.hero .lead { color: #eceae6; margin-top: 16px; font-size: 1.22rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-weight: 700; font-size: .95rem; color: #f0eee9; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; fill: var(--orange); flex: none; }

/* Page hero (interior) */
.page-hero { position: relative; color: #fff; background: var(--ink-2); }
.page-hero .hero-bg img { opacity: 1; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,20,20,.84), rgba(20,20,20,.55)); }
.page-hero .container { position: relative; z-index: 2; padding-block: clamp(48px, 8vw, 86px); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #ececec; max-width: 640px; margin-top: 12px; }
.crumbs { font-size: .86rem; margin-bottom: 14px; color: #d9d7d2; }
.crumbs a { color: #fff; }
.crumbs span { color: var(--orange); }

/* Cards grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e0c2b3; }
.card .ico { width: 50px; height: 50px; border-radius: 12px; background: var(--orange-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .ico svg { width: 27px; height: 27px; fill: none; stroke: var(--orange-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; }
.card-link { color: var(--ink); text-decoration: none; display: block; }
.card-link:hover h3 { color: var(--orange-d); }

/* Service list (compact chips) */
.svc-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.svc-list li { list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; font-weight: 700; font-size: .93rem; color: var(--ink); }
.chip svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* City cards */
.city-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: #fff; display: block; aspect-ratio: 16/10; }
.city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.city-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.05) 30%, rgba(20,20,20,.82) 100%); }
.city-card:hover img { transform: scale(1.05); }
.city-card .city-label { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 18px; }
.city-card .city-label strong { font-size: 1.22rem; font-weight: 800; display: block; }
.city-card .city-label span { font-size: .86rem; color: #eceae6; font-weight: 600; }

/* Steps / how it works */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-left: 0; }
.step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--orange-d); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.1rem; }
.step h3 { margin-bottom: 6px; }

/* Pricing */
.price-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.price-card.feature { border-color: var(--orange-d); border-width: 2px; box-shadow: var(--shadow); position: relative; }
.price-card .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--orange-d); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.price-card .amt { font-size: 2.5rem; font-weight: 800; color: var(--ink); margin: 8px 0; }
.price-card .amt small { font-size: 1rem; color: var(--gray-l); font-weight: 700; }
.price-card p { font-size: .96rem; }

/* Guarantee band */
.band { background: var(--orange-d); color: #fff; }
.band .container { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; justify-content: space-between; padding-block: clamp(34px,5vw,52px); }
.band h2 { color: #fff; }
.band p { color: #ffe9df; max-width: 640px; }

/* Reviews */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 10px; }
.review blockquote { font-size: 1.02rem; color: var(--ink); font-style: italic; }
.review .who { margin-top: 14px; font-weight: 700; font-size: .92rem; color: var(--gray); font-style: normal; }

/* Split feature */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,5vw,60px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 7px; font-size: .95rem; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 1rem; color: var(--ink); background: #fff; min-height: var(--tap); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--orange-d); box-shadow: 0 0 0 3px rgba(184,62,18,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .84rem; color: var(--gray-l); margin-top: 6px; }
.form-hint { display: block; font-size: .84rem; color: var(--gray-l); margin-top: 6px; }
.label-opt { font-weight: 600; color: var(--gray-l); font-size: .85rem; }
.form-group input.file-input { padding: 9px 12px; cursor: pointer; background: var(--bg-alt); }
.file-input::file-selector-button { font: inherit; font-weight: 700; margin-right: 12px; padding: 8px 15px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.file-input::file-selector-button:hover { border-color: var(--orange-d); color: var(--orange-d); }
body.a11y-contrast .file-input::file-selector-button { background: #fff !important; color: #000 !important; border-color: #000 !important; }
.about-photo { max-width: 360px; margin: 28px auto; }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.about-photo figcaption { margin-top: 10px; font-size: .9rem; color: var(--gray); text-align: center; line-height: 1.5; }
/* Google reviews section */
.review-rating { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 10px 0 2px; display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: center; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 1.12rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 920px; margin: 24px auto 0; text-align: left; }
.review-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.review-card .stars { font-size: 1rem; }
.review-card blockquote { margin: 11px 0 14px; color: var(--ink); line-height: 1.6; font-size: 1.02rem; }
.review-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.rev-author { font-weight: 800; color: var(--ink); }
.rev-meta { font-size: .85rem; color: var(--gray-l); }
.review-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
body.a11y-contrast .review-card { background: #000 !important; color: #fff !important; border-color: #fff !important; }
body.a11y-contrast .review-card blockquote, body.a11y-contrast .rev-author, body.a11y-contrast .review-rating { color: #fff !important; }
body.a11y-contrast .stars { color: #ff0 !important; }
.info-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.info-card h3 svg { width: 20px; height: 20px; fill: var(--orange-d); }
.info-card a { font-weight: 700; text-decoration: none; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq summary { padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--orange-d); font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .ans { padding: 16px 20px; }
.faq .ans p { color: var(--gray); }

/* Footer */
.footer { background: var(--bg-dark); color: #c2c6cc; padding-top: 56px; }
.footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; }
.footer a { color: #c2c6cc; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name .o { color: var(--orange); }
.footer-brand p { color: #a4a9b0; margin-top: 14px; font-size: .95rem; }
.footer-contact-item { display: flex; gap: 11px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact-item svg { width: 19px; height: 19px; fill: var(--orange); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid #33373d; margin-top: 44px; padding: 22px 0 30px; font-size: .86rem; color: #8b9098; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-bottom a { color: #b7bcc3; }

/* Sticky mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; display: none; grid-template-columns: 1fr 1fr; gap: 0; box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 8px; font-weight: 800; text-decoration: none; font-size: 1.02rem; min-height: 56px; }
.callbar svg { width: 20px; height: 20px; flex: none; }
.callbar .cb-call { background: var(--orange-d); color: #fff; fill: #fff; }
.callbar .cb-quote { background: var(--ink); color: #fff; fill: #fff; }

/* Back to top */
.to-top { position: fixed; left: 18px; bottom: 18px; z-index: 1100; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s ease; box-shadow: var(--shadow); }
.to-top.show { opacity: .92; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .city-card img { transition: none; } }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 14px; } .mt-2 { margin-top: 26px; } .mt-3 { margin-top: 40px; }
.text-muted { color: var(--gray-l); }

/* Responsive */
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .nav, .header-phone { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .callbar { display: grid; }
  body { padding-bottom: 56px; }
  .to-top { left: 14px; bottom: 70px; }
  .brand-tag { display: none; }
  .topbar { display: none; }
}

/* ===================================================================
   Footer Facebook logo — brand blue (footer instance only;
   the orange CTA button keeps its white icon via currentColor)
   =================================================================== */
.footer-social { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; }
.footer-social a { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; width: fit-content; white-space: nowrap; }
.footer-social a:hover, .footer-social a:focus-visible { color: #fff; text-decoration: underline; }
.footer-social svg { width: 20px; height: 20px; flex: none; }
.footer-brand a[aria-label*="Facebook"] svg { fill: #1877f2; }

/* ===================================================================
   Floating dock (right rail, bottom->top: chat, accessibility, contrast)
   =================================================================== */
.fab-dock { position: fixed; right: 18px; bottom: 18px; z-index: 1150; display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; }
.chat-fab { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--orange-d); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: transform .15s ease, background .15s ease; }
.chat-fab:hover, .chat-fab:focus-visible { background: var(--orange-dd); transform: translateY(-2px); color: #fff; }
.chat-fab svg { width: 27px; height: 27px; fill: #fff; }
.chat-fab-label { position: absolute; right: 66px; top: 50%; transform: translateY(-50%); background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; padding: 7px 12px; border-radius: 9px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease; box-shadow: var(--shadow-sm); }
.chat-fab-label::after { content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); border-left: 5px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.chat-fab:hover .chat-fab-label, .chat-fab:focus-visible .chat-fab-label { opacity: 1; }

/* ===================================================================
   Accessibility FABs (live inside .fab-dock) + panel
   =================================================================== */
.a11y-fab, .contrast-fab { border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.a11y-fab { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; }
.a11y-fab:hover, .a11y-fab:focus-visible { background: #000; transform: translateY(-2px); }
.a11y-fab svg { width: 28px; height: 28px; fill: #fff; }
.contrast-fab { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.contrast-fab:hover, .contrast-fab:focus-visible { border-color: var(--orange-d); transform: translateY(-2px); }
.contrast-fab svg { width: 23px; height: 23px; fill: var(--ink); }
.contrast-fab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.contrast-fab[aria-pressed="true"] svg { fill: #fff; }

.reading-guide { display: none; position: fixed; left: 0; right: 0; top: 0; height: 46px; background: rgba(224,83,30,.10); border-top: 2px solid var(--orange); border-bottom: 2px solid var(--orange); pointer-events: none; z-index: 990; }
body.a11y-reading-guide .reading-guide { display: block; }

.a11y-overlay { position: fixed; inset: 0; background: rgba(18,18,18,.45); z-index: 1290; opacity: 0; transition: opacity .25s ease; }
.a11y-overlay.open { opacity: 1; }
/* Closed panel is visibility:hidden (not just off-screen) so its controls leave the tab order + a11y tree */
.a11y-panel { position: fixed; top: 0; left: 0; width: min(360px, 88vw); height: 100%; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); z-index: 1300; padding: 20px 22px 36px; overflow-y: auto; transform: translateX(-105%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; -webkit-overflow-scrolling: touch; }
.a11y-panel.open { transform: none; visibility: visible; transition: transform .28s ease; }
.a11y-panel-head { display: flex; align-items: center; justify-content: space-between; }
.a11y-panel h2 { font-size: 1.32rem; }
.a11y-intro { color: var(--gray); font-size: .9rem; margin: 6px 0 8px; line-height: 1.5; }
.a11y-close { background: none; border: none; font-size: 1.9rem; line-height: 1; color: var(--gray); cursor: pointer; width: 42px; height: 42px; border-radius: 9px; flex: none; }
.a11y-close:hover, .a11y-close:focus-visible { color: var(--ink); background: var(--bg-alt); }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.a11y-row > span { font-weight: 700; font-size: .98rem; }
.a11y-seg { display: inline-flex; gap: 5px; flex: none; }
.a11y-btn { min-width: 42px; min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; font-weight: 800; cursor: pointer; font-family: inherit; }
.a11y-btn:hover { border-color: var(--orange-d); }
.a11y-btn.is-active { background: var(--orange-d); color: #fff; border-color: var(--orange-d); }
.a11y-switch { position: relative; width: 54px; height: 30px; border-radius: 999px; border: none; background: var(--steel); cursor: pointer; flex: none; transition: background .15s ease; }
.a11y-switch .a11y-switch-dot { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .18s ease; box-shadow: var(--shadow-sm); }
.a11y-switch[aria-checked="true"] { background: var(--ok); }
.a11y-switch[aria-checked="true"] .a11y-switch-dot { transform: translateX(24px); }
.a11y-reset { margin-top: 18px; width: 100%; min-height: var(--tap); border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; font-weight: 800; cursor: pointer; font-family: inherit; font-size: 1rem; }
.a11y-reset:hover, .a11y-reset:focus-visible { background: var(--ink); color: #fff; }
.a11y-note { margin-top: 16px; font-size: .84rem; color: var(--gray); line-height: 1.6; }
.a11y-note a { color: var(--orange-d); font-weight: 700; }

/* --- Accessibility setting effects --- */
body.a11y-spacing p, body.a11y-spacing li, body.a11y-spacing dd, body.a11y-spacing blockquote { line-height: 2.05 !important; letter-spacing: .02em; word-spacing: .09em; }

body.a11y-reduce-motion *, body.a11y-reduce-motion *::before, body.a11y-reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
body.a11y-reduce-motion .reveal { opacity: 1 !important; transform: none !important; }

body.a11y-highlight-links a:not(.btn):not(.chat-fab):not(.a11y-fab):not(.contrast-fab):not(.to-top) { outline: 2px solid var(--orange-d) !important; outline-offset: 2px; background: rgba(224,83,30,.12) !important; border-radius: 3px; text-decoration: underline !important; }

/* --- High contrast --- */
body.a11y-contrast { background: #000 !important; color: #fff !important; }
body.a11y-contrast .topbar, body.a11y-contrast .site-header, body.a11y-contrast .hero, body.a11y-contrast .page-hero, body.a11y-contrast .section, body.a11y-contrast section, body.a11y-contrast .footer, body.a11y-contrast .card, body.a11y-contrast .info-card, body.a11y-contrast .faq, body.a11y-contrast .faq details, body.a11y-contrast .price-card, body.a11y-contrast .mobile-menu, body.a11y-contrast #mobileMenu, body.a11y-contrast .a11y-panel, body.a11y-contrast .chip { background: #000 !important; color: #fff !important; border-color: #fff !important; }
body.a11y-contrast h1, body.a11y-contrast h2, body.a11y-contrast h3, body.a11y-contrast h4, body.a11y-contrast p, body.a11y-contrast span, body.a11y-contrast li, body.a11y-contrast strong, body.a11y-contrast .lead, body.a11y-contrast .eyebrow, body.a11y-contrast .text-muted, body.a11y-contrast .brand-name, body.a11y-contrast .brand-name .o, body.a11y-contrast .hero h1 .hl, body.a11y-contrast time, body.a11y-contrast label { color: #fff !important; }
body.a11y-contrast a:not(.btn):not(.chat-fab) { color: #ff0 !important; text-decoration: underline !important; }
body.a11y-contrast .btn, body.a11y-contrast .btn-primary, body.a11y-contrast .btn-ghost, body.a11y-contrast .cb-call, body.a11y-contrast .cb-quote { background: #fff !important; color: #000 !important; border: 2px solid #fff !important; }
body.a11y-contrast .btn svg, body.a11y-contrast .cb-call svg, body.a11y-contrast .cb-quote svg { fill: #000 !important; }
body.a11y-contrast img { filter: grayscale(1) contrast(1.08); }
body.a11y-contrast .chip svg { stroke: #0f0 !important; }
body.a11y-contrast .footer-social svg path, body.a11y-contrast .footer-social svg circle { fill: #fff !important; }
/* keep floating controls + panel legible in high contrast */
body.a11y-contrast .a11y-fab { background: #fff !important; border: 2px solid #000; }
body.a11y-contrast .a11y-fab svg { fill: #000 !important; }
body.a11y-contrast .contrast-fab { background: #fff !important; color: #000 !important; border: 2px solid #000; }
body.a11y-contrast .contrast-fab svg { fill: #000 !important; }
body.a11y-contrast .chat-fab { background: #fff !important; }
body.a11y-contrast .chat-fab svg { fill: #000 !important; }
body.a11y-contrast .to-top { background: #fff !important; }
body.a11y-contrast .to-top svg { stroke: #000 !important; }
/* normalize remaining brand-orange accents so high contrast stays black/white/yellow */
body.a11y-contrast .step .num, body.a11y-contrast .price-card .tag { background: #fff !important; color: #000 !important; }
body.a11y-contrast .reading-guide { background: transparent !important; border-top-color: #ff0 !important; border-bottom-color: #ff0 !important; }
body.a11y-contrast .a11y-btn { background: #000 !important; color: #fff !important; border-color: #fff !important; }
body.a11y-contrast .a11y-btn.is-active { background: #fff !important; color: #000 !important; }
body.a11y-contrast .a11y-switch { background: #555 !important; outline: 1px solid #fff; }
body.a11y-contrast .a11y-switch[aria-checked="true"] { background: #0a0 !important; }
body.a11y-contrast .a11y-reset { background: #000 !important; color: #fff !important; border-color: #fff !important; }
body.a11y-contrast .a11y-close { color: #fff !important; }

/* Floating-control responsive offsets (clear the mobile call bar) */
@media (max-width: 600px) {
  .fab-dock { bottom: 70px; right: 14px; gap: 10px; }
  .chat-fab { width: 50px; height: 50px; }
  .chat-fab svg { width: 24px; height: 24px; }
  .a11y-fab { width: 46px; height: 46px; }
  .a11y-fab svg { width: 25px; height: 25px; }
  .contrast-fab { width: 40px; height: 40px; }
  /* keep the footer legal links clear of the floating dock + call bar */
  .footer-bottom { padding-bottom: 164px; }
}
@media (prefers-reduced-motion: reduce) {
  .a11y-panel, .a11y-overlay, .chat-fab, .a11y-fab, .contrast-fab { transition: none; }
}
