/*
  Gammill Global. Mobile-first: base rules are the phone layout.
  Breakpoints (min-width), used as literals because media queries can't read custom properties:
    sm 576px | md 768px | lg 992px | xl 1200px | xxl 1400px
*/

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #367C2B;
  --green-dark: #2A5E21;
  --yellow: #FFDE00;
  --ink: #1A1A1A;
  --muted: #444444;
  --white: #FFFFFF;
  --tint: #EDF4EB;         /* pale tint of the brand green: section and tile backgrounds */
  --placeholder: #E4E4E4;

  /* Spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 104px;

  --measure: 65ch;
  --wrap: 80rem;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; accent-color: var(--green); scroll-padding-top: 120px; }

body {
  margin: 0;
  font: 400 1.125rem/1.55 var(--font);
  color: var(--ink);
  background: var(--white);
}

::selection { background: var(--yellow); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--green-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 2.5vw + 1.25rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--green-dark);
  text-wrap: balance;
}

h3 { font-size: 1.375rem; line-height: 1.25; font-weight: 800; }

p { max-width: var(--measure); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--s2); padding-right: var(--s2); }

/* ---------- Header: white, yellow rule, hides on scroll down, returns on scroll up ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 4px solid var(--yellow);
  transition: transform 0.2s ease-out;
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand tel" "nav nav";
  align-items: center;
  column-gap: var(--s2);
  padding-top: var(--s1);
  padding-bottom: var(--s1);
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--ink); justify-self: start; }
.brand:hover { color: var(--ink); }
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
}
.name { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.tel { grid-area: tel; display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--green-dark); }
.nav { grid-area: nav; display: flex; gap: var(--s4); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { font-weight: 800; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 0.35em; }
.nav a:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: var(--s2) var(--s4);
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  font: 800 1.25rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .top .btn:hover, .cta .btn:hover { background: var(--white); color: var(--ink); }
.top .btn, .cta .btn { color: var(--ink); }
.btn:active, .top .btn:active, .cta .btn:active { background: var(--ink); color: var(--yellow); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.top .btn:focus-visible, .cta .btn:focus-visible { outline-color: var(--white); }
.btn[aria-disabled="true"] { background: var(--placeholder); color: var(--muted); border-color: var(--muted); cursor: not-allowed; }

/* ---------- Hero ---------- */
.top { background: var(--green); color: var(--white); }
.hero { display: grid; gap: var(--s4); padding-top: var(--s5); padding-bottom: var(--s5); }
.hero-copy { display: grid; align-content: center; gap: var(--s3); justify-items: start; }
.lede { font-size: 1.375rem; line-height: 1.45; max-width: 32rem; }
/* White matte around the photo, like a print */
.hero-photo { width: 100%; max-width: 28rem; height: auto; padding: var(--s1); background: var(--white); }

/* Inner pages: same green field as the home hero, text only */
.page-hero { background: var(--green); color: var(--white); padding-top: var(--s5); padding-bottom: var(--s5); }
.page-hero h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
.page-hero .lede { margin-top: var(--s3); }

/* ---------- Sections and tiles ---------- */
.section { padding-top: var(--s5); padding-bottom: var(--s5); }
.section--tint { background: var(--tint); }
.section > .wrap > h2 { margin-bottom: var(--s4); }

/* A tile takes the tint on white sections and white on tint sections */
.tile { background: var(--tint); padding: var(--s3); }
.section--tint .tile { background: var(--white); }

.cols { display: grid; gap: var(--s3); }
.tiles { display: grid; gap: var(--s3); align-content: start; }

/* Prices */
.price dt { font-size: 1.375rem; font-weight: 600; margin-bottom: var(--s1); }
.price dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); }
.amount { font-size: clamp(3.5rem, 8vw + 1rem, 5.5rem); line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--green-dark); }
.per { font-size: 1.125rem; }
.tile > h3 { margin-bottom: var(--s3); }
.list { list-style: none; padding: 0; display: grid; gap: var(--s2); }
/* Bullet is a small front-loading washer, drawn as SVG (stroke #2A5E21) */
.list li {
  position: relative;
  padding-left: 36px;
  font-size: 1.375rem;
  line-height: 1.35;
  font-weight: 600;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.17em;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%232A5E21' stroke-width='2'%3E%3Crect x='4' y='2' width='20' height='24' rx='2'/%3E%3Ccircle cx='14' cy='16' r='6'/%3E%3Ccircle cx='9' cy='6.5' r='1' fill='%232A5E21' stroke='none'/%3E%3Cline x1='13' y1='6.5' x2='20' y2='6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* FAQ accordions: native details/summary, plus and minus drawn with two bars */
.faq { display: grid; gap: var(--s2); max-width: 52rem; }
.faq .faq-item { padding: 0; overflow: hidden; cursor: pointer; }
.faq-item summary {
  position: relative;
  display: block;
  min-height: 56px;
  padding: var(--s3) 72px var(--s3) var(--s3);
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: var(--s3);
  top: 50%;
  width: 20px;
  height: 3px;
  background: var(--green-dark);
  transform: translateY(-50%);
}
.faq-item summary::after { transform: translateY(-50%) rotate(90deg); }
/* Plus returns the moment closing starts, not when the animation ends */
.faq-item[open]:not(.is-closing) summary::after { display: none; }
.faq-item summary:hover { color: var(--green-dark); }
.faq-item summary:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.faq-item p { padding: 0 var(--s3) var(--s3); }

/* Numbered steps: square numerals echo the header mark */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--s3); }
.steps li { counter-increment: step; position: relative; padding-left: 64px; font-size: 1.375rem; line-height: 1.35; font-weight: 600; min-height: 44px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--green-dark);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
}

