/* Chip seal landing page (services/chip-seal.html). Scoped to .cs-* classes;
   the site's own tokens come from tri-city-asphalt-services.css. Mobile first. */

::selection { background: #fc5100; color: #fff; }

.cs-hero, .cs-layers, .cs-fits, .cs-why, .cs-faq {
  --cs-ease: cubic-bezier(.16, 1, .3, 1);
  --cs-mist: #dbe7f2;
  --cs-line: #ece4d9;
  --cs-orange-text: #c43f00;
}

/* ---------- Hero ---------- */
.cs-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 0 200px;
  background: var(--color--primary);
  color: #fff;
}
.cs-hero__media, .cs-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cs-hero__media { z-index: -2; }
.cs-hero__media img { object-fit: cover; object-position: 62% 100%; }
.cs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(1, 24, 42, .88) 0%, rgba(1, 24, 42, .84) 62%, rgba(1, 24, 42, .26) 80%, rgba(1, 24, 42, 0) 100%);
}
.cs-hero__inner { position: relative; }
.cs-hero__title, .cs-hero__lede { text-shadow: 0 2px 16px rgba(1, 24, 42, .55); }
.cs-hero__title {
  max-width: 13ch;
  margin: 0 0 14px;
  color: #fff;
  font-family: Oswald, sans-serif;
  font-size: clamp(42px, 11vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.cs-hero__lede {
  max-width: 50ch;
  margin: 0 0 18px;
  color: #e9eff5;
  font-size: 18px;
  line-height: 1.5;
}
.cs-offer {
  display: inline-block;
  margin: 0 0 20px;
  padding: 9px 14px;
  background: #fff7ed;
  color: var(--color--primary);
  font-size: 16px;
  line-height: 1.4;
}
.cs-offer strong {
  color: var(--cs-orange-text);
  font-family: Oswald, sans-serif;
  font-size: 20px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
#quote { scroll-margin-top: 110px; }

/* ---------- Buttons ---------- */
.cs-actions { display: flex; flex-direction: column; gap: 12px; }
.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border: 2px solid #d04000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .25s var(--cs-ease), color .25s var(--cs-ease), border-color .25s var(--cs-ease), transform .25s var(--cs-ease);
}
.cs-btn--primary { background: #d04000; color: #fff; }
.cs-btn--primary:hover { background: #faa32c; border-color: #faa32c; color: var(--color--primary); transform: translateY(-1px); }
.cs-btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.cs-btn--ghost:hover { background: #fff; color: var(--color--primary); transform: translateY(-1px); }
.cs-btn--dark { margin-top: 6px; background: var(--color--primary); border-color: var(--color--primary); color: #fff; }
.cs-btn--dark:hover { background: #d04000; border-color: #d04000; color: #fff; transform: translateY(-1px); }
.cs-btn:focus-visible, .cs-faq__item summary:focus-visible {
  outline: 3px solid #faa32c;
  outline-offset: 3px;
}

.cs-fits .cs-btn:focus-visible, .cs-faq .cs-btn:focus-visible, .cs-faq__item summary:focus-visible { outline-color: var(--color--primary); }

/* ---------- Shared type ---------- */
.cs-h2 { margin-bottom: 16px; font-size: clamp(32px, 7vw, 48px); line-height: 1.1; text-wrap: balance; }
.cs-h2--light { color: #fff; }
.cs-h3 {
  margin: 0 0 8px;
  color: var(--color--primary);
  font-family: Oswald, sans-serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
}
.cs-h3--light { color: #fff; }
.cs-p { max-width: 65ch; margin: 0 0 16px; color: var(--color--text); font-size: 17px; line-height: 1.6; }
.cs-p--light { color: var(--cs-mist); }

/* ---------- Layers: the page's one authored moment ---------- */
.cs-layers { padding: 64px 0 56px; background: var(--color--primary); color: #fff; overflow-x: clip; }
.cs-layers__road { margin: 12px 0 36px; }
.cs-layers__art { display: block; width: 100%; min-width: 1040px; height: auto; margin-left: 50%; transform: translateX(-50%); }
.cs-layers__labels text {
  fill: #fff;
  font-family: Oswald, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .03em;
  paint-order: stroke;
  stroke: rgba(1, 24, 42, .72);
  stroke-width: 5px;
}
.cs-steps { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: cs-step; }
.cs-steps li { padding-top: 14px; border-top: 3px solid #fc5100; counter-increment: cs-step; }
.cs-steps li::before {
  content: counter(cs-step);
  display: block;
  margin-bottom: 6px;
  color: #ff8a4d;
  font-family: Oswald, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}
.cs-steps .cs-p { margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cs-binder {
      transform-box: fill-box;
      transform-origin: left center;
      animation: cs-spray linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
    .cs-stones {
      animation: cs-settle cubic-bezier(.16, 1, .3, 1) both;
      animation-timeline: view();
    }
    .cs-stones--1 { animation-range: entry 40% cover 24%; }
    .cs-stones--2 { animation-range: entry 50% cover 27%; }
    .cs-stones--3 { animation-range: entry 60% cover 30%; }
    .cs-stones--4 { animation-range: entry 70% cover 33%; }
  }
}
@keyframes cs-spray { from { transform: scaleX(.04); } to { transform: scaleX(1); } }
@keyframes cs-settle {
  from { opacity: 0; transform: translateY(-64px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Where it fits ---------- */
.cs-fits { padding: 64px 0; background: #fff7ed; }
.cs-fits__grid { display: grid; gap: 28px; }
.cs-list { margin: 0; }
.cs-list__row { padding: 16px 0; border-top: 1px solid #e6d8c6; }
.cs-list__row:last-child { border-bottom: 1px solid #e6d8c6; }
.cs-list dt {
  margin-bottom: 4px;
  color: var(--color--primary);
  font-family: Oswald, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}
.cs-list dd { margin: 0; color: var(--color--text); font-size: 16px; line-height: 1.5; }

/* ---------- Why Tri City ---------- */
.cs-why { padding: 64px 0; background: var(--color--dark-blue); color: #fff; }
.cs-why__grid { display: grid; gap: 36px; }
.cs-checks { margin: 8px 0 0; padding: 0; list-style: none; }
.cs-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(219, 231, 242, .2);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.cs-checks svg { flex: none; margin-top: 3px; color: #ff8a4d; }
.cs-finance { padding: 26px 22px; border: 2px solid rgba(219, 231, 242, .35); }

/* ---------- FAQ ---------- */
.cs-faq { padding: 64px 0; background: #fff; }
.cs-faq__wrap { display: grid; gap: 18px; }
.cs-faq__item { border-top: 1px solid var(--cs-line); }
.cs-faq__item:last-child { border-bottom: 1px solid var(--cs-line); }
.cs-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--color--primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.cs-faq__item summary::-webkit-details-marker { display: none; }
.cs-faq__item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid #d04000;
  border-bottom: 2.5px solid #d04000;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s var(--cs-ease);
}
.cs-faq__item[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.cs-faq__item .cs-p { padding-bottom: 6px; }

/* ---------- Larger screens ---------- */
@media (min-width: 480px) {
  .cs-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 768px) {
  .cs-hero { padding: 110px 0 96px; }
  .cs-hero__media img { object-position: 50% 62%; }
  .cs-hero::before { background: linear-gradient(90deg, rgba(1, 24, 42, .92) 0%, rgba(1, 24, 42, .8) 58%, rgba(1, 24, 42, .16) 100%); }
  .cs-hero__lede { font-size: 20px; }
  .cs-layers, .cs-fits, .cs-why, .cs-faq { padding: 96px 0; }
  .cs-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .cs-layers__art { min-width: 0; margin-left: 0; transform: none; }
}
@media (min-width: 992px) {
  .cs-hero { padding: 150px 0 120px; }
  .cs-hero__title { max-width: 15ch; }
  .cs-hero__lede { max-width: 44ch; }
  .cs-hero::before {
    background: linear-gradient(90deg, rgba(1, 24, 42, .9) 0%, rgba(1, 24, 42, .74) 38%, rgba(1, 24, 42, .3) 56%, rgba(1, 24, 42, 0) 76%);
  }
  .cs-fits__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; align-items: start; }
  .cs-why__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .cs-faq__wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
}
