/* The John Lawn Company
   Mobile first. Breakpoints: 320 (base), 768 (tablet), 1024 (laptop), 1440 (large desktop). */

:root {
  --green-950: #0F2416;
  --green-900: #143220;
  --green-800: #1C4027;
  --green-600: #2F6B3D;
  --rust-700: #9A3B18;
  --rust-600: #B4471F;
  --gold-400: #E7B03C;
  --cream-50: #FBF8F1;
  --cream-100: #F4EEE1;
  --cream-200: #EAE1CD;
  --fall-bg: #F6E5D1;
  --fall-line: rgba(154, 59, 24, 0.18);
  --winter-bg: #E3EEF4;
  --winter-ink: #1B4A66;
  --winter-600: #24638A;
  --winter-line: rgba(27, 74, 102, 0.16);
  --ink: #18201A;
  --ink-muted: #4C574E;
  --line: rgba(24, 32, 26, 0.12);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --gutter: 16px;
  --max: 1240px;
  --radius: 18px;
  --radius-lg: 24px;
  --header-h: 64px;
  --section-y: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 88px; --header-h: 72px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; --section-y: 104px; --radius-lg: 28px; }
}
@media (min-width: 1440px) {
  :root { --gutter: 48px; --max: 1280px; --section-y: 128px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
figure { margin: 0; }

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

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

.section { padding-block: var(--section-y); }

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green-800);
  color: var(--cream-50);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-600);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--gold-400); }

.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
.section-lede { margin-top: 14px; color: var(--ink-muted); font-size: 1.0625rem; }

@media (min-width: 1024px) {
  .section-head { max-width: 780px; margin-bottom: 52px; }
  .section-lede { font-size: 1.1875rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.btn-primary { background: var(--rust-600); color: #fff; }
.btn-primary:hover { background: var(--rust-700); }

.btn-ghost { border-color: rgba(251, 248, 241, 0.7); color: var(--cream-50); }
.btn-ghost:hover { background: rgba(251, 248, 241, 0.12); border-color: var(--cream-50); }

.btn-light { background: var(--cream-50); color: var(--green-900); }
.btn-light:hover { background: var(--cream-200); }

.btn-winter { background: var(--winter-ink); color: #fff; }
.btn-winter:hover { background: #133a51; }

.btn-small { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  color: var(--green-900);
  min-width: 0;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-cta { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--green-900);
  cursor: pointer;
}
.menu-toggle:hover { background: var(--cream-100); }
.menu-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: inline; }

/* Phone and tablet: nav is a drop-down panel under the header. */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: var(--cream-50);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(15, 36, 22, 0.12);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--green-900);
}
.site-nav a:last-child { border-bottom: 0; }

/* Without JavaScript the menu button cannot work, so show the links inline instead. */
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .header-row { height: auto; flex-wrap: wrap; padding-block: 12px; }
html:not(.js) .site-nav {
  position: static; display: flex; flex-direction: row; flex-wrap: wrap;
  width: 100%; padding: 0; box-shadow: none; border: 0; gap: 4px 16px; background: none;
}
html:not(.js) .site-nav a { border: 0; padding: 6px 0; font-size: 1rem; }

@media (min-width: 380px) {
  .brand-name { font-size: 1.1875rem; }
}

@media (min-width: 768px) {
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.3125rem; }
  .header-cta { display: inline-flex; }
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .site-nav,
  html:not(.js) .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 4px;
    padding: 0;
    margin-right: 12px;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav a,
  html:not(.js) .site-nav a {
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
  }
  .site-nav a:hover { background: var(--cream-100); color: var(--green-900); }
  html:not(.js) .header-row { height: var(--header-h); flex-wrap: nowrap; padding-block: 0; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(560px, calc(100svh - var(--header-h)), 760px);
  color: var(--cream-50);
  overflow: hidden;
}
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 40% 30%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top,
      rgba(15, 36, 22, 0.95) 0%,
      rgba(15, 36, 22, 0.86) 45%,
      rgba(15, 36, 22, 0.6) 70%,
      rgba(15, 36, 22, 0.15) 100%);
}

