/* ═══════════════════════════════════════════════════════════════
   ULTRA FACILITIES — ADDITIVE STYLES (accessibility + legal pages)
   Nothing here changes an existing rule in style.css. It only styles
   NEW elements (skip link, consent checkbox, cookie banner, legal pages)
   and re-applies the existing h4 styles to the h3 tags that replaced them
   so the heading outline is correct and the look is identical.
   ═══════════════════════════════════════════════════════════════ */

/* h4 → h3 (declarations copied verbatim from style.css lines 187 / 228 / 277) */
.why-item h3{font-size:.95rem;font-family:'Inter',sans-serif;font-weight:700;color:var(--g900);margin-bottom:4px}
.staff-info h3{font-size:.9rem;font-family:'Inter',sans-serif;font-weight:700;margin-bottom:2px;color:var(--g900)}
.footer-col h3{color:white;font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:16px;font-family:'Inter',sans-serif}

/* Skip link: invisible until a keyboard user tabs to it */
.skip-link{position:absolute;left:12px;top:-100px;z-index:10000;background:var(--blue);color:#fff;padding:12px 18px;border-radius:8px;font-weight:600;font-size:.9rem}
.skip-link:focus{top:12px}

.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}

/* Spinner keyframes (previously injected by main.js as a <style> tag) */
@keyframes spin{to{transform:rotate(360deg)}}

/* Honeypot field: off-screen, not display:none */
.hp-field{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* Quote form additions */
.form-hint{font-size:.78rem;color:var(--g700);margin-top:6px;line-height:1.5}
.form-consent{display:flex;align-items:flex-start;gap:10px;margin-bottom:16px;font-size:.82rem;color:var(--g700);line-height:1.5}
.form-consent input{width:18px;height:18px;margin-top:2px;flex-shrink:0;accent-color:var(--blue)}
.form-consent a{color:var(--blue);text-decoration:underline}
.form-status{min-height:1.2em;margin-bottom:12px;font-size:.85rem;font-weight:600;color:var(--g700)}
.form-status.is-error{color:#B42318}

/* Footer legal links */
.footer-legal{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:.75rem}
.footer-legal a{color:rgba(255,255,255,.7);text-decoration:underline;text-underline-offset:3px}
.footer-legal a:hover{color:#fff}

/* Cookie banner */
.consent-banner{position:fixed;left:16px;bottom:16px;right:16px;max-width:560px;z-index:9998;background:var(--white);border:1px solid var(--g100);border-radius:var(--r);box-shadow:var(--sh-lg);padding:20px 22px}
.consent-banner h2{font-family:'Inter',sans-serif;font-size:1rem;font-weight:700;margin-bottom:6px}
.consent-banner p{font-size:.86rem;line-height:1.6;color:var(--g700);margin-bottom:14px}
.consent-banner p a{color:var(--blue);text-decoration:underline}
.consent-actions{display:flex;flex-wrap:wrap;gap:10px}
.consent-actions .btn{padding:10px 20px;font-size:.85rem}

/* Legal pages */
.legal-main{padding:130px 0 90px}
.legal{max-width:800px;margin:0 auto}
.legal h1{font-size:clamp(2rem,4.5vw,3rem);margin-bottom:10px}
.legal .legal-meta{color:var(--g700);font-size:.9rem;margin-bottom:36px}
.legal h2{font-size:1.45rem;margin:40px 0 12px}
.legal h3{font-size:1.1rem;margin:24px 0 8px}
.legal p,.legal li{font-size:1rem;line-height:1.75;color:var(--g700)}
.legal p{margin-bottom:14px}
.legal ul,.legal ol{margin:0 0 16px 1.4em}
.legal li{margin-bottom:6px}
.legal a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.legal .legal-toc{background:var(--off);border:1px solid var(--g100);border-radius:var(--r);padding:18px 22px;margin-bottom:28px}
.legal .legal-toc ol{margin-bottom:0}
.legal .table-scroll{overflow-x:auto;margin-bottom:18px}
.legal table{width:100%;border-collapse:collapse;font-size:.92rem}
.legal th,.legal td{text-align:left;vertical-align:top;padding:10px 12px;border:1px solid var(--g100);line-height:1.55;color:var(--g700)}
.legal th{background:var(--g50);color:var(--g900);font-weight:700}
/* Placeholders that still need the business's own details — remove before launch */
.legal-todo{background:#FFF3BF;color:#3A2E00;padding:0 4px;border-radius:3px}

@media (max-width:600px){
  .legal-main{padding:100px 0 70px}
  .consent-banner{left:10px;right:10px;bottom:10px}
}

/* Respect the visitor's "reduce motion" setting */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}

/* Logos: keep natural proportions (width/height attributes exist only to reserve space) */
.footer-logo,.login-logo,.nav-logo img{width:auto;max-width:100%}

/* Quote form: goal-gradient progress + reassurance (uses existing colour variables) */
.form-progress-wrap{margin:0 0 20px}
.form-progress{height:8px;border-radius:999px;background:var(--g100);overflow:hidden}
.form-progress-bar{height:100%;width:100%;border-radius:999px;background:linear-gradient(90deg,var(--blue),var(--orange));transform-origin:left center;transform:scaleX(.25);transition:transform .6s cubic-bezier(.22,.8,.3,1)}
.form-progress-text{font-size:.82rem;color:var(--g700);margin-top:8px;line-height:1.5}
.form-progress-text strong{color:var(--g900)}
.form-reassure{text-align:center;font-size:.78rem;color:var(--g700);margin-top:12px;line-height:1.6}

/* Footer credit */
.footer-credit{text-align:center;margin-top:22px;padding-top:4px;font-size:.72rem;line-height:1.5}
.footer-credit a{display:inline-block;padding:6px 4px;color:rgba(255,255,255,.5);border-bottom:1px solid transparent;transition:color .25s ease,border-color .25s ease}
.footer-credit a:hover,.footer-credit a:focus-visible{color:rgba(255,255,255,.88);border-bottom-color:rgba(255,255,255,.4)}
.footer-credit a:focus-visible{outline:2px solid #fff;outline-offset:2px}
