/* ============================================================
   Dirt Logic, LLC — "Graded" design system
   Industrial-utilitarian · asphalt charcoal + safety yellow
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Light "concrete" surface — default */
  --bg:         oklch(0.968 0.006 80);
  --surface:    oklch(0.995 0.004 85);
  --fg:         oklch(0.235 0.010 62);
  --muted:      oklch(0.505 0.012 65);
  --border:     oklch(0.885 0.007 75);
  --accent:     oklch(0.815 0.165 86);
  --accent-hi:  oklch(0.86 0.16 88);
  --accent-ink: oklch(0.28 0.030 75);
  --success:    oklch(0.60 0.14 150);

  /* Dark "asphalt" surface */
  --d-bg:       oklch(0.190 0.008 65);
  --d-surface:  oklch(0.245 0.010 66);
  --d-fg:       oklch(0.962 0.008 85);
  --d-muted:    oklch(0.720 0.014 78);
  --d-border:   oklch(1 0 0 / 0.10);

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 3px;
  --shadow: 0 1px 2px oklch(0.2 0.01 60 / 0.06), 0 12px 32px oklch(0.2 0.01 60 / 0.10);
  --shadow-d: 0 20px 50px oklch(0 0 0 / 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--dark { background: var(--d-bg); color: var(--d-fg); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase; }
h1 { font-size: clamp(2.9rem, 7vw, 4.9rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: 0; }
h4 { font-size: 1.18rem; letter-spacing: 0.01em; }
p { max-width: 62ch; }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.section--dark .eyebrow { color: var(--d-muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.55; }
.section--dark .lead { color: var(--d-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 1.05rem;
  padding: 0.85rem 1.5rem; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
  min-height: 48px;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 oklch(0.62 0.14 82); }
.btn--primary:hover { background: var(--accent-hi); transform: translateY(-2px); box-shadow: 0 6px 0 oklch(0.62 0.14 82); }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 oklch(0.62 0.14 82); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: currentColor; }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { color: var(--d-bg); }
.btn--ghost.on-light:hover { color: var(--bg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--d-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--d-border);
  color: var(--d-fg);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 40px; height: 40px; background: var(--accent); border-radius: var(--radius); display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 26px; height: 26px; }
.brand__name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0.02em; line-height: 1; }
.brand__name span { color: var(--accent); }
.brand__tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em; color: var(--d-muted); text-transform: uppercase; display: block; margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav__links a { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.02rem; color: var(--d-fg); padding: 0.4rem 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent); transition: width .2s ease; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--accent); }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__phone { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.nav__phone svg { width: 17px; height: 17px; color: var(--accent); }
.nav__toggle { display: none; background: none; border: 1px solid var(--d-border); border-radius: var(--radius); width: 46px; height: 46px; cursor: pointer; color: var(--d-fg); }
.nav__toggle svg { width: 24px; height: 24px; margin: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--d-bg); color: var(--d-fg); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, oklch(0.16 0.008 65 / 0.94) 0%, oklch(0.16 0.008 65 / 0.78) 42%, oklch(0.16 0.008 65 / 0.30) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(4rem, 11vw, 8.5rem); }
.hero__grid { display: grid; gap: 2rem; max-width: 760px; }
.hero h1 { margin-block: 1rem 0.4rem; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--d-fg); opacity: 0.92; max-width: 54ch; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.6rem; }

/* stat / credential bar under hero */
.credbar { position: relative; z-index: 1; border-top: 1px solid var(--d-border); }
.credbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.credbar__item { padding: 1.6rem var(--pad); border-left: 1px solid var(--d-border); }
.credbar__item:first-child { border-left: none; }
.credbar__k { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; color: var(--d-fg); }
.credbar__k b { color: var(--accent); font-weight: 700; }
.credbar__l { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-muted); margin-top: 0.5rem; }

