/* ==========================================================================
   SFA Companies — site styles
   Design tokens sampled from the July 2025 drafts.
   No framework, no build step. Roughly 1400px content width.
   ========================================================================== */

:root {
  --green: #2D9D40;
  --green-dark: #238033;
  --black: #100F0D;
  --dark: #1C1A1A;
  --bar: #232121;
  --grey-top: #7A7B7C;
  --grey-bottom: #3A3A3B;
  --muted: #8B8B8B;
  --radius-tile: 44px;
  --wrap: 1400px;
  --gutter: clamp(20px, 3vw, 54px);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: #fff;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 84px 0 92px; }
.section--dark { background: var(--dark); }
.section--black { background: var(--black); }
.section-title { font-size: clamp(34px, 4.4vw, 62px); text-align: center; margin: 0 0 54px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* -------------------------------------------------------------- header --- */
.header { background: var(--black); position: relative; z-index: 50; }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 22px; padding-bottom: 22px;
}
.header__logo img { max-height: 70px; width: auto; }
.header__logo span { font-size: 30px; font-style: italic; font-weight: 800; letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 10px 0; font-size: clamp(16px, 1.3vw, 20px); }
.nav > li[aria-current="page"] > a, .nav > li.is-active > a { color: var(--green); }

.nav__sub {
  position: absolute; top: 100%; left: -18px; min-width: 220px; margin: 0; padding: 6px 0;
  list-style: none; background: var(--dark); box-shadow: 0 18px 40px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav > li:hover > .nav__sub,
.nav > li:focus-within > .nav__sub,
.nav > li.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 20px; font-size: 18px; }
.nav__sub a:hover { background: var(--green); color: #fff; }

.header__tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  background: none; border: 0; color: #fff; cursor: pointer; padding: 6px;
  line-height: 0; border-radius: 6px;
}
.icon-btn:hover { color: var(--green); }
.icon-btn svg { width: 26px; height: 26px; }
.nav-toggle { display: none; }

/* header search panel */
.searchbar { display: none; padding: 0 0 22px; }
.searchbar.is-open { display: block; }
.searchbar form { display: flex; gap: 10px; max-width: 640px; margin-left: auto; }
.searchbar input {
  flex: 1; background: var(--dark); border: 1px solid #333; color: #fff;
  padding: 13px 18px; border-radius: 40px; font: inherit; font-size: 16px;
}
.searchbar input::placeholder { color: #777; }
.searchbar button {
  background: var(--green); color: #fff; border: 0; border-radius: 40px;
  padding: 13px 28px; font: inherit; font-weight: 700; cursor: pointer;
}
.searchbar button:hover { background: var(--green-dark); }

/* ---------------------------------------------------------------- hero --- */
.hero { background: var(--black); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 34% 66%; align-items: stretch; }
.hero__copy { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; }

/* white card: flush to the left edge, large radius on the right */
.blob {
  background: #fff; color: #111; border-radius: 0 260px 260px 0;
  padding: 58px 120px 58px var(--gutter);
  margin-right: -11%;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  font-size: clamp(17px, 1.35vw, 21px);
}
.hero__cta { padding-left: var(--gutter); margin-top: 42px; }

.hero__media { display: flex; gap: 4px; min-height: 620px; }
.hero__media > * { flex: 1 1 0; min-width: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media > *:first-child img { border-radius: 210px 0 0 0; }
.hero__media--single > *:first-child img { border-radius: 240px 0 0 240px; }
/* Brand with no hero photo: show its logo whole rather than cropping it. */
.hero__media--logo > * { display: grid; place-items: center; padding: 60px 8%; }
.hero__media--logo img { width: 100%; max-width: 560px; height: auto; max-height: 360px; object-fit: contain; }
/* One composed photo across the whole media area. It carries its own curved
   edge, so no radius; anchor right so narrow screens keep the photos. */
.hero__media--wide > *:first-child img { border-radius: 0; object-position: right center; }

/* stacked channel links under the hero */
.rail { border-left: 3px solid var(--green); padding-left: 30px; max-width: 420px; }
.rail a { display: block; max-width: 12ch; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; margin-bottom: 34px; }
.rail a:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- button --- */
.btn {
  display: inline-block; background: var(--green); color: #fff;
  padding: 16px 34px; border-radius: 60px; font-weight: 700; font-size: 18px;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); }
.btn--lg { font-size: clamp(20px, 2vw, 30px); padding: 24px 52px; }
.btn--link {
  background: none; padding: 0; border-radius: 0;
  color: var(--green); font-size: clamp(20px, 1.9vw, 27px);
}
.btn--link:hover { background: none; color: #fff; transform: none; }
.btn--ghost { background: transparent; border: 2px solid var(--green); }
.btn--ghost:hover { background: var(--green); }

/* ------------------------------------------------------- product cards --- */
.rail-scroll {
  display: flex; gap: 26px; margin: 0; padding: 0 0 26px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-color: var(--green) #2b2b2b; scrollbar-width: thin;
}
.rail-scroll::-webkit-scrollbar { height: 6px; }
.rail-scroll::-webkit-scrollbar-track { background: #2b2b2b; border-radius: 3px; }
.rail-scroll::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }
.rail-scroll > li {
  flex: 0 0 calc((100% - 4 * 26px) / 5); max-width: calc((100% - 4 * 26px) / 5);
  scroll-snap-align: start;
}

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 36px 26px; list-style: none; margin: 0; padding: 0;
}

.product-card { text-align: center; display: block; height: 100%; }
.product-card__media {
  background: #fff; border-radius: 34px; aspect-ratio: 1 / 1;
  display: grid; place-items: center; padding: 22px; margin-bottom: 18px;
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover .product-card__media {
  transform: translateY(-5px); box-shadow: 0 22px 44px rgba(0,0,0,.45);
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__sku {
  display: block; color: var(--green); font-weight: 700;
  font-size: clamp(18px, 1.6vw, 24px); letter-spacing: .2px;
}
.product-card__name {
  display: block; color: #fff; font-weight: 400;
  font-size: clamp(16px, 1.5vw, 24px); line-height: 1.25;
}
.product-card:hover .product-card__name { color: #fff; }

/* -------------------------------------------------------- category tiles -- */
.section--cats { background: linear-gradient(180deg, var(--grey-top) 0%, var(--grey-bottom) 100%); }

.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px;
  list-style: none; margin: 0; padding: 0;
}
.cat-tile {
  position: relative; display: block; border-radius: var(--radius-tile);
  overflow: hidden; aspect-ratio: 1 / 0.92; background-color: #131313;
  /* carbon-fibre weave, drawn in CSS so there is no texture asset to host */
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,.035) 0 8px, rgba(0,0,0,.30) 8px 16px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 8px, rgba(0,0,0,.30) 8px 16px);
  background-size: 46px 46px, 46px 46px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.cat-tile img {
  position: absolute; inset: 6% 10% 22%; width: 80%; height: 72%;
  object-fit: contain;
}
/* Category and product imagery is expected to be transparent PNG, so the
   carbon texture shows through. If the store serves white-background JPEGs
   instead, add the `cat-grid--plate` modifier to the grid and each image sits
   on a rounded white plate rather than a hard white square. */
.cat-grid--plate .cat-tile img,
.cat-tile--plate img {
  background: #fff; border-radius: 22px; padding: 6%;
  inset: 7% 11% 24%; width: 78%; height: 69%;
}
/* Transparent cut-outs: a soft pool of light behind the product and a faint
   rim light around its outline, so black and navy products still read on
   the carbon. Plate tiles don't need it. */
.cat-tile:not(.cat-tile--plate)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 44% at 50% 42%,
    rgba(255,255,255,.20) 0%, rgba(255,255,255,.08) 55%, rgba(255,255,255,0) 78%);
}
.cat-tile:not(.cat-tile--plate) img {
  filter: drop-shadow(0 0 1px rgba(255,255,255,.35)) drop-shadow(0 0 12px rgba(255,255,255,.16));
}
.cat-tile__label {
  position: absolute; left: 0; right: 0; bottom: 30px; padding: 0 18px;
  text-align: center; color: #fff; font-size: clamp(20px, 2.4vw, 34px); font-weight: 700;
  text-shadow: 0 3px 14px rgba(0,0,0,.75);
}

/* --------------------------------------------------------------- about --- */
.about-row { display: grid; grid-template-columns: 48% 52%; gap: 40px; align-items: start; }
.about-row img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 110px 190px 190px 110px; }
.about-body { border-left: 3px solid var(--green); padding-left: 34px; }
.about-body h3 { font-size: clamp(28px, 3vw, 44px); margin-bottom: 22px; }
.about-body .lead { font-weight: 700; }

