/*
Theme Name:   Shortline AV
Theme URI:    https://shortlineav.com
Description:  Child theme of Twenty Twenty-Five for Shortline AV. Mounting and organization hardware for houses of worship and production venues. A Short Family Farms company.
Author:       Short Family Farms
Template:     twentytwentyfive
Version:      1.0
Text Domain:  shortline-child
*/

/* ==========================================================================
   FONTS
   Drop the .woff2 files into /fonts/ (see README).
   Until then functions.php loads them from Google Fonts as a fallback.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   TOKENS
   ========================================================================== */

:root {
  --sl-blackout:   #0B0C0E;
  --sl-console:    #23262B;
  --sl-console-2:  #16181B;
  --sl-cyan:       #00B4CC;
  --sl-cyan-dim:   #018799;
  --sl-slate:      #656C76;
  --sl-slate-lt:   #8A929B;
  --sl-white:      #EDEFF2;
  --sl-cool:       #F7F9FA;

  --sl-font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sl-font-body:    'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sl-font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --sl-wrap:  1180px;
  --sl-gut:   clamp(20px, 5vw, 48px);
  --sl-rail:  1px solid rgba(237, 239, 242, 0.10);
}

/* ==========================================================================
   BASE  (scoped so theme.json global styles cannot win the tie)
   ========================================================================== */

body.shortline-theme {
  margin: 0;
  background: var(--sl-blackout);
  color: var(--sl-white);
  font-family: var(--sl-font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.shortline-theme * { box-sizing: border-box; }

body.shortline-theme .sl-main { display: block; }

body.shortline-theme a { color: var(--sl-cyan); text-decoration: none; }
body.shortline-theme a:hover { text-decoration: underline; }

body.shortline-theme img,
body.shortline-theme svg { max-width: 100%; height: auto; display: block; }

body.shortline-theme :focus-visible {
  outline: 2px solid var(--sl-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.sl-wrap {
  max-width: var(--sl-wrap);
  margin: 0 auto;
  padding-inline: var(--sl-gut);
}

.sl-skip {
  position: absolute;
  left: -9999px;
}
.sl-skip:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  background: var(--sl-cyan);
  color: var(--sl-blackout);
  padding: 10px 16px;
  font-family: var(--sl-font-mono);
  font-size: 13px;
}

/* Shared type devices ----------------------------------------------------- */

body.shortline-theme .sl-eyebrow {
  font-family: var(--sl-font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sl-slate-lt);
  margin: 0 0 20px;
}

body.shortline-theme .sl-eyebrow .sl-tick { color: var(--sl-cyan); }

body.shortline-theme .sl-h2 {
  font-family: var(--sl-font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--sl-white);
  margin: 0 0 16px;
}

body.shortline-theme .sl-sub {
  font-size: 17px;
  color: var(--sl-slate-lt);
  max-width: 62ch;
  margin: 0 0 40px;
}

body.shortline-theme .sl-section {
  padding-block: clamp(64px, 9vw, 110px);
  border-top: var(--sl-rail);
}

/* Buttons ----------------------------------------------------------------- */

body.shortline-theme .sl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sl-font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
body.shortline-theme .sl-btn:hover { text-decoration: none; }

body.shortline-theme .sl-btn-primary {
  background: var(--sl-cyan);
  color: var(--sl-blackout);
}
body.shortline-theme .sl-btn-primary:hover { background: #22C9E0; }

body.shortline-theme .sl-btn-ghost {
  background: transparent;
  color: var(--sl-white);
  border-color: rgba(237, 239, 242, 0.22);
}
body.shortline-theme .sl-btn-ghost:hover {
  border-color: var(--sl-cyan);
  color: var(--sl-cyan);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

body.shortline-theme .sl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: var(--sl-rail);
}

/* keep the admin bar from covering the sticky header */
body.shortline-theme.admin-bar .sl-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.shortline-theme.admin-bar .sl-header { top: 46px; }
}

body.shortline-theme .sl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

body.shortline-theme .sl-logo img { height: 34px; width: auto; }

body.shortline-theme .sl-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.shortline-theme .sl-nav a {
  color: var(--sl-white);
  font-size: 15px;
  font-weight: 400;
}
body.shortline-theme .sl-nav a:hover { color: var(--sl-cyan); text-decoration: none; }

@media (max-width: 860px) {
  body.shortline-theme .sl-nav { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

body.shortline-theme .sl-hero {
  position: relative;
  padding-block: clamp(72px, 12vw, 140px) clamp(56px, 8vw, 96px);
  overflow: hidden;
}

/* the receding-lines motif, echoing the mark */
body.shortline-theme .sl-hero-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

body.shortline-theme .sl-h1 {
  font-family: var(--sl-font-display);
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.022em;
  color: var(--sl-white);
  margin: 0 0 26px;
  max-width: 17ch;
  position: relative;
}

body.shortline-theme .sl-h1 em {
  font-style: normal;
  color: var(--sl-cyan);
}

body.shortline-theme .sl-lede {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
  color: var(--sl-slate-lt);
  max-width: 56ch;
  margin: 0 0 38px;
  position: relative;
}

body.shortline-theme .sl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
}

/* spec strip ------------------------------------------------------------- */

body.shortline-theme .sl-spec-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(237, 239, 242, 0.10);
  border-block: var(--sl-rail);
  list-style: none;
  margin: clamp(56px, 8vw, 92px) 0 0;
  padding: 0;
}

body.shortline-theme .sl-spec-strip li {
  background: var(--sl-blackout);
  padding: 22px 24px;
}

body.shortline-theme .sl-spec-strip .sl-spec-k {
  display: block;
  font-family: var(--sl-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sl-slate);
  margin-bottom: 6px;
}

body.shortline-theme .sl-spec-strip .sl-spec-v {
  display: block;
  font-family: var(--sl-font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--sl-white);
}

/* ==========================================================================
   COMPATIBILITY FINDER
   ========================================================================== */

body.shortline-theme .sl-finder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 14px;
}

body.shortline-theme .sl-device {
  display: block;
  background: var(--sl-console-2);
  border: 1px solid rgba(237, 239, 242, 0.09);
  border-radius: 10px;
  padding: 22px 22px 20px;
  color: var(--sl-white);
  transition: border-color .15s ease, background .15s ease;
}
body.shortline-theme .sl-device:hover {
  border-color: var(--sl-cyan);
  background: var(--sl-console);
  text-decoration: none;
}

body.shortline-theme .sl-device-brand {
  font-family: var(--sl-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sl-cyan);
  margin: 0 0 10px;
}

body.shortline-theme .sl-device-name {
  font-family: var(--sl-font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--sl-white);
}

body.shortline-theme .sl-device-meta {
  font-family: var(--sl-font-mono);
  font-size: 12px;
  color: var(--sl-slate);
  margin: 0;
}

body.shortline-theme .sl-device-request {
  border-style: dashed;
  border-color: rgba(237, 239, 242, 0.20);
  background: transparent;
}

/* ==========================================================================
   CATEGORIES
   ========================================================================== */

body.shortline-theme .sl-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(237, 239, 242, 0.10);
  border: var(--sl-rail);
  border-radius: 10px;
  overflow: hidden;
}

body.shortline-theme .sl-cat {
  background: var(--sl-blackout);
  padding: 34px 30px 32px;
  transition: background .15s ease;
}
body.shortline-theme .sl-cat:hover { background: var(--sl-console-2); text-decoration: none; }

body.shortline-theme .sl-cat-code {
  font-family: var(--sl-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sl-cyan);
  margin: 0 0 16px;
}

body.shortline-theme .sl-cat h3 {
  font-family: var(--sl-font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  color: var(--sl-white);
  margin: 0 0 10px;
}

body.shortline-theme .sl-cat p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--sl-slate-lt);
  margin: 0;
}

