/* =========================================================================
   Bafter Skimmers — site styles
   Brand colors come from the logo. Change them here and the whole site follows.
   ========================================================================= */
/* Fonts are self-hosted (SIL Open Font License, see /assets/fonts/OFL-LICENSE.txt): no third-party requests. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Logo colors */
  --brown-900: #442E21;   /* B */
  --brown-700: #793D01;   /* A */
  --bronze:    #815E0D;   /* F */
  --amber:     #BD7306;   /* T */
  --wheat:     #FFDD79;   /* E */
  --cream:     #E3D2B8;   /* R */
  --navy:      #16167A;   /* drip + water lines */

  /* Interface */
  --ink:       #24201D;
  --ink-soft:  #5B524A;
  --paper:     #FFFFFF;
  --sand:      #F6F1E8;
  --line:      #E4DACB;
  --link:      #16167A;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;

  --wrap: 1160px;
  --radius: 6px;
  --shadow: 0 1px 2px rgb(36 32 29 / .06), 0 8px 24px rgb(36 32 29 / .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--amber); }
h1, h2, h3, .h3 { font-family: var(--font-head); color: var(--brown-900); line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; }
h3, .h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .6em 1em; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }

/* ---- Header ------------------------------------------------------------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand img { width: 200px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.02rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brown-700); box-shadow: inset 0 -2px 0 var(--amber); }
.header-phone { font-family: var(--font-head); font-weight: 600; color: var(--navy) !important; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 24px; height: 2px; background: var(--ink); position: relative; margin: 0 auto; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after  { position: absolute; top: 7px; }

@media (max-width: 860px) {
  .header-inner { min-height: 72px; }
  .brand img { width: 150px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
              border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 8px 20px 20px; gap: 12px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .site-nav ul a { display: block; padding: 10px 0; }
}

/* ---- Buttons & links ---------------------------------------------------- */
.btn { display: inline-block; font: 600 1.02rem/1 var(--font-head); letter-spacing: .02em; text-decoration: none;
       padding: .95em 1.4em; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #0E0E57; color: #fff; }
.btn-ghost { border-color: var(--brown-900); color: var(--brown-900); }
.btn-ghost:hover { background: var(--brown-900); color: #fff; }
.btn-small { padding: .6em 1em; font-size: .92rem; background: var(--brown-900); color: #fff; }
.text-link { font-weight: 600; text-decoration: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* ---- Hero --------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--sand), var(--paper)); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { font: 600 .85rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 1em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero-media img { aspect-ratio: 4 / 3; } }

/* Water-line accent echoing the logo's three lines */
.section-title::after {
  content: ""; display: block; width: 72px; height: 10px; margin-top: .45em;
  background:
    linear-gradient(var(--navy), var(--navy)) 0 0 / 72px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) 14px 4px / 44px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) 26px 8px / 20px 2px no-repeat;
}

