/* Premier Asphalt Services preview
   Ground: white and a pale tint of the logo blue. Ink: asphalt black. Accent: the logo's deep blue.
   Headings: Archivo (semi-condensed). Reading: Figtree. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 87.5%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0f1921;        /* fresh asphalt */
  --paper: #ffffff;
  --tint: #e8f1f8;       /* logo light blue, thinned */
  --blue: #0e67a8;       /* logo deep blue #1076bc, one step deeper for white text */
  --blue-dark: #0a4f83;
  --line: #0f1921;
  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --read: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --top-h: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--read);
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--head);
  font-stretch: 87.5%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
.wrap { padding-inline: var(--pad); max-width: 1680px; margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 12px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .top:not(.is-solid) :focus-visible, .foot :focus-visible { outline-color: #fff; }

/* ---------- Top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--top-h);
  display: flex; align-items: center; gap: 24px;
  padding-inline: var(--pad);
  color: #fff;
  background: transparent;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.top.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 rgba(15, 25, 33, .14); }
.brand { display: block; flex: none; }
.brand img { height: 50px; width: auto; filter: brightness(0) invert(1); transition: filter .25s ease; }
.top.is-solid .brand img { filter: none; }
.menu { display: none; margin-left: auto; gap: clamp(18px, 2.4vw, 40px); }
.menu a { text-decoration: none; font-weight: 600; font-size: 18px; padding: 10px 0; }
.menu a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.top-call {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .3em; min-height: 46px;
  padding: 0 18px;
  font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: #fff;
  transition: background-color .2s ease, color .2s ease;
}
.top.is-solid .top-call { background: var(--blue); color: #fff; }
.top-call:hover { background: var(--tint); }
.top.is-solid .top-call:hover { background: var(--blue-dark); }
@media (min-width: 900px) {
  .menu { display: flex; }
  .top-call { margin-left: 0; }
}
@media (max-width: 599px) { .top { gap: 12px; } .brand img { height: 40px; } .top-call { padding: 0 14px; font-size: 17px; } }
@media (max-width: 359px) { .top-call-word { display: none; } .top-call { padding: 0 12px; font-size: 17px; } .brand img { height: 38px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 30px;
  font-family: var(--read); font-weight: 700; font-size: 20px; line-height: 1.1;
  text-decoration: none; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-main { background: var(--blue); color: #fff; }
.btn-main:hover { background: var(--blue-dark); }
.btn-line { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.text-link { font-weight: 700; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-thickness: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 520px;
  overflow: clip;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: flex-end;
}
.hero-film { position: absolute; inset: 0; will-change: transform; }
.hero-film video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; background: var(--ink) center / cover no-repeat; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8, 14, 20, .5) 0, rgba(8, 14, 20, 0) 150px),
    linear-gradient(to top, rgba(8, 14, 20, .86) 0, rgba(8, 14, 20, .64) 36%, rgba(8, 14, 20, .3) 58%, rgba(8, 14, 20, 0) 82%);
}
.hero-text {
  position: relative; width: 100%;
  padding: 0 var(--pad) clamp(22px, 5vh, 64px);
  will-change: transform;
}
.hero h1 { font-size: clamp(2.05rem, 6.1vw, 6rem); max-width: 17ch; }
.hero-towns { font-size: clamp(1.05rem, 1.6vw, 1.45rem); font-weight: 500; max-width: 40ch; margin: clamp(10px, 1.6vh, 20px) 0 clamp(14px, 2.4vh, 30px); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.hero-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 18px; font-weight: 600; }
.open-line::before, .open-big::before {
  content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  margin-right: 9px; background: currentColor; vertical-align: 1px;
}
[data-open-state="open"]::before { background: #3ecf7a; }
[data-open-state="closed"]::before { background: #ff8b6b; }
.hero-dir { text-underline-offset: 5px; }
@media (max-width: 599px) {
  .hero .btn-main { width: 100%; }
  .hero h1 { max-width: none; }
}
@media (max-height: 560px) and (max-width: 599px) {
  .hero h1 { font-size: 1.85rem; }
  .hero-towns { font-size: 1rem; }
}

/* ---------- About ---------- */
.about { padding-block: clamp(64px, 11vw, 170px); }
.about-grid { display: grid; gap: clamp(24px, 4vw, 80px); }
.about h2 { font-size: clamp(2.1rem, 5vw, 4.6rem); max-width: 14ch; }
.about-copy { font-size: clamp(1.25rem, 1.75vw, 1.6rem); line-height: 1.45; max-width: 34em; }
.about-copy p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Section titles ---------- */
.sec-title { font-size: clamp(2.3rem, 5.6vw, 5.2rem); }
.sec-lead { font-size: clamp(1.2rem, 1.6vw, 1.45rem); margin: 14px 0 0; }

/* ---------- Services ---------- */
.services { background: var(--paper); padding-bottom: clamp(40px, 7vw, 110px); }
.svc {
  display: grid; gap: clamp(22px, 4vw, 72px);
  padding: clamp(36px, 6vw, 96px) var(--pad) 0;
  max-width: 1680px; margin-inline: auto;
  align-items: center;
}
.svc-pic { position: relative; }
.svc-frame { position: relative; overflow: clip; aspect-ratio: 5 / 4; background: var(--tint); }
.svc-frame img { width: 100%; height: 116%; object-fit: cover; position: absolute; left: 0; top: -8%; will-change: transform; }
.svc-slab {
  position: absolute; z-index: 0;
  width: 46%; height: 62%;
  right: calc(-1 * clamp(12px, 2.4vw, 40px)); bottom: calc(-1 * clamp(12px, 2.4vw, 40px));
  background: var(--tint);
  will-change: transform;
}
.svc-flip .svc-slab { right: auto; left: calc(-1 * clamp(12px, 2.4vw, 40px)); }
.svc-frame { z-index: 1; }
.svc-text h3 { font-size: clamp(2rem, 3.9vw, 3.9rem); }
.svc-text p { font-size: clamp(1.25rem, 1.5vw, 1.45rem); margin: clamp(12px, 1.5vw, 22px) 0 clamp(20px, 2.2vw, 34px); max-width: 26em; }
@media (min-width: 900px) {
  .svc { grid-template-columns: 7fr 5fr; }
  .svc-flip { grid-template-columns: 5fr 7fr; }
  .svc-flip .svc-pic { order: 2; }
}
@media (max-width: 599px) { .svc-text .btn { width: 100%; } }

/* ---------- Work ---------- */
.work { padding-top: clamp(72px, 11vw, 170px); }
.work-grid {
  display: grid; gap: clamp(6px, .8vw, 12px);
  margin-top: clamp(28px, 4vw, 60px);
  padding-inline: clamp(6px, .8vw, 12px);
}
.work-grid figure { margin: 0; overflow: clip; aspect-ratio: 4 / 3; background: var(--tint); }
.work-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 600px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- Reviews ---------- */
.reviews { padding-block: clamp(72px, 11vw, 170px); }
.rev-grid { display: grid; gap: clamp(28px, 3.4vw, 56px); margin: clamp(30px, 4vw, 64px) 0 clamp(30px, 4vw, 56px); align-items: start; }
.reviews blockquote { margin: 0; padding-top: 22px; border-top: 3px solid var(--blue); }
.reviews blockquote p { font-size: clamp(1.25rem, 1.45vw, 1.4rem); line-height: 1.5; }
.reviews blockquote footer { display: flex; flex-direction: column; font-size: 18px; }
.reviews blockquote strong { font-weight: 700; font-size: 20px; }
@media (min-width: 900px) { .rev-grid { grid-template-columns: 1fr 1fr 1.25fr; } }

/* ---------- Hours, area, contact ---------- */
.visit { background: var(--tint); padding-block: clamp(64px, 9vw, 140px); }
.visit-grid { display: grid; gap: clamp(44px, 5vw, 80px); }
.visit h2 { font-size: clamp(1.9rem, 3vw, 2.9rem); margin-bottom: 18px; }
.open-big { font-weight: 700; margin-bottom: 14px; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; font-size: 20px; }
.hours th, .hours td { text-align: left; padding: 9px 0; font-weight: 400; border-bottom: 1px solid rgba(15, 25, 33, .22); }
.hours td { text-align: right; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.towns { list-style: none; padding: 0; margin: 0 0 1em; font-family: var(--head); font-stretch: 87.5%; font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.12; }
.visit .btn { width: 100%; max-width: 420px; margin-top: 12px; }
.visit .btn-main { margin-top: 6px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1.1fr 1fr 1fr; } }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #fff; padding-block: clamp(44px, 6vw, 84px); font-size: 18px; }
.foot-grid { display: grid; gap: 26px; }
.foot-logo { height: 62px; width: auto; filter: brightness(0) invert(1); }
.foot address { font-style: normal; }
.foot a { text-underline-offset: 5px; }
.foot-contact { display: flex; flex-direction: column; gap: 8px; margin: 0; overflow-wrap: anywhere; }
.foot-legal { margin: 0; max-width: 46em; }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: auto 1fr 1fr; column-gap: clamp(40px, 6vw, 110px); align-items: start; }
  .foot-legal { grid-column: 1 / -1; }
}

/* ---------- Depth on scroll: transforms only, tied to the scroll position ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-film { animation: film-drift linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
    .hero-text { animation: text-lift linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
    .svc-frame img { animation: pic-drift linear both; animation-timeline: view(block); animation-range: entry 0% exit 100%; }
    .svc-slab { animation: slab-drift linear both; animation-timeline: view(block); animation-range: entry 0% exit 100%; }
  }
}
@keyframes film-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 22vh, 0); } }
@keyframes text-lift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -9vh, 0); } }
@keyframes pic-drift { from { transform: translate3d(0, -6.5%, 0); } to { transform: translate3d(0, 6.5%, 0); } }
@keyframes slab-drift { from { transform: translate3d(0, 44px, 0); } to { transform: translate3d(0, -44px, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
