/* Silverback Ltd — shared styles
   Layout: one long scrolling home with a sticky header; booking and quote pages reuse the same shell.
   Identity: cool silver-slate neutrals, one hi-vis safety-orange accent, condensed industrial display type. */

:root {
  --bg: #eef1f3;
  --surface: #ffffff;
  --ink: #172126;
  --muted: #55636a;
  --line: #d2d9dd;
  --accent: #c64a0b;
  --accent-ink: #ffffff;
  --accent-soft: #fbe6d9;
  --band: #172126;
  --band-fg: #e9eef0;
  --band-muted: #9fb0b7;
  --ok: #1f7a4c;
  --ok-soft: #ddf1e6;
  --warn-soft: #fff2d6;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4.5vw, 2.8rem);
  --step-4: clamp(2.6rem, 7.5vw, 5.2rem);

  --radius: 6px;
  --wrap: 1140px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10171a;
    --surface: #172126;
    --ink: #e6ecee;
    --muted: #9aa9b0;
    --line: #2a373d;
    --accent: #ff7a33;
    --accent-ink: #1a0a02;
    --accent-soft: #3a2015;
    --band: #0a0f11;
    --band-fg: #e6ecee;
    --band-muted: #8d9ea5;
    --ok: #5fd39a;
    --ok-soft: #133325;
    --warn-soft: #3a3018;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10171a;
  --surface: #172126;
  --ink: #e6ecee;
  --muted: #9aa9b0;
  --line: #2a373d;
  --accent: #ff7a33;
  --accent-ink: #1a0a02;
  --accent-soft: #3a2015;
  --band: #0a0f11;
  --band-fg: #e6ecee;
  --band-muted: #8d9ea5;
  --ok: #5fd39a;
  --ok-soft: #133325;
  --warn-soft: #3a3018;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--surface);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); text-transform: uppercase; }
h2 { font-size: var(--step-3); text-transform: uppercase; }
h3 { font-size: var(--step-1); font-stretch: 85%; font-weight: 750; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
  min-width: 0;
}
.brand-name {
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-name span { color: var(--accent); }
.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--ink);
}
.nav a:hover { background: var(--bg); }
.header-cta { display: flex; gap: 8px; }

@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    padding-top: 6px;
    scrollbar-width: none;
  }
  .nav a { white-space: nowrap; padding: 6px 10px; }
  .brand-name { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .brand-tag { font-size: 0.62rem; }
  .header-cta .btn { padding: 9px 12px; font-size: 0.85rem; }
  .header-cta .btn-ghost { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 11px 18px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--surface); }
.btn-lg { padding: 15px 24px; font-size: 1.05rem; }
.btn-on-band { border-color: var(--band-fg); color: var(--band-fg); }
.btn-on-band:hover { background: var(--band-fg); color: var(--band); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 9vw, 104px) clamp(40px, 7vw, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.hero h1 { margin-block: 14px 22px; font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.hero-photo { margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 5 / 4; max-width: 100%; background: var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { font-size: var(--step-1); color: var(--muted); max-width: 34ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.callboard {
  background: var(--band);
  color: var(--band-fg);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: center;
}
.cb-item { display: grid; gap: 4px; font-weight: 700; padding-left: 24px; border-left: 1px solid color-mix(in srgb, var(--band-fg) 18%, transparent); }
@media (max-width: 900px) {
  .callboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-phone { grid-column: 1 / -1; }
  .cb-item { padding-left: 0; border-left: 0; }
  .callboard .btn { grid-column: 1 / -1; }
}
.callboard .label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--band-muted);
  font-weight: 700;
}
.callboard .phone {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--band-fg);
  display: inline-block;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.callboard .row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid color-mix(in srgb, var(--band-fg) 18%, transparent); padding-top: 14px; }
.callboard .row span:last-child { font-weight: 700; text-align: right; }
.pill-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
}
.pill-alert::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}
.proof b { color: var(--ink); font-family: var(--display); font-stretch: 80%; font-size: 1.2rem; margin-right: 6px; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 3 / 2; }
}

