/*------------------------------------------------------------------
  Mitchell Automotive Service: public site design system

  Colors are taken from the brand logo: deep navy for structure,
  brand blue for links and emphasis, sky blue for accents on dark
  panels, and a warm amber reserved exclusively for calls to action
  so the one thing a visitor should click is never ambiguous.

  No CSS framework, no icon fonts, no jQuery. Everything below is
  the complete stylesheet for the site.
------------------------------------------------------------------*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

[hidden] { display: none !important; }

:root {
  color-scheme: light;

  /* Brand */
  --ink: #0b1a2b;
  --navy: #132a45;
  --navy-700: #1b3a5c;
  --primary: #2265ad;
  --primary-600: #1c548f;
  --primary-700: #174477;
  --sky: #5ba3d9;
  --sky-200: #bcd9f1;

  /* Calls to action */
  --accent: #e8a33d;
  --accent-600: #d08c26;
  --on-accent: #2a1a05;

  /* Surfaces */
  --surface: #ffffff;
  --surface-alt: #f4f8fc;
  --surface-tint: #e9f1fa;
  --border: #dde5ee;
  --border-strong: #c4d2e1;

  /* Text */
  --text: #3a4a5e;
  --text-soft: #64748b;
  --heading: #132a45;
  --on-dark: #ffffff;
  --on-dark-soft: #b8c9dc;

  /* Shape */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(11 26 43 / 6%);
  --shadow: 0 12px 28px -16px rgb(11 26 43 / 28%);
  --shadow-lg: 0 28px 56px -28px rgb(11 26 43 / 38%);

  --header-h: 78px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); }
h4 { font-size: 1.1rem; }

/* Size utilities, for when the correct heading level and the correct visual weight
   do not line up. The outline stays right; the type scale stays right. */
.h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.4rem); }
.h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); }
.h4 { font-size: 1.1rem; }

p {
  margin: 0 0 1.15rem;
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.18s var(--ease);
}

a:hover { color: var(--primary-700); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

img,
svg,
picture,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

strong { color: var(--heading); }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  transform: translate(-50%, -200%);
  z-index: 1200;
  background: var(--surface);
  color: var(--primary-700);
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

/*--------------------------------------------------------------
  Layout primitives
--------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: 820px;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section-sm {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section-alt { background: var(--surface-alt); }

.section-tint { background: var(--surface-tint); }

.stack > * + * { margin-top: 1.15rem; }

/* Column counts are declared per breakpoint rather than left to auto-fit.
   auto-fit picks whatever happens to fit, which strands a single card alone on the
   last row (four items falling into three columns, for example). Where an odd count
   still leaves one item by itself in a two-column row, that item spans the full width
   so the last row reads as deliberate. */
.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: 1fr;
}

.grid-2 > :last-child:nth-child(odd),
.grid-3 > :last-child:nth-child(odd),
.grid-4 > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (min-width: 40rem) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 44rem) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 52rem) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }

  /* Back to normal flow once the row holds every card. */
  .grid-3 > :last-child:nth-child(odd) { grid-column: auto; }
}

@media (min-width: 68rem) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .grid-4 > :last-child:nth-child(odd) { grid-column: auto; }
}

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-wide { grid-template-columns: 1.35fr 1fr; }
  .split-media { grid-template-columns: minmax(0, 0.8fr) 1.2fr; align-items: center; }
}

.text-center { text-align: center; }

/*--------------------------------------------------------------
  Section headings
--------------------------------------------------------------*/
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.section-head {
  max-width: 48rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head.is-centered {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: 1.125rem;
  color: var(--text-soft);
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.6;
  color: var(--text);
}

/*--------------------------------------------------------------
  Buttons
--------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 24px -14px rgb(232 163 61 / 90%);
}

.btn-primary:hover {
  background: var(--accent-600);
  border-color: var(--accent-600);
  color: var(--on-accent);
}

.btn-solid {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-dark);
}

.btn-solid:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: var(--on-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--on-dark);
}

.btn-ghost {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 45%);
  color: var(--on-dark);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 18%);
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
  text-decoration: none;
}

.link-arrow .icon {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.18s var(--ease);
}

.link-arrow:hover .icon { transform: translateX(3px); }

/*--------------------------------------------------------------
  Site header
--------------------------------------------------------------*/
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgb(19 42 69 / 97%);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

body.is-home .site-header {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

body.is-home .site-header.is-scrolled {
  background: rgb(19 42 69 / 97%);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom-color: rgb(255 255 255 / 8%);
}

.site-header > .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: block;
  flex: none;
  line-height: 0;
}

.brand img {
  width: clamp(150px, 16vw, 196px);
  height: auto;
}

.primary-nav {
  margin-left: auto;
  display: none;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--on-dark-soft);
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--on-dark);
  background: rgb(255 255 255 / 10%);
}

