/* DHEpoxyFinishes Inc. — shared stylesheet. See DESIGN.md for the full brief. */

:root {
  --ink: #16181c;
  --paper: #f7f5f1;
  --surface: #ffffff;
  --accent: #ef4136;
  --accent-ink: #9b2a23;
  --line: #e3ded5;
  --muted: #5b5850;
  --radius: 8px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
a { color: var(--accent-ink); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark .muted { color: #b9b6ae; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--accent); }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247,245,241,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 44px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent-ink); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-ink); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.section--dark .btn-outline { color: var(--paper); }
.section--dark .btn-outline:hover { background: var(--paper); color: var(--ink); }

/* Hero */
.hero {
  padding: 140px 0 96px;
  position: relative;
}
.hero h1 { max-width: 16ch; }
.hero p.lede { font-size: 1.15rem; max-width: 46ch; color: #d8d5cd; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-fact-row {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 28px;
}
.hero-fact strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; }
.hero-fact span { font-size: 0.85rem; color: #b9b6ae; }

/* Cards / grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.card h3 { margin-bottom: 10px; }

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 150ms ease;
}
.service-card:hover { border-color: var(--accent); }
.service-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.service-card .body { padding: 22px 24px; }
.service-card h3 { margin-bottom: 6px; }
.service-card .muted { font-size: 0.92rem; margin: 0; }

/* Before/after */
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 700px) { .ba { grid-template-columns: 1fr; } }
.ba figure { margin: 0; position: relative; }
.ba img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.ba figcaption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(22,24,28,0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 4px;
}

/* Reviews */
.review {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.review:last-child { border-bottom: none; }
.review p.quote { font-size: 1.05rem; margin-bottom: 10px; }
.review .who { font-weight: 600; font-family: 'Space Grotesk', sans-serif; }
.review .job { color: var(--muted); font-size: 0.9rem; }

/* Forms */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.form-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 0.92rem; color: var(--muted); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin: 0; }

/* Footer */
footer {
  background: var(--ink);
  color: #cfccc5;
  padding: 56px 0 32px;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
footer a { color: #e5e2da; text-decoration: none; }
footer a:hover { color: var(--accent); }
footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #8a877f;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms cubic-bezier(0.16,1,0.3,1), transform 500ms cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