/* ---- Event band --------------------------------------------------------- */
.event-band { background: var(--navy); color: #fff; }
.event-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 14px; padding-bottom: 14px; }
.event-inner p { margin: 0; }
.event-note { color: #C9CBF0; }

/* ---- Sections ----------------------------------------------------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--sand); }
.page-head { background: var(--sand); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-media { align-items: center; }
.split-diagram { grid-template-columns: .85fr 1.15fr; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .section { padding: 52px 0; } }

/* ---- Cards -------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; display: block; padding: 26px 26px 52px; border: 1px solid var(--line); border-radius: var(--radius);
        text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--amber); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card-kicker { font: 600 .8rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.card h3 { margin-top: .6em; }
.card p { color: var(--ink-soft); margin: 0; }
.card-go { position: absolute; left: 26px; bottom: 18px; font-size: 1.3rem; color: var(--navy); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---- Diagram & photos --------------------------------------------------- */
.diagram { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { font-size: .92rem; color: var(--ink-soft); margin-top: 8px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-pair img, .photo-stack img, .product-photo img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.photo-stack img { aspect-ratio: 4 / 3; }
.product-photo img { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }

/* ---- Products ----------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.product-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.product-body { padding: 22px 24px 26px; }
.product-body h2 { font-size: 1.5rem; }
.product-body h2 a { color: inherit; text-decoration: none; }
.model { font: 600 .82rem/1 var(--font-head); letter-spacing: .1em; color: var(--ink-soft); margin-bottom: .6em; }
.crumbs { font-size: .92rem; margin-bottom: 1em; color: var(--ink-soft); }
.checks { list-style: none; padding: 0; margin: 0 0 1.8em; }
.checks li { padding-left: 1.6em; position: relative; margin: .35em 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7em; height: .38em;
                     border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.spec-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 45%; font-weight: 500; color: var(--ink-soft); }
.spec-table td { font-weight: 600; }
.spec-text { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 18px 20px; }
.spec-text p { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9rem; line-height: 1.55; }

/* ---- Literature --------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 24px; margin-bottom: 20px; }
.filters label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.filters select { font: inherit; color: var(--ink); padding: .55em 2.2em .55em .8em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-width: 220px; }
.filter-count { margin: 0 0 .6em; color: var(--ink-soft); font-size: .92rem; }
.doc-list { list-style: none; padding: 0; margin: 0 0 1.5em; border-top: 1px solid var(--line); }
.doc { border-bottom: 1px solid var(--line); }
.doc[hidden] { display: none; }
.doc-link { display: flex; gap: 16px; align-items: center; padding: 16px 6px; text-decoration: none; color: var(--ink); }
.doc-link:hover { background: var(--sand); color: var(--ink); }
.doc-badge { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 4px;
             background: var(--brown-900); color: #fff; font: 700 .8rem/1 var(--font-head); letter-spacing: .06em; }
.doc-missing .doc-badge { background: var(--cream); color: var(--brown-900); }
.doc-title { display: block; font-weight: 600; }
.doc-meta { display: block; font-size: .9rem; color: var(--ink-soft); }

/* ---- Contact ------------------------------------------------------------ */
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0 0 1.8em; }
.contact-list dt { font-weight: 600; color: var(--ink-soft); }
.contact-list dd { margin: 0; }
.dist-list { list-style: none; padding: 0; margin: 0; }
.dist-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }

/* ---- Prose (Markdown pages) --------------------------------------------- */
.prose ul { padding-left: 1.2em; }
.prose h2 { margin-top: 1.2em; }

/* ---- Mockup notes (turn off with "showPlaceholderNotes": false in site.json) */
.ph-note { background: #FFF6D6; border: 1px dashed #D9A400; color: #5B4500; padding: 10px 14px; border-radius: var(--radius); font-size: .92rem; max-width: 46em; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: #1B1712; color: #D9D0C3; padding: 56px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 220px; margin-bottom: 14px; }
.footer-h { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wheat); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-legal { border-top: 1px solid #3A322A; margin-top: 40px; padding-top: 18px; font-size: .88rem; color: #A89C8C; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .site-footer, .event-band, .ph-note { display: none; } }

/* ---- Product media, sizing aid, flow tables ------------------------------ */
.fit-contain img { object-fit: contain !important; background: #fff; }
.product-photo img { aspect-ratio: 4 / 3; }
.hero-media img { aspect-ratio: 4 / 3; }
.hero-caption { font-size: .9rem; color: var(--ink-soft); margin: 10px 0 0; }
.sizer { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 24px; background: var(--paper); border: 1px solid var(--line);
         border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 20px; }
.sizer[hidden] { display: none; }
.sizer-title { flex-basis: 100%; margin: 0; font: 600 1.05rem/1.2 var(--font-head); color: var(--brown-900); }
.sizer label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.sizer input, .sizer select { font: inherit; color: var(--ink); padding: .55em .8em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-width: 200px; }
.sizer-result { flex: 1 1 280px; margin: 0; color: var(--ink-soft); font-size: .95rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.table-scroll:focus-visible { outline-offset: 0; }
.flow-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.flow-table th, .flow-table td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.flow-table thead th { background: var(--brown-900); color: #fff; font-weight: 600; position: sticky; top: 0; }
.flow-table th[scope="row"], .flow-table thead th:first-child { text-align: left; }
.flow-table .group-row th { text-align: left; background: var(--sand); color: var(--brown-900); font: 700 1rem/1.2 var(--font-head); padding-top: 12px; }
.flow-table tr.meets td, .flow-table tr.meets th[scope="row"] { background: #EEF0FB; }
.flow-table tr.best th[scope="row"] { box-shadow: inset 4px 0 0 var(--navy); font-weight: 700; }
.flow-table tr.best td { font-weight: 600; }