/* ---------- Sections ---------- */
section[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { section[id] { scroll-margin-top: 120px; } }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 62ch; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.svc {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.svc { overflow: hidden; }
.svc-photo {
  margin: -24px -24px 6px;
  width: calc(100% + 48px);
  max-width: calc(100% + 48px);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--line);
  flex: none;
}
.svc.feature .svc-photo, .svc.feature-alt .svc-photo { aspect-ratio: 16 / 9; }
.svc-photo + .icon { display: none; }
.svc.feature { grid-column: span 3; }
.svc.feature-alt { grid-column: span 3; }
.svc .icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.svc .icon svg { width: 26px; height: 26px; }
.svc p { color: var(--muted); }
.svc ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.tag.oncall { border-color: var(--accent); color: var(--accent); }
.svc-link { font-weight: 700; color: var(--accent); text-decoration: none; }
.svc-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc, .svc.feature, .svc.feature-alt { grid-column: span 1; }
  .svc.feature { grid-column: span 2; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .svc.feature { grid-column: span 1; }
}

/* Seasons calendar */
.seasons {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  overflow-x: auto;
}
.season-grid {
  display: grid;
  grid-template-columns: 170px repeat(12, minmax(34px, 1fr));
  gap: 6px 4px;
  min-width: 640px;
  align-items: center;
}
.season-grid .m {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.season-grid .svc-name { font-weight: 700; font-size: 0.92rem; }
.bar { height: 22px; border-radius: 3px; }
.bar.on { background: var(--ink); }
.bar.snow { background: var(--accent); }
.bar.lawn { background: color-mix(in srgb, var(--ok) 80%, var(--ink)); }
.bar.off { background: color-mix(in srgb, var(--line) 55%, transparent); }
.season-note { margin-top: 14px; color: var(--muted); font-size: var(--step--1); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { border-top: 3px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.step::before {
  counter-increment: step;
  content: "Step " counter(step);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* About band */
.band { background: var(--band); color: var(--band-fg); }
.band .eyebrow { color: var(--accent); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-copy { display: grid; gap: 16px; max-width: 60ch; }
.about-copy p { color: var(--band-muted); font-size: 1.06rem; }
.about-copy p:first-of-type { color: var(--band-fg); }
.about-side { display: grid; gap: 16px; min-width: 0; }
.about-photo { margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--band-muted); }
.about-photo img, .hero-photo img { height: 100%; }
.about-photo img { width: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: color-mix(in srgb, var(--band-fg) 16%, transparent); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--band); padding: 20px; display: grid; gap: 4px; }
.fact b { font-family: var(--display); font-stretch: 75%; font-size: 2.1rem; line-height: 1; font-weight: 800; }
.fact span { color: var(--band-muted); font-size: 0.92rem; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.big-phone {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.hours { display: grid; gap: 0; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: var(--step--1); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-row a { color: var(--muted); }

/* ---------- Form pages ---------- */
.page-head { padding-block: clamp(36px, 6vw, 64px) 8px; display: grid; gap: 12px; }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-block: 24px 80px; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 32px);
  display: grid;
  gap: 30px;
  min-width: 0;
}
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
legend {
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 800;
  font-size: var(--step-1);
  padding: 0;
  margin-bottom: 4px;
}
legend small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.92rem; color: var(--muted); margin-top: 2px; }

.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-weight: 650; font-size: 0.92rem; }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.req { color: var(--accent); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  min-height: 46px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.invalid { border-color: var(--accent) !important; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-weight: 700;
  cursor: pointer;
}
.choice span small { font-weight: 500; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice input:disabled + span { opacity: 0.45; cursor: not-allowed; }

.notice { border-radius: var(--radius); padding: 12px 14px; background: var(--warn-soft); font-size: 0.92rem; }

/* Photo drop zone */
.drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  background: var(--bg);
  display: grid;
  gap: 8px;
  justify-items: center;
  cursor: pointer;
}
.drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.drop svg { width: 34px; height: 34px; color: var(--accent); }
.drop strong { font-size: 1.02rem; }
.drop span { color: var(--muted); font-size: 0.86rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .fname { position: absolute; inset: auto 0 0; font-size: 0.68rem; padding: 3px 5px; background: color-mix(in srgb, var(--ink) 75%, transparent); color: var(--surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 22px; }
.submit-row p { color: var(--muted); font-size: 0.86rem; flex: 1 1 220px; }
.form-error { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aside { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { .aside { position: static; } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.aside-card.dark { background: var(--band); color: var(--band-fg); border-color: var(--band); }
.aside-card.dark p { color: var(--band-muted); }
.aside-card h3 { font-size: 1.15rem; }
.aside-card p, .aside-card li { color: var(--muted); font-size: 0.92rem; }
.aside-card ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

.success {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 14px;
  justify-items: start;
}
.success .check { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.success .check svg { width: 28px; height: 28px; }
.success p { color: var(--muted); max-width: 55ch; }
.preview-flag { background: var(--warn-soft); border-radius: var(--radius); padding: 10px 12px; font-size: 0.88rem; color: var(--ink); }
