/* BlueGill Adventures: site styles. Tokens live in tokens.css; see DESIGN.md */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
/* Menu jumps: land 24px below the 66px sticky header (header 64px + 2px border) */
:root { --header-h: 66px; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-5)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dk); }
:focus-visible { outline: var(--focus); outline-offset: 2px; }
.on-ink :focus-visible { outline-color: var(--focus-on-dark); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 var(--s-4); }

.skip { position: absolute; left: var(--s-4); top: -100px; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); z-index: 20; }
.skip:focus { top: var(--s-4); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* A section's top padding is spacing for normal scrolling. When a menu link jumps to a section,
   a negative scroll-margin of the same size makes the label line (not the empty padding) land under the header. */
.section { --section-pad: var(--s-8); padding: var(--section-pad) 0; scroll-margin-top: calc(-1 * var(--section-pad)); }
.section--flush-top { padding-top: 0; scroll-margin-top: 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .section { --section-pad: var(--s-9); } }

/* ---------- type helpers ---------- */
.label {
  display: inline-block; border-top: 2px solid currentColor; padding-top: var(--s-2);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 var(--s-5);
}
.display, .h1, .h2 { font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.015em; }
.display { font-size: var(--fs-display); line-height: 0.95; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; margin-bottom: var(--s-5); }
.h3 { font-stretch: 87%; font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; }
.lede { font-size: calc(var(--fs-body) * 1.08); max-width: 52ch; }
.muted { color: var(--muted); }
.on-ink .muted { color: var(--muted-on-ink); }
.intro { margin-bottom: var(--s-7); }
.measure { max-width: var(--measure); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-5);
  font: inherit; font-weight: 600; text-decoration: none; line-height: 1.1;
  border-radius: var(--r-sm); border: 2px solid transparent; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--hivis); color: var(--ink); border-color: var(--hivis); }
.btn-primary:hover { background: var(--hivis-dk); border-color: var(--hivis-dk); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.on-ink .btn-secondary { color: var(--paper); border-color: var(--paper); }
.on-ink .btn-secondary:hover { background: var(--paper); color: var(--ink); }
.btn-quiet { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 2px solid var(--ink); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; }
.wordmark {
  font-stretch: 75%; font-weight: 800; font-size: 1.4rem; line-height: 1;
  text-transform: uppercase; color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  display: inline-block; padding: var(--s-1) 0; /* 30px tap target */
}
.wordmark span { color: var(--blue); }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-5); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
.nav a:hover { color: var(--blue); text-decoration: underline; }
.header-cta { display: none; }
.menu-btn {
  font: inherit; font-weight: 600; font-size: var(--fs-small);
  background: none; border: 2px solid var(--ink); border-radius: var(--r-sm);
  min-height: 44px; padding: 0 var(--s-4); color: var(--ink); cursor: pointer;
}
.mobile-nav { border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--s-2) var(--gutter) var(--s-4); }
.mobile-nav a { display: block; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem; }
@media (min-width: 960px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; min-height: 44px; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; }
.hero-copy { padding: var(--s-4) var(--gutter) var(--s-7); }
@media (max-width: 899px) {
  .hero .label { margin-bottom: var(--s-3); }
  .hero h1 { margin-bottom: var(--s-4); }
  .hero .lede { font-size: var(--fs-body); margin-bottom: var(--s-5); }
  .hero .phone { margin-bottom: var(--s-3); }
}
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .accent { color: var(--blue); }
.hero .lede { margin-bottom: var(--s-6); }
.phone-label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s-1); }
.phone {
  display: inline-block; font-stretch: 75%; font-weight: 800;
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); line-height: 1;
  color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; margin-bottom: var(--s-5);
}
.phone:hover { color: var(--blue); }
.hero-photo { margin: 0; background: var(--timber); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: min(820px, calc(100vh - 66px)); }
  .hero-copy { align-self: center; padding: var(--s-8) var(--s-7) var(--s-8) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .hero-photo { position: relative; border-left: 2px solid var(--ink); }
  .hero-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 30%; }
}

/* ---------- trust strip ---------- */
.trust { background: var(--timber); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.trust ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: grid; grid-template-columns: repeat(2, 1fr); }
.trust li { padding: var(--s-5) var(--s-4) var(--s-5) 0; border-bottom: 1px solid rgba(20,32,46,.15); }
.trust strong { display: block; font-stretch: 75%; font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1; text-transform: uppercase; }
.trust span { font-size: var(--fs-small); color: var(--ink); }
@media (min-width: 640px) { .trust ul { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .trust ul { grid-template-columns: repeat(6, 1fr); } .trust li { border-bottom: 0; } }

/* ---------- services: two lanes ---------- */
.lanes { display: grid; gap: var(--s-8); }
@media (min-width: 900px) { .lanes { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
.lane-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); border-bottom: 2px solid var(--ink); padding-bottom: var(--s-3); margin-bottom: 0; }
.lane-head .h2 { margin: 0; }
.lane.painting .lane-head { border-color: var(--blue); }
.lane.painting .lane-head .h2 { color: var(--blue); }
.tag { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--blue); color: var(--white); padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); }
.svc { list-style: none; margin: 0; padding: 0; counter-reset: svc; }
.svc li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-3); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); counter-increment: svc; }
.svc li::before { content: counter(svc, decimal-leading-zero); font-stretch: 75%; font-weight: 800; font-size: var(--fs-h3); color: var(--muted); line-height: 1.2; }
.svc .h3 { margin-bottom: var(--s-1); }
.svc p { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.lane-note { margin-top: var(--s-5); font-size: var(--fs-small); }
.lane-photos { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.lane-photos figure { margin: 0; }
.lane-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); }
.lane-photos figcaption { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--muted); line-height: 1.4; }

