/* HA Auto Repairs, site2 design layer.
   Loaded after Tailwind (CDN) on every page. Every rule is scoped to body.s2 so its specificity beats the
   remaining Tailwind utilities in the markup; colour is never set on bare headings so the existing
   text-white / text-navy-900 utilities keep deciding it. Light only (the pages still rely on Tailwind colour
   utilities that are not tokenised, so a dark theme would need a separate pass). */
:root {
  --s2-paper: #F5F7FA;
  --s2-surface: #FFFFFF;
  --s2-soft: #EBEFF5;
  --s2-ink: #0F172A;
  --s2-ink-2: #334155;
  --s2-muted: #566176;
  --s2-line: #D9DFE9;
  --s2-navy: #0F172A;
  --s2-navy-deep: #0B1220;
  --s2-navy-line: rgba(255,255,255,.14);
  --s2-on-navy-2: #CBD5E1;
  --s2-orange: #F97316;
  --s2-orange-hover: #FB8A3B;
  --s2-orange-ink: #C2410C;
  --s2-orange-tint: #FFF1E3;
  --s2-on-orange: #1A0E04;
  --s2-radius: 14px;
  --s2-shadow: 0 1px 2px rgba(15,23,42,.06), 0 12px 32px -8px rgba(15,23,42,.18);
  --s2-gutter: clamp(16px, 4vw, 40px);
}

body.s2 { background: var(--s2-paper); color: var(--s2-ink); font-family: 'Source Sans 3', ui-sans-serif, system-ui, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.s2 img { max-width: 100%; }
body.s2 ::selection { background: var(--s2-orange); color: var(--s2-on-orange); }
body.s2 :focus-visible { outline: 3px solid var(--s2-orange); outline-offset: 3px; border-radius: 6px; }
body.s2 { scrollbar-color: var(--s2-line) transparent; }
body.s2 input, body.s2 select, body.s2 textarea, body.s2 button { caret-color: var(--s2-orange); }
body.s2 .s2-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s2-gutter); }

/* ---------- Type (colour stays with the utility classes; only the page-level titles get a fluid size) ---------- */
body.s2 h1, body.s2 h2, body.s2 h3, body.s2 h4 { font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; text-wrap: balance; }
body.s2 h1, body.s2 h2 { letter-spacing: -0.02em; }
body.s2 h3 { letter-spacing: -0.01em; }
body.s2 .s2-h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.025em; }
body.s2 .s2-h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.12; }
body.s2 p { text-wrap: pretty; }
body.s2 .s2-prose p, body.s2 section p { max-width: none; }

/* ---------- Buttons ---------- */
body.s2 .btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: 10px; font: 700 1rem/1.15 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background-color .18s, transform .18s, box-shadow .18s; }
body.s2 .btn-primary { background: var(--s2-orange); color: var(--s2-on-orange); box-shadow: 0 8px 20px -8px rgba(249,115,22,.7); }
body.s2 .btn-primary:hover { background: var(--s2-orange-hover); transform: translateY(-1px); }
body.s2 .btn-glass { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); border: 0; }
body.s2 .btn-glass:hover { background: rgba(255,255,255,.18); }
body.s2 .btn-line { background: transparent; color: var(--s2-ink); box-shadow: inset 0 0 0 1.5px var(--s2-line); border: 0; }
body.s2 .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--s2-orange); }

