/* ==========================================================================
   Office eXperts, Inc. — design system
   Vendor-neutral identity: brand colors live in tokens only, so a palette
   retune (e.g. once the final logo asset arrives) is a one-block change.
   ========================================================================== */

/* ------------------------------- tokens ---------------------------------- */
:root {
  --ink: #16181d;          /* near-black text / dark surfaces */
  --ink-soft: #4a505a;     /* secondary text */
  --ink-faint: #8a919c;    /* tertiary text, placeholders */
  --paper: #ffffff;
  --paper-soft: #f4f5f7;   /* alternate section background */
  --line: #e4e7eb;
  --accent: #c8102e;       /* Office eXperts red — the "X" */
  --accent-dark: #a30d26;
  --accent-ink: #ffffff;
  --ok: #1a7f4b;
  --err: #b3261e;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(22, 24, 29, 0.05), 0 8px 24px rgba(22, 24, 29, 0.07);
  --shadow-pop: 0 12px 40px rgba(22, 24, 29, 0.16);

  --header-h: 4.25rem;
  --container: 72rem;
}

/* ------------------------------- reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ----------------------------- typography -------------------------------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { text-wrap: pretty; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.lead { font-size: 1.125rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* ------------------------------- layout ---------------------------------- */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section-soft { background: var(--paper-soft); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .muted, .section-dark .lead { color: #b9bec7; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------- buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2a2e36; }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.section-dark .btn-ghost { border-color: #3a3f48; color: var(--paper); }
.section-dark .btn-ghost:hover { border-color: var(--paper); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ------------------------------- header ---------------------------------- */
/* thin utility strip above the sticky nav — scrolls away as you go down */
.top-bar { background: var(--ink); color: #b9bec7; font-size: 0.82rem; }
.top-bar-inner {
  display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem;
  min-height: 2.25rem;
}
.top-bar-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: #cfd3da; text-decoration: none; font-weight: 600;
  padding-block: 0.35rem;
  transition: color 0.15s ease;
}
.top-bar-item:hover { color: var(--paper); }
.top-bar-phone svg, .top-bar-signin svg { color: var(--accent); }
.top-bar-signin { border-left: 1px solid #333844; padding-left: 1.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.25rem;
}
.site-logo { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.site-logo img { height: 2.6rem; width: auto; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav > a, .nav-drop > button {
  padding: 0.5rem 0.85rem;
  border: 0; background: none;
  border-radius: 999px;
  font-weight: 550; font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none; cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.site-nav > a:hover, .nav-drop > button:hover { color: var(--ink); background: var(--paper-soft); }
.site-nav > a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  min-width: 14rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  padding: 0.4rem;
  display: none;
  z-index: 60;
}
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block; padding: 0.55rem 0.8rem;
  border-radius: 7px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
}
.nav-drop-menu a:hover { background: var(--paper-soft); color: var(--ink); }
.nav-caret { transition: transform 0.15s ease; }
.nav-drop.open .nav-caret { transform: rotate(180deg); }
.header-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  border: 1.5px solid var(--line); background: none;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem; cursor: pointer;
}
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-pop);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a, .nav-drop > button { width: 100%; padding: 0.7rem 0.85rem; font-size: 1rem; }
  .nav-drop-menu { position: static; box-shadow: none; border: 0; padding-left: 1rem; min-width: 0; }
  .nav-toggle { display: block; }
  .header-cta { margin-left: 0; margin-top: 0.6rem; }
}

/* ------------------------------- footer ---------------------------------- */
.site-footer { background: var(--ink); color: #b9bec7; padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer-brand img { height: 2.6rem; margin-bottom: 1rem; }
/* footer uses a pre-recolored logo (black→white, red kept) for the dark band */
.footer-head { color: var(--paper); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-col a { display: block; padding-block: 0.28rem; font-size: 0.95rem; }
.footer-contact p { font-size: 0.95rem; padding-block: 0.18rem; }
.footer-bottom {
  border-top: 1px solid #2c313a;
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: 0.85rem; color: #8a919c;
}

/* ------------------------ cinematic scrub hero ---------------------------- */
/* Default (no JS / reduced motion): a normal one-viewport hero showing the
   poster still with the primary copy. With .scrub-on the section grows tall,
   the stage pins, and the canvas plays the showroom film as you scroll. */
.hero-cine { position: relative; background: #101216; color: var(--paper); }
.hero-cine.scrub-on { height: 340vh; }
.hero-stage { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; }
.hero-cine.scrub-on .hero-stage { position: sticky; top: 0; }
.hero-poster, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster { object-fit: cover; }
.hero-canvas { display: none; }
.hero-cine.scrub-on .hero-canvas { display: block; }
.hero-cine.scrub-on .hero-poster { display: none; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.6) 0%, rgba(16, 18, 22, 0.24) 42%, rgba(16, 18, 22, 0.74) 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  padding-inline: 1.5rem;
}
.hero-line {
  grid-area: 1 / 1;
  max-width: 50rem;
  will-change: opacity, transform;
}
.hero-cine.scrub-on .hero-line { opacity: 0; pointer-events: none; }
.hero-cine:not(.scrub-on) .hero-line ~ .hero-line { display: none; }
.hero-line h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.hero-line .lead { color: #d5d9df; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); }
.hero-scroll-hint {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.22em; text-transform: uppercase;
  color: #b9bec7;
}
.hero-scroll-hint::after {
  content: ''; width: 1px; height: 2.4rem;
  background: linear-gradient(var(--accent), transparent);
}
.accent { color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* --------------------------- logo marquee --------------------------------- */
/* full-color logos on a white band; hovering a logo turns it dark
   charcoal and pauses the marquee so it can be clicked */
@keyframes showroom-scroll { to { transform: translateX(-50%); } }
.partners { overflow: hidden; padding-block: 2.5rem; }
.partners-track {
  display: flex; align-items: center; gap: clamp(3rem, 8vw, 6rem);
  width: max-content;
  animation: showroom-scroll 30s linear infinite;
  padding-inline: 2rem;
}
.partners:hover .partners-track { animation-play-state: paused; }
.partners-track a { display: flex; }
.partners-track img { height: 2.1rem; width: auto; transition: filter 0.2s ease, opacity 0.2s ease; }
.partners-track a:hover img { filter: brightness(0); opacity: 0.8; }

/* -------------------------------- cards ----------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.icon-chip {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 9%, white);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* product tile — standardized: fixed-height media box, uniform structure
   (title → tagline → bullets → spec footer → CTA); grid rows equalize
   heights so every tile in a row matches. */
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.product-media {
  height: 13.5rem; flex: none;
  background: var(--paper-soft);
  padding: 1.25rem;
  overflow: hidden;
}
/* fill the fixed box and letterbox the photo inside it — width/height
   percentages resolve reliably here, unlike max-height on a grid item */
.product-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.product-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  background: var(--paper-soft); color: var(--ink-soft);
}
.tag-color { background: color-mix(in srgb, var(--accent) 10%, white); color: var(--accent); }
.product-body h3 { font-size: 1.06rem; }
.product-tagline { font-size: 0.9rem; color: var(--ink-soft); }
.product-bullets {
  font-size: 0.83rem; color: var(--ink-soft);
  padding-left: 1.05rem; margin: 0;
  display: grid; gap: 0.22rem;
}
.product-bullets li {
  /* keep tiles uniform even if a data bullet runs long */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-spec {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1rem;
}
.product-spec dt {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-faint);
}
.product-spec dd { margin: 0; font-size: 0.86rem; font-weight: 600; }
.product-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-cta { font-size: 0.88rem; padding: 0.55rem 1.1rem; }

/* brochure dialog */
.brochure-dialog {
  border: none; border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 1.75rem;
  width: min(26rem, calc(100vw - 2rem));
}
.brochure-dialog::backdrop { background: rgba(22, 24, 29, 0.55); }
.brochure-head { display: flex; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.brochure-head h2 { font-size: 1.1rem; flex: 1; }
.brochure-close {
  border: 0; background: var(--paper-soft);
  border-radius: 50%; width: 2rem; height: 2rem; flex: none;
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.brochure-close:hover { background: var(--line); }
.brochure-list { list-style: none; padding: 0; margin: 0 0 0.9rem; display: grid; gap: 0.5rem; }
.brochure-list a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.brochure-list a:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------ filter bar -------------------------------- */
.filter-bar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-block: 0.9rem;
}
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.pill {
  border: 1.5px solid var(--line); background: var(--paper);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill:hover { border-color: var(--ink-faint); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-select {
  border: 1.5px solid var(--line); background: var(--paper);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--ink); }
.filter-search {
  margin-left: auto;
  display: flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0.42rem 1rem;
  min-width: 13rem;
  background: var(--paper);
}
.filter-search:focus-within { border-color: var(--ink); }
.filter-search input { border: 0; outline: 0; background: none; width: 100%; font-size: 0.92rem; }
.filter-search svg { color: var(--ink-faint); flex: none; }
@media (max-width: 700px) { .filter-search { margin-left: 0; width: 100%; } }
@media (max-width: 900px) {
  /* wrapped pills make the bar tall on small screens — pinning it would
     cover the results, so it scrolls with the page instead */
  .filter-bar { position: static; }
}
.filter-count { font-size: 0.85rem; color: var(--ink-faint); width: 100%; }

/* -------------------------------- forms ------------------------------------ */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 0.86rem; font-weight: 650; margin-bottom: 0.35rem; }
.field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.9rem;
  background: var(--paper);
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 7.5rem; }
.form-note { font-size: 0.85rem; color: var(--ink-faint); }
/* honeypot — off-screen rather than display:none, which some bots skip.
   aria-hidden + tabindex="-1" keep it away from screen readers and tabbing. */
.hp-field {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}
/* the slot is a grid child of .form — collapse it when Turnstile is off,
   otherwise the form's row gap adds phantom space above the send button */
.captcha-slot:empty { display: none; }
.form-status { border-radius: var(--radius-sm); padding: 0.85rem 1.1rem; font-size: 0.95rem; font-weight: 550; display: none; }
.form-status.ok { display: block; background: #e7f4ec; color: var(--ok); }
.form-status.err { display: block; background: #fbeae9; color: var(--err); }

/* ------------------------------ misc bands --------------------------------- */
.stat-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--paper); }
.stat span { font-size: 0.92rem; color: #9aa0aa; }

.county-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.county-grid .tag { background: #262a31; color: #b9bec7; font-size: 0.8rem; padding: 0.32rem 0.75rem; }

.cta-band { text-align: center; }
.cta-band .btn { margin-top: 1.8rem; }

/* industry sections */
.industry {
  display: grid; gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}
@media (min-width: 800px) { .industry { grid-template-columns: 1fr 1.6fr; gap: 3rem; } }
.industry h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.industry .serves { font-size: 0.9rem; color: var(--ink-faint); font-weight: 550; }
.industry ul { padding-left: 1.1rem; color: var(--ink-soft); display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.industry-solutions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; }

/* ---------------------------------- FAQ ------------------------------------ */
/* compact: one-line rows in two columns; answers expand in place */
.faq-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.25rem; margin-bottom: 1.1rem; }
.faq-list { display: grid; gap: 0.5rem; align-items: start; }
@media (min-width: 800px) { .faq-list { grid-template-columns: 1fr 1fr; } }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  padding: 0.65rem 1rem;
  font-weight: 600; font-size: 0.92rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.15rem; font-weight: 400; color: var(--ink-faint); flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1rem 0.85rem; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------------------------- reveal animation ----------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .partners-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