.hero-content { padding-block: 120px 40px; }
.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.375rem, 1.2rem + 5.4vw, 5.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero-lede {
  max-width: 34rem;
  margin-top: 18px;
  font-size: 1.0625rem;
  color: rgba(251, 248, 241, 0.9);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .hero { min-height: clamp(640px, calc(100svh - var(--header-h)), 860px); }
  .hero-content { padding-block: 160px 64px; }
  .hero-lede { font-size: 1.25rem; margin-top: 22px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; margin-top: 34px; }
}

@media (min-width: 1024px) {
  .hero { align-items: center; min-height: clamp(600px, calc(100svh - var(--header-h)), 820px); }
  .hero-img { object-position: 50% 40%; }
  .hero::after {
    background:
      linear-gradient(90deg,
        rgba(15, 36, 22, 0.92) 0%,
        rgba(15, 36, 22, 0.78) 34%,
        rgba(15, 36, 22, 0.3) 62%,
        rgba(15, 36, 22, 0) 85%),
      linear-gradient(to top, rgba(15, 36, 22, 0.35), rgba(15, 36, 22, 0) 40%);
  }
  .hero-content { padding-block: 96px; }
  .hero h1 { max-width: 13ch; }
}

@media (min-width: 1440px) {
  .hero-lede { font-size: 1.375rem; max-width: 36rem; }
}

/* ---------- Promises ---------- */

.promises {
  background: var(--green-800);
  color: var(--cream-50);
  padding-block: 40px;
}
.promise-list { display: grid; gap: 26px; }
.promise { display: flex; gap: 16px; align-items: flex-start; }
.promise-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 14px;
  background: rgba(231, 176, 60, 0.16);
  color: var(--gold-400);
}
.promise-icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round;
}
.promise h3 { font-size: 1.25rem; margin-bottom: 4px; }
.promise p { color: rgba(251, 248, 241, 0.78); font-size: 1rem; }

@media (min-width: 768px) {
  .promises { padding-block: 48px; }
  .promise-list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .promise { flex-direction: column; gap: 14px; }
}
@media (min-width: 1024px) {
  .promises { padding-block: 56px; }
  .promise-list { gap: 48px; }
  .promise { flex-direction: row; gap: 18px; }
  .promise h3 { font-size: 1.375rem; }
}

/* ---------- Services ---------- */

.season-grid { display: grid; gap: 20px; }

.season {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
}
.season-fall { background: var(--fall-bg); --accent: var(--rust-600); --rule: var(--fall-line); }
.season-winter { background: var(--winter-bg); --accent: var(--winter-ink); --rule: var(--winter-line); }

.season-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--rule);
}
.season-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.season-icon svg {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round;
}
.season-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.season h3 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); }

.service-list { flex: 1; }
.service { padding-block: 20px; border-bottom: 1px solid var(--rule); }
.service:last-child { border-bottom: 0; }
.service-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.service h4 { font-size: 1.375rem; }
.service p { color: var(--ink-muted); }
.service .price {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}
.price-note {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-right: 2px;
}
.tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 10px;
  vertical-align: 1px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.season-cta { margin-top: 8px; align-self: stretch; }

@media (min-width: 768px) {
  .season { padding: 32px; }
  .season-cta { align-self: flex-start; }
  .service-top { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
}
@media (min-width: 1024px) {
  .season-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .season { padding: 40px; }
  .season-icon { width: 60px; height: 60px; }
  .season-icon svg { width: 32px; height: 32px; }
  .service { padding-block: 24px; }
  .service h4, .service .price { font-size: 1.5rem; }
}
@media (min-width: 1440px) {
  .season { padding: 48px; }
  .season-grid { gap: 32px; }
}

/* ---------- The line ---------- */

.the-line {
  background: var(--green-900);
  color: var(--cream-50);
  padding-block: var(--section-y);
}
.line-grid { display: grid; gap: 32px; align-items: center; }
.line-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.line-figure img { width: 100%; height: 100%; object-fit: cover; }
.line-tag {
  position: absolute;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.line-tag-done { left: 6%; bottom: 8%; background: var(--cream-50); color: var(--green-900); }
.line-tag-next { right: 6%; top: 6%; background: var(--rust-600); color: #fff; }

.line-copy h2 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); margin-bottom: 18px; }
.line-copy p { color: rgba(251, 248, 241, 0.82); font-size: 1.0625rem; max-width: 34rem; }
.line-copy p + p { margin-top: 14px; }

@media (min-width: 768px) {
  .line-grid { grid-template-columns: 5fr 6fr; gap: 40px; }
  .line-copy p { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .line-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .line-copy p { font-size: 1.25rem; }
}
@media (min-width: 1440px) {
  .line-grid { grid-template-columns: 560px 1fr; gap: 112px; }
}

/* ---------- How it works ---------- */

.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--fall-bg);
  color: var(--rust-600);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
}
.step h3 { font-size: 1.375rem; margin-bottom: 6px; }
.step p { color: var(--ink-muted); }

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .steps { gap: 24px; }
  .step { padding: 32px; }
  .step h3 { font-size: 1.5rem; }
}