/* ---------- Top bar ---------- */
body.s2 .s2-topbar { background: var(--s2-navy-deep); color: var(--s2-on-navy-2); font-size: .875rem; }
body.s2 .s2-topbar .s2-wrap { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; padding-block: .5rem; }
body.s2 .s2-topbar .s2-wrap > div { display: flex; align-items: center; gap: .4rem 1.4rem; flex-wrap: wrap; }
body.s2 .s2-topbar span, body.s2 .s2-topbar a { display: inline-flex; align-items: center; gap: .4rem; }
body.s2 .s2-topbar svg { width: 1rem; height: 1rem; color: var(--s2-orange); }
body.s2 .s2-topbar a { color: #fff; font-weight: 700; text-decoration: none; }
body.s2 .s2-topbar a:hover { color: var(--s2-orange); }
body.s2 .s2-hide-sm { display: none !important; }
@media (min-width: 640px) { body.s2 .s2-hide-sm { display: inline-flex !important; } }

/* ---------- Header ---------- */
body.s2 .s2-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--s2-line); }
body.s2 .s2-head .s2-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: .7rem; }
body.s2 .s2-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
body.s2 .s2-brand-mark { width: 46px; height: 46px; border-radius: 11px; background: var(--s2-navy); display: grid; place-items: center; overflow: hidden; }
body.s2 .s2-brand-mark img { width: 40px; height: 40px; object-fit: contain; }
body.s2 .s2-brand-name { font: 800 1.15rem/1 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.01em; color: var(--s2-ink); }
body.s2 .s2-nav { display: none; align-items: center; gap: 1.7rem; margin-left: auto; font: 600 .95rem/1 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; color: var(--s2-ink); }
body.s2 .s2-nav > a, body.s2 .s2-dd > button { text-decoration: none; padding: .5rem 0; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; color: inherit; font: inherit; display: inline-flex; align-items: center; gap: .3rem; }
body.s2 .s2-nav > a:hover, body.s2 .s2-dd > button:hover { border-bottom-color: var(--s2-orange); }
body.s2 .s2-nav > a.is-active { border-bottom-color: var(--s2-orange); }
body.s2 .s2-nav svg { width: .9rem; height: .9rem; }
body.s2 .s2-dd { position: relative; }
body.s2 .s2-dd-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: .8rem; width: 15rem; z-index: 60; }
body.s2 .s2-dd-panel > div { background: var(--s2-surface); border: 1px solid var(--s2-line); border-radius: 12px; box-shadow: var(--s2-shadow); padding: .4rem 0; max-height: 70vh; overflow-y: auto; }
body.s2 .s2-dd-panel a { display: block; padding: .5rem 1rem; font: 500 .9rem/1.3 'Source Sans 3', ui-sans-serif, system-ui, sans-serif; color: var(--s2-ink-2); text-decoration: none; }
body.s2 .s2-dd-panel a:first-child { font-weight: 700; color: var(--s2-ink); border-bottom: 1px solid var(--s2-line); margin-bottom: .3rem; }
body.s2 .s2-dd-panel a:hover { background: var(--s2-soft); color: var(--s2-orange-ink); }
body.s2 .s2-cta-desktop { display: none; }
body.s2 .s2-cta-desktop .btn { min-height: 44px; padding: .6rem 1.2rem; font-size: .95rem; }
body.s2 .s2-burger { width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--s2-ink); margin-left: auto; }
body.s2 .s2-burger:hover { background: var(--s2-soft); }
body.s2 .s2-burger svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 1024px) {
  body.s2 .s2-nav { display: flex; }
  body.s2 .s2-cta-desktop { display: block; }
  body.s2 .s2-burger { display: none; }
}
body.s2 .s2-drawer { background: var(--s2-surface); border-top: 1px solid var(--s2-line); padding: .8rem var(--s2-gutter) 1.2rem; max-height: calc(100vh - 4.5rem); overflow-y: auto; }
body.s2 .s2-drawer a { display: block; padding: .7rem .8rem; border-radius: 10px; font: 600 1rem/1.25 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; color: var(--s2-ink); text-decoration: none; }
body.s2 .s2-drawer a:hover { background: var(--s2-soft); }
body.s2 .s2-drawer a.is-active { background: var(--s2-orange-tint); color: var(--s2-orange-ink); }
body.s2 .s2-drawer a.s2-group { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--s2-orange-ink); padding-top: 1rem; padding-bottom: .3rem; }
body.s2 .s2-drawer a.s2-sub { padding: .5rem .8rem .5rem 1.6rem; font: 500 .95rem/1.25 'Source Sans 3', ui-sans-serif, system-ui, sans-serif; color: var(--s2-ink-2); }
body.s2 .s2-drawer .s2-drawer-cta { display: grid; gap: .6rem; padding-top: .9rem; }
body.s2 .s2-drawer .s2-drawer-cta a { text-align: center; min-height: 48px; display: flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) { body.s2 .s2-drawer { display: none !important; } }

/* ---------- Breadcrumb ---------- */
body.s2 .s2-crumbs { background: var(--s2-soft); border-bottom: 1px solid var(--s2-line); }
body.s2 .s2-crumbs .s2-wrap { padding-block: .6rem; font-size: .8rem; color: var(--s2-muted); display: flex; align-items: center; gap: .4rem; overflow-x: auto; white-space: nowrap; }
body.s2 .s2-crumbs a { color: var(--s2-muted); text-decoration: none; }
body.s2 .s2-crumbs a:hover { color: var(--s2-orange-ink); }
body.s2 .s2-crumbs [aria-current] { color: var(--s2-ink); font-weight: 600; }

