/* ============================================================
   Crossover Commerce shared styles (v5, accessibility pass)
   Palette: Charcoal #292A2C (text, headings, icons) · Logo red #C82636 (CTAs only)
            Red hover #A01D2B · White #FFFFFF · Light grey #F2F3F4
            Grey #5C6066 · Line grey #DCDDDF · Field border #7A7D82
   Type:    Instrument Sans (headings, buttons, body)
   Rules are written once, in cascade order: base, components,
   then breakpoints (largest to smallest) at the end.
   ============================================================ */

:root {
  --navy: #292A2C;        /* charcoal from the logo (variable name kept) */
  --orange: #C82636;        /* logo red; white text on this is 5.55:1 */
  --orange-dark: #A01D2B;   /* hover */
  --white: #FFFFFF;
  --grey-light: #F2F3F4;
  --steel: #5C6066;
  --line: #DCDDDF;          /* decorative dividers only */
  --field: #7A7D82;         /* form control borders (3:1 or better) */
  --radius: 14px;
  --max: 1120px;
  --header-h: 92px;         /* sticky header + gap, used for anchor offsets */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}
h3, h4 { letter-spacing: -0.01em; }

.label {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--steel);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: var(--navy); text-decoration: none; }

/* ---------- focus (visible on every interactive element) ---------- */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px var(--white);
}
.alt :focus-visible { box-shadow: 0 0 0 6px var(--grey-light); }
.faq-item summary:focus-visible { outline-offset: 4px; }

main:focus { outline: none; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 12px 18px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); box-shadow: 0 0 0 3px var(--white); outline-color: var(--white); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0 0; }
.site-header .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  height: 64px; max-width: calc(var(--max) + 24px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px 0 28px;
  width: calc(100% - 32px);
}
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 38px; width: auto; }
.nav { display: flex; gap: 8px 26px; align-items: center; justify-content: center; }
.nav a { font-size: 15px; font-weight: 500; color: var(--steel); padding: 8px 2px; }
.nav a:hover { color: var(--orange-dark); }
.nav-cta { justify-self: end; }

.btn {
  display: inline-block;
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: 12px;
  background: var(--orange); color: var(--white);
  border: 1px solid var(--orange);
  transition: background 0.15s ease;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--grey-light); color: var(--navy); border-color: var(--navy); }
.btn.small { font-size: 14px; padding: 10px 17px; }

/* ---------- sections ---------- */
section { padding: 112px 0; }
h1, h2, h3, h4 { text-wrap: balance; }
section.alt {
  background-color: var(--grey-light);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 60px; max-width: 640px; }