.primary-nav .is-current > a {
  color: var(--on-dark);
}

.primary-nav .is-current > a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--sky);
}

.primary-nav li { position: relative; }

.primary-nav .has-menu > a .icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.75;
}

.primary-nav .submenu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 15rem;
  display: block;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.primary-nav .has-menu:hover .submenu,
.primary-nav .has-menu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .submenu a {
  display: block;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  font-weight: 550;
}

.primary-nav .submenu a:hover,
.primary-nav .submenu a:focus-visible {
  background: var(--surface-tint);
  color: var(--primary-700);
}

.nav-portal a {
  border: 1px solid rgb(255 255 255 / 28%);
}

.nav-cta a {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding-inline: 1.2rem;
}

.nav-cta a:hover,
.nav-cta a:focus-visible {
  background: var(--accent-600);
  color: var(--on-accent);
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 8%);
  color: var(--on-dark);
  cursor: pointer;
}

@media (min-width: 64rem) {
  .primary-nav { display: block; }
  .nav-toggle { display: none; }
}

/*--------------------------------------------------------------
  Mobile navigation drawer
--------------------------------------------------------------*/
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  grid-template-columns: 1fr min(22rem, 86vw);
  visibility: hidden;
}

.mobile-nav[data-open="true"] { visibility: visible; }

.mobile-nav-scrim {
  background: rgb(11 26 43 / 55%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.mobile-nav[data-open="true"] .mobile-nav-scrim { opacity: 1; }

.mobile-nav-panel {
  background: var(--navy);
  color: var(--on-dark);
  padding: 1.25rem 1.5rem 2.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
  box-shadow: var(--shadow-lg);
}

.mobile-nav[data-open="true"] .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: calc(var(--header-h) - 1.25rem);
}

.mobile-nav-panel ul {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.mobile-nav-panel li + li { margin-top: 0.15rem; }

.mobile-nav-panel nav a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--on-dark-soft);
  font-weight: 550;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.mobile-nav-panel nav a:hover,
.mobile-nav-panel nav a:focus-visible {
  background: rgb(255 255 255 / 10%);
  color: var(--on-dark);
}

.mobile-nav-panel .is-current > a { color: var(--sky); }

.mobile-nav-panel .submenu {
  margin: 0.15rem 0 0.5rem 0.85rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgb(255 255 255 / 18%);
}

.mobile-nav-panel .submenu a { font-size: 0.95rem; }

.mobile-nav-group-label {
  padding: 0.75rem 0.5rem 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 55%);
}