/* ---------- Sections ---------- */
body.s2 .s2-sec { padding-block: clamp(3rem, 7vw, 5rem); }
body.s2 .s2-light { background: var(--s2-surface); }
body.s2 .s2-soft { background: var(--s2-paper); }
body.s2 .s2-sec.s2-soft + .s2-sec.s2-soft { padding-top: 0; }
body.s2 .s2-dark { background: var(--s2-navy); color: #fff; }

/* Hero (photo or plain) */
body.s2 .s2-hero { position: relative; isolation: isolate; background: var(--s2-navy-deep); color: #fff; padding-block: 0; }
body.s2 .s2-hero .bg-cover { z-index: -2; }
body.s2 .s2-hero .s2-overlay { z-index: -1; background: linear-gradient(100deg, rgba(11,18,32,.97) 0%, rgba(11,18,32,.88) 48%, rgba(11,18,32,.55) 100%) !important; }
body.s2 .s2-hero h1 { color: #fff; }
body.s2 .s2-hero h1 span { color: var(--s2-orange); }
body.s2 .s2-hero p { color: var(--s2-on-navy-2); }
body.s2 .s2-hero a:not(.btn) { color: var(--s2-orange); }
body.s2 .s2-hero.s2-hero-plain { padding-block: clamp(2.5rem, 6vw, 4rem); }
body.s2 .s2-hero-stats { border-top: 1px solid var(--s2-navy-line); background: rgba(11,18,32,.6); backdrop-filter: blur(6px); }

/* Cards and callouts: elevation by border only */
body.s2 .s2-card { background: var(--s2-surface); border: 1px solid var(--s2-line); border-radius: var(--s2-radius); box-shadow: none; }
body.s2 .s2-soft .s2-card { background: var(--s2-surface); }
body.s2 .s2-card--link { transition: border-color .18s, transform .18s; text-decoration: none; }
body.s2 .s2-card--link:hover { border-color: var(--s2-orange); transform: translateY(-2px); box-shadow: none; }
body.s2 .s2-card--accent { background: var(--s2-orange); border-color: var(--s2-orange); color: var(--s2-on-orange); }
body.s2 .s2-card--accent h2, body.s2 .s2-card--accent h3, body.s2 .s2-card--accent p { color: var(--s2-on-orange); }
body.s2 .s2-callout { background: var(--s2-orange-tint); border: 1px solid #FBD9B5; border-radius: var(--s2-radius); }
body.s2 .s2-callout a { color: var(--s2-orange-ink); }
body.s2 .icon-3d { background: var(--s2-navy); box-shadow: none; border-radius: 12px; transition: background-color .2s; }
body.s2 .icon-3d::after { display: none; }
body.s2 .group:hover .icon-3d { background: var(--s2-orange); box-shadow: none; }
body.s2 .group:hover .icon-3d svg { color: var(--s2-on-orange); }

/* Checklist items on service pages */
body.s2 .s2-check { background: var(--s2-surface); border: 1px solid var(--s2-line); border-radius: 12px; }
body.s2 .s2-check svg { color: var(--s2-orange-ink); }

/* Links inside running text */
body.s2 .s2-link { color: var(--s2-orange-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
body.s2 .s2-link:hover { color: var(--s2-orange); }

/* FAQ */
body.s2 .s2-faq { background: transparent; border: 0; border-top: 1px solid var(--s2-line); border-radius: 0; padding: 0; }
body.s2 .s2-faq:last-of-type { border-bottom: 1px solid var(--s2-line); }
body.s2 .s2-faq summary { padding: 1.1rem 0; font: 700 1.08rem/1.3 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; color: var(--s2-ink); }
body.s2 .s2-faq summary::-webkit-details-marker { display: none; }
body.s2 .s2-faq summary:hover { color: var(--s2-orange-ink); }
body.s2 .s2-faq p { margin-top: 0 !important; padding-bottom: 1.2rem; font-size: 1rem; color: var(--s2-ink-2); }
body.s2 .s2-faq-wrap { display: block; }

/* Tables */
body.s2 .s2-table { border: 1px solid var(--s2-line); border-radius: var(--s2-radius); overflow: hidden; background: var(--s2-surface); font-variant-numeric: tabular-nums; }
body.s2 .s2-table thead { background: var(--s2-navy); }
body.s2 .s2-table th { font: 700 .8rem/1 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
body.s2 .s2-table td, body.s2 .s2-table th { padding: .9rem 1.4rem; }
body.s2 .s2-table tbody tr:hover { background: var(--s2-paper); }

/* Content media */
body.s2 .s2-media { border-radius: var(--s2-radius); border: 1px solid var(--s2-line); overflow: hidden; }

/* Forms (booking, contact) */
body.s2 input[type="text"], body.s2 input[type="tel"], body.s2 input[type="email"], body.s2 input[type="date"], body.s2 input[type="number"], body.s2 select, body.s2 textarea { border-radius: 10px; border-color: var(--s2-line); }
body.s2 input:focus, body.s2 select:focus, body.s2 textarea:focus { border-color: var(--s2-orange); outline: none; box-shadow: 0 0 0 3px rgba(249,115,22,.28); }

/* ---------- Footer ---------- */
body.s2 .s2-foot { background: var(--s2-navy-deep); color: var(--s2-on-navy-2); }
body.s2 .s2-foot-grid { display: grid; gap: 2.4rem; padding-block: 3.5rem; }
@media (min-width: 768px) { body.s2 .s2-foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
body.s2 .s2-foot h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
body.s2 .s2-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
body.s2 .s2-foot a { color: var(--s2-on-navy-2); text-decoration: none; }
body.s2 .s2-foot a:hover { color: #fff; }
body.s2 .s2-foot p { font-size: .95rem; line-height: 1.55; margin-bottom: 1rem; }
body.s2 .s2-foot li { display: flex; align-items: flex-start; gap: .6rem; }
body.s2 .s2-foot li svg { width: 1rem; height: 1rem; margin-top: .25rem; color: var(--s2-orange); flex: none; }
body.s2 .s2-foot-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; color: #fff; font: 800 1.1rem/1 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; }
body.s2 .s2-foot-brand .s2-brand-mark { background: rgba(255,255,255,.1); width: 44px; height: 44px; }
body.s2 .s2-social { display: flex; gap: 1rem; }
body.s2 .s2-social svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
body.s2 .s2-legal { border-top: 1px solid var(--s2-navy-line); padding-block: 1.3rem; text-align: center; font-size: .85rem; color: var(--s2-on-navy-2); }
body.s2 .s2-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Floating chat + phone action bar */
body.s2 .s2-wa { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(0,0,0,.35); transition: transform .18s, background-color .18s; }
body.s2 .s2-wa:hover { background: #20BD5A; transform: scale(1.05); }
body.s2 .s2-wa svg { width: 1.75rem; height: 1.75rem; color: #fff; }
body.s2 .s2-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 54; display: grid; grid-template-columns: 1.5fr 1fr; gap: .6rem; padding: .6rem var(--s2-gutter) calc(.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(11,18,32,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--s2-navy-line); }
body.s2 .s2-mbar .btn { min-height: 48px; }
@media (min-width: 900px) { body.s2 .s2-mbar { display: none; } }
@media (max-width: 899px) {
  body.s2 { padding-bottom: 76px; }
  /* Phones: WhatsApp sits inside the action bar as its third button instead of floating over the page. */
  body.s2 .s2-mbar { padding-right: calc(var(--s2-gutter) + 48px + .6rem); }
  body.s2 .s2-wa { right: var(--s2-gutter); bottom: calc(.6rem + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 12px; box-shadow: none; z-index: 56; }
  body.s2 .s2-wa:hover { transform: none; }
  body.s2 .s2-wa svg { width: 1.5rem; height: 1.5rem; }

  /* Booking page: no "Book online" (you are on it), just Call + WhatsApp, and the form starts near the top. */
  body.s2:has(#enquiryType) .s2-mbar { grid-template-columns: 1fr; }
  body.s2:has(#enquiryType) .s2-mbar a[href="booking/"] { display: none; }
  body.s2:has(#enquiryType) .s2-topbar { display: none; }
  body.s2:has(#enquiryType) .s2-hero.s2-hero-plain { padding-block: 0; }
  body.s2:has(#enquiryType) .s2-hero.s2-hero-plain > .relative { padding-top: 1.75rem; padding-bottom: 1.75rem; }
  body.s2:has(#enquiryType) .s2-hero.s2-hero-plain h1 { font-size: 1.85rem; margin-bottom: .5rem; }
  body.s2:has(#enquiryType) .s2-hero.s2-hero-plain p { font-size: 1rem; }
  body.s2:has(#enquiryType) #main-content + section { padding-top: 1.5rem; }

  /* While a field has focus the keyboard is up: get the bar and the chat button out of the way. */
  body.s2.s2-typing { padding-bottom: 0; }
  body.s2.s2-typing .s2-mbar, body.s2.s2-typing .s2-wa { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.s2 *, body.s2 *::before, body.s2 *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
