/*
  base.css: design tokens and shared building blocks for the whole page.
  Every section stylesheet builds on these; nothing here is specific to one section.

  Brand: none exists, so these tokens were defined for this demo from the
  business's own job photos: palm and lawn greens, gray paver stone, Florida sun.
  Tone: solid, crafted, sunny. Not flashy, not corporate, not cheap.
  Type: Archivo (one variable family). Headings use the wider cut (font-stretch)
  to feel sturdy and built ("solid base"); body text uses the normal width.
*/

:root {
  /* Colors */
  --paper: #fafaf6;        /* page background */
  --stone: #edebe4;        /* alternate section background, paver tone */
  --ink: #16221c;          /* body text, dark footer */
  --muted: #4a5951;        /* secondary text on light backgrounds (6.9:1 on paper) */
  --line: #d6d3c8;         /* borders and dividers */
  --palm: #1f4a37;         /* brand: buttons, links, accents */
  --palm-deep: #12301f;    /* brand hover, dark sections */
  --sun: #e8b44a;          /* the one accent: stars, call button and focus ring on dark sections */
  --on-dark: #f3f1ea;      /* text on palm-deep and ink */
  --on-dark-muted: #c6d1ca;/* secondary text on dark (9:1 on palm-deep) */
  --error: #a3271b;        /* form errors only (6.5:1 on stone) */

  /* Type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2.2vw, 3rem);
  --fs-h1: clamp(2.25rem, 1.45rem + 3.6vw, 4.25rem);

  /* Spacing scale (4 to 128) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius: 6px;          /* no shadow style: surfaces are separated by color, not depth */
  --container: 1200px;
  --gutter: var(--s4);
  --header-h: 64px;

  /* Focus ring color; dark sections switch it to --sun so it stays visible. */
  --focus: var(--palm);
}

@media (min-width: 640px) { :root { --gutter: var(--s5); } }
@media (min-width: 1024px) { :root { --gutter: var(--s6); --fs-body: 1.125rem; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
input, select, textarea, button { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* Sections are reached from header links; keep their tops clear of the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + var(--s4)); }

h1, h2, h3 {
  font-stretch: 118%;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { text-wrap: pretty; }

a { color: var(--palm); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons: one primary style (sections restyle it on dark backgrounds). 48px tall for thumbs. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  font-stretch: 108%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--palm); color: var(--on-dark); }
.btn-primary:hover { background: var(--palm-deep); }

/* Five-star row used next to the real Google rating */
.stars { display: inline-flex; gap: 2px; color: var(--sun); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

/* Skip link: first thing a keyboard user reaches */
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 100;
  padding: var(--s3) var(--s4);
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s4); }

/* HomeSampleNotice: the "sample website" strip above the header. */
.sample-notice {
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-align: center;
}
.sample-notice p { padding-block: var(--s2); }

/* HomeHeader: sticky bar with wordmark, section links and the call button. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: var(--header-h);
}

/* Wordmark: no logo exists, so the name is set in the wide heading cut. */
.brand {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.brand__name {
  font-size: 1.3rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
}
.brand__sub {
  margin-top: 3px;
  color: var(--palm);
  font-size: 0.8125rem;
  font-weight: 600;
  font-stretch: 112%;
}

.site-nav { display: none; }
.site-nav__list { display: flex; gap: var(--s5); }
.site-nav a {
  display: inline-block;
  padding-block: var(--s3);
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}
.site-nav a:hover { color: var(--palm); text-decoration: underline; }

.site-header__call { min-height: 44px; padding-inline: var(--s4); }
.site-header__call-full { display: none; }

@media (min-width: 900px) {
  .site-nav { display: block; }
  .site-header__call-short { display: none; }
  .site-header__call-full { display: inline; }
}

/*
  HomeHero: first screen. Phone: full-bleed photo, text over a green fade.
  Desktop (960px+): two halves, text panel left, photo right.
*/
.hero {
  --focus: var(--sun);
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100svh - var(--header-h) - 40px);
  background: var(--palm-deep);
  color: var(--on-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
/* The fade keeps white text readable over the bright pavers at the bottom of the photo. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgb(18 48 31 / 0.97) 0%,
    rgb(18 48 31 / 0.9) 45%,
    rgb(18 48 31 / 0.6) 66%,
    rgb(18 48 31 / 0) 88%);
}

.hero__panel { display: flex; align-items: flex-end; }
.hero__body {
  width: 100%;
  max-width: 40rem;
  padding: var(--s8) var(--gutter) var(--s6);
}

.hero h1 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  margin-bottom: var(--s4);
}
.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  margin-bottom: var(--s5);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin-bottom: var(--s5);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.hero__actions .btn { flex: 1 1 auto; }
/* Call button uses the sun accent: the strongest thing on the screen. */
.hero__call { background: var(--sun); color: var(--ink); }
.hero__call:hover { background: var(--on-dark); }
.hero__work { border-color: var(--on-dark); color: var(--on-dark); }
.hero__work:hover { background: var(--on-dark); color: var(--palm-deep); }

.hero__hours { color: var(--on-dark-muted); font-size: var(--fs-sm); }

@media (min-width: 560px) {
  .hero__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: min(86vh, 860px);
  }
  .hero__media { position: relative; inset: auto; z-index: 0; order: 2; }
  .hero__media::after { display: none; }
  /* Pushes the text block against the middle so its left edge lines up with the page container. */
  .hero__panel { align-items: center; justify-content: flex-end; }
  .hero__body {
    max-width: calc(var(--container) / 2 + var(--gutter));
    padding: var(--s9) var(--s8) var(--s9) var(--gutter);
  }
}

/* Small laptops: give the text a little more of the width so the headline is not five lines tall. */
@media (min-width: 960px) and (max-width: 1199px) {
  .hero { grid-template-columns: 11fr 9fr; }
  .hero__body { padding-right: var(--s6); }
}

/* The one motion moment on the page: the photo settles in on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes hero-settle {
  from { transform: scale(1.06); }
  to { transform: none; }
}

/*
  HomeWork: gallery of finished jobs.
  Phone: one wide photo, then two pairs. Desktop (960px+): a 7/5 row, then three equal columns.
*/
.work { padding-block: var(--s9); }

.work__head {
  display: grid;
  gap: var(--s4);
  margin-bottom: var(--s6);
}
.work__intro p {
  max-width: 34rem;
  margin-bottom: var(--s2);
  color: var(--muted);
}
.work__intro a { font-weight: 600; }

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--s3);
}
.work__item--wide { grid-column: 1 / -1; }

