/* Technical base (sites/kit/starter), styled for Ponti Landscapes from BRAND.md: their black and white, a stone neutral
   from their bluestone photos, their own fonts (Raleway, Nunito Sans; SIL OFL), square corners like the logo's strokes.
   Every colour is a token with its dark value from the start (learnings #44). */
@font-face { font-family: "Raleway"; src: url(fonts/raleway-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(fonts/nunitosans-latin.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #f4f2ed;
  --card: #ffffff;
  --ink: #141414;
  --muted: #4a4f52;
  --line: rgb(20 20 20 / .16);
  --accent: #141414;
  --accent-hover: #3a3f42;
  --on-accent: #ffffff;
  --ring: #2f6f8f;
  --band: #1e2523;
  --on-band: #f4f2ed;
  --on-band-muted: #c9cec9;
  --logo: none;
  --head: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-display: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem);
  --t-h2: clamp(1.8rem, 1.4rem + 1.6vw, 2.7rem);
  --t-h3: 1.25rem;
  --t-lead: clamp(1.1rem, 1.05rem + .25vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: .9rem;
  --pad: clamp(1.25rem, 4.5vw, 3rem);
  --max: 76rem;
  --space: clamp(4rem, 8vw, 7rem);
  --bar: 4.25rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121413;
    --card: #1b1e1d;
    --ink: #ecebe6;
    --muted: #b0b5b1;
    --line: rgb(236 235 230 / .16);
    --accent: #ecebe6;
    --accent-hover: #ffffff;
    --on-accent: #121413;
    --ring: #e0b04a;
    --band: #1f2624;
    --on-band: #ecebe6;
    --on-band-muted: #b9beba;
    --logo: invert(1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: var(--t-h2); line-height: 1.1; margin-bottom: 1.5rem; }
h3 { font-size: var(--t-h3); line-height: 1.25; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
main:focus { outline: none; }

.skip { position: absolute; left: -999px; top: .5rem; z-index: 20; background: var(--ink); color: var(--paper); padding: .6rem .9rem; }
.skip:focus { left: .5rem; }

/* Header: logo, menu, Call; on phones the menu folds behind a button */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 95%, transparent); border-bottom: 1px solid transparent; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar-in { max-width: var(--max); margin: 0 auto; min-height: var(--bar); padding: .5rem var(--pad); display: flex; align-items: center; gap: 1.25rem; }
.brand { margin-right: auto; min-width: 0; display: block; padding: .25rem 0; }
.brand img { width: clamp(8.5rem, 6rem + 8vw, 11rem); filter: var(--logo); }
.menu { display: flex; gap: 1.5rem; font-weight: 600; }
.menu a { text-decoration: none; padding: .5rem 0; }
.menu a:hover { text-decoration: underline; }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; flex: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 1.1rem; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.wide-only { display: none; }
@media (min-width: 64rem) { .wide-only { display: inline; } }
@media (max-width: 47.99rem) {
  .bar-in { gap: .75rem; }
  .menu-btn { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: .5rem var(--pad) 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .menu[hidden] { display: none; }
  .menu a { padding: .75rem 0; border-top: 1px solid var(--line); }
}
@media (min-width: 48rem) { .menu[hidden] { display: flex; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.4rem; background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent); text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-sm { min-height: 2.75rem; padding: .5rem 1rem; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.5rem 0 0; }
.text-link { font-weight: 700; padding: .75rem .25rem; }

main > section { max-width: var(--max); margin: 0 auto; padding: var(--space) var(--pad) 0; }
.lead { font-size: var(--t-lead); color: var(--muted); max-width: 38rem; }

/* Hero: what, where and Call on the first phone screen, their own patio photo under it */
main > .hero { padding-top: clamp(1.75rem, 5vw, 4.5rem); }
.hero-text h1 { max-width: 14ch; }
.hero-side { margin-top: 1.25rem; }
.hero-side .lead { margin: 0; }
.hero-img { display: block; margin: clamp(2rem, 4vw, 3.5rem) calc(var(--pad) * -1) 0; }
.hero-img img { width: 100%; }
@media (max-width: 47.99rem) {
  .hero .actions .btn { flex: 1 1 100%; }
}
@media (min-width: 48rem) {
  .hero-text { display: grid; grid-template-columns: 7fr 5fr; gap: 2rem 4rem; align-items: end; }
  .hero-side { margin: 0; padding-bottom: .4rem; }
  .hero-img { margin-left: 0; margin-right: 0; }
  .hero-img img { aspect-ratio: 3 / 2; max-height: 44rem; object-fit: cover; }
}

/* Design and build: a dark band, like the shade under their pergolas */
main > .band { max-width: none; padding: 0; margin-top: var(--space); background: var(--band); color: var(--on-band); }
.band-in { max-width: var(--max); margin: 0 auto; padding: var(--space) var(--pad); display: grid; gap: 1rem 4rem; }
.band h2 { margin: 0; }
.band-text p { color: var(--on-band-muted); font-size: var(--t-lead); max-width: 34rem; }
.band-text p:first-child { color: var(--on-band); }
@media (min-width: 48rem) { .band-in { grid-template-columns: 5fr 7fr; align-items: start; } }

/* Work: their photos by service, an uneven two-column grid on desktop */
.work { display: grid; gap: 3rem; }
.w picture { display: block; margin-bottom: 1.1rem; }
.w img { width: 100%; }
.w h3 { margin-bottom: .5rem; }
.w p { color: var(--muted); max-width: 34rem; }
.w-care { border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.more { margin-top: 1.5rem; }
.more a { font-weight: 700; color: var(--ink); }
@media (min-width: 48rem) {
  .work { grid-template-columns: repeat(12, 1fr); gap: 4.5rem 2.5rem; align-items: start; }
  .w-patio { grid-column: 1 / span 7; }
  .w-light { grid-column: 8 / span 5; margin-top: 6rem; }
  .w-walk { grid-column: 1 / span 5; }
  .w-drain { grid-column: 6 / span 7; margin-top: 4rem; }
  .w-design { grid-column: 1 / span 5; }
  .w-care { grid-column: 7 / span 6; align-self: center; }
}

/* Reviews: one long review set large, two beside it */
.rating { font-size: var(--t-lead); margin-bottom: 2.5rem; }
.rating a { font-weight: 700; }
.quotes { display: grid; gap: 2.5rem; }
blockquote { margin: 0; }
blockquote p { margin-bottom: .75rem; }
blockquote footer { color: var(--muted); font-size: var(--t-small); font-weight: 600; }
.q-main p { font: 500 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.5 var(--head); }
@media (min-width: 48rem) {
  .quotes { grid-template-columns: 7fr 5fr; gap: 2.5rem 4rem; }
  .q-main { grid-row: span 2; }
}

/* How it works: four steps in reading order, thin rules instead of numbers */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.steps li { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Contact */
.contact { display: grid; gap: 3rem; }
.contact .lead { margin: 0; }
.facts { margin: 0; display: grid; gap: 1.5rem; }
.facts dt { font-family: var(--head); font-weight: 600; margin-bottom: .25rem; }
.facts dd { margin: 0; color: var(--muted); }
.facts a { color: var(--ink); }
@media (min-width: 48rem) {
  .contact { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; }
  .facts { border-left: 1px solid var(--line); padding-left: 2.5rem; }
}

.foot { max-width: var(--max); margin: var(--space) auto 0; padding: 2rem var(--pad) 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-small); }
.foot p { margin: 0 0 .4rem; }
.foot-name { color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.foot-links { display: flex; gap: 1.25rem; }
.foot-links a, .foot a { display: inline-block; padding: .5rem 0; }

/* Privacy, accessibility and 404 pages */
.page main { max-width: 40rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--pad) 0; }
.page h1 { font-size: var(--t-h2); margin-bottom: 1.5rem; }
.date { color: var(--muted); font-size: var(--t-small); }
