/* Bong 69 - site styles.
   Colors are the daisyUI "night" theme used by the HUB75 Bridge web pages,
   the DDP Streamer and the navy PCBs, so the whole product line matches. */
:root {
  --base-100: oklch(20.768% .039 265.754);   /* page navy */
  --base-200: oklch(19.314% .037 265.754);
  --base-300: oklch(17.86% .034 265.754);
  --content: oklch(84.153% .007 265.754);
  --muted: oklch(70% .02 265);
  --primary: oklch(75.351% .138 232.661);    /* light blue */
  --primary-content: oklch(15.07% .027 232.661);
  --secondary: oklch(68.011% .158 276.934);
  --accent: oklch(72.36% .176 350.048);
  --neutral: oklch(27.949% .036 260.03);     /* card navy */
  --success: oklch(78.452% .132 181.911);
  --warning: oklch(83.242% .139 82.95);
  --line: oklch(32% .035 262);
  --radius-box: 1rem;
  --radius-field: .5rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base-100); color: var(--content); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: #fff; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section.alt { background: var(--base-200); border-block: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--content); max-width: 60ch; }
.muted { color: var(--muted); }

/* header */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in oklch, var(--base-300) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; }
.brand img { width: 40px; height: auto; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--content); padding: 6px 12px; border-radius: var(--radius-field); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { background: var(--neutral); color: #fff; text-decoration: none; }
.nav a.active { color: var(--primary); }

/* buttons, badges, cards */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius-field);
  font-weight: 700; border: 1px solid var(--line); background: var(--neutral); color: #fff; }
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.btn.primary { background: var(--primary); color: var(--primary-content); border-color: var(--primary); }
.btn.ghost { background: transparent; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2em; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700;
  background: color-mix(in oklch, var(--success) 18%, transparent); color: var(--success); }
.badge.blue { background: color-mix(in oklch, var(--primary) 18%, transparent); color: var(--primary); }
.card { background: var(--neutral); border: 1px solid var(--line); border-radius: var(--radius-box); padding: 22px; min-width: 0; }
.card.img { padding: 0; overflow: hidden; }
.card.img .body { padding: 18px 20px 20px; }
.card h3 { margin-top: .2em; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 24px; } }
a.herolink { color: inherit; text-decoration: none; display: block; }
a.herolink:hover { color: var(--primary); }
a.herolink img { transition: transform .2s; }
a.herolink:hover img { transform: translateY(-3px); }
.g3 > .video { aspect-ratio: 4 / 3; box-shadow: 0 20px 50px -20px #000; }   /* video tile in a photo row */
.photo { border-radius: var(--radius-box); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px #000; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding-left: 1.6em; position: relative; margin: .35em 0; }
ul.ticks li::before { content: ""; position: absolute; left: .2em; top: .55em; width: .6em; height: .35em;
  border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }

/* profile links */
.ico { width: 20px; height: 20px; flex: none; fill: currentColor; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
  background: var(--neutral); border: 1px solid var(--line); color: var(--content); font-weight: 600; font-size: .92rem; }
.social a:hover { color: #fff; border-color: var(--primary); text-decoration: none; }
.social.icons a { padding: 9px; }
.linkcard { display: flex; gap: 14px; align-items: flex-start; color: var(--content); }
.linkcard:hover { text-decoration: none; border-color: var(--primary); }
.linkcard .ico { width: 28px; height: 28px; color: #fff; }
.linkcard b { color: #fff; display: block; }
.todo { outline: 2px dashed var(--warning); outline-offset: 2px; }

/* video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-box); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--base-300); padding: 32px 0; margin-top: 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer small { color: var(--muted); }

/* mock-up label (prototype only) */
.mocklabel { position: fixed; right: 12px; bottom: 12px; z-index: 50; background: var(--warning); color: #000;
  font-weight: 800; padding: 6px 12px; border-radius: 8px; font-size: .85rem; }

/* click-to-play video thumbnail (opens YouTube) */
a.video { display: block; color: #fff; }
a.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
a.video:hover img { opacity: 1; }
a.video .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px;
  border-radius: 12px; background: #f00; box-shadow: 0 6px 20px #0008; }
a.video .play::after { content: ""; position: absolute; left: 27px; top: 14px; border-left: 18px solid #fff;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
a.video .vtitle { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-weight: 700;
  background: linear-gradient(transparent, #000c); font-size: .95rem; }

/* page header band on inner pages */
.section.pagehead { padding: 44px 0 8px; }
.section.pagehead + .section { padding-top: 28px; }

/* content written in Markdown */
.card > p:last-child, .card ul:last-child { margin-bottom: 0; }
.card img { border-radius: var(--radius-field); margin-bottom: 14px; }
.split img { border-radius: var(--radius-box); border: 1px solid var(--line); }
.section h2 + p { color: var(--muted); }
.section h2:not(:first-child) { margin-top: 1.6em; }
code { background: var(--base-300); padding: 1px 6px; border-radius: 6px; }

/* contact form */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: #fff; font-size: .95rem; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--content); background: var(--base-100); border: 1px solid var(--line);
  border-radius: var(--radius-field); padding: 10px 12px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form textarea { resize: vertical; }
.form button[disabled] { opacity: .5; cursor: wait; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnote { font-size: .85rem; margin: 0; }
.formmsg:empty { display: none; }
.formmsg { padding: 12px 14px; border-radius: var(--radius-field); font-weight: 600; }
.formmsg.ok { background: color-mix(in oklch, var(--success) 18%, transparent); color: var(--success); }
.formmsg.err { background: color-mix(in oklch, oklch(71.785% .17 13.118) 18%, transparent); color: oklch(80% .14 13); }

/* a video on its own in a section: keep it a comfortable size */
.wrap > a.video { max-width: 720px; }
/* form next to notes: line both up at the top */
.split:has(form) { align-items: start; }

/* gear list with little product photos */
ul.gear { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.gear li { display: flex; align-items: center; gap: 14px; }
ul.gear li > img, ul.gear li > span:first-child { flex: none; width: 76px; height: 56px; object-fit: contain;
  background: #fff; border-radius: 8px; padding: 4px; margin: 0; border: 0; }
ul.gear li > span:first-child { background: transparent; }

/* drop-down menu (Products) */
.dd { position: relative; }
.dd > a { display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .7; }
.ddmenu { display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 240px; padding: 8px;
  background: var(--base-300); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -12px #000; }
.dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }   /* hover bridge */
.dd:hover .ddmenu, .dd:focus-within .ddmenu { display: grid; gap: 2px; margin-top: 6px; }
.ddmenu a { white-space: nowrap; }

/* product cards */
.g4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card.product { color: inherit; display: flex; flex-direction: column; }
.card.product:hover { text-decoration: none; border-color: var(--primary); }
.card.product img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin: 0; border-radius: 0; }
.card.product h3 { margin: .5em 0 .3em; }
.card.product p { margin: 0; }
