/* ============================================================
   INTERSTATE GATE REPAIR — Portland, OR / Vancouver, WA
   Industrial workshop design system
   Palette: safety orange on charcoal + steel + off-white
   ============================================================ */

:root {
  --orange: #ee7622;
  --orange-dark: #b0520a; /* was #c85e12; darkened for WCAG AA text contrast on paper/white */
  --orange-glow: #ff8c3a;
  --ink: #141414;
  --ink-soft: #1f1f1f;
  --steel: #3a3d42;
  --steel-light: #63676e; /* was #6b6f76; darkened for WCAG AA on paper */
  --paper: #f5f2ec;
  --white: #ffffff;
  --line: #e2ddd3;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p  { margin-bottom: 1em; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.95rem;
  color: var(--orange-dark);
  border-left: 4px solid var(--orange);
  padding-left: 10px;
  margin-bottom: 14px;
}

/* ---------- hazard stripe accent ---------- */
.stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--orange) 0 18px,
    var(--ink) 18px 36px
  );
}

/* ---------- top bar ---------- */
.topbar {
  background: var(--ink);
  color: #cfcfcf;
  font-size: 0.88rem;
  padding: 7px 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: var(--orange-glow); font-weight: 600; }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img { height: 62px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 10px 14px;
  display: block;
}
.nav a:hover { color: var(--orange-dark); text-decoration: none; }
.nav li { position: relative; }

/* dropdowns */
.nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  border-top: 3px solid var(--orange);
  min-width: 260px;
  list-style: none;
  z-index: 200;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.nav li:hover > ul, .nav li:focus-within > ul { display: block; }
.nav li ul a {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}
.nav li ul a:hover { background: var(--paper); color: var(--orange-dark); }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 1.05rem;
  background: var(--orange);
  color: var(--ink) !important; /* was white: 2.90:1 on orange; ink gives 6.36:1 */
  padding: 12px 26px;
  border: 2px solid var(--ink);
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--orange-glow); text-decoration: none; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--white) !important; }
.btn-dark:hover { background: var(--steel); }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 1rem;
}

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(20,20,20,0.97) 0%, rgba(20,20,20,0.88) 55%, rgba(238,118,34,0.25) 100%),
    var(--ink-soft);
  color: var(--white);
  padding: 76px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 0;
  bottom: 0;
  width: 240px;
  background: repeating-linear-gradient(-45deg, rgba(238,118,34,0.14) 0 22px, transparent 22px 44px);
  pointer-events: none;
}
.hero .kicker { color: var(--orange-glow); border-color: var(--orange-glow); }
.hero h1 span { color: var(--orange-glow); }
.hero p.lead { font-size: 1.2rem; max-width: 640px; color: #dcdcdc; margin: 18px 0 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; margin-top: 32px; padding: 0; }
.hero-points li {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  color: #e8e8e8;
}
.hero-points li::before { content: "▸ "; color: var(--orange-glow); }

/* ---------- sections ---------- */
.section { padding: 68px 0; }
.section-dark { background: var(--ink); color: #e6e6e6; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .kicker { color: var(--orange-glow); }
.section-white { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: 40px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-top: 6px solid var(--orange);
  padding: 26px 24px;
  box-shadow: 5px 5px 0 rgba(20,20,20,0.9);
}
.card h3 { margin-bottom: 10px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--orange-dark); text-decoration: none; }
.card p { font-size: 0.98rem; color: var(--steel); margin-bottom: 12px; }
.card .more {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.section-dark .card { background: var(--ink-soft); border-color: var(--steel); box-shadow: 5px 5px 0 rgba(238,118,34,0.55); }
.section-dark .card p { color: #b8b8b8; }
.section-dark .card h3 a { color: var(--white); }

/* ---------- checklist / symptom list ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { padding: 7px 0 7px 30px; position: relative; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 14px; height: 14px;
  background: var(--orange);
  border: 2px solid var(--ink);
}
.section-dark .checklist li::before { border-color: var(--white); }

/* ---------- steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 74px; margin-bottom: 30px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--orange-dark); /* was --orange: 2.59:1 on paper; large-text AA needs 3:1 */
  border-bottom: 3px solid var(--ink);
  line-height: 1.2;
}
.section-dark .step::before { border-color: var(--orange); color: var(--orange); }
.step h3 { margin-bottom: 6px; }

/* ---------- two column ---------- */
.cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }
.faq-item {
  background: var(--white);
  border: 2px solid var(--ink);
  margin-bottom: 14px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 1.12rem;
  list-style: none;
  position: relative;
  padding-right: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--orange-dark);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { border-bottom: 2px solid var(--orange); }
.faq-body { padding: 16px 20px; }
.faq-body p { margin-bottom: 0.6em; }

/* ---------- area links / tag cloud ---------- */
.area-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.area-links a {
  display: inline-block;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  padding: 8px 16px;
}
.area-links a:hover { background: var(--orange); color: var(--ink); text-decoration: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--orange);
  color: var(--ink);
  padding: 52px 0;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--ink); }
.cta-band p { margin: 6px 0 0; font-weight: 500; }
.cta-band .btn { background: var(--ink); color: var(--white) !important; }
.cta-band .btn:hover { background: var(--ink-soft); }

/* ---------- breadcrumbs ---------- */
.crumbs {
  font-size: 0.88rem;
  padding: 14px 0 0;
  color: var(--steel-light);
}
.crumbs a { color: var(--steel-light); }
.crumbs a:hover { color: var(--orange-dark); }

/* ---------- prose (long-form content) ---------- */
.prose { max-width: 820px; }
.prose h2 { margin: 1.6em 0 0.5em; }
.prose h3 { margin: 1.3em 0 0.4em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.4em; }
.prose li { margin-bottom: 6px; }

/* ---------- table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; background: var(--white); }
.spec-table th, .spec-table td { border: 2px solid var(--ink); padding: 10px 14px; text-align: left; font-size: 0.96rem; }
.spec-table th { background: var(--ink); color: var(--white); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9c9c9; padding: 60px 0 0; font-size: 0.95rem; }
.site-footer h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
  padding-bottom: 4px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9c9c9; }
.site-footer a:hover { color: var(--orange-glow); }
.footer-logo img { height: 54px; width: auto; margin-bottom: 14px; }
.footer-bottom {
  margin-top: 44px;
  border-top: 1px solid var(--steel);
  padding: 18px 0;
  font-size: 0.85rem;
  color: #8f8f8f;
}
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  z-index: 300;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange-dark); /* was --orange: <3:1 vs paper/white; orange-dark >=3:1 on paper, white, and ink */
  outline-offset: 2px;
}

/* ---------- sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 250;
  background: var(--orange);
  border-top: 3px solid var(--ink);
  text-align: center;
  padding: 13px 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink); /* was white: 2.90:1 on orange; ink gives 6.36:1 */
  box-shadow: 0 -4px 14px rgba(0,0,0,0.25);
}
.mobile-call-bar:hover { text-decoration: none; color: var(--ink); }
@media (max-width: 768px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 58px; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--ink);
    padding: 10px 0 16px;
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav li ul {
    display: block;
    position: static;
    border: none;
    border-left: 3px solid var(--orange);
    margin-left: 18px;
    box-shadow: none;
    min-width: 0;
  }
  .header-cta { display: none; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo img { height: 48px; }
  body { font-size: 16px; }
}