/* ---------- feature: near buildings ---------- */
.feature { background: var(--ink); color: var(--paper); }
.feature .label { color: var(--hivis); }
.feature-grid { display: grid; gap: var(--s-7); align-items: center; }
.feature-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.feature-photos figure { margin: 0; }
.feature-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); }
.feature-photos figure:nth-child(2) { margin-top: var(--s-7); }
.feature-photos figcaption { font-size: var(--fs-small); color: var(--muted-on-ink); margin-top: var(--s-2); }
.checks { list-style: none; margin: var(--s-5) 0 var(--s-6); padding: 0; }
.checks li { padding: var(--s-3) 0 var(--s-3) var(--s-6); border-top: 1px solid rgba(246,242,234,.15); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 14px; height: 3px; background: var(--hivis); }
@media (min-width: 900px) { .feature-grid { grid-template-columns: 5fr 6fr; gap: var(--s-8); } }

/* ---------- work gallery ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.section-head .h2 { margin: 0; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-3); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-5); } }
.job { margin: 0; }
.job img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.job figcaption { border: 1px solid var(--line); border-top: 0; background: var(--white); padding: var(--s-3); border-radius: 0 0 var(--r-sm) var(--r-sm); font-size: var(--fs-small); line-height: 1.4; }
.job figcaption b { display: block; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-1); }

/* ---------- quote steps ---------- */
.steps { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); font-stretch: 75%; font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--hivis-dk); }
.steps .h3 { margin-bottom: var(--s-1); }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
  .steps li { grid-template-columns: 1fr; gap: var(--s-3); }
}
.estimate-note { margin-top: var(--s-6); padding: var(--s-4) var(--s-5); background: var(--timber); border-left: 4px solid var(--ink); max-width: 70ch; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); } }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); }
.values { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.values li { border: 2px solid var(--ink); border-radius: var(--r-sm); padding: var(--s-1) var(--s-3); font-weight: 600; font-size: var(--fs-small); }

/* ---------- emergency band ---------- */
.emergency { background: var(--ink); color: var(--paper); position: relative; text-align: center; }
.emergency::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--hivis) 0 14px, var(--ink) 14px 28px);
}
.emergency .label { color: var(--hivis); }
.emergency .h2 { margin-bottom: var(--s-3); }
.emergency .phone { color: var(--hivis); margin: var(--s-4) 0 var(--s-5); }
.emergency .phone:hover { color: var(--paper); }
.emergency .actions { justify-content: center; }

/* ---------- areas + contact ---------- */
.two-col { display: grid; gap: var(--s-8); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.contact-list { list-style: none; margin: 0 0 var(--s-6); padding: 0; }
.contact-list li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9rem 1fr; gap: var(--s-3); }
.contact-list a { overflow-wrap: anywhere; }
@media (max-width: 479px) { .contact-list li { grid-template-columns: 1fr; gap: 0; } }
.contact-list li > span:first-child { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0.25em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: var(--s-7) 0 calc(var(--s-7) + 76px); font-size: var(--fs-small); }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--hivis); }
.site-footer .wordmark { color: var(--paper); display: inline-block; margin-bottom: var(--s-4); }
.site-footer .wordmark span { color: var(--hivis); }
.footer-grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } .site-footer { padding-bottom: var(--s-7); } }
.footer-legal { margin-top: var(--s-6); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s-2); }

/* ---------- sticky mobile action bar ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  background: var(--ink); padding: var(--s-2) var(--s-2) calc(var(--s-2) + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .2s ease-out;
}
.dock.show { transform: translateY(0); }
@media (min-width: 960px) { .dock { display: none; } }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* ---------- job sequences ---------- */
.seq { padding: var(--s-6) 0; border-top: 2px solid var(--ink); }
.seq-head { display: grid; gap: var(--s-1); margin-bottom: var(--s-5); }
@media (min-width: 1100px) { .seq { display: grid; grid-template-columns: 1fr 720px; gap: var(--s-7); align-items: start; } .seq-head { margin: 0; } }
.seq-head p { margin: 0; font-size: var(--fs-small); }
.frames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); max-width: 720px; }
.seq-two .frames { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
.frames figure { margin: 0; position: relative; }
.frames img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-sm); }
.seq-two .frames img { aspect-ratio: 3 / 4; }
.frames figcaption {
  position: absolute; left: var(--s-2); bottom: var(--s-2);
  background: var(--paper); color: var(--ink); border-radius: var(--r-sm);
  padding: 2px var(--s-2); font-size: var(--fs-label); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.frames figcaption b { text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }
.frames li:last-child figcaption { background: var(--hivis); }
@media (max-width: 479px) { .frames figcaption { left: 4px; bottom: 4px; padding: 1px 5px; font-size: var(--fs-label); line-height: 1.25; } .frames figcaption b { display: block; margin: 0; letter-spacing: 0.02em; } }
@media (min-width: 640px) { .frames { gap: var(--s-4); } }

/* ---------- areas list ---------- */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); margin-top: var(--s-5); }
.areas .h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--ink); padding-bottom: var(--s-1); margin-bottom: var(--s-2); }
.areas-note { margin-top: var(--s-5); }
.areas ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); line-height: 1.9; }
@media (min-width: 1100px) { .areas { grid-template-columns: repeat(3, 1fr); } }

/* ---------- short footer (404) ---------- */
.site-footer--short { padding-bottom: var(--s-7); }