.mobile-nav-actions {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

body.nav-open { overflow: hidden; }

/* Privacy controls use the same visual weight for accepting and rejecting. */
.cookie-banner {
  position: fixed;
  z-index: 1200;
  inset: auto 1rem 1rem;
  max-width: 74rem;
  max-height: 70vh;
  overflow: auto;
  margin-inline: auto;
  padding: 1.25rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
}
.cookie-banner h2 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.cookie-banner p { margin: 0 0 0.8rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { font-size: 0.88rem; padding: 0.7rem 1rem; }
.cookie-dialog {
  width: min(35rem, calc(100vw - 2rem));
  max-height: 85vh;
  padding: 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  font: inherit;
}
.cookie-dialog::backdrop { background: rgb(11 26 43 / 65%); }
.cookie-dialog h2 { margin-top: 0; }
.cookie-category { display: flex; gap: 0.8rem; padding: 1rem 0; border-top: 1px solid var(--border); }
div.cookie-category { display: block; }
.cookie-category input { width: 1.2rem; height: 1.2rem; flex-shrink: 0; margin-top: 0.35rem; accent-color: var(--primary); }
.cookie-category span span { display: block; font-size: 0.92rem; }
.cookie-category p { margin: 0; font-size: 0.92rem; }
.footer-privacy { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-privacy button { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; padding: 0; cursor: pointer; }
.map-consent-placeholder { padding: 2rem; text-align: center; background: var(--surface-alt); }

/*--------------------------------------------------------------
  Hero
--------------------------------------------------------------*/
.hero {
  position: relative;
  isolation: isolate;
  color: var(--on-dark);
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgb(11 26 43 / 94%) 0%, rgb(19 42 69 / 86%) 45%, rgb(19 42 69 / 55%) 100%);
}

.hero h1 {
  color: var(--on-dark);
  max-width: 18ch;
}

.hero .eyebrow { color: var(--sky); }

.hero-copy { max-width: 46rem; }

.hero-lead {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  color: #dbe6f2;
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: rgb(255 255 255 / 14%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-stats div {
  background: rgb(11 26 43 / 55%);
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(4px);
}

.hero-stats strong {
  display: block;
  color: var(--on-dark);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.hero-stats small {
  display: block;
  margin-top: 0.15rem;
  color: var(--on-dark-soft);
  font-size: 0.875rem;
  line-height: 1.45;
}

/*--------------------------------------------------------------
  Inner page header
--------------------------------------------------------------*/
.page-header {
  background: var(--navy);
  color: var(--on-dark);
  padding-top: calc(var(--header-h) + clamp(2.25rem, 5vw, 3.75rem));
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 22rem at 88% -10%, rgb(91 163 217 / 26%), transparent 65%);
}

.page-header h1 {
  color: var(--on-dark);
  margin-bottom: 0;
  max-width: 24ch;
}

.page-header .page-intro {
  margin-top: 1rem;
  margin-bottom: 0;
  max-width: 60ch;
  color: #cfdcea;
  font-size: 1.1rem;
}

.breadcrumbs {
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--on-dark-soft);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: rgb(255 255 255 / 35%);
}

.breadcrumbs a {
  color: var(--on-dark-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--on-dark);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] { color: var(--on-dark); }

/*--------------------------------------------------------------
  Cards
--------------------------------------------------------------*/
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.section-alt .card,
.section-tint .card { background: var(--surface); }

.card h3 { margin-bottom: 0.5rem; }

.card p { color: var(--text); }

.card > :last-child { margin-bottom: 0; }

.card-link:hover,
.card-link:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--surface-tint);
  color: var(--primary);
}

.card-icon .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.card-title-link {
  color: var(--heading);
  text-decoration: none;
}

.card-title-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card-link { position: relative; }

.card-title-link:hover { color: var(--primary); }

.card-cta {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--primary);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-cta .icon {
  width: 1.05rem;
  height: 1.05rem;
}

/* Short positioning line at the top of a card, above its detail list. */
.card-lead {
  color: var(--text-soft);
  font-size: 0.96rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card .checklist {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.card .checklist li:last-child { margin-bottom: 0; }

/* Third-party platform callout. Deliberately typographic: the vendor's own marketing
   tile carried a rival palette and its own call to action, which competed with ours. */
.platform-band {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.platform-band h2 { margin-bottom: 0.6rem; }

.platform-band p {
  margin-bottom: 0;
  max-width: 60ch;
}

.platform-band .btn-ghost {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
  backdrop-filter: none;
  white-space: nowrap;
}

.platform-band .btn-ghost:hover {
  background: var(--primary);
  color: var(--on-dark);
}

@media (min-width: 52rem) {
  .platform-band {
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
  }
}

/* Numbered process steps */
.step {
  position: relative;
  padding-top: 0.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-dark);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.step h3 { font-size: 1.15rem; }

/* FAQ entries */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.faq-item p:last-child { margin-bottom: 0; }

/* Team. Flex rather than grid so an odd number of people centers on the last row
   instead of being left hanging against the left edge. */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.team-grid .team-member {
  flex: 0 1 11rem;
  min-width: 9rem;
}

.team-member { text-align: center; }

.team-member img {
  width: 100%;
  max-width: 200px;
  margin-inline: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow);
}

.team-member h3 {
  margin: 1rem 0 0.15rem;
  font-size: 1.1rem;
}

.team-member p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

/*--------------------------------------------------------------
  Media blocks
--------------------------------------------------------------*/
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-frame img { width: 100%; }

/* For diagrams rather than photography: the graphic supplies its own light ground,
   so a heavy shadow just makes it look like a pasted screenshot. */
.media-frame-plain {
  box-shadow: none;
  border: 1px solid var(--border);
  background: var(--surface);
}

.media-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  box-shadow: var(--shadow);
}

.media-badge small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.media-badge strong {
  display: block;
  color: var(--on-accent);
  font-size: 1.3rem;
  line-height: 1.1;
}

/*--------------------------------------------------------------
  Prose lists
--------------------------------------------------------------*/
.prose ul,
.prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.3rem;
}

.prose li + li { margin-top: 0.4rem; }

.checklist {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--surface-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232265ad' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fact-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.fact-list li:first-child { padding-top: 0; }
.fact-list li:last-child { border-bottom: 0; }

/*--------------------------------------------------------------
  Panels and tables
--------------------------------------------------------------*/
.panel {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.panel > :last-child { margin-bottom: 0; }

.panel-dark {
  background: var(--navy);
  color: #d6e2ef;
  border-color: transparent;
}

.panel-dark h2,
.panel-dark h3 { color: var(--on-dark); }

.panel-dark a { color: var(--sky); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1.15rem 0;
  font-weight: 650;
  color: var(--heading);
}

th,
td {
  padding: 0.9rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: var(--surface-alt);
  color: var(--heading);
  font-weight: 650;
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

tbody th {
  font-weight: 650;
  color: var(--heading);
}

/*--------------------------------------------------------------
  Call-to-action band
--------------------------------------------------------------*/
.cta-band {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: clamp(1.9rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--navy) 0%, var(--primary-700) 100%);
  color: #d9e6f3;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40rem 16rem at 90% 0%, rgb(91 163 217 / 30%), transparent 70%);
}

.cta-band h2 {
  color: var(--on-dark);
  margin-bottom: 0.5rem;
}

.cta-band p { margin-bottom: 0; }

@media (min-width: 52rem) {
  .cta-band {
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
  }
}

/*--------------------------------------------------------------
  Contact page
--------------------------------------------------------------*/
.contact-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 62rem) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.contact-methods {
  display: grid;
  gap: 1.1rem;
}

.contact-method {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-method .icon {
  color: var(--primary);
  margin-top: 0.2rem;
}

.contact-method h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.contact-method p {
  margin-bottom: 0;
  color: var(--text);
}

.map-frame {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}

.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/*--------------------------------------------------------------
  Forms
--------------------------------------------------------------*/
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.field-grid {
  display: grid;
  align-items: start;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .field-grid-2 { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; align-content: start; min-width: 0; gap: 0.4rem; }

.field input,
.field select { height: 3.25rem; }

.field-feedback {
  min-height: 2.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--heading);
}

.field .optional {
  font-weight: 500;
  color: var(--text-soft);
}

/* Matched on the element rather than on [type], because Blazor's InputText renders a
   bare <input> with no type attribute unless one is passed. Selecting by type left the
   name and subject fields with browser default styling. */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
select,
textarea {
  font: inherit;
  width: 100%;
  padding: 0.7rem 0.85rem;
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(34 101 173 / 18%);
}

.field-error,
.validation-message {
  color: #a3352c;
  font-size: 0.875rem;
}

.quote-submit-spinner {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: quote-submit-spin 0.8s linear infinite;
}

.quote-submit-arrow { display: inline-flex; }
.quote-submit[aria-busy="true"] { cursor: progress; }
.quote-submit[aria-busy="true"] .quote-submit-spinner { display: inline-block; }
.quote-submit[aria-busy="true"] .quote-submit-arrow { display: none; }
@keyframes quote-submit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .quote-submit-spinner { animation: none; }
}

input.invalid,
select.invalid,
textarea.invalid { border-color: #a3352c; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.alert {
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.alert p:last-child { margin-bottom: 0; }

.alert-success {
  background: #eaf6ee;
  border-color: #b6ddc4;
  color: #1c5231;
}

.alert-success h2,
.alert-success h3 { color: #1c5231; }

.alert-error {
  background: #fdeeec;
  border-color: #f0c2bc;
  color: #8f2d24;
}

/*--------------------------------------------------------------
  Footer
--------------------------------------------------------------*/
.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.site-footer h2,
.site-footer h3 {
  color: var(--on-dark);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

/* Excludes buttons. ".site-footer a" outweighs ".btn-primary" on specificity, so
   without the :not() the footer call to action inherited pale gray link text on its
   amber fill and read as broken. */
.site-footer a:not(.btn) {
  color: var(--on-dark-soft);
  text-decoration: none;
}

.site-footer a:not(.btn):hover {
  color: var(--on-dark);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
}

.footer-brand img {
  width: 200px;
  margin-bottom: 1.25rem;
}

.footer-brand p { font-size: 0.95rem; }

/* Credential callout. A pill cannot hold three words per line without looking cramped,
   so this is a proper badge: seal, credential name, then what the credential means. */
.credential {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 4%);
}

.credential-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgb(232 163 61 / 16%);
  color: var(--accent);
}

.credential-seal .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.credential-name {
  display: block;
  color: var(--on-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.credential-detail {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--on-dark-soft);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li { margin-top: 0.55rem; }

.site-footer .footer-contact p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 10%);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.875rem;
}

.footer-bottom p { margin: 0; }

/*--------------------------------------------------------------
  Back to top
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-dark);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s,
    background 0.18s var(--ease);
}

.back-to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--primary-700); }

/*--------------------------------------------------------------
  Reveal on scroll
--------------------------------------------------------------*/
/* Scoped to .reveal-ready so content is never hidden when scripting is unavailable or the
   script fails to load. Without this, a blocked site.js would blank whole sections. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/*--------------------------------------------------------------
  Error pages
--------------------------------------------------------------*/
.status-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
}

.status-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--surface-tint);
  margin-bottom: 0.5rem;
}