.work__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--stone); /* shows while a lazy photo loads */
}
.work__item--wide img { aspect-ratio: 3 / 2; }

.work__item figcaption {
  margin-top: var(--s2);
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.35;
}

@media (min-width: 960px) {
  .work { padding-block: var(--s10) var(--s9); }
  .work__head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    margin-bottom: var(--s7);
  }
  .work__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--s6) var(--s5);
  }
  .work__item--wide { grid-column: span 7; }
  .work__item--a { grid-column: span 5; }
  .work__item--b, .work__item--c, .work__item--d { grid-column: span 4; }

  /* First row: same height for the wide and the tall photo. */
  .work__item--wide img, .work__item--a img {
    aspect-ratio: auto;
    height: clamp(320px, 34vw, 480px);
  }
  .work__item--b img, .work__item--c img, .work__item--d img { aspect-ratio: 4 / 5; }
}

/*
  HomePavers: paver feature on the stone background.
  Phone: photo then text. Desktop (960px+): photo 7 columns, text 5.
*/
.pavers {
  background: var(--stone);
  padding-block: var(--s8);
}
.pavers__grid {
  display: grid;
  gap: var(--s6);
}
.pavers__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--line);
}
.pavers__photo figcaption {
  margin-top: var(--s2);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.pavers__body h2 { margin-bottom: var(--s5); }
/* One phrase per line, so the business's three-part line never breaks mid-phrase. */
.pavers__body h2 span { display: block; }
.pavers__body p { max-width: 34rem; margin-bottom: var(--s5); }

/* Two short columns of paver work, each marked with a small paver-shaped square. */
.pavers__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3) var(--s5);
  margin-bottom: var(--s6);
  font-weight: 600;
}
.pavers__list li {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.pavers__list li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 8px;
  background: var(--palm);
  border-radius: 1px;
}

@media (min-width: 960px) {
  .pavers { padding-block: var(--s9); }
  .pavers__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: var(--s7);
  }
  .pavers__photo { grid-column: 1 / span 7; }
  .pavers__body { grid-column: 8 / span 5; }
}

/*
  HomeServices: service list.
  Phone: heading, then the list. Desktop (960px+): heading column stays in view
  (sticky) while the list scrolls beside it.
*/
.services { padding-block: var(--s9); }
.services__grid { display: grid; gap: var(--s6); }

.services__intro h2 { margin-bottom: var(--s4); }
.services__intro p { color: var(--muted); max-width: 28rem; }
.services__intro p + p { margin-top: var(--s3); }
.services__call a { font-weight: 600; white-space: nowrap; }

.services__list li {
  display: grid;
  gap: var(--s2);
  padding-block: var(--s5);
  border-top: 1px solid var(--line);
}
.services__list li:last-child { border-bottom: 1px solid var(--line); }
.services__list p { color: var(--muted); max-width: 36rem; }

@media (min-width: 960px) {
  .services { padding-block: var(--s10); }
  .services__grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--s8);
    align-items: start;
  }
  .services__intro {
    position: sticky;
    top: calc(var(--header-h) + var(--s6));
  }
  /* Name left, description right: easier to scan down the names. */
  .services__list li {
    grid-template-columns: 2fr 3fr;
    gap: var(--s6);
    align-items: baseline;
    padding-block: var(--s6);
  }
}

