/* ==========================================================================
   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 {
  background: #fff; border-radius: 22px; padding: 6%;
  inset: 7% 11% 24%; width: 78%; height: 69%;
}
.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; }

/* ----------------------------------------------------------- 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; }

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