/* ============================================================
   Bedrosean Repair — styles.css
   Token system: "inspection sheet" light ground, one oil-black
   moment (hero + testing step). Mobile-first throughout.
   ============================================================ */

/* ---------- Self-hosted fonts (latin subsets, /fonts) ---------- */
@font-face {
  /* Variable font: one file covers weights 600-800 */
  font-family: 'Big Shoulders';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/big-shoulders-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --oil: #15171A;          /* hero + testing panel, footer, action bar */
  --paper: #F4F4F1;        /* page ground */
  --surface: #FFFFFF;      /* cards */
  --ink: #24282C;          /* body text on light */
  --steel: #5E6870;        /* secondary text on light (AA at small sizes) */
  --silver: #9BA2A9;       /* hairlines & marks, never body text on light */
  --line: #DCDEDA;         /* subtle hairline on paper */
  --blue: #2F5F8F;         /* links, heat-blued steel */
  --orange: #B93E03;       /* CTA only */
  --orange-hot: #A23503;   /* CTA hover/active */
  --orange-lit: #E4682C;   /* orange for small text on dark ground only */
  --wa: #0F7566;           /* WhatsApp actions (dark enough for white text) */
  --ink-on-dark: #C9CDD1;  /* body text on oil */
  --font-display: 'Big Shoulders', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Barlow', system-ui, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, 'Courier New', monospace;
}

/* ---------- Reset-lite / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;            /* 17px — never below 16px anywhere */
  line-height: 1.6;
  padding-bottom: 76px;            /* room for the fixed action bar */
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}
img, svg { max-width: 100%; height: auto; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding: 0; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hero :focus-visible,
.testing-panel :focus-visible,
.site-footer :focus-visible,
.action-bar :focus-visible { outline-color: #8AB8E8; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.container.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--oil);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-call { background: var(--orange); color: #fff; }
.btn-call:hover, .btn-call:active { background: var(--orange-hot); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover, .btn-wa:active { background: #0C5F53; }
.btn-outline {
  border-color: #A9B0B6;
  color: var(--ink);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-dark { background: var(--oil); color: var(--paper); }
.btn-small { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-block: 0.85rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand-badge {
  width: 44px;
  height: 44px;
  margin-right: 0.65rem;
  flex-shrink: 0;
}
.site-nav { display: none; }
@media (min-width: 900px) {
  .site-nav { display: flex; gap: 0.25rem; margin-inline: auto; }
  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.9rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
  }
  .site-nav a:hover { color: var(--blue); }
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.open-status {
  margin: 0;
  font-size: 0.78rem;
  color: var(--steel);
  letter-spacing: 0.06em;
}
.open-status.is-open::before,
.open-status.is-closed::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: 1px;
}
.open-status.is-open::before { background: #1E7A3C; }
.open-status.is-closed::before { background: #B3261E; }
.header-phone {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.4rem;
  border-bottom: 2px solid var(--orange);
}
@media (max-width: 480px) {
  .open-status { display: none; }   /* header stays one clean row on small phones */
}

/* ---------- Hero ---------- */
.hero {
  background: var(--oil);
  color: var(--paper);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}
.eyebrow {
  font-size: 0.8rem;
  color: var(--silver);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: #F4F4F1;
}
.hero-lede {
  font-size: 1.125rem;
  color: var(--ink-on-dark);
  max-width: 46ch;
}
.hero-lede strong { color: #fff; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero-trust {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--silver);
}
.hero-art svg {
  display: block;
  width: min(78vw, 380px);
  margin-inline: auto;
}
@media (min-width: 900px) {
  .hero-art svg { width: 100%; max-width: 520px; }
}

/* Compressor wheel: spools up once, then idles in a slow endless spin. */
#wheel {
  transform-origin: 320px 320px;
  animation:
    spool 3.2s cubic-bezier(0.45, 0.05, 0.15, 1) both,
    idle-spin 22s linear 3.2s infinite;
}
@keyframes spool {
  from { transform: rotate(-810deg); }
  to   { transform: rotate(0deg); }
}
@keyframes idle-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- Dimension-line callout (the signature element) ---------- */
.dim-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--silver);
  font-size: 0.78rem;
  margin-block: 1.25rem;
  max-width: 30rem;
}
.dim-text { white-space: nowrap; letter-spacing: 0.14em; }
.dim-cap {
  position: relative;
  flex: 1;
  height: 1px;
  background: currentColor;
  min-width: 2rem;
}
.dim-cap-l::before,
.dim-cap-r::after {
  content: "";
  position: absolute;
  top: -3.5px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.dim-cap-l::before { left: 0; border-right: 9px solid currentColor; }
.dim-cap-r::after { right: 0; border-left: 9px solid currentColor; }
.dim-line-dark { margin-inline: auto; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section-alt { background: #ECEEE9; }
.section-head { margin-bottom: 2.25rem; }
.kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--steel);
  margin: 0 0 0.75rem;
}
.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #C9CDCA;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 4px;
  padding: 1.5rem 1.4rem;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.card p { color: var(--steel); font-size: 1rem; }
.card ul { list-style: none; margin: 0; }
.card li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.1rem;
  font-size: 1rem;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.55rem;
  height: 1px;
  background: var(--orange);
}

/* ---------- Process ---------- */
.process { list-style: none; max-width: 760px; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.4rem 1.25rem;
  padding-block: 1.4rem;
  border-top: 1px solid #C9CDCA;
}
.step-num {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--silver);
  border-radius: 3px;
  font-size: 1.1rem;
  color: var(--steel);
  background: var(--surface);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0.2rem 0 0.35rem;
}
.step p { margin: 0; max-width: 58ch; }
.process-tail { margin-top: 0; }

/* The guarantee, restated as procedure — the one echo of the hero. */
.testing-panel {
  background: var(--oil);
  color: var(--paper);
  text-align: center;
  padding-block: clamp(3.5rem, 9vw, 6rem);
  margin-block: 2.5rem;
}
.testing-step-label {
  font-size: 0.8rem;
  color: var(--orange-lit);
  margin-bottom: 1rem;
}
.testing-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 12vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  color: #F4F4F1;
}
.testing-copy {
  max-width: 58ch;
  margin-inline: auto;
  color: var(--ink-on-dark);
  font-size: 1.125rem;
}

/* ---------- Owner ---------- */
.owner-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem 1.75rem;
}
.owner-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
}
.owner-title {
  font-size: 0.78rem;
  color: var(--steel);
  letter-spacing: 0.1em;
}
.credentials {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--silver);
}
.credentials h4 {
  font-size: 0.78rem;
  color: var(--steel);
  margin: 0 0 0.5rem;
}
.credentials p:last-child, .credentials ul:last-child { margin-bottom: 0; }