/* Photos: white matte with the caption inside it */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
.gallery figure, .mat { display: flex; flex-direction: column; background: var(--green-dark); padding: var(--s2) var(--s2) var(--s3); }
.gallery figure:last-child { grid-column: 1 / -1; }
.gallery img, .mat img { flex: 1 1 auto; min-height: 0; width: 100%; height: auto; object-fit: cover; background: var(--placeholder); }
/* Yellow label hangs off the bottom edge of the photo, echoing the header mark */
.gallery figcaption, .mat figcaption {
  align-self: flex-start;
  position: relative;
  margin: -20px 0 0 var(--s2);
  padding: 6px var(--s2);
  background: var(--yellow);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.mat { max-width: 28rem; }

/* Reviews */
.reviews { display: grid; gap: var(--s3); }
.stars { display: block; width: 120px; height: 20px; margin-bottom: var(--s2); fill: var(--green-dark); }
.review blockquote p { font-size: 1.375rem; line-height: 1.45; }
.review footer { margin-top: var(--s2); font-size: 0.9375rem; color: var(--muted); }
.review footer strong { color: var(--ink); }

/* Service area */
.area-lede { font-size: 1.375rem; line-height: 1.45; margin-bottom: var(--s4); }
.tile p { font-size: 1.125rem; }
.tile p + p { margin-top: var(--s2); }
.tile .btn { margin-top: var(--s3); }
.tile .save { display: block; margin-top: var(--s3); font-weight: 800; }
.section-note { font-size: 1.375rem; line-height: 1.45; margin-bottom: var(--s4); }

/* Closing call to act */
.cta { background: var(--green); color: var(--white); padding-top: var(--s5); padding-bottom: var(--s5); }
.cta h2 { color: var(--white); }
.cta .wrap { display: grid; gap: var(--s3); justify-items: start; }
.cta a:not(.btn) { color: var(--white); font-weight: 800; }
.cta a:not(.btn):hover { color: var(--yellow); }
.cta a:focus-visible { outline-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { padding-top: var(--s5); padding-bottom: var(--s5); }
.site-footer .wrap { display: grid; gap: var(--s3); }
.site-footer p { font-size: 1rem; }
.site-footer strong { display: block; }

/* ---------- Text pages ---------- */
.prose { padding-top: var(--s5); padding-bottom: var(--s5); }
.prose h1 { margin-bottom: var(--s3); color: var(--green-dark); }
.prose p { margin-bottom: var(--s2); }

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 576px) {
  .wrap { padding-left: var(--s3); padding-right: var(--s3); }
}

@media (min-width: 768px) {
  .header-grid { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav tel"; column-gap: var(--s4); }
  .nav { justify-self: end; }
  .tile { padding: var(--s4); }
  /* 9:9:16 keeps a portrait, a portrait, and a 4:3 landscape photo at the same height */
  .gallery { grid-template-columns: 9fr 9fr 16fr; }
  .gallery figure:last-child { grid-column: auto; }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .tiles--two { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  html { scroll-padding-top: 88px; }
  .hero { grid-template-columns: 1fr 26rem; align-items: center; gap: var(--s5); padding-top: var(--s5); padding-bottom: var(--s6); }
  .hero-photo { justify-self: end; }
  .section { padding-top: var(--s6); padding-bottom: var(--s6); }
  .cols { grid-template-columns: 1fr 1fr; gap: var(--s3); align-items: stretch; }
  .cta { padding-top: var(--s6); padding-bottom: var(--s6); }
  .page-hero { padding-top: var(--s6); padding-bottom: var(--s6); }
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