/*
  HomeReviews: dark proof section.
  Phone: score, then quotes. Desktop (960px+): score column left, quotes right.
*/
.reviews {
  --focus: var(--sun);
  background: var(--palm-deep);
  color: var(--on-dark);
  padding-block: var(--s9);
}
.reviews a { color: var(--on-dark); }
.reviews__grid { display: grid; gap: var(--s7); }

.reviews__score h2 { margin-bottom: var(--s5); }
.reviews__number {
  font-size: clamp(4.5rem, 3.5rem + 4vw, 7rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.reviews__stars { margin-block: var(--s3) var(--s2); }
.reviews__stars svg { width: 24px; height: 24px; }
.reviews__count { color: var(--on-dark-muted); margin-bottom: var(--s4); }
.reviews__link { font-weight: 600; }

.reviews__quotes { display: grid; }
.reviews__quote {
  padding-block: var(--s5);
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent);
}
.reviews__quote:first-child { border-top: 0; padding-top: 0; }
.reviews__quote blockquote p {
  font-size: var(--fs-lead);
  line-height: 1.45;
  font-weight: 500;
}
.reviews__quote figcaption {
  margin-top: var(--s3);
  font-weight: 650;
}
.reviews__quote figcaption span {
  margin-left: var(--s2);
  color: var(--on-dark-muted);
  font-weight: 400;
}

@media (min-width: 960px) {
  .reviews { padding-block: var(--s10); }
  .reviews__grid {
    grid-template-columns: 4fr 7fr;
    gap: var(--s9);
    align-items: start;
  }
  .reviews__quote { padding-block: var(--s6); }
  .reviews__quote blockquote p { font-size: 1.5rem; }
}

/*
  HomeContact: contact details and the email form.
  Phone: details, then form. Desktop (960px+): details left, form right.
*/
.contact { padding-block: var(--s9); }
.contact__grid { display: grid; gap: var(--s7); }

.contact__info h2 { margin-bottom: var(--s4); }
.contact__lead { color: var(--muted); margin-bottom: var(--s5); }

/* The phone number is the biggest thing in the section: calling is the main action. */
.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  min-height: 48px;
  margin-bottom: var(--s6);
  color: var(--palm);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.contact__phone svg { width: 0.9em; height: 0.9em; flex: none; }
.contact__phone:hover { text-decoration: underline; }

.contact__details { display: grid; gap: var(--s3); }
/* Padding brings the email and address links up to a 44px tap target. */
.contact__details dd a { display: inline-block; padding-block: 10px; }
.contact__details dt {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.contact__details dd { margin: 0; overflow-wrap: anywhere; }

/* The form is a distinct object, so it gets the one panel style on the page. */
.contact__form {
  display: grid;
  gap: var(--s4);
  padding: var(--s5) var(--s4);
  background: var(--stone);
  border-radius: var(--radius);
}
.contact__form h3 { margin-bottom: var(--s1); }

.field { display: grid; gap: var(--s2); }
.field label { font-weight: 600; }
.field__req {
  margin-left: var(--s1);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s3);
  background: var(--paper);
  border: 1.5px solid var(--muted);
  border-radius: var(--radius);
}
.field textarea { resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--palm); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__error {
  color: var(--error);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.contact__submit { width: 100%; margin-top: var(--s2); }
.contact__hint { color: var(--muted); font-size: var(--fs-sm); }
.contact__status:empty { display: none; }
.contact__status { font-weight: 600; }

@media (min-width: 640px) {
  .contact__form { padding: var(--s6); }
  .contact__submit { width: auto; justify-self: start; }
}

@media (min-width: 960px) {
  .contact { padding-block: var(--s10); }
  .contact__grid {
    grid-template-columns: 5fr 6fr;
    gap: var(--s9);
    align-items: start;
  }
}

/* HomeFooter: dark footer with contact details and the sample notice. */
.site-footer {
  --focus: var(--sun);
  background: var(--ink);
  color: var(--on-dark);
  padding-block: var(--s8) var(--s6);
}
.site-footer a { color: var(--on-dark); }

.site-footer__top {
  display: grid;
  gap: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent);
}
.site-footer__name {
  margin-bottom: var(--s2);
  font-size: 1.3rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
}
.site-footer__name span {
  font-size: 0.8125rem;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: 0;
  color: var(--on-dark-muted);
}
.site-footer__brand p:last-child { max-width: 30rem; color: var(--on-dark-muted); }

.site-footer__contact { display: grid; gap: var(--s2); }
.site-footer__contact a {
  display: inline-block;
  padding-block: var(--s2);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.site-footer__notice {
  padding-top: var(--s5);
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
}

@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: 3fr 2fr; align-items: start; }
}