.section-head .label { display: block; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 20px; }
.section-head p { color: var(--steel); font-size: 17px; line-height: 1.7; }
.section-head p + p { margin-top: 16px; }
.section-head.spaced { margin-top: 88px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 0; background-color: var(--white); }
.hero .inner { padding-bottom: 60px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); max-width: 18ch; margin-bottom: 22px; line-height: 1.1; }
.hero .lede { font-size: 19px; color: var(--steel); max-width: 58ch; margin-bottom: 34px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

/* ---------- brands we carry: static grid ---------- */
#brands { padding: 32px 0; }
#brands .section-head { margin-bottom: 14px; }
#brands .section-head .label { margin-bottom: 0; }
.brand-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 32px 28px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.brand-tile { display: flex; align-items: center; justify-content: center; min-width: 0; }
@media (min-width: 1001px) {
  .brand-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
  .brand-tile img, .brand-tile img.wide { max-width: 100%; }
}
.brand-tile img { max-height: 50px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.brand-tile img.wide { max-width: 190px; }

.arrow-link { font-weight: 600; font-size: 15.5px; color: var(--navy); }
.arrow-link:hover { color: var(--orange-dark); }
.arrow-link::after { content: " →"; }

/* ---------- columns and feature rows ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; align-items: start; }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; align-items: start; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 16px; line-height: 1.7; color: var(--steel); }

.feature-lead { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; align-items: center; }
.feature-lead .lead-ico { width: 36px; height: 36px; color: var(--navy); grid-column: 1; grid-row: 1; }
.feature-lead h3 { grid-column: 2; grid-row: 1; margin-bottom: 0; }
.feature-lead p { grid-column: 2; grid-row: 2; margin-top: 12px; align-self: start; }

.ico { display: block; width: 30px; height: 30px; color: var(--navy); margin-bottom: 14px; }
.cyc { width: 22px; height: 22px; color: var(--white); }

ul.check { list-style: none; }
ul.check li { padding-left: 30px; position: relative; margin-bottom: 13px; color: var(--navy); font-size: 16px; }
ul.check li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--navy);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 5.3a.75.75 0 010 1.06l-4.1 4.1a.75.75 0 01-1.06 0L4.3 8.22a.75.75 0 111.06-1.06l1.71 1.7 3.57-3.56a.75.75 0 011.06 0z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 5.3a.75.75 0 010 1.06l-4.1 4.1a.75.75 0 01-1.06 0L4.3 8.22a.75.75 0 111.06-1.06l1.71 1.7 3.57-3.56a.75.75 0 011.06 0z"/></svg>') center/contain no-repeat;
}

/* ---------- locations ---------- */
.coverage-head { margin-top: 64px; margin-bottom: 32px; }
.coverage-head h3 { font-size: 24px; margin-bottom: 8px; }
.coverage-head p { color: var(--steel); max-width: 60ch; font-size: 16px; line-height: 1.7; }
.locations-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.location {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.location .label { display: block; margin-bottom: 8px; }
.location h4 { font-size: 22px; line-height: 1.2; }
.loc-ico { width: 44px; height: 44px; flex: none; color: var(--navy); }

/* ---------- process: ledger (4 steps) ---------- */
.ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
  border-top: 2px solid var(--line);
  padding-top: 44px;
}
.ledger-step { padding-right: 28px; border-right: 1px dashed var(--line); min-width: 0; }
.ledger-step:last-child { border-right: none; padding-right: 0; }
.ledger-step .step { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--steel); }
.ledger-step h3 { font-size: 21px; margin-bottom: 14px; }
.ledger-step p { font-size: 16px; color: var(--steel); line-height: 1.7; }

/* ---------- process: cycle (5 steps) ---------- */
.cycle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 84px;
}
.cycle-step { text-align: center; min-width: 0; }
.cycle-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.cycle-step h3 { font-size: 17px; margin-bottom: 12px; text-wrap: balance; overflow-wrap: break-word; }
.cycle-step p { font-size: 16px; color: var(--steel); line-height: 1.65; }
.cycle-loop { position: absolute; left: 0; right: 0; bottom: 6px; width: 100%; height: 46px; overflow: visible; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary {
  font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--navy);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--navy); flex-shrink: 0; width: 20px; text-align: center; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin-top: 14px; color: var(--steel); font-size: 16px; max-width: 68ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.contact-form { display: grid; gap: 18px; background: var(--grey-light); border: 1px solid var(--field); border-radius: 18px; padding: 32px; }
.contact-form label { display: block; font-size: 16px; font-weight: 500; color: var(--navy); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 8px;
  font: inherit; font-size: 16px; color: var(--navy);
  background: var(--white); border: 1.5px solid var(--field); border-radius: 12px; padding: 13px 14px;
}
.contact-form ::placeholder { color: var(--steel); opacity: 1; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: none; border-color: var(--navy);
}
.contact-form .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form .consent { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; font-weight: 400; color: var(--steel); }
.contact-form .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.contact-form .consent a { color: var(--navy); text-decoration: underline; }
.contact-form .consent a:hover { color: var(--orange-dark); }
.contact-form .btn { cursor: pointer; width: 100%; padding: 15px 24px; font-size: 16px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-sent { background: var(--grey-light); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 24px 28px; font-size: 17px; color: var(--navy); }
.contact-item { margin-bottom: 26px; }
.contact-item .label { display: block; margin-bottom: 6px; }
.contact-item a { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.contact-item.has-ico { display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; align-items: start; }
.contact-item.has-ico .ico { width: 24px; height: 24px; margin: 0; grid-row: 1 / span 2; }

/* ---------- prose / legal ---------- */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background-color: var(--white); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 20ch; }
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--steel); font-size: 16px; margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.prose a { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 16px; color: var(--steel); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; margin-bottom: 44px; }
.footer-title { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--navy); margin-bottom: 14px; }
.footer-grid a { overflow-wrap: anywhere; display: block; color: var(--steel); padding: 4px 0; }
.footer-grid a:hover { color: var(--orange-dark); }
.footer-brand p { max-width: 34ch; margin-top: 10px; }
.footer-brand a.logo { display: flex; padding: 0; }
.footer-brand .logo img { height: 44px; }
.legal-line { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }

/* ============================================================
   Breakpoints, largest to smallest
   ============================================================ */

/* Tablet and small laptop: 4/5-column blocks reflow before they get cramped */
@media (max-width: 1000px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .ledger-step:nth-child(2) { border-right: none; padding-right: 0; }
  .cycle { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 24px; padding-bottom: 8px; }
  .cycle-step { flex: 0 1 calc((100% - 48px) / 3); }
  .cycle-loop { display: none; }
}

@media (max-width: 900px) {
  .cols-3 { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .locations-row { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Phones */
@media (max-width: 720px) {
  :root { --header-h: 150px; }
  section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head .label { margin-bottom: 12px; }
  .section-head h2 { margin-bottom: 14px; }
  .section-head.spaced { margin-top: 48px; }
  .coverage-head { margin-top: 40px; margin-bottom: 20px; }
  .cols-3, .cols-4 { gap: 24px; }
  .feature-lead p { margin-top: 8px; }
  .ico { margin-bottom: 10px; }
  .cols-4 { grid-template-columns: 1fr; }

  .site-header .wrap {
    grid-template-columns: 1fr auto; grid-template-areas: "logo cta" "nav nav";
    height: auto; border-radius: 28px; padding: 10px 10px 8px 20px; gap: 4px 12px;
  }
  .site-header .logo { grid-area: logo; }
  .site-header .nav-cta { grid-area: cta; }
  .nav { grid-area: nav; justify-content: flex-start; flex-wrap: wrap; gap: 0 18px; border-top: 1px solid var(--line); padding-top: 4px; }
  .nav a { font-size: 15px; padding: 9px 2px; }

  .hero { padding-top: 40px; }
  .hero .inner { padding-bottom: 36px; }
  .hero .lede { font-size: 17.5px; margin-bottom: 26px; }
  .hero .actions { margin-bottom: 8px; }

  #brands { padding: 36px 0; }
  #brands .section-head { margin-bottom: 16px; }
  .brand-row { padding: 22px 16px; gap: 20px 28px; }
  .brand-tile img { max-height: 40px; max-width: 120px; }
  .brand-tile img.wide { max-width: 210px; }

  .locations-row { gap: 14px; }
  .location { padding: 16px 20px; }
  .location .label { margin-bottom: 4px; }

  .ledger { grid-template-columns: 1fr; gap: 0; border-top: none; padding-top: 0; }
  .ledger-step, .ledger-step:nth-child(2) {
    border-right: none;
    border-left: 2px dashed var(--line);
    padding: 4px 0 18px 22px;
  }
  .ledger-step:last-child { padding-bottom: 4px; }

  .cycle { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .cycle-step { flex: none; }
  .cycle-step { text-align: left; display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; align-items: start; }
  .cycle-num { grid-row: 1 / span 2; margin: 0; }
  .cycle-step h3 { margin-bottom: 6px; align-self: center; }
  .cycle-step p { grid-column: 2; }

  .faq-item { padding: 14px 0; }
  .faq-item summary { font-size: 17px; }

  .contact-form { padding: 18px; gap: 14px; }
  .contact-form textarea { min-height: 96px; }
  .contact-item { margin-bottom: 18px; }
  .contact-grid { gap: 28px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .form-sent { padding: 20px; }

  .site-footer { padding: 40px 0 32px; }
  .footer-grid { gap: 28px 24px; margin-bottom: 28px; }
}

/* Narrow phones (320 to 400) */
@media (max-width: 400px) {
  .site-header .wrap { width: calc(100% - 16px); padding: 8px 8px 6px 16px; }
  .logo img { height: 32px; }
  .btn.small { padding: 9px 13px; font-size: 13.5px; white-space: nowrap; }
  .nav { gap: 0 12px; }
  .nav a { font-size: 14.5px; }
  :root { --header-h: 124px; }
  .wrap { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}

