/* SEMA 2026 new products — built from the Figma "SEMA Landing Page" template
   (file V8KJMSx8h69RVU60WxJy8C). Tokens below mirror the Figma variables. */

@font-face { font-family: "Saans"; src: url("fonts/SaansMedium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Saans"; src: url("fonts/SaansSemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --blue: #003399;          /* Vibrant Blue/100% */
  --blue-30: #00234c;       /* Vibrant Blue/30% */
  --blue-15: #001226;       /* Vibrant Blue/15% */
  --titanium: #f3f4f7;      /* Titanium White */
  --black: #0a0a0a;         /* Black/100% */
  --ink: #262626;           /* Black/15% */
  --ink-2: #3f3f3f;         /* Black/25% */
  --ink-3: #595959;         /* Black/35% */
  --panel: #e8e9ec;         /* rgba(0,0,0,.05) on titanium */

  /* Saans Regular (380) isn't in the brand font files, so body copy uses Geist. */
  --font-body: "Geist", "Saans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-title: "Saans", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label: "Barlow Semi Condensed", "Arial Narrow", sans-serif;

  --gutter: 16px;
  --nav-h: 96px;
}
@media (min-width: 900px) { :root { --gutter: 50px; --nav-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--titanium); color: var(--ink);
  font: 400 16px/20px var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: 96px; /* room for the sticky bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.h2 { font: 400 32px/38px var(--font-body); color: var(--black); margin: 0; letter-spacing: -0.01em; }
@media (min-width: 900px) { .h2 { font-size: 47px; line-height: 54px; } }

.kicker {
  font: 400 13px/16px var(--font-label); text-transform: uppercase; letter-spacing: .08em; color: var(--blue);
}

/* ---------- Nav (template "Nav Header") ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--black); color: var(--titanium); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 var(--gutter); max-width: 1280px; margin: 0 auto; }
.nav__event { font: 400 14px/24px var(--font-label); letter-spacing: .08em; }
.nav__tabs {
  display: flex; gap: 24px; overflow-x: auto; padding: 0 var(--gutter); height: 40px; align-items: center;
  scrollbar-width: none; border-top: 1px solid rgba(255,255,255,.12);
}
.nav__tabs::-webkit-scrollbar { display: none; }
.nav__tabs a {
  font: 400 15px/24px var(--font-label); text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: rgba(243,244,247,.7); padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav__tabs a:hover, .nav__tabs a[aria-current="true"] { color: var(--titanium); border-bottom-color: var(--titanium); }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 48px; }
  .nav__bar { padding: 0; margin: 0; height: auto; gap: 16px; justify-content: flex-start; }
  .nav__event { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.3); }
  .nav__tabs { border: 0; height: auto; padding: 0; gap: 32px; }
  .nav__tabs a { font-size: 16px; }
}

/* ---------- Intro (template "Compatible components" cards) ---------- */
.intro { padding-top: 48px; padding-bottom: 24px; }
.intro .h2 { margin-top: 12px; }
.lede { margin-top: 16px; max-width: 580px; color: var(--ink-2); }
.cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(5, 1fr); gap: 20px; } .intro { padding-top: 80px; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 12px;
  background: #fff; text-decoration: none; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s cubic-bezier(.16,1,.3,1);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(10,10,15,.12); }
.card img { height: 120px; width: 100%; object-fit: contain; margin-top: 8px; }
.card__name { color: var(--blue); padding-bottom: 4px; border-bottom: 1px solid var(--blue); margin-top: auto; }
.tag {
  align-self: flex-start; background: var(--blue); color: #fff; padding: 3px 6px 2px;
  font: 400 11px/12px var(--font-label); text-transform: uppercase; letter-spacing: .04em;
}
.cards li:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .cards li:last-child { grid-column: auto; } }

/* ---------- Product hero (template "Hero") ---------- */
.product { border-top: 1px solid #dbdce0; margin-top: 48px; }
.product:first-of-type { margin-top: 24px; }
.hero { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 580px minmax(0, 520px); gap: 20px 60px; padding-top: 80px; padding-bottom: 80px; }
}
/* On phones the name and pitch come first, so a QR scan lands on the product name. */
.gallery { display: flex; flex-direction: column; gap: 12px; order: 2; }
@media (min-width: 900px) { .gallery { order: 0; } }
@media (min-width: 900px) {
  .gallery:has(.gallery__thumbs) { flex-direction: row-reverse; }
  .gallery:has(.gallery__thumbs) .gallery__main { flex: 1 1 auto; }
  .gallery__main { aspect-ratio: 1 / 1; }
}
.gallery__main { flex: none; min-width: 0; background: #fff; aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gallery__main img { max-height: min(62vw, 360px); width: auto; object-fit: contain; }
@media (min-width: 900px) { .gallery__main img { max-height: 400px; } }
.gallery__thumbs { display: flex; gap: 12px; }
@media (min-width: 900px) { .gallery__thumbs { flex-direction: column; width: 112px; } }
.gallery__thumbs button {
  width: 80px; height: 80px; padding: 8px; background: #fff; border: 1px solid transparent; cursor: pointer;
}
@media (min-width: 900px) { .gallery__thumbs button { width: 112px; height: 112px; } }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--blue); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero__title { font: 600 24px/32px var(--font-title); color: #000; margin: -8px 0 0; }
@media (min-width: 900px) { .hero__title { font-size: 27px; line-height: 41px; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 18px 32px; border-radius: 2px;
  background: var(--blue); border: 1px solid var(--blue); color: var(--titanium); text-decoration: none;
  font: 600 14px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  transition: background .15s cubic-bezier(.16,1,.3,1);
}
.btn img { transition: transform .15s cubic-bezier(.16,1,.3,1); }
.btn:hover { background: var(--blue-30); border-color: var(--blue-30); color: var(--titanium); }
.btn:hover img { transform: translateX(3px); }
.btn--dark { background: var(--blue-15); border-color: var(--blue-15); }
.btn--dark:hover { background: var(--black); border-color: var(--black); }

/* ---------- What makes it different (template "Enhanced design") ---------- */
.features { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 40px; }
@media (min-width: 900px) { .features { grid-template-columns: 580px 1fr; gap: 20px; padding-top: 40px; padding-bottom: 80px; } }
.features__head { display: flex; flex-direction: column; gap: 24px; max-width: 580px; }
.features__head p { color: var(--ink-2); }
.features__body { display: grid; gap: 20px; color: var(--ink-2); }
@media (min-width: 600px) { .features__body { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }
.features__body p { padding-right: 20px; }
.features__body strong { color: var(--black); }

/* ---------- Specs (template "Ready to take your build beyond?") ---------- */
.specs { display: grid; gap: 24px; padding-bottom: 40px; }
@media (min-width: 900px) { .specs { grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-bottom: 80px; } }
.specs__fit { display: flex; flex-direction: column; gap: 20px; }
.specs__fit ul { margin: 0; padding-left: 20px; color: var(--ink-3); display: grid; gap: 8px; }
.specs__card { background: var(--panel); padding: 20px; }
@media (min-width: 900px) { .specs__card { padding: 32px; } }
.specs table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.specs th, .specs td { padding: 10px 0; border-bottom: 1px solid #000; text-align: left; vertical-align: top; }
.specs thead th { font-weight: 600; color: var(--black); }
.specs tbody th { font-weight: 600; color: var(--black); padding-right: 16px; width: 42%; }
.specs tbody td { color: var(--ink-3); }
.specs .table--3 tbody th { color: var(--blue); }
.specs .table--3 td, .specs .table--3 thead th:last-child { text-align: right; }
.specs__note { margin-top: 16px; color: var(--ink-3); font-size: 14px; }
@media (min-width: 900px) { .specs table { font-size: 16px; line-height: 24px; } }

/* ---------- Good to know (template "Tech tip") ---------- */
.tip { display: flex; flex-direction: column; gap: 20px; padding-bottom: 48px; }
@media (min-width: 900px) { .tip { gap: 24px; padding-bottom: 80px; } }
.tip__bar {
  height: 44px; display: flex; align-items: center;
  background: url("icons/tip-b.svg") left top / 81px 44px no-repeat, url("icons/tip-a.svg") left top / 73.5px 44px no-repeat, var(--blue-30);
}
.tip__bar span {
  margin-left: 90px; color: var(--titanium); text-transform: uppercase;
  font: 700 22px/41px var(--font-label);
}
@media (min-width: 900px) { .tip__bar span { font-size: 27px; } }
.tip p:not(.tip__bar) { color: var(--ink); max-width: 1180px; }

/* ---------- Team (template "Support") ---------- */
.team { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 900px) { .team { padding-top: 80px; padding-bottom: 80px; } }
.team__panel {
  position: relative; display: flex; justify-content: flex-end; padding: 200px 20px 24px; color: var(--titanium);
  background:
    linear-gradient(to bottom, rgba(0,51,153,0) 0%, var(--blue) 62%),
    url("img/team.webp") left top / 100% auto no-repeat,
    var(--blue);
}
@media (min-width: 900px) {
  .team__panel {
    padding: 40px;
    background:
      linear-gradient(to right, rgba(0,51,153,0) 28.4%, var(--blue) 57%),
      url("img/team.webp") left center / 68% auto no-repeat,
      var(--blue);
  }
}
.team__text { display: flex; flex-direction: column; gap: 24px; max-width: 539px; }
.team .h2 { color: var(--titanium); }
.team a { text-decoration: none; }
.team a:hover { text-decoration: underline; }

/* ---------- Footer (template "Footer") ---------- */
.footer { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .footer { padding-top: 80px; padding-bottom: 80px; } }
.footer__top { display: flex; justify-content: flex-end; }
.footer__site { color: var(--blue); text-decoration: none; }
.footer__site:hover { text-decoration: underline; }
.footer__logo { width: 100%; height: auto; }
.footer__legal { color: var(--ink-3); font-size: 12px; line-height: 18px; }

/* ---------- Sticky contact bar (template "Ready to source this component?") ---------- */
.sticky {
  position: fixed; z-index: 15; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter); padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--blue); color: var(--titanium);
  box-shadow: 0 4px 14px rgba(0,0,0,.35); font-size: 14px; line-height: 18px;
}
.sticky .btn { padding: 12px 16px; font-size: 13px; }
.sticky__sub { display: none; }
@media (min-width: 900px) { .sticky__sub { display: inline; } }
@media (min-width: 900px) {
  .sticky {
    left: 50%; right: auto; bottom: 16px; width: 881px; transform: translateX(-50%);
    padding: 10px 50px; font-size: 16px;
    background: rgba(0,51,153,.65); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  }
  .sticky .btn { padding: 18px 32px; font-size: 14px; }
}
