/* Central Coast Yard Services - Atascadero - spec build #55
   ---------------------------------------------------------------------------
   PALETTE SAMPLED OFF HIS OWN WORK (no logo exists):
   - Olive  #343E1D  from the medians of the lawn (#424C24) and shrub
                     (#252A0E) pixels in p08 and p01.
   - Stone  #EDEAE4  the river rock (#B1AAA3 median), lightened for a ground.
   - Bark   #705242  median of the bark mulch in p07, used as sampled.

   Structure, unlike #46-#54: the house style's FULL-BLEED PHOTO HERO (his
   rock creek bed, type set on a scrim at the bottom), then a six-photo
   mosaic, ONE long review on an olive band, the license, a stone reach band.
   No dark masthead band, sentence case, no eyebrows.

   ⚠ EVERY RATIO BELOW WAS COMPUTED, NOT ESTIMATED.
     #EDEAE4 stone on olive 9.44 | olive on stone 9.44
     #C9D3AE sage on olive 7.24 | #B8BDA6 mutedD on olive 5.87   DARK ONLY
     #705242 bark on stone 5.88 | on white 7.06 | white on it 7.06
     #1C1F14 ink on stone 13.93 | #5A5A50 muted on stone 5.80
     Hero type: white on the scrim; the scrim bottoms out at rgba(20,24,10,.82),
     darker than olive, so white stays above 9:1 where the text sits.
   --------------------------------------------------------------------------- */

:root {
  --olive:  #343E1D;
  --stone:  #EDEAE4;
  --white:  #FFFFFF;
  --bark:   #705242;
  --ink:    #1C1F14;
  --sage:   #C9D3AE;   /* DARK GROUNDS ONLY */
  --muted:  #5A5A50;
  --mutedD: #B8BDA6;   /* DARK GROUNDS ONLY */
  --rule:   #D9D4CA;
  --wide: 1180px;
  --sect: clamp(64px, 9vw, 108px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}

/* Browser surfaces. The parts you did not draw still carry the design, and
   this is the cheapest signal that a page was built rather than assembled. */
::selection      { background: var(--olive); color: var(--stone); }
:root            { caret-color: var(--bark); accent-color: var(--olive); }
:focus-visible   { outline: 2px solid var(--bark); outline-offset: 3px; }
a                { color: var(--bark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tabular, time, dd { font-variant-numeric: tabular-nums; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--olive) var(--stone); scrollbar-width: thin; }
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted); }
h1, h2 { letter-spacing: -0.025em; line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 12px; }
.intro { color: var(--muted); max-width: 60ch; margin: 0 0 30px; }

.btn { display: inline-block; background: var(--bark); color: var(--white); font-weight: 700;
  text-decoration: none; padding: 15px 26px; border-radius: 999px; white-space: nowrap; }
.btn:hover { background: #5A4134; }

/* ── Masthead ─────────────────────────────────────────────────────────── */
.mast { background: var(--stone); border-bottom: 1px solid var(--rule); }
.mast .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  justify-content: space-between; padding-block: 16px; }
.mark { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--olive); line-height: 1.15; }
.mark span { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.mast .tel { color: var(--olive); font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--olive); border-radius: 999px; padding: 9px 18px; }
.mast .tel:hover { background: var(--olive); color: var(--stone); }

/* ── Full-bleed hero ──────────────────────────────────────────────────── */
.hero { position: relative; height: min(82vh, 760px); min-height: 520px; overflow: hidden; background: var(--olive); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-type { position: absolute; left: 0; right: 0; bottom: 0; padding-block: 120px 44px;
  background: linear-gradient(to top, rgba(20,24,10,.82) 0%, rgba(20,24,10,.72) 55%, rgba(20,24,10,0) 100%);
  color: var(--white); }
.hero h1 { font-size: clamp(36px, 5.4vw, 66px); margin: 0 0 16px; max-width: 16ch; }
.lede { font-size: 19px; max-width: 44ch; margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.actions span { color: var(--sage); font-size: 15px; font-weight: 600; }

/* ── Mosaic ───────────────────────────────────────────────────────────── */
.work { padding-block: var(--sect); }
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.mosaic figure { display: flex; flex-direction: column; }
.mosaic figure img { flex: 1; min-height: 0; }
.mosaic figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.m-a { grid-column: 1 / 6; grid-row: span 2; }
.m-b { grid-column: 6 / 10; }
.m-c { grid-column: 10 / 13; }
.m-d { grid-column: 6 / 9; }
.m-e { grid-column: 9 / 13; }
.m-f { grid-column: 1 / 13; }
.m-b img, .m-c img, .m-d img, .m-e img { aspect-ratio: 4 / 5; }
.m-f img { aspect-ratio: 21 / 8; object-position: 50% 70%; }

/* ── Review band ──────────────────────────────────────────────────────── */
.review-band { background: var(--olive); color: var(--stone); padding-block: var(--sect); }
.review { margin: 0; max-width: 820px; }
.review blockquote { margin: 0; }
.review p { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.65; margin: 0 0 18px; }
.review p:first-child::before { content: "\201C"; display: block; font-size: 90px; line-height: .6; color: var(--sage); margin-bottom: 18px; }
.review figcaption { color: var(--mutedD); font-size: 15px; }
.review figcaption b { color: var(--sage); }

/* ── License ──────────────────────────────────────────────────────────── */
.license { padding-block: var(--sect); background: var(--white); }
.license .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 72px); }
.record { margin: 0; border-top: 3px solid var(--olive); }
.record div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.record dt { color: var(--muted); font-size: 15px; }
.record dd { margin: 0; }
.record .hi dd { font-weight: 800; font-size: 21px; color: var(--bark); }

/* ── Reach ────────────────────────────────────────────────────────────── */
.reach { padding-block: clamp(48px, 7vw, 80px); border-top: 1px solid var(--rule); }
.reach .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.reach h2 { margin-bottom: 6px; color: var(--olive); }
.reach .muted { margin: 0; }
.big { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -0.02em; }
.big a { color: var(--olive); text-decoration: none; }

/* ── Letter ───────────────────────────────────────────────────────────── */
.letter { padding-block: var(--sect); background: var(--white); }
.letter .wrap { max-width: 700px; }
.letter p { font-size: 18px; margin: 0 0 18px; }
.sign { margin-top: 26px !important; font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { background: var(--olive); color: var(--stone); padding-block: 56px 96px; }
footer .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
footer h4 { margin: 0 0 8px; font-size: 17px; }
footer p { margin: 0 0 4px; color: var(--mutedD); font-size: 15px; }
footer a { color: var(--sage); }
footer .legal { grid-column: 1 / -1; margin-top: 18px; padding-top: 18px; border-top: 1px solid #4A5530; font-size: 13px; line-height: 1.6; }

.callbar { display: none; }

@media (max-width: 900px) {
  .license .wrap { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .m-a, .m-f { grid-column: 1 / -1; grid-row: auto; }
  .m-b, .m-c, .m-d, .m-e { grid-column: auto; }
  .m-a img { aspect-ratio: 4 / 5; }
  .m-f img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .hero { height: 78vh; min-height: 540px; }
  footer .wrap { grid-template-columns: 1fr; }
  .record div { grid-template-columns: 1fr; gap: 2px; }
  .mast .tel { display: none; }
  .callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--olive);
  }
  .callbar a { display: block; text-align: center; background: var(--bark); color: var(--white);
    font-weight: 700; text-decoration: none; border-radius: 999px; padding: 14px; }
}
