/* Kestrel Ridge Yard & Snow: sample site by Klapak Kreates Digital.
   One idea carries the design: the phone number set like the lettering on a
   work truck's door. Everything else stays quiet so that number wins.
   Sections: 1 tokens, 2 base, 3 header, 4 hero, 5 home sections, 6 inner pages,
   7 footer, 8 motion and print. */

/* 1  Tokens -------------------------------------------------------------- */
:root {
  --spruce: #1f3a2e;      /* the truck: dark panels */
  --ink: #17241d;         /* body text */
  --limestone: #eef1ec;   /* page background, cool rather than cream */
  --frost: #d6e6ee;       /* winter */
  --sod: #4e7a33;         /* summer: rules and markers only, never small text */
  --marigold: #f2b632;    /* safety yellow: the call button and the number */
  --muted: #47574d;
  --line: #c9d3cb;
  --white: #ffffff;

  --sign: Bahnschrift, "DIN Alternate", "DIN Condensed", "Barlow Condensed",
          "Roboto Condensed", "Arial Narrow", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --space: clamp(3rem, 8vw, 6rem);
}

/* 2  Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--text);
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--sign);
  font-stretch: 80%;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p, ul, ol { margin: 0; }
* + p, * + ul, * + ol { margin-top: 1rem; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--white); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--space); }
.lede { max-width: 38rem; font-size: 1.2rem; color: var(--muted); }
.on-dark { background: var(--spruce); color: var(--limestone); }
.on-dark .lede { color: #cfdad2; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--marigold);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Stand-alone links and buttons: at least 44 x 44 px (agency rule). */
.button, .nav a, .link-list a, .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
}
.button {
  padding-inline: 1.25rem;
  border-radius: 0.35rem;
  background: var(--marigold);
  color: var(--ink);
  font-family: var(--sign);
  font-stretch: 85%;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #ffc94d; }
.button--quiet { background: transparent; box-shadow: inset 0 0 0 2px currentColor; color: inherit; }
.button--quiet:hover { background: rgba(255, 255, 255, 0.08); }

/* 3  Header -------------------------------------------------------------- */
.sample-note {
  margin: 0;
  padding: 0.5rem var(--gutter);
  background: var(--frost);
  color: var(--ink);
  font-size: 0.9rem;
  text-align: center;
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.75rem;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 2.75rem;
  font-family: var(--sign);
  font-stretch: 80%;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.wordmark span { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding: 0;
  list-style: none;
}
.nav a { text-decoration-color: transparent; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.nav .nav__call {
  padding-inline: 1rem;
  border-radius: 0.35rem;
  background: var(--spruce);
  color: var(--limestone);
  font-weight: 700;
  text-decoration: none;
}
.nav .nav__call:hover { background: var(--ink); }

/* 4  Hero: the truck door ---------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3.5rem, 10vw, 7rem);
}
/* The marigold door stripe, cut at an angle like vehicle graphics. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto -5% 0 -5%;
  height: clamp(0.9rem, 2.2vw, 1.4rem);
  background: var(--marigold);
  transform: skewY(-1.5deg);
  transform-origin: left bottom;
}
.hero__company {
  font-family: var(--sign);
  font-stretch: 85%;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: #cfdad2;
}
.hero h1 {
  max-width: 18ch;
  margin-top: 0.75rem;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
}
.hero__phone {
  display: inline-block;
  margin-top: clamp(1.75rem, 5vw, 3rem);
  color: var(--marigold);
  font-family: var(--sign);
  font-stretch: 75%;
  font-size: clamp(3.4rem, 15vw, 9.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.hero__phone:hover { text-decoration: underline; text-decoration-thickness: 0.06em; }
.hero__phone-label { margin-top: 0.75rem; font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* 5  Home sections ------------------------------------------------------- */
.seasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
.season { padding: clamp(1.5rem, 4vw, 2.25rem); border-top: 0.5rem solid var(--sod); background: var(--white); }
.season--winter { border-top-color: #5f8aa3; background: var(--frost); }
.season__when { font-family: var(--sign); font-stretch: 85%; font-size: 1.15rem; color: var(--muted); }
.season h3 { margin-top: 0.25rem; font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.price-list { padding: 0; list-style: none; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.season--winter .price-list li { border-bottom-color: #b5ccd8; }
.price-list li span:last-child { flex: none; font-weight: 600; }
.price-note { margin-top: 1rem; font-size: 0.95rem; color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--marigold);
  font-family: var(--sign);
  font-stretch: 75%;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}
.steps h3 { margin-bottom: 0.5rem; }

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}
.area-grid h3 { padding-bottom: 0.4rem; border-bottom: 2px solid var(--ink); }
.area-grid ul { padding: 0; list-style: none; line-height: 1.9; }

.call-band { padding-block: clamp(2.5rem, 6vw, 4rem); }
.call-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.call-band h2 { max-width: 20ch; }

/* 6  Inner pages --------------------------------------------------------- */
.page-title { padding-block: clamp(2.5rem, 7vw, 4.5rem); border-bottom: 0.6rem solid var(--marigold); }
.page-title h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.page-title .lede { margin-top: 1rem; }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 3rem; font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }

.service { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.prose h2 + .service { margin-top: 0.75rem; border-top: 0; }
.service__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; }
.service__head p { margin-top: 0; }
.service__head + p { margin-top: 0.5rem; }
.service__price { font-weight: 600; }

.contact-big {
  display: inline-block;
  font-family: var(--sign);
  font-stretch: 75%;
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.contact-big:hover { text-decoration: underline; }
.link-list { padding: 0; list-style: none; }

/* 7  Footer -------------------------------------------------------------- */
.site-footer { padding-block: 3rem 2rem; background: var(--spruce); color: var(--limestone); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.5rem 3rem;
}
.footer-grid p + p { margin-top: 0.4rem; }
.footer-name { font-family: var(--sign); font-stretch: 80%; font-size: 1.5rem; font-weight: 700; }
.footer-links { padding: 0; list-style: none; }
.site-footer :focus-visible { outline-color: var(--marigold); }
.fine { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(238, 241, 236, 0.25); color: #cfdad2; font-size: 0.9rem; }

/* 8  Motion and print ---------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__phone { animation: arrive 0.6s ease-out both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(0.4em); } }
}
@media print {
  .sample-note, .skip-link, .nav, .hero::after { display: none; }
  .on-dark, .site-footer { background: none; color: var(--ink); }
  .hero__phone { color: var(--ink); }
}
