/* Right Side Roofing and Siding — design system
   Brand: safety yellow + ink black (from the truck wrap / logo, locked). */

@font-face {
  font-family: 'Anton';
  src: url('/assets/fonts/anton.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --yellow: #f5df11;
  --yellow-deep: #e8c400;
  --ink: #101113;
  --ink-2: #1a1c1f;
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --line: #e3e3df;
  --muted: #5c5f66;
  --max: 1180px;
  --radius: 14px;
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.5rem, 7.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.03em; }
.kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: 4px 10px;
  margin-bottom: 14px;
  transform: skewX(-8deg);
}
.dark .kicker { color: var(--ink); }
p.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.dark p.lede { color: #b9bcc2; }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  border: 3px solid var(--ink);
  padding: 13px 26px;
  border-radius: 10px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-yellow:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ink { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 3px solid var(--yellow);
}
.site-head .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.site-head .logo img { height: 46px; width: auto; }
.site-head nav { display: flex; gap: 4px; align-items: center; }
.site-head nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 11px;
  border-radius: 8px;
}
.site-head nav a:hover { background: var(--ink-2); color: var(--yellow); }
.site-head nav a.active { color: var(--yellow); }
.site-head nav a.nav-cta {
  background: var(--yellow);
  color: var(--ink);
  margin-left: 6px;
}
.site-head .call { color: var(--yellow); font-weight: 900; text-decoration: none; white-space: nowrap; }
.menu-btn { display: none; background: none; border: 2px solid var(--yellow); color: var(--yellow); font-size: 1.15rem; border-radius: 8px; padding: 4px 10px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(200deg, rgba(16, 17, 19, 0) 30%, rgba(16, 17, 19, 0.82) 78%);
}
.hero .wrap { padding-top: 90px; padding-bottom: 64px; width: 100%; }
.hero .stripe { color: var(--yellow); }
.hero .sub { max-width: 56ch; font-size: 1.12rem; margin: 18px 0 26px; color: #e8e8e6; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .proof { margin-top: 30px; display: flex; gap: 10px 22px; flex-wrap: wrap; font-weight: 700; font-size: 0.9rem; color: #d6d7d3; }
.hero .proof span::before { content: '✔'; color: var(--yellow); margin-right: 7px; }

/* Sections */
section { padding: 74px 0; }
.dark { background: var(--ink); color: var(--paper); }
.tint { background: var(--paper-2); }
.section-head { margin-bottom: 38px; max-width: 70ch; }

/* Cards */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--yellow); }
.dark .card { background: var(--ink-2); border-color: #2a2d31; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.dark .card p { color: #b9bcc2; }

/* Split feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.split .photo { border-radius: var(--radius); overflow: hidden; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--yellow); }
.dark .split .photo { box-shadow: 10px 10px 0 var(--yellow); border-color: #000; }

blockquote {
  border-left: 5px solid var(--yellow);
  padding: 6px 0 6px 20px;
  font-size: 1.06rem;
  font-style: italic;
  color: inherit;
}
blockquote footer { font-style: normal; font-weight: 800; margin-top: 8px; font-size: 0.9rem; }

/* Checklist */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { padding-left: 34px; position: relative; font-weight: 600; }
.checks li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 900;
}

/* Gallery */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal a { display: block; border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 1; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gal a:hover img { transform: scale(1.045); }
.gal .tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(16, 17, 19, 0.82);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.94);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 8px; object-fit: contain; }
.lightbox .cap { color: #cfd0cc; font-size: 0.95rem; text-align: center; }
.lightbox button {
  position: absolute;
  background: var(--yellow);
  border: none;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox .x { top: 18px; right: 18px; }
.lightbox .prev { left: 14px; top: 50%; }
.lightbox .next { right: 14px; top: 50%; }

/* Forms */
form.lead { display: grid; gap: 14px; }
form.lead .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-weight: 700; font-size: 0.9rem; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit;
  padding: 11px 13px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: #fff;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.steps li {
  list-style: none;
  counter-increment: step;
  padding: 18px 20px 18px 66px;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
}
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

/* Band CTA */
.band {
  background: var(--yellow);
  color: var(--ink);
  padding: 56px 0;
}
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { max-width: 22ch; }
.band .btn { border-color: var(--ink); background: var(--ink); color: var(--yellow); }

/* Footer */
footer.site-foot { background: var(--ink); color: #b9bcc2; padding: 54px 0 110px; font-size: 0.95rem; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; }
.site-foot h3 { color: var(--paper); font-size: 1rem; margin-bottom: 12px; }
.site-foot a { color: #d8d9d5; text-decoration: none; }
.site-foot a:hover { color: var(--yellow); }
.site-foot ul { list-style: none; display: grid; gap: 8px; }
.site-foot .fine { margin-top: 34px; padding-top: 18px; border-top: 1px solid #2a2d31; font-size: 0.82rem; color: #83868d; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot .logo img { height: 40px; margin-bottom: 14px; }

/* Mobile action bar */
.actionbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 1fr 1fr 1.4fr;
  background: var(--ink);
  border-top: 3px solid var(--yellow);
}
.actionbar a {
  text-align: center;
  padding: 13px 4px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
}
.actionbar a + a { border-left: 1px solid #2a2d31; }
.actionbar a.hot { background: var(--yellow); color: var(--ink); }

/* Blog */
.post-body { max-width: 72ch; }
.post-body p { margin-bottom: 1.1em; }
.post-body h2 { font-size: 1.5rem; margin: 1.4em 0 0.6em; }
.post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; }
.post-list { display: grid; gap: 18px; }
.post-list a { text-decoration: none; }

.notice {
  background: var(--paper-2);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 940px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero::after {
    background: linear-gradient(196deg, rgba(16, 17, 19, 0.05) 22%, rgba(16, 17, 19, 0.72) 72%);
  }
  .hero { min-height: min(78vh, 660px); }
  .site-head nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    border-bottom: 3px solid var(--yellow);
  }
  .site-head nav.open { display: flex; }
  .menu-btn { display: block; }
  .site-head .call { display: none; }
  .grid.cols-3, .grid.cols-2, form.lead .row { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr 1fr; }
  .actionbar { display: grid; }
  section { padding: 54px 0; }
  .site-foot .cols { grid-template-columns: 1fr; }
}