/* ------------------------------------------------------------- contact --- */
.contact-card {
  background: #fff; color: #111; border-radius: 110px;
  padding: 54px clamp(28px, 4vw, 66px) 62px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.contact-card h2 { font-size: clamp(34px, 4.2vw, 58px); text-align: center; margin-bottom: 26px; }
.contact-card h3 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 22px; }
.contact-meta {
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 26px;
  align-items: start; margin: 30px 0;
}
.contact-meta h4 { color: var(--green); font-size: 20px; margin-bottom: 6px; }
.contact-meta a { color: #111; }
.contact-meta a:hover { color: var(--green); }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; background: var(--black); color: #fff;
  display: grid; place-items: center;
}
.socials a:hover { background: var(--green); color: #fff; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

/* ----------------------------------------------------------- logo strip --- */
.logo-bar { background: var(--black); padding: 56px 0; }
.logo-bar ul {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center; justify-items: center;
  gap: 30px 18px; list-style: none; margin: 0; padding: 0;
}
/* Logos range from 14:1 wordmarks to near-square badges; fitting each into
   the same box keeps the strip even. Any colour renders white. */
.logo-bar img {
  width: 140px; max-width: 100%; height: 42px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .9;
  transition: filter .2s ease, opacity .2s ease;
}
/* Hover/focus reveals the logo's own colour (the supplied logos are green).
   Same filter functions as the rest state so the change animates. */
.logo-bar a:is(:hover, :focus-visible) img { filter: brightness(1) invert(0); opacity: 1; }
.logo-bar a:is(:hover, :focus-visible) .logo-bar__text { color: var(--green); }
.logo-bar .logo-bar__text { font-weight: 800; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; opacity: .85; }

/* -------------------------------------------------------------- footer --- */
.footer { background: var(--bar); padding: 26px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
.footer ul { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer a { font-size: 18px; white-space: nowrap; }
.colophon { background: var(--black); padding: 22px 0; color: var(--muted); font-size: 16px; }
.colophon .wrap { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; }
.colophon .colophon__legal { display: block; margin-top: 12px; font-size: 13px; color: #6f6f6f; }

/* static pages */
.page-section { margin-bottom: 44px; }
.page-section h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 14px; }
.page-list { margin: 0; padding-left: 1.2em; color: #d8d8d8; }
.page-list li { margin-bottom: 8px; }
.page-list li::marker { color: var(--green); }

/* contact */
.section-title--left { text-align: left; font-size: clamp(26px, 3vw, 38px); margin-bottom: 26px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; font-size: 15px; color: #c9c9c9; }
.form-field :is(input, select, textarea) {
  width: 100%; background: var(--dark); border: 1px solid #3a3737; color: #fff;
  border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field :is(input, select, textarea):focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.form-field.has-error :is(input, select, textarea) { border-color: #e05a4f; }
.contact-form .btn { justify-self: start; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { border-radius: 16px; padding: 16px 20px; margin-bottom: 22px; }
.form-notice p, .form-notice ul { margin: 6px 0 0; }
.form-notice--ok { background: rgba(45,157,64,.15); border: 1px solid var(--green); }
.form-notice--error { background: rgba(224,90,79,.12); border: 1px solid #e05a4f; }
.office-card { background: var(--dark); border-radius: 22px; padding: 22px 24px; margin-bottom: 18px; }
.office-card h3 { font-size: 20px; margin-bottom: 8px; color: var(--green); }
.office-card p { color: #d8d8d8; margin: 0 0 12px; }
.office-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 15px; }
.office-card dt { color: var(--muted); }
.office-card dd { margin: 0; }
.office-email { font-size: 17px; }
@media (max-width: 860px) {
  .contact-layout, .form-row { grid-template-columns: 1fr; gap: 30px; }
  .form-row { gap: 18px; }
}

/* ----------------------------------------------------------- page bits --- */
.page-head { background: var(--black); padding: 64px 0 40px; }
.page-head h1 { font-size: clamp(34px, 5vw, 62px); }
.page-head p { color: #c9c9c9; max-width: 72ch; margin-top: 18px; font-size: 19px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 22px; padding: 0; color: var(--muted); font-size: 15px; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: #4a4a4a; }

.brand-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px; list-style: none; margin: 0; padding: 0;
}
.brand-card {
  display: grid; place-items: center; gap: 14px; background: var(--dark);
  border-radius: 28px; padding: 36px 24px; min-height: 180px; text-align: center;
  transition: transform .2s ease, background .2s ease;
}
.brand-card:hover { transform: translateY(-4px); background: #252222; color: #fff; }
.brand-card img {
  width: 190px; max-width: 100%; height: 56px; object-fit: contain;
  filter: brightness(0) invert(1); transition: filter .2s ease;
}
/* Same as the logo strip: hover/focus shows the logo's own green. */
.brand-card:is(:hover, :focus-visible) img { filter: brightness(1) invert(0); }
.brand-card strong { font-size: 19px; }

/* product detail */
.product-detail { display: grid; grid-template-columns: 46% 54%; gap: 48px; align-items: start; }
.product-detail__media { background: #fff; border-radius: 40px; padding: 40px; }
.product-detail__media img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.product-detail h1 { font-size: clamp(28px, 3.4vw, 46px); margin-bottom: 10px; }
.product-detail .sku { color: var(--green); font-weight: 700; font-size: 24px; display: block; margin-bottom: 14px; }
.product-detail .prose { color: #d8d8d8; }
.product-detail .prose :where(p, ul, ol) { margin-bottom: 1em; }

/* gallery: the white plate holds the main image; thumbnails sit under it */
.gallery { display: grid; gap: 18px; }
.gallery__main { display: block; cursor: zoom-in; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.gallery__thumbs a {
  display: block; width: 72px; height: 72px; padding: 6px; border-radius: 14px;
  border: 2px solid #e4e4e4; background: #fff;
}
.gallery__thumbs a[aria-current="true"], .gallery__thumbs a:hover { border-color: var(--green); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0,0,0,.86); }
.lightbox img { display: block; max-width: 94vw; max-height: 88vh; object-fit: contain; background: #fff; border-radius: 18px; }
.lightbox button {
  position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: #111; font-size: 26px; line-height: 1; cursor: pointer;
}

.detail-heading { font-size: 20px; margin: 30px 0 12px; }
.feature-list { margin: 0 0 8px; padding-left: 1.2em; color: #d8d8d8; }
.feature-list li { margin-bottom: 6px; }
.feature-list li::marker { color: var(--green); }

.doc-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.doc-list a {
  display: flex; align-items: center; gap: 12px; background: var(--dark);
  border: 1px solid #2f2c2c; border-radius: 16px; padding: 12px 16px;
}
.doc-list a:hover { border-color: var(--green); color: #fff; }
.doc-list svg { width: 22px; height: 22px; flex: none; color: var(--green); }
.doc-list span { flex: 1; }
.doc-list small { color: var(--muted); font-size: 13px; letter-spacing: .5px; }

.prop65 {
  display: flex; align-items: flex-start; gap: 10px; margin: 26px 0 18px;
  font-size: 14px; color: #c9c9c9;
}
.prop65 svg { width: 22px; height: 20px; flex: none; margin-top: 1px; }
.prop65 a { text-decoration: underline; }

.spec-table { width: 100%; border-collapse: collapse; margin: 26px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid #2b2929; font-size: 16px; }
.spec-table th { color: var(--muted); font-weight: 400; width: 40%; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.chip {
  background: var(--dark); border: 1px solid #2f2c2c; border-radius: 30px;
  padding: 8px 18px; font-size: 15px;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.chip__count { color: var(--muted); font-size: 13px; margin-left: 4px; }
.chip.is-active .chip__count { color: rgba(255,255,255,.8); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 28px; }
.filter-bar__label { color: var(--muted); font-size: 15px; }
.filter-bar ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.filter-bar .chip { display: inline-block; }

.result-count { color: var(--muted); font-size: 16px; margin-bottom: 26px; }

.cta-panel {
  background: var(--dark); border-radius: 28px; padding: 28px 30px; margin-top: 10px;
}
.cta-panel p { color: #c3c3c3; font-size: 16px; }

.empty { color: var(--muted); padding: 40px 0; font-size: 18px; }

/* ---------------------------------------------------------- responsive --- */
@media (max-width: 1200px) {
  .rail-scroll > li { flex-basis: calc((100% - 2 * 26px) / 3); max-width: calc((100% - 2 * 26px) / 3); }
  .blob { border-radius: 0 180px 180px 0; padding: 44px 84px 44px var(--gutter); }
  .hero__media { min-height: 460px; }
}

@media (max-width: 1024px) {
  .section { padding: 56px 0 60px; }
  .nav {
    display: none; position: absolute; right: var(--gutter); top: 100%;
    min-width: 260px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark); padding: 10px 0; box-shadow: 0 18px 40px rgba(0,0,0,.55);
  }
  .nav.is-open { display: flex; }
  .nav > li > a { padding: 11px 22px; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: #141313; min-width: 0;
  }
  .nav__sub a { padding-left: 38px; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .about-row { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .contact-card { border-radius: 60px; }
  .contact-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .hero__grid { grid-template-columns: 1fr; }
  .blob {
    border-radius: 0 0 90px 90px; margin-right: 0;
    padding: 34px var(--gutter) 38px;
  }
  .hero__cta { padding-left: var(--gutter); margin-top: 26px; }
  .hero__media { min-height: 230px; order: -1; }   /* image first, copy below */
  /* Full-bleed: the photo's left edge is a transparent curve, so crop to the
     opaque right part — the last two panels, x 1056–1920 of 1920×799. */
  .hero__media--wide { min-height: 0; }
  .hero__media--wide img { height: auto; aspect-ratio: 864 / 799; }
  .hero__media > *:first-child img,
  .hero__media--single > *:first-child img { border-radius: 0; }
  .rail { padding-left: 20px; }
  .rail a { margin-bottom: 24px; }
  .rail-scroll > li { flex-basis: 68%; max-width: 68%; }
  .cat-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-row img { border-radius: 0 90px 90px 90px; }
  .contact-card { border-radius: 36px; padding: 30px 22px 34px; }
  .contact-meta { grid-template-columns: 1fr; gap: 18px; }
  .section-title { margin-bottom: 34px; }
  .footer__inner { flex-direction: column; }
  .colophon .wrap { flex-direction: column; }
  .logo-bar ul { justify-content: center; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
  }
}

@media print {
  .header, .footer, .colophon, .logo-bar, .hero__media { display: none; }
  body { background: #fff; color: #000; }
}

/* ------------------------------------------------- service-center finder --- */
.finder { display: grid; gap: 22px; margin-bottom: 30px; }
.finder__line { max-width: 420px; }
.finder__ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.finder fieldset {
  border: 1px solid #2f2c2c; border-radius: 22px; background: var(--dark);
  padding: 20px 22px 22px; margin: 0; display: grid; gap: 14px; align-content: start;
}
.finder legend { font-weight: 700; font-size: 18px; padding: 0 6px; }
.finder fieldset .form-row { grid-template-columns: 1fr auto; gap: 12px; }
.finder .btn { justify-self: start; }
.finder__results { margin-top: 10px; }
.center-list {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px;
}
.center-card {
  background: var(--dark); border: 1px solid #2f2c2c; border-radius: 22px;
  padding: 20px 22px; display: grid; gap: 8px; align-content: start;
}
.center-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.center-card h3 { font-size: 18px; margin: 0; }
.center-card__miles { color: var(--green); font-weight: 700; white-space: nowrap; font-size: 15px; }
.center-card p { margin: 0; color: #d8d8d8; }
.center-card dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 4px 0 0; font-size: 15px; }
.center-card dt { color: var(--muted); }
.center-card dd { margin: 0; }
.center-card__lines { font-size: 13px; color: var(--muted) !important; }
.center-card__map { font-size: 14px; color: var(--green); justify-self: start; }
.finder__credit { color: var(--muted); font-size: 13px; margin-top: 34px; }
@media (max-width: 560px) {
  .finder fieldset .form-row { grid-template-columns: 1fr; }
}

/* product registration */
.form-help { color: #c9c9c9; margin: 0 0 18px; }
.form-hint { color: var(--muted); font-size: 14px; margin: -8px 0 0; }
.form-check { display: flex; gap: 10px; align-items: center; color: #d8d8d8; }
.form-check input { width: 18px; height: 18px; accent-color: var(--green); }
.form-field input[type="file"] { padding: 10px; }
.form-field input[type="date"] { color-scheme: dark; }
.lead-text { font-size: 19px; color: #d8d8d8; }
.narrow { max-width: 900px; }
