/* Dahlke Websites — pine & blaze, workwear plain-spoken */

:root {
  --paper: #F8F7F2;
  --paper-deep: #EFEDE4;
  --ink: #14201A;
  --pine: #1D4A36;
  --pine-deep: #0E2C1E;
  --blaze: #FF5A1F;
  --blaze-deep: #E04B14;
  --mist: #5C6B61;
  --line: #D8D4C6;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1180px;
}

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

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

body {
  overflow-x: clip;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blaze-deep); }

:focus-visible { outline: 3px solid var(--blaze); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blaze-deep);
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: "// "; color: var(--pine); }
.eyebrow-light { color: var(--blaze); }
.eyebrow-light::before { color: #7FA28E; }

.u-blaze { color: var(--blaze-deep); }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 2rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.1rem 1.5rem;
}
.wordmark {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
}
.wordmark em { font-style: normal; color: var(--pine); }
.wordmark-d {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 8px;
  background: var(--pine); color: var(--blaze);
  font-family: var(--display); font-weight: 800; font-size: 1.25rem;
}
.wordmark-d-sm { width: 1.5rem; height: 1.5rem; font-size: 0.9rem; border-radius: 5px; display: inline-grid; vertical-align: -0.35em; margin-right: 0.2rem; }
.topnav { display: flex; gap: 1.4rem; margin-left: auto; }
.topnav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.topnav a:hover { color: var(--blaze-deep); }
.topbar-phone {
  font-family: var(--mono); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; color: var(--pine);
  border: 1.5px solid var(--pine); border-radius: 999px;
  padding: 0.45rem 1rem; white-space: nowrap;
}
.topbar-phone:hover { background: var(--pine); color: var(--paper); }
@media (max-width: 760px) {
  .topnav { display: none; }
  .topbar { justify-content: space-between; }
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem; align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom: 1.2rem; }
.hero-sub { font-size: 1.15rem; color: #33413A; max-width: 34rem; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.2rem; }
.hero-note { font-size: 0.92rem; color: var(--mist); }
.hero-note a { color: inherit; font-weight: 600; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: 10px; border: 1.5px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-blaze { background: var(--blaze); color: #fff; box-shadow: 0 3px 0 var(--blaze-deep); }
.btn-blaze:hover { background: var(--blaze-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- before/after slider (signature) ---------- */
.ba-wrap { min-width: 0; }
.ba {
  position: relative; overflow: hidden;
  aspect-ratio: 1200 / 833;
  border-radius: 14px;
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--pine);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--pos, 55%));
  will-change: clip-path;
}
.ba-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 55%);
  width: 3px; margin-left: -1.5px;
  background: var(--blaze);
  pointer-events: none;
}
.ba-grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blaze); border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.ba-grip::before, .ba-grip::after {
  content: ""; position: absolute; top: 50%; margin-top: -5px;
  border: 5px solid transparent;
}
.ba-grip::before { left: 7px; border-right-color: #fff; }
.ba-grip::after { right: 7px; border-left-color: #fff; }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
  -webkit-appearance: none; appearance: none;
}
.ba:has(.ba-range:focus-visible) .ba-grip { outline: 3px solid #fff; outline-offset: 3px; }
.ba-tag {
  position: absolute; bottom: 0.9rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 6px;
  pointer-events: none;
}
.ba-tag-before { left: 0.9rem; background: rgba(20, 32, 26, 0.82); color: #E8E4D8; }
.ba-tag-after { right: 0.9rem; background: var(--blaze); color: #fff; }
.ba-caption {
  margin-top: 1.4rem;
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.55;
  color: var(--mist);
}

/* ---------- facts strip ---------- */
.facts {
  background: var(--pine-deep); color: #DCE5DE;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 700px) {
  .facts { grid-template-columns: 1fr; }
  .facts .fact + .fact { border-left: none; border-top: 1px solid rgba(220, 229, 222, 0.18); }
  .facts .fact { padding: 1.2rem 1.5rem; }
}
.fact {
  padding: 1.6rem 1.5rem; text-align: center;
  display: grid; gap: 0.15rem;
}
.fact + .fact { border-left: 1px solid rgba(220, 229, 222, 0.18); }
.fact-k { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: #fff; }
.fact-v { font-size: 0.88rem; color: #A8BCAF; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.5rem; }
.section-head { max-width: 44rem; margin-bottom: 2.8rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.9rem; }
.section-sub { color: #33413A; }

/* ---------- work grid ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; }
.card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(20, 32, 26, 0.45); }
.card-wide { grid-column: span 2; flex-direction: row; }
.card-wide .card-shot { flex: 0 0 55%; }
.card-wide.card-flip { flex-direction: row-reverse; }
.card-shot { display: block; overflow: hidden; border-bottom: 1.5px solid var(--line); }
.card-wide .card-shot { border-bottom: none; }
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.3s ease; }
.card:hover .card-shot img { transform: scale(1.02); }
.card-shot-phones {
  aspect-ratio: 1200 / 833;
  background: linear-gradient(160deg, #0B2530, #143C46 70%, #1D5C55);
  display: flex; justify-content: center; align-items: flex-start;
  gap: 1.2rem; padding: 1.6rem 1.6rem 0; overflow: hidden;
}
.card-shot-phones .phone {
  width: 34%; height: auto; object-fit: contain;
  border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease;
}
.card-shot-phones .phone-front { transform: translateY(1.6rem); }
.card:hover .card-shot-phones .phone { transform: translateY(-4px); }
.card:hover .card-shot-phones .phone-front { transform: translateY(1.2rem); }
.card-body { padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; }
.card-wide .card-body { justify-content: center; }
.card-meta {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist);
  display: flex; align-items: center; gap: 0.45rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-live { background: #2FA65A; box-shadow: 0 0 0 3px rgba(47, 166, 90, 0.2); }
.card h3 { font-size: 1.45rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--blaze-deep); }
.card p { font-size: 0.97rem; color: #33413A; }
.card-links a { font-weight: 600; font-size: 0.95rem; text-decoration: none; }
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; flex-direction: column; }
  .card-wide.card-flip { flex-direction: column; }
  .card-wide .card-shot { flex: none; border-bottom: 1.5px solid var(--line); }
}

/* ---------- audits (dark) ---------- */
.section-dark {
  max-width: none; background: var(--pine-deep); color: #E8EDE8;
  padding-left: 0; padding-right: 0;
}
.section-dark .section-head,
.audit-list { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: #A8BCAF; }
.audit-list { list-style: none; }
.audit-list a {
  display: grid; grid-template-columns: 1fr 2fr auto; gap: 1.5rem; align-items: baseline;
  padding: 1.3rem 0; text-decoration: none; color: inherit;
  border-top: 1px solid rgba(220, 229, 222, 0.18);
}
.audit-list li:last-child a { border-bottom: 1px solid rgba(220, 229, 222, 0.18); }
.audit-list a:hover .audit-name { color: var(--blaze); }
.audit-name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: #fff; transition: color 0.12s ease; }
.audit-desc { font-size: 0.93rem; color: #A8BCAF; }
.audit-go { font-family: var(--mono); font-size: 0.8rem; color: var(--blaze); white-space: nowrap; }
@media (max-width: 720px) {
  .audit-list a { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; counter-reset: step; }
.step { position: relative; padding-top: 0.4rem; }
.step-n {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 9px;
  background: var(--pine); color: var(--blaze);
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.97rem; color: #33413A; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.section-about { background: var(--paper-deep); max-width: none; }
.about-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: center;
  padding: 0 1.5rem;
}
.about-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.about-copy p { margin-bottom: 0.9rem; color: #33413A; }
.about-links a { font-weight: 600; text-decoration: none; }
.about-card {
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--blaze);
  transition: transform 0.15s ease;
}
.about-card:hover { transform: translate(-2px, -2px); }
.about-card-tag {
  position: absolute; left: 0.8rem; bottom: 0.8rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(20, 32, 26, 0.85); color: #E8E4D8;
  padding: 0.35rem 0.7rem; border-radius: 6px;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.section-contact { padding-bottom: 6rem; }
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.contact-copy p { color: #33413A; }
.contact-direct { display: grid; gap: 0.3rem; margin-top: 1.3rem; }
.contact-direct a {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 500;
  text-decoration: none; width: fit-content;
}
.lead-form {
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 2rem; display: grid; gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.lead-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
.lead-form input, .lead-form textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.85rem; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--paper); width: 100%;
}
.lead-form input:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(29, 74, 54, 0.15);
}
.lead-form textarea { resize: vertical; }
.lead-form .btn { justify-self: start; border: none; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink); color: #A8BCAF;
  text-align: center; padding: 2.2rem 1.5rem;
  font-size: 0.9rem; display: grid; gap: 0.4rem;
}
.footer a { color: #DCE5DE; text-decoration: none; }
.footer a:hover { color: var(--blaze); }

/* ---------- hero responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.2rem; gap: 2.4rem; }
  .ba { box-shadow: 6px 6px 0 var(--pine); }
}