/* ---------- Platforms ---------- */
.platform-group { margin-bottom: 1.75rem; }
.platform-group h3 {
  font-size: 0.8rem;
  color: var(--steel);
  font-weight: 400;
  margin: 0 0 0.75rem;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  background: var(--surface);
  border: 1px solid #C4C9CD;
  border-radius: 3px;
  padding: 0.5rem 0.7rem;
}
.platforms-note { max-width: 58ch; margin-top: 2rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.ph { margin: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.ph svg, .ph img { display: block; width: 100%; height: auto; }
.ph-bg { fill: #E4E6E1; }
.ph text {
  text-anchor: middle;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}
.ph-label { font-size: 36px; fill: var(--silver); }
.ph-sub { font-size: 19px; fill: var(--steel); }

/* ---------- Reviews ---------- */
.reviews-block { text-align: center; }
.stars {
  color: var(--orange);
  font-size: 2rem;
  letter-spacing: 0.35em;
  margin-bottom: 0.75rem;
}
.reviews-block p { max-width: 48ch; margin-inline: auto; }
.reviews-block .btn { margin-top: 0.5rem; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid #C9CDCA; }
.faq-item:last-of-type { border-bottom: 1px solid #C9CDCA; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.25rem;
  font-weight: 600;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--steel);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 0.25rem 1.25rem; }
.faq-a p { max-width: 65ch; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.phone-card,
.address-block,
.hours-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
}
.phone-label {
  font-size: 0.72rem;
  color: var(--steel);
  margin-bottom: 0.35rem;
}
.phone-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}
.phone-number a { color: var(--ink); text-decoration: none; }
.phone-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.address-block { font-style: normal; }
.address-block p:last-child { margin: 0; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 0.35rem 0; font-size: 1rem; }
.hours-table th { text-align: left; font-weight: 500; }
.hours-table td { text-align: right; }

.map-facade { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.map-static { position: relative; display: block; }
.map-art { display: block; width: 100%; height: auto; }
.map-cta {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(21, 23, 26, 0.06);
}
.map-facade iframe { display: block; width: 100%; height: 400px; border: 0; }
.map-address {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--steel);
  margin: 0.75rem 0 1rem;
  user-select: text;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--oil);
  color: var(--ink-on-dark);
  padding-block: 3rem 2rem;
  margin-top: 0;
}
.site-footer a { color: var(--ink-on-dark); }
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.footer-logo {
  display: block;
  width: 150px;
  height: 150px;
  margin-bottom: 1rem;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 0.75rem;
}
.site-footer address { font-style: normal; }
.footer-label {
  font-size: 0.72rem;
  color: var(--silver);
  margin-bottom: 0.5rem;
}
.footer-fine {
  border-top: 1px solid rgba(155, 162, 169, 0.25);
  padding-top: 1.25rem;
}
.footer-fine p { font-size: 0.72rem; color: var(--silver); margin: 0; }

/* ---------- Fixed mobile action bar ---------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(21, 23, 26, 0.97);
  border-top: 1px solid #2A2F35;
}
@media (min-width: 768px) {
  .action-bar { display: none; }
}

/* ---------- Scroll reveals ----------
   Fail-safe by construction: elements are visible by default; script.js
   adds .pre only to elements below the viewport, then removes it when
   they scroll into view. If JS fails, nothing is ever hidden. */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.pre {
  opacity: 0;
  transform: translateY(12px);
}

/* ---------- Reduced motion: no spin, no reveals, no smooth scroll ---------- */
@media (prefers-reduced-motion: reduce) {
  #wheel { animation: none; }
  .reveal { transition: none; }
  .reveal.pre { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
