/* Wayne Headifen Builder — shared styles */
:root {
  --ink: #1b1b19;
  --ink-2: #242421;
  --ink-3: #2f2f2b;
  --line: #3e3e39;
  --paper: #f5f3ee;
  --text: #eae8e1;
  --muted: #aeaba1;
  --rust: #b8500f;
  --rust-dark: #9a420b;
  --rust-hi: #e98a48;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", Arial, Helvetica, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--rust-hi); }
a:hover { color: #fff; }
p { margin: 0 0 1.1em; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.55rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--rust-hi); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section.alt { background: var(--ink-2); }
.lead { font-size: 1.2rem; color: var(--text); }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: #000; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 10px; top: 10px; }

/* Eyebrow: the orange brace from the logo */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--rust-hi); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 8px; background: var(--rust);
  transform: skewX(-45deg); flex: none;
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--rust); border-radius: 4px;
  background: var(--rust); color: #fff; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--text); color: var(--text); }
.btn.ghost:hover { background: var(--text); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Top strip */
.topbar { background: var(--ink); border-bottom: 1px solid var(--line); font-size: .95rem; }
.topbar .wrap { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 26px; padding: 8px 0; }
.topbar a { color: var(--text); text-decoration: none; }
.topbar a:hover { color: var(--rust-hi); }

/* Header: white so the logo sits on its own background */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0,0,0,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.logo { display: block; flex: none; }
.logo img { height: 54px; aspect-ratio: 5.9; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); padding: 6px 0; border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rust); color: var(--ink); }
.nav a.btn { color: #fff; padding: 10px 20px; border: 2px solid var(--rust); }
.nav a.btn:hover { border-color: var(--rust-dark); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 4px;
  width: 46px; height: 42px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 3px; background: var(--ink); margin: 0 auto; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Hero */
.hero { background: var(--ink-2); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; padding: clamp(44px, 6vw, 80px) 0;
}
.hero p.lead { font-size: 1.35rem; color: var(--muted); max-width: 30ch; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 520px; object-fit: cover; object-position: 50% 62%; border-radius: 4px; }
.hero-photo::before {
  content: ""; position: absolute; left: -18px; bottom: -18px; width: 45%; height: 45%;
  border-left: 8px solid var(--rust); border-bottom: 8px solid var(--rust);
}

/* Page header (inner pages) */
.page-head { background: var(--ink-2); border-bottom: 1px solid var(--line); padding: clamp(46px, 7vw, 84px) 0; }
.page-head p { color: var(--muted); font-size: 1.2rem; max-width: 56ch; margin: 0; }

/* Two column text/photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 72%; border-radius: 4px; }
.split.flip > :first-child { order: 2; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { position: relative; padding: 0 0 12px 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 20px; height: 6px;
  background: var(--rust); transform: skewX(-45deg);
}

/* Service cards */
.section-head { max-width: 60ch; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; display: block; overflow: hidden; border-radius: 4px;
  aspect-ratio: 3 / 4; text-decoration: none; color: #fff; background: var(--ink-3);
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,15,13,.92) 0%, rgba(15,15,13,.25) 55%, rgba(15,15,13,.05) 100%);
}
.card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 1; }
.card-body h3 { margin: 0 0 6px; color: #fff; }
.card-body span {
  font-family: var(--display); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; font-size: 1rem; color: var(--rust-hi);
}
.card:hover img { transform: scale(1.05); }
.card:hover .card-body span { color: #fff; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--ink-3); border-top: 6px solid var(--rust); border-radius: 4px; padding: 28px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--rust-hi);
  display: block; margin-bottom: 12px;
}
.step p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-card { background: var(--ink-3); border-left: 8px solid var(--rust); border-radius: 4px; padding: 32px; }
.contact-card h3 { margin-bottom: 2px; }
.contact-card dl { margin: 22px 0 0; }
.contact-card dt {
  font-family: var(--display); font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; font-size: .95rem; color: var(--muted);
}
.contact-card dd { margin: 0 0 16px; font-size: 1.3rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-card dd a { color: #fff; text-decoration: none; }
.contact-card dd a:hover { color: var(--rust-hi); }

form.estimate { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.estimate .full { grid-column: 1 / -1; }
form.estimate label {
  display: block; font-family: var(--display); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; font-size: 1rem; margin-bottom: 6px;
}
form.estimate input, form.estimate textarea {
  width: 100%; padding: 13px 14px; font: inherit; color: #fff;
  background: var(--ink); border: 1px solid #77756d; border-radius: 4px;
}
form.estimate input:focus, form.estimate textarea:focus { border-color: var(--rust-hi); outline: 2px solid var(--rust-hi); outline-offset: 0; }
form.estimate textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .95rem; color: var(--muted); margin: 0; }
.form-status { font-weight: 600; color: var(--rust-hi); margin: 0; }

/* CTA band */
.cta { background: var(--rust); color: #fff; padding: clamp(44px, 6vw, 70px) 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.cta h2 { margin: 0; }
.cta .btn { background: var(--ink); border-color: var(--ink); }
.cta .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Footer */
.site-footer { background: #121211; border-top: 1px solid var(--line); padding: 50px 0 30px; font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.foot-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.foot-brand svg { width: 58px; height: auto; flex: none; }
.foot-brand strong {
  display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem;
  line-height: 1; text-transform: uppercase; color: #fff;
}
.foot-brand em {
  display: block; font-style: normal; font-family: var(--display); font-weight: 700;
  letter-spacing: .2em; font-size: .95rem; text-transform: uppercase; color: var(--rust-hi); margin-top: 5px;
}
.site-footer h4 {
  font-family: var(--display); font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; font-size: 1rem; color: var(--muted); margin: 0 0 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; overflow-wrap: anywhere; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--rust-hi); }
.legal {
  grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: .9rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
}
.legal a { color: var(--rust-hi); }
.legal a:hover { color: #fff; }

/* Responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px; box-shadow: 0 14px 20px rgba(0,0,0,.3);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #e3e0d8; }
  .nav a.btn { margin-top: 14px; text-align: center; }
  .hero .wrap, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 72%; }
  .steps { grid-template-columns: 1fr; }
  .logo img { height: 44px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 3; }
  form.estimate { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; }
  .btn-row .btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