/* ---------- Recent work ---------- */

.work { padding-top: 0; }

/* Phones: a swipeable row that stays inside the page width. */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li { scroll-snap-align: start; }
.gallery figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--cream-200);
}
.gallery figcaption {
  margin-top: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-muted);
}

@media (min-width: 768px) {
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    gap: 20px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}
@media (min-width: 1024px) {
  .gallery { gap: 24px; }
}

/* ---------- Quote ---------- */

.quote { padding-top: 0; }
.quote-card {
  display: grid;
  gap: 28px;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(231, 176, 60, 0.22), rgba(231, 176, 60, 0) 55%),
    var(--green-800);
  color: var(--cream-50);
}
.quote-copy h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); margin-bottom: 14px; }
.quote-copy p { color: rgba(251, 248, 241, 0.85); max-width: 32rem; }
/* The service-area line sizes itself to the panel so it always stays on one line. */
.quote-copy { container-type: inline-size; }
.quote-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--gold-400) !important;
}
/* Text is 18.75x its font size wide, plus 28px for the pin; 19.8 leaves room for font differences. */
@supports (width: 1cqi) {
  .quote-copy .quote-area {
    white-space: nowrap;
    font-size: min(var(--area-size, 1.0625rem), calc((100cqi - 28px) / 19.8));
  }
}
@media (min-width: 768px) {
  .quote-copy .quote-area { --area-size: 1.125rem; }
}
.quote-area svg {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round;
}
.quote-actions { display: grid; gap: 12px; }
.quote-email {
  text-align: center;
  font-size: 0.9375rem;
  color: rgba(251, 248, 241, 0.75);
  user-select: all;
}

@media (min-width: 768px) {
  .quote-card { padding: 48px; }
  .quote-actions { grid-template-columns: 1fr 1fr; }
  .quote-actions .btn-primary, .quote-email { grid-column: 1 / -1; }
  .quote-copy p { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .quote-actions { grid-template-columns: 1fr; }
  .quote-card { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; padding: 64px; }
}
@media (min-width: 1440px) {
  .quote-card { padding: 80px; gap: 96px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-950);
  color: rgba(251, 248, 241, 0.75);
  padding-block: 48px;
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 28px; }
.brand-light { color: var(--cream-50); margin-bottom: 12px; }
.footer-brand p { max-width: 26rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { text-decoration: none; font-weight: 600; color: var(--cream-50); }
.footer-nav a:hover { text-decoration: underline; }
.footer-copy { font-size: 0.875rem; color: rgba(251, 248, 241, 0.55); }

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; column-gap: 64px; }
  .footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(251, 248, 241, 0.12); }
}

/* ---------- Phone quick bar ---------- */

.quick-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 241, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.quick-bar[hidden] { display: none; }
.quick-bar.is-visible { transform: translateY(0); visibility: visible; transition: transform 0.25s ease; }
.quick-bar .btn { min-height: 48px; }
.quick-bar .btn-light { background: var(--cream-100); border-color: var(--line); padding-inline: 26px; }

/* Room for the bar so it never covers the footer. */
body.has-quick-bar .site-footer { padding-bottom: calc(48px + 70px + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
  .quick-bar { display: none !important; }
  body.has-quick-bar .site-footer { padding-bottom: 48px; }
}

/* ---------- 404 page ---------- */

.not-found-title { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); }
.not-found-call { border-color: var(--line); }
