/* =========================================================
   Boise Commercial Cleaners — Design System
   Concept: facilities-operations precision — scope-of-work
   ticket + inspection-checklist visual language.
   ========================================================= */

:root {
  --ink: #1B1F1D;
  --ink-soft: #2B302D;
  --paper: #FAF9F6;
  --paper-alt: #F1EFE9;
  --white: #FFFFFF;
  --verdigris: #0E6B55;
  --verdigris-dark: #0A4F40;
  --verdigris-tint: #E7F1EE;
  --amber: #E2A33B;
  --amber-dark: #8A5A0E;
  --slate: #5B6660;
  --slate-light: #8A938D;
  --line: #DEDBD2;
  --line-strong: #C7C3B6;
  --danger: #B3432B;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1180px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 1px 2px rgba(27,31,29,0.06), 0 8px 24px -12px rgba(27,31,29,0.18);
  --shadow-lift: 0 12px 32px -12px rgba(27,31,29,0.28);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--verdigris); text-decoration: none; }
a:hover { color: var(--verdigris-dark); }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--amber-dark);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }
.section-alt { background: var(--paper-alt); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink p { color: #C9CFCA; }

@media (min-width: 900px) {
  section { padding: 96px 0; }
}

/* ---------- Type scale ---------- */
h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 60ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--verdigris-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}
.section-ink .eyebrow { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--verdigris); color: var(--white); }
.btn-primary:hover { background: var(--verdigris-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.section-ink .btn-outline { color: var(--paper); border-color: #445048; }
.section-ink .btn-outline:hover { border-color: var(--paper); color: var(--paper); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.brand small {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--verdigris-dark);
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.main-nav { display: none; }
.main-nav > ul { display: flex; align-items: center; gap: 28px; list-style: none; }
.main-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--verdigris-dark); }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-actions .btn-primary { display: none; }
.phone-slot { display: none; } /* reserved: populate with tel: link + icon once a tracked number exists */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .header-actions .btn-primary { display: inline-flex; }
  .brand { font-size: 1.05rem; }
}

/* Desktop dropdown */
.has-dropdown { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px 0;
  font-family: var(--font-body); color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
}
.nav-drop-btn:hover { color: var(--verdigris-dark); }
.nav-drop-btn svg { width: 13px; height: 13px; transition: transform 0.15s ease; }
.has-dropdown[data-open="true"] .nav-drop-btn svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: -14px; margin-top: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift); list-style: none; padding: 10px; min-width: 230px;
  display: none; z-index: 70;
}
.has-dropdown[data-open="true"] .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.92rem; color: var(--ink-soft);
}
.dropdown-menu li a:hover { background: var(--paper-alt); color: var(--verdigris-dark); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  z-index: 55;
  overflow-y: auto;
  padding: 24px 20px 100px;
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 16px 4px; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.mobile-nav .mobile-group-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate); padding: 18px 4px 6px;
}
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 64px; }
@media (min-width: 900px) { .hero { padding: 64px 0 88px; } }
.hero .container { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}
.hero-copy h1 { margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 0.92rem; color: var(--slate); font-weight: 500;
}
.hero-points li { display: flex; align-items: center; gap: 8px; list-style: none; }
.hero-points svg { width: 16px; height: 16px; color: var(--verdigris); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-md); width: 100%; height: auto; box-shadow: var(--shadow-lift); }
.scope-tag {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 12px 14px;
  max-width: 210px;
  font-family: var(--font-mono);
}
.hero-media .scope-tag { left: -14px; bottom: -18px; }
@media (min-width: 640px) { .hero-media .scope-tag { left: -26px; bottom: -22px; } }
.scope-tag .scope-id {
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-dark);
  display: block; margin-bottom: 6px; font-weight: 500;
}
.scope-tag ul { list-style: none; font-size: 0.78rem; color: var(--ink-soft); }
.scope-tag li { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.scope-tag li svg { width: 12px; height: 12px; color: var(--verdigris); flex-shrink: 0; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-strip ul { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 720px) { .trust-strip ul { grid-template-columns: repeat(4, 1fr); } }
.trust-strip li { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); font-weight: 500; letter-spacing: 0.01em; }

/* ---------- Service grid ---------- */
.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { border-color: var(--verdigris); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.service-card .icon { width: 34px; height: 34px; color: var(--verdigris); }
.service-card h3 { margin-bottom: 2px; font-size: 1.08rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 6px; }
.service-card .card-link { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em; font-weight: 500; }

/* ---------- Ticket card (secondary photo signature) ---------- */
.ticket-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.ticket-card img { width: 100%; height: auto; }
.ticket-card figcaption {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  border-top: 1px dashed var(--line-strong);
  text-transform: uppercase;
}

/* ---------- Two-col media/copy ---------- */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split.reverse .split-media { order: -1; }
@media (min-width: 900px) { .split.reverse .split-media { order: 2; } }
.split-media-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.checklist .tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 4px;
  background: var(--verdigris-tint); color: var(--verdigris-dark);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.checklist .tick svg { width: 13px; height: 13px; }
.checklist strong { display: block; font-size: 0.98rem; color: var(--ink); }
.checklist span { font-size: 0.88rem; color: var(--slate); }

/* ---------- Stepper (How It Works — a real sequence) ---------- */
.stepper { display: grid; gap: 24px; counter-reset: step; }
@media (min-width: 900px) { .stepper { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.85rem;
  color: var(--amber-dark); display: block; margin-bottom: 10px; letter-spacing: 0.04em;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; }
@media (min-width: 900px) {
  .stepper .step:not(:last-child)::after {
    content: ""; position: absolute; top: 14px; left: calc(100% + 10px); width: calc(20px - 0px);
    border-top: 1px dashed var(--line-strong);
  }
}

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 44px 18px 18px; font-weight: 600; color: var(--ink);
  position: relative; font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.2rem; color: var(--verdigris);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 18px 20px; font-size: 0.92rem; color: var(--slate); }

/* ---------- Cost table ---------- */
.cost-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.cost-table th, .cost-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.cost-table thead th { background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table tbody tr:nth-child(even) { background: var(--paper-alt); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Location grid ---------- */
.location-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .location-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .location-grid { grid-template-columns: repeat(3, 1fr); } }
.location-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.location-card .pin { width: 26px; height: 26px; color: var(--amber-dark); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--verdigris); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #D9ECE6; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--white); color: var(--verdigris-dark); }
.cta-band .btn-primary:hover { background: var(--paper-alt); }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.cta-band .btn-outline:hover { border-color: var(--white); }

/* ---------- Quote form ---------- */
.quote-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-card);
}
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.98rem; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--verdigris); }
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 0.8rem; color: var(--slate); margin-top: 10px; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 16px; }
.form-status.success { display: block; background: var(--verdigris-tint); color: var(--verdigris-dark); border: 1px solid var(--verdigris); }
.form-status.error { display: block; background: #FBEAE5; color: var(--danger); border: 1px solid var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9CFCA; padding: 64px 0 28px; }
.site-footer p { color: #C9CFCA; }
.site-footer .small-print { color: #9BA39D; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; margin-bottom: 44px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); color: var(--paper); font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.footer-grid h4 { color: var(--paper); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: #C9CFCA; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #313832; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; font-size: 0.82rem; color: var(--slate-light); }
.footer-bottom a { color: var(--slate-light); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 20px -12px rgba(0,0,0,0.2);
}
.sticky-cta .btn { width: 100%; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
body.has-sticky-cta { padding-bottom: 74px; }
@media (min-width: 1024px) { body.has-sticky-cta { padding-bottom: 0; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.82rem; color: var(--slate); padding: 18px 0 0; }
.breadcrumbs a { color: var(--slate); }
.breadcrumbs a:hover { color: var(--verdigris-dark); }

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.small-print { font-size: 0.8rem; color: var(--slate); }

.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--ink); color: var(--paper); padding: 14px 20px;
  z-index: 100; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus {
  left: 0; top: 0;
}
.badge-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.badge-list li {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--verdigris-dark);
  background: var(--verdigris-tint); padding: 6px 12px; border-radius: 999px; font-weight: 500;
}
.two-col-list { columns: 1; gap: 24px; }
@media (min-width: 640px) { .two-col-list { columns: 2; } }
.two-col-list li { break-inside: avoid; margin-bottom: 10px; }