/* ==========================================================================
   THE STANDARD
   ========================================================================== */

body.shortline-theme .sl-standard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}

body.shortline-theme .sl-standard-item h3 {
  font-family: var(--sl-font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  color: var(--sl-white);
  margin: 0 0 12px;
  padding-top: 20px;
  border-top: 2px solid var(--sl-cyan);
}

body.shortline-theme .sl-standard-item p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--sl-slate-lt);
  margin: 0;
}

/* ==========================================================================
   CLOSING CTA
   ========================================================================== */

body.shortline-theme .sl-close {
  text-align: center;
  padding-block: clamp(72px, 10vw, 120px);
  border-top: var(--sl-rail);
}

body.shortline-theme .sl-close .sl-h2 { margin-inline: auto; max-width: 20ch; }
body.shortline-theme .sl-close .sl-sub { margin-inline: auto; text-align: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

body.shortline-theme .sl-footer {
  background: var(--sl-console-2);
  border-top: var(--sl-rail);
  padding-block: clamp(48px, 7vw, 76px) 32px;
}

body.shortline-theme .sl-footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  padding-bottom: 44px;
}

body.shortline-theme .sl-footer-brand img { height: 30px; width: auto; margin-bottom: 18px; }

body.shortline-theme .sl-footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sl-slate);
  max-width: 34ch;
  margin: 0;
}

body.shortline-theme .sl-footer-col h4 {
  font-family: var(--sl-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sl-slate);
  margin: 0 0 16px;
}

body.shortline-theme .sl-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.shortline-theme .sl-footer-col li { margin-bottom: 10px; }
body.shortline-theme .sl-footer-col a {
  color: var(--sl-white);
  font-size: 14px;
}
body.shortline-theme .sl-footer-col a:hover { color: var(--sl-cyan); text-decoration: none; }

body.shortline-theme .sl-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  border-top: var(--sl-rail);
}

body.shortline-theme .sl-footer-bottom p {
  font-family: var(--sl-font-mono);
  font-size: 12px;
  color: var(--sl-slate);
  margin: 0;
}

/* the SFF parent-company line — footer only, deliberately quiet */
body.shortline-theme .sl-parent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sl-font-mono);
  font-size: 12px;
  color: var(--sl-slate);
}
body.shortline-theme .sl-parent:hover { color: var(--sl-white); text-decoration: none; }
body.shortline-theme .sl-parent img { height: 22px; width: auto; opacity: .75; }

/* ==========================================================================
   MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  body.shortline-theme * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
