/* On Call Roof Repair — design system.
   Sibling of the Right Side Roofing and Siding site (same bones, same display
   face), deliberately NOT a clone of it.

   Colour: the logo is the brand. #006030 was sampled straight out of the
   rescued On Call wordmark by tools/images.mjs — that dark green is the mark's
   own ink, and it is too dark to read on a charcoal bar, so --green is a
   brightened working version of it for UI, and --green-deep is the true mark
   colour for light backgrounds. One alarm colour, used sparingly and only where
   the point is urgency: the call band, the 24/7 strip, the mobile call button.
   Right Side is yellow + ink; On Call is green + ink + an alarm note. Siblings,
   not twins. */

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

:root {
  --green: #12a352;
  --green-deep: #006030;
  --green-dark: #0a7b3c;
  --alarm: #d92b12;
  --alarm-deep: #ad2210;
  --ink: #0d1013;
  --ink-2: #171b1f;
  --paper: #ffffff;
  --paper-2: #f2f5f2;
  --line: #dfe4e0;
  --muted: #55605a;
  --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;
}
/* height:auto matters: several images carry width/height attributes to reserve
   layout space, and without it the browser honours the literal height and
   stretches them. */
img { max-width: 100%; display: block; height: auto; }
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: #fff;
  background: var(--green-dark);
  padding: 4px 10px;
  margin-bottom: 14px;
  transform: skewX(-8deg);
}
.kicker.hot { background: var(--alarm); }
p.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.dark p.lede { color: #b5bdb8; }

/* Emergency strip — the whole reason this brand exists, so it sits above
   everything else on the page. */
.emerg {
  background: var(--alarm);
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.emerg .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  padding-top: 7px;
  padding-bottom: 7px;
  flex-wrap: wrap;
  text-align: center;
}
.emerg a { color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.55); }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  flex: none;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* 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-alarm { background: var(--alarm); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-alarm:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn-green { background: var(--green); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-green: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: #fff; border-color: var(--ink); }
.btn-big { font-size: 1.2rem; padding: 18px 34px; }

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 3px solid var(--green);
}
.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: 42px; 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(--green); }
.site-head nav a.active { color: var(--green); }
.site-head .call {
  background: var(--alarm);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 15px;
  border-radius: 9px;
}
.menu-btn { display: none; background: none; border: 2px solid var(--green); color: var(--green); font-size: 1.15rem; border-radius: 8px; padding: 4px 10px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  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(13, 16, 19, 0.15) 24%, rgba(13, 16, 19, 0.88) 76%);
}
.hero .wrap { padding-top: 80px; padding-bottom: 58px; width: 100%; }
.hero .stripe { color: var(--green); }
/* The hero photo is a real job site, not a controlled studio shot — a shadow
   keeps the headline readable whichever patch of siding it lands on. */
.hero h1 { text-shadow: 0 3px 18px rgba(0, 0, 0, 0.65); }
.hero .sub { max-width: 54ch; font-size: 1.12rem; margin: 18px 0 26px; color: #e6e9e6; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .proof { margin-top: 28px; display: flex; gap: 10px 22px; flex-wrap: wrap; font-weight: 700; font-size: 0.9rem; color: #d3d7d3; }
.hero .proof span::before { content: '✔'; color: var(--green); 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(--green); }
.card.hot::before { background: var(--alarm); }
.dark .card { background: var(--ink-2); border-color: #262c30; }
.card h3 { margin-bottom: 8px; }
.card h3 a { text-decoration: none; }
.card p { color: var(--muted); font-size: 0.97rem; }
.dark .card p { color: #b5bdb8; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 800; font-size: 0.9rem; color: var(--green-deep); text-decoration: none; border-bottom: 2px solid var(--green); }
.dark .card .more { color: var(--green); }

/* 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(--green); }
.dark .split .photo { border-color: #000; }

blockquote {
  border-left: 5px solid var(--green);
  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(--green);
  color: #fff;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 900;
}

/* Rate structure list (what a call costs, without a stale number on it) */
.rates { list-style: none; display: grid; gap: 0; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.rates li { display: flex; justify-content: space-between; gap: 18px; padding: 15px 18px; font-weight: 600; background: var(--paper); }
.rates li + li { border-top: 1px solid var(--line); }
.rates li span { color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.rates li b { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.02em; white-space: nowrap; }

/* Gallery. Seven photos do not divide by four, so the home page runs them as a
   deliberate 4-then-3 rather than leaving a hole in the second row. */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal.cols-3 { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.gal.cols-3 a { aspect-ratio: 4 / 3; }
.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(13, 16, 19, 0.85);
  color: var(--green);
  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(8, 10, 11, 0.95);
  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: #ccd2cd; font-size: 0.95rem; text-align: center; max-width: 60ch; }
.lightbox button {
  position: absolute;
  background: var(--green);
  border: none;
  color: #fff;
  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(--green); 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(--green);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

/* Band CTA — the alarm note */
.band { background: var(--alarm); color: #fff; padding: 54px 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { max-width: 24ch; }
.band p { font-weight: 700; margin-top: 8px; }
.band .btn { border-color: #fff; background: #fff; color: var(--alarm-deep); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); }

/* Footer */
footer.site-foot { background: var(--ink); color: #b5bdb8; 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: #d5dad6; text-decoration: none; }
.site-foot a:hover { color: var(--green); }
.site-foot ul { list-style: none; display: grid; gap: 8px; }
.site-foot .fine { margin-top: 34px; padding-top: 18px; border-top: 1px solid #262c30; font-size: 0.82rem; color: #7f8a84; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot .logo img { height: 38px; margin-bottom: 14px; }
.site-foot .sib { color: #9aa49e; }
.site-foot .sib a { color: var(--green); border-bottom: 1px solid rgba(18, 163, 82, 0.5); }

/* Mobile action bar */
.actionbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 1.4fr 1fr 1fr;
  background: var(--ink);
  border-top: 3px solid var(--green);
}
.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 #262c30; }
.actionbar a.hot { background: var(--alarm); color: #fff; }

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

/* 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(13, 16, 19, 0.1) 18%, rgba(13, 16, 19, 0.82) 68%); }
  .hero { min-height: min(80vh, 680px); }
  .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(--green);
  }
  .site-head nav.open { display: flex; }
  .menu-btn { display: block; }
  .site-head .call { display: none; }
  .site-head .logo img { height: 34px; }
  .grid.cols-3, .grid.cols-2, form.lead .row { grid-template-columns: 1fr; }
  .gal, .gal.cols-3 { grid-template-columns: 1fr 1fr; }
  .actionbar { display: grid; }
  section { padding: 54px 0; }
  .site-foot .cols { grid-template-columns: 1fr; }
  .rates li { flex-direction: column; gap: 4px; }
  .emerg .wrap { font-size: 0.8rem; }
}