/* ---------- Section heading block ---------- */
.sec-head { display: grid; gap: 1rem; max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head--split { max-width: none; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 2rem; }
.sec-head--split .sec-head__aside { max-width: 42ch; justify-self: end; }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in oklch, var(--accent) 55%, var(--border)); }
.svc__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--d-surface); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc:hover .svc__media img { transform: scale(1.05); }
.svc__idx { position: absolute; top: 0.9rem; left: 0.9rem; font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--accent-ink); background: var(--accent); padding: 0.25rem 0.6rem; border-radius: var(--radius); }
.svc__body { padding: 1.5rem 1.4rem 1.7rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.svc__body h3 { letter-spacing: 0.01em; }
.svc__list { list-style: none; display: grid; gap: 0.55rem; margin-top: 0.25rem; }
.svc__list li { display: flex; gap: 0.6rem; font-size: 0.96rem; color: var(--muted); }
.svc__list svg { width: 17px; height: 17px; color: var(--accent-ink); flex: none; margin-top: 3px; }
.svc__list li b { color: var(--fg); font-weight: 600; }
.svc__link { margin-top: auto; padding-top: 0.4rem; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 0.4rem; }
.svc__link svg { width: 18px; height: 18px; transition: transform .18s ease; }
.svc:hover .svc__link svg { transform: translateX(4px); }

/* ---------- Split feature (about / why) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/4; }
.split__media .tag {
  position: absolute; left: 1rem; bottom: 1rem;
  background: color-mix(in oklch, var(--d-bg) 88%, transparent); backdrop-filter: blur(6px);
  color: var(--d-fg); padding: 0.7rem 1rem; border-radius: var(--radius); border: 1px solid var(--d-border);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.55rem; box-shadow: var(--shadow-d);
}
.split__media .tag svg { width: 18px; height: 18px; color: var(--accent); }
.split__body { display: grid; gap: 1.25rem; }

/* ---------- Value / feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature { display: grid; gap: 0.7rem; padding: 1.7rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.section--dark .feature { background: var(--d-surface); border-color: var(--d-border); }
.feature__icon { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; background: color-mix(in oklch, var(--accent) 22%, transparent); border: 1px solid color-mix(in oklch, var(--accent) 45%, transparent); }
.feature__icon svg { width: 23px; height: 23px; color: var(--accent-ink); }
.section--dark .feature__icon svg { color: var(--accent); }
.feature p { color: var(--muted); font-size: 0.97rem; }
.section--dark .feature p { color: var(--d-muted); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; border-top: 2px solid var(--d-border); }
.section--dark .step { border-color: var(--d-border); }
.step__n { position: absolute; top: -0.2rem; left: 0; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--accent); }
.step h4 { margin-bottom: 0.4rem; }
.step p { color: var(--d-muted); font-size: 0.95rem; }

/* ---------- Credential strip ---------- */
.creds { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: stretch; }
.cred {
  display: flex; align-items: center; gap: 0.7rem;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.8rem 1.1rem; background: var(--surface);
}
.section--dark .cred { background: var(--d-surface); border-color: var(--d-border); }
.cred svg { width: 22px; height: 22px; color: var(--success); flex: none; }
.cred__t { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.02rem; line-height: 1.1; }
.cred__s { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.section--dark .cred__s { color: var(--d-muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 2rem; }
.cta-band h2 em { color: var(--accent); font-style: normal; }
.cta-band__actions { display: flex; flex-direction: column; gap: 0.8rem; }
.cta-band__phone { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.06em; color: var(--d-muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: oklch(0.150 0.008 65); color: var(--d-fg); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--d-border); }
.footer__brand .brand__name { font-size: 1.5rem; }
.footer__brand p { color: var(--d-muted); margin-top: 1rem; font-size: 0.95rem; max-width: 34ch; }
.footer__col h4 { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer__col a, .footer__col li { color: var(--d-muted); font-size: 0.96rem; }
.footer__col a:hover { color: var(--d-fg); }
.footer__contact a { display: flex; align-items: center; gap: 0.6rem; }
.footer__contact svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; color: var(--d-muted); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; }

/* ---------- Utility ---------- */
.stack-sm { display: grid; gap: 0.9rem; }
.mt-2 { margin-top: 1.5rem; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .services, .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .grid-2, .cta-band__inner, .sec-head--split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .sec-head--split .sec-head__aside { justify-self: start; }
  .credbar__grid { grid-template-columns: repeat(2, 1fr); }
  .credbar__item:nth-child(-n+2) { border-bottom: 1px solid var(--d-border); }
  .credbar__item:nth-child(odd) { border-left: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: grid; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: var(--d-bg); border-bottom: 1px solid var(--d-border); padding: 0.5rem var(--pad) 1.25rem;
  }
  .nav.open .nav__links li { width: 100%; }
  .nav.open .nav__links a { display: block; width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--d-border); font-size: 1.2rem; }
  .nav.open .nav__links a::after { display: none; }
}
@media (max-width: 560px) {
  .services, .grid-3, .steps { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .credbar__grid { grid-template-columns: 1fr 1fr; }
}
