/* White Racker — site styles.
   Matches the look of the original WordPress (Bridge theme) site. */
:root {
  --green: #003300;      /* header + footer */
  --bg: #f6f6f6;         /* page background */
  --text: #141414;       /* body copy */
  --head: #3f3f3f;       /* headings */
  --muted: #6b6b6b;
  --rule: #808080;       /* hr */
  --tile: #565656;       /* catalog tile label */
  --line: #d9d9d9;       /* form borders, table lines */
  --link: #003300;
  --wrap: 1100px;
  /* Fonts per brand/brand-book.html: Libre Franklin for text, IBM Plex Mono for labels and part numbers */
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.625 var(--sans);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: #000; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { background: var(--green); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}
.logo { display: flex; align-items: center; gap: 20px; min-width: 0; text-decoration: none; }
.logo img { display: block; flex: none; height: 72px; width: auto; }
.tagline { max-width: 330px; color: #f5f0e6; font-size: 14px; line-height: 1.45; letter-spacing: .3px; }
.nav { display: flex; gap: 30px; flex-shrink: 0; }
.nav a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: #c9d9c9; }

/* ---------- Main ---------- */
main { flex: 1; padding: 30px 0 70px; }

h2, h3, h4 { color: var(--head); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
h2 { font-size: 24px; line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: 17px; line-height: 1.4; margin: 0 0 12px; }
h2.tight { margin: 28px 0 0; }
h3.lead { margin: 36px 0 24px; }
.center { text-align: center; }
p { margin: 0 0 26px; }
ul { margin: 0 0 26px; padding-left: 23px; }
hr { border: 0; border-top: 2px solid var(--rule); margin: 0 0 20px; }

/* Homepage */
.eyebrow { display: block; margin: 0 0 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.more { display: inline-block; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn { display: inline-block; padding: 11px 20px; background: var(--green); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: #001a00; color: #fff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0; }
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin: 14px 0 40px; }
.big-h { margin: 0 0 18px; color: var(--head); font-size: 46px; font-weight: 800; line-height: 1.08; letter-spacing: 1px; text-transform: uppercase; }
.split hr { width: 80px; border-top: 3px solid var(--green); }
.split-sub { max-width: 520px; font-size: 18px; }
.split-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-photos img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.split-photos img:last-child { margin-top: 40px; }
.facts { margin-bottom: 48px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 0 20px; }
.facts-in > div { display: flex; flex-direction: column; padding: 22px 20px; border-left: 1px solid var(--line); }
.facts-in > div:first-child { padding-left: 0; border-left: 0; }
.facts b { color: var(--green); font-size: 22px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.facts span { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.home-section { margin-bottom: 48px; }
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 4px; }
.lines h3 { margin-bottom: 12px; }
.line-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; margin-bottom: 14px; }
.line-row img { width: 150px; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.line-row p { margin: 0; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cap-grid > div { padding: 22px 22px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cap-k { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.cap-grid h3 { margin: 6px 0; }
.cap-grid p { margin-bottom: 16px; color: #3a3a3a; font-size: 15px; }

.video { position: relative; max-width: 560px; aspect-ratio: 16 / 9; margin: 0 0 26px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; }
.gallery img { display: block; }

/* ---------- Contact ---------- */
.contact-map { margin: 30px 0 0; }
.contact-map iframe { display: block; width: 100%; height: 380px; border: 0; background: #e5e3df; }
.contact-map figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.contact-row {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 36px;
  border-top: 2px solid var(--rule);
}
.contact-item { display: block; padding-top: 14px; color: var(--text); text-decoration: none; line-height: 1.6; }
a.contact-item:hover .contact-value { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact-label {
  display: block;
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.contact-value {
  display: block;
  font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.2;
  color: var(--green); overflow-wrap: anywhere;
}

/* ---------- Forms ---------- */
.form { max-width: 1100px; font-size: 14px; }
.form label {
  display: block; margin: 0 0 22px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.form label .req { font-size: 14px; }
.form input, .form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 7px 9px;
  font: 400 15px/1.4 var(--sans);
  color: var(--text);
  background: #fff;
  border: 1px solid #8a8a8a;
  border-radius: 2px;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.form .req-note { font-weight: 400; font-size: 14px; margin-bottom: 10px; }
.req { color: #c00; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button {
  font: 600 13px/1 var(--sans);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 2px;
  padding: 12px 26px;
  cursor: pointer;
}
.form button:hover { background: #014d01; }
.form-grid label:not(.full):not(.hp) {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  column-gap: 12px;
  margin-bottom: 12px;
}
.form-grid label:not(.full):not(.hp) input { margin-top: 0; }
.form-grid .full { margin-top: 24px; }

/* ---------- Catalog: category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 240px)); gap: 40px 32px; margin: 40px 0 0; }
.tile { display: block; text-decoration: none; background: #fff; }
.tile-img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; }
.tile-label {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 6px 8px;
  background: var(--tile); color: #fff; text-align: center; font-size: 16px; line-height: 1.6;
}
.tile:hover .tile-label { background: #3d3d3d; }

/* ---------- Catalog: listing with sidebar ---------- */
.catalog { display: grid; grid-template-columns: 300px 1fr; gap: 64px; margin-top: 40px; }
.sidebar h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.sidebar form { margin: 0 0 32px; }
.sidebar input[type="search"] {
  width: 100%; padding: 12px 16px; font: 400 15px var(--sans);
  border: 1px solid var(--line); border-radius: 3px; background: #fff;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin: 0 0 4px; line-height: 1.5; }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { text-decoration: underline; }
.sidebar a[aria-current="page"] { font-weight: 700; }
.sidebar .count { color: var(--muted); }

.catalog-title { font-size: 22px; font-weight: 600; text-align: center; text-transform: none; letter-spacing: 0; color: var(--text); margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 40px 15px; }
.card { text-decoration: none; color: var(--text); display: block; }
.card-img { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-title { display: block; font-size: 17px; line-height: 1.4; margin-top: 12px; }
.card:hover .card-title { text-decoration: underline; }
.empty { color: var(--muted); }

/* ---------- Catalog: product page ---------- */
.crumbs { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.product { max-width: 940px; margin: 0 auto; }
.product h2 { margin-bottom: 4px; }
.product-images { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 30px; }
.product-images img { display: block; max-height: 360px; width: auto; background: #fff; }
.product-desc table { border-collapse: collapse; margin: 0 0 26px; }
.product-desc td, .product-desc th { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; padding: 5px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.product-desc tr:first-child td { font-weight: 600; border-bottom: 2px solid var(--rule); }
.table-scroll { overflow-x: auto; }
.product-cta { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }

/* Part numbers in product titles (brand book: Plex Mono 500) */
.pn { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.card-title .pn { font-size: .92em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: #c9d9c9; font-size: 14px; line-height: 1.6; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #c9d9c9; text-decoration: underline; }
.site-footer p { margin: 0 0 12px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 40px; padding-bottom: 28px; }
.footer-brand img { display: block; height: 56px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 340px; }
.footer-h { color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 4px; }
.footer-base { padding-bottom: 18px; color: #9fb59f; font-size: 12px; }
.footer-base::before { content: ""; display: block; margin-bottom: 14px; border-top: 1px solid rgba(255,255,255,.15); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .logo { gap: 14px; }
  .logo img { height: 56px; }
  .tagline { font-size: 12px; max-width: 260px; }
  .nav { gap: 22px; flex-wrap: wrap; }
  .contact-row { grid-template-columns: 1fr; gap: 18px; }
  .catalog { grid-template-columns: 1fr; gap: 24px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .big-h { font-size: 32px; }
  .facts-in { grid-template-columns: 1fr 1fr; }
  .facts-in > div { padding-left: 16px; }
  .facts-in > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .lines { grid-template-columns: 1fr; gap: 32px; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .nav { gap: 6px 18px; }
  .nav a { font-size: 12px; letter-spacing: .6px; }
  h2 { font-size: 20px; }
  .split-photos img { aspect-ratio: 1; }
  .split-photos img:last-child { margin-top: 0; }
  .line-row { grid-template-columns: 110px 1fr; }
  .line-row img { width: 110px; }
  .cap-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .tile-label { font-size: 14px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .card-title { font-size: 15px; }
  .form-grid label:not(.full):not(.hp) { display: block; }
  .form-grid label:not(.full):not(.hp) input { margin-top: 6px; }
  .contact-map iframe { height: 340px; }
}
