/* ==========================================================================
   John's Landscaping Service — shared styles
   Classic, hometown look that matches the engraved logo.
   See DESIGN-RULES.md before changing anything here.
   ========================================================================== */

:root {
  /* Paper & ink (from the logo) */
  --paper: #f6f1e4;        /* page background */
  --paper-2: #efe7d4;      /* alternate sections */
  --card: #fbf8f0;         /* cards, form fields */
  --line: #d9cdb2;         /* borders */
  --ink: #1f1d19;          /* body text */
  --ink-2: #47433a;        /* secondary text */
  --ink-3: #625c50;        /* captions, hints */

  /* Greens */
  --green-900: #173322;    /* dark bands, footer */
  --green-800: #1f4430;    /* dark buttons */
  --green-700: #2c5a3f;    /* links */
  --green-600: #3f6b3a;    /* green text on paper */
  --green-300: #a9c294;    /* green text on dark */
  --green-100: #e3ead6;    /* soft fills, selected */

  /* Accent */
  --rust: #9c4f2a;         /* primary button */
  --rust-700: #7f3f20;     /* primary hover */
  --gold: #b8892e;         /* decorative only: numerals, ornaments */
  --danger: #a3372a;

  /* Type */
  --f-head: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --f-body: "Libre Franklin", "Franklin Gothic Book", Arial, sans-serif;
  --f-caps: "Cinzel", "Trajan Pro", Georgia, serif;

  --radius: 4px;
  --container: 1160px;
  --header-h: 96px;
  --topbar-h: 38px;
  /* height of the browser chrome above the hero: top bar + sticky header + its double rule */
  --chrome: calc(var(--topbar-h) + var(--header-h) + 3px);
  --band-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); }
a:hover { color: var(--rust); }
button, input, select, textarea { font: inherit; color: inherit; }

/* Icon sprite: <svg class="i"><use href="#i-name"/></svg> */
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--green-900); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
em { font-style: italic; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.list-reset { list-style: none; margin: 0; padding: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Small caps label, echoing "SERVICE" in the logo */
.caps { font-family: var(--f-caps); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--green-600); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }

/* Ornamental divider: —— sprig —— */
.ornament { color: var(--gold); display: flex; justify-content: center; margin: 4px 0 18px; }
.ornament .i { width: 96px; height: 24px; stroke-width: 1.4; }
.ornament--left { justify-content: flex-start; }
.ornament--left .i { margin-left: -4px; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .lead { margin-inline: auto; }
.section-head h2 { margin-bottom: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn .i { width: 17px; height: 17px; }
.btn--primary { background: var(--rust); color: #fbf8f0; }
.btn--primary:hover { background: var(--rust-700); color: #fbf8f0; }
.btn--dark { background: var(--green-800); color: #fbf8f0; }
.btn--dark:hover { background: var(--green-900); color: #fbf8f0; }
.btn--outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn--outline:hover { background: var(--green-800); color: #fbf8f0; }
.btn--light { background: var(--card); color: var(--green-900); }
.btn--light:hover { background: #fff; color: var(--green-900); }
.btn--outline-light { border-color: rgba(251,248,240,.6); color: #fbf8f0; background: transparent; }
.btn--outline-light:hover { background: rgba(251,248,240,.1); color: #fbf8f0; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link-arrow .i { width: 15px; height: 15px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--green-900); color: var(--green-100); font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: var(--topbar-h); }
.topbar__items { display: flex; gap: 24px; }
.topbar__items span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .i { width: 15px; height: 15px; color: var(--green-300); }
.topbar a { color: #fbf8f0; font-weight: 600; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 3px double var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
/* Header wordmark: the name in the site's fonts. The illustrated logo lives in the
   hero sign and the footer, so the mowing figure isn't shown twice at the top. */
.brand { display: inline-flex; flex-direction: column; align-items: center; flex-shrink: 0; text-decoration: none; color: var(--green-900); line-height: 1; }
.brand:hover { color: var(--green-800); }
.brand__name { font-family: var(--f-head); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.005em; white-space: nowrap; }
.brand__sub { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 7px;
  font-family: var(--f-caps); font-weight: 600; font-size: .74rem; letter-spacing: .38em; text-transform: uppercase; color: var(--green-600); }
.brand__sub::before, .brand__sub::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .55; }
/* letter-spacing leaves a space after the last letter; pull the right rule in by that much so both gaps match */
.brand__sub::after { margin-left: -.38em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__links a:hover { color: var(--green-700); border-bottom-color: var(--gold); }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__phone { display: inline-flex; align-items: center; gap: 7px; color: var(--green-900); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav__phone .i { color: var(--green-600); }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--green-900); min-height: 44px; }
.nav-toggle .i { width: 20px; height: 20px; }

/* ---------- Photo placeholders (engraving-style hatch) ---------- */
.ph {
  position: relative; width: 100%; display: flex; align-items: flex-end; overflow: hidden;
  background-color: #e6dcc3;
  background-image:
    repeating-linear-gradient(135deg, rgba(31,29,25,.07) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(63,107,58,.10), rgba(63,107,58,.28));
}
.ph--stone { background-image: repeating-linear-gradient(135deg, rgba(31,29,25,.07) 0 1px, transparent 1px 7px), linear-gradient(180deg, rgba(120,100,70,.08), rgba(120,100,70,.25)); }
.ph__label {
  margin: 12px; padding: 4px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  font-size: .78rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px;
}
.ph__label .i { width: 14px; height: 14px; }

/* Phone-only hero pieces (shown in the max-width: 720px block) */
.hero__vignette, .hero__ornament { display: none; }

/* Hero sign: the arched green logo stands on the paper, sized to the hero height */
.hero__media--sign { align-items: center; justify-content: center; }
.hero__sign { width: auto; height: auto; max-width: 100%;
  max-height: min(598px, calc(100vh - var(--chrome) - var(--band-h) - 72px));
  max-height: min(598px, calc(100svh - var(--chrome) - var(--band-h) - 72px)); }

/* Real photos fill their placeholder box (the hatch stays behind as a loading color) */
.ph > .photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.photo--top { object-position: center 25%; } /* tall shots where the action is near the top (crew on the roof) */

/* Framed photo: thin border + cream mat, like a printed picture */
.frame { background: var(--card); border: 1px solid var(--line); padding: 10px; border-radius: 2px; }
.frame .ph { border-radius: 0; }

/* ---------- Hero ----------
   The hero and the green promise band share .hero-wrap, which is exactly one
   screen tall, so the band always sits at the bottom of the first view.
   Sizes below scale with the window height so everything fits on short laptops. */
/* Always fill the first screen, so the band sits at the bottom of the view on every
   window size. On tall windows the photo stretches to fill the extra height. */
.hero-wrap { display: flex; flex-direction: column;
  min-height: calc(100vh - var(--chrome)); min-height: calc(100svh - var(--chrome)); }
.hero { flex: 1; display: flex; align-items: stretch; padding: clamp(20px, 4vh, 56px) 0; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.hero__text { align-self: center; }
/* the photo stretches to the full height of the hero, so that side never looks empty */
.hero__media { display: flex; }
.hero__media .ph { flex: 1; }
.hero .caps { margin-bottom: clamp(6px, 1.4vh, 14px); }
.hero h1 { font-size: clamp(2rem, min(3.6vw, 5.8vh), 3.3rem); margin-bottom: clamp(10px, 2vh, 18px); }
.hero .lead { margin-bottom: clamp(16px, 2.6vh, 26px); }
.hero__media .ph {
  aspect-ratio: auto;
  /* never taller than the space left in the first screen */
  max-height: calc(100svh - var(--chrome) - var(--band-h) - 2 * clamp(20px, 4vh, 64px) - 24px); /* 24px = frame mat + border */
  min-height: 240px;
}

.estimate-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 560px; }
.estimate-box__title { font-family: var(--f-head); font-weight: 700; color: var(--green-900); font-size: 1.05rem; margin: 0 0 12px; }
.estimate-box__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.estimate-box .btn { width: 100%; margin-top: 12px; }
.estimate-box__note { font-size: .88rem; color: var(--ink-3); margin: 10px 0 0; text-align: center; }

/* Shorter laptop screens: tighter text, and (when wide enough) the estimate
   fields and button on one line */
@media (min-width: 981px) and (max-height: 860px) {
  .hero .lead { font-size: 1.04rem; }
}
@media (min-width: 1200px) and (max-height: 860px) {
  .estimate-box__row { grid-template-columns: minmax(0, 1fr) 104px; }
  .estimate-box { padding: 16px; max-width: 620px; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: end; }
  .estimate-box__title { grid-column: 1 / -1; margin-bottom: 10px; }
  .estimate-box .btn { width: auto; margin-top: 0; }
  .estimate-box__note { grid-column: 1 / -1; margin-top: 8px; text-align: left; }
}
@media (min-width: 981px) and (max-height: 760px) {
  :root { --header-h: 82px; --topbar-h: 34px; }
  .brand__name { font-size: 1.45rem; }
  .estimate-box__note { display: none; }
  .hero .lead { font-size: 1rem; line-height: 1.55; }
  .hero { padding: 16px 0; }
}
@media (min-width: 981px) and (max-height: 640px) {
  .hero { padding: 14px 0; }
  .hero .caps { margin-bottom: 4px; }
  .hero__media .ph { max-height: calc(100svh - var(--chrome) - var(--band-h) - 54px); }
}

/* ---------- Promise band (replaces stats) ---------- */
.promise { background: var(--green-900); color: var(--green-100); border-top: 3px double rgba(169,194,148,.45); border-bottom: 3px double rgba(169,194,148,.45); }
.promise ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; padding: 18px 0; margin: 0; list-style: none; }
.promise li { font-family: var(--f-caps); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .86rem; display: flex; align-items: center; }
.promise li + li::before { content: "\25C6"; color: var(--gold); font-size: .6rem; margin: 0 22px; }

@media (min-width: 981px) and (max-width: 1180px) {
  .promise li { font-size: .78rem; letter-spacing: .1em; }
  .promise li + li::before { margin: 0 14px; }
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: border-color .15s ease; }
.service-card:hover { border-color: var(--green-600); }
.service-card .ph { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
.service-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: 6px; }
.service-card__desc { color: var(--ink-2); font-size: .98rem; margin-bottom: 14px; }
.service-card ul { list-style: none; margin: 0 0 20px; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 7px; font-size: .95rem; }
.service-card li { display: flex; gap: 9px; align-items: flex-start; }
.service-card li .i { width: 15px; height: 15px; color: var(--green-600); margin-top: 4px; stroke-width: 2.4; }
.service-card .link-arrow { margin-top: auto; }

.commercial { margin-top: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--green-800); border-radius: var(--radius); padding: 26px 30px; }
.commercial h3 { margin-bottom: 4px; }
.commercial p { margin: 0; color: var(--ink-2); }
/* Careers strip on the home page: same shape as the commercial strip, gold edge so it reads as a different topic */
.section--hiring { padding: 0 0 clamp(48px, 7vw, 80px); }
.hiring-strip { margin-top: 0; border-left-color: var(--gold); }
.hiring-strip .caps { margin: 0 0 2px; }

/* ---------- Dark sections ---------- */
.section--dark { background: var(--green-900); color: var(--green-100); }
.section--dark h2, .section--dark h3 { color: #fbf8f0; }
.section--dark .caps { color: var(--green-300); }

/* ---------- Gallery ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin-bottom: 32px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 2px; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.tab:hover { color: var(--green-800); }
.tab[aria-pressed="true"] { color: var(--green-900); border-bottom-color: var(--gold); }
/* Staggered (masonry-style) wall: three fixed columns, each photo at its own shape, so
   the gallery reads like a wall of prints rather than a grid. Very tall shots are capped.
   Fixed columns mean "Show more" only adds photos below; nothing jumps around. */
.gallery { display: flex; align-items: flex-start; gap: 18px; }
.gallery__col { flex: 1; min-width: 0; }
.gallery__item { margin: 0 0 18px; }
.gallery__item .ph { aspect-ratio: auto; display: block; }
.gallery .ph > .photo { position: static; height: auto; max-height: 440px; }
.gallery__item figcaption { font-size: .9rem; color: var(--ink-3); padding-top: 8px; text-align: center; font-style: italic; font-family: var(--f-head); }
.gallery__item.is-hidden { display: none; }
.gallery-hint { display: none; } /* phones only */
/* Tablet/desktop: show the first six photos until "Show more" is clicked */
.gallery-more { display: flex; justify-content: center; margin-top: 10px; }
@media (min-width: 721px) {
  .gallery.is-collapsed .gallery__col .gallery__item:nth-child(n+3) { display: none; }
}


/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split .ph { aspect-ratio: 4 / 5; }
.checklist { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.checklist .i { width: 20px; height: 20px; color: var(--green-600); stroke-width: 2.4; margin-top: 3px; }
.checklist strong { display: block; color: var(--green-900); }
.checklist span { color: var(--ink-2); font-size: .97rem; }


/* ---------- Service area ---------- */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.area__map { aspect-ratio: 4 / 3; position: relative; background: #e6dcc3; }
/* Google map inside the cream photo frame; a light warm tint so it sits with the paper colors */
.area__map iframe { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border: 0; filter: sepia(.12) saturate(.9); }
.towns { display: grid; gap: 14px; margin: 18px 0 26px; }
.towns__state { font-family: var(--f-caps); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--green-600); margin: 0 0 8px; }
.towns .town-list { margin: 0; }
.town-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; }
.town-list li { background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 5px 12px; font-size: .93rem; }
.zip-check { display: flex; gap: 10px; max-width: 420px; }
.zip-check .input { flex: 1; }
.zip-result { margin-top: 10px; min-height: 1.6em; font-size: .97rem; }
.zip-result.ok { color: var(--green-600); font-weight: 600; }

/* ---------- Closing band ---------- */
.closing { text-align: center; }
.closing .lead { margin: 0 auto 26px; color: var(--green-100); }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: var(--green-100); padding: 56px 0 26px; font-size: .95rem; border-top: 3px double rgba(169,194,148,.45); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; }
.footer-logo { width: 240px; height: auto; margin-bottom: 14px; }
.site-footer h4 { font-family: var(--f-caps); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-300); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--green-100); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { color: var(--green-300); margin-top: 3px; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(169,194,148,.25); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: var(--green-300); }
.footer-bottom nav { display: flex; gap: 18px; }
/* Designer credit: small and quiet, so it never competes with the business */
.site-credit { display: inline-flex; align-items: center; gap: 8px; color: var(--green-300); font-size: .8rem; }
.site-credit img { height: 26px; width: auto; opacity: .85; }

/* ---------- Legal pages (privacy.html): plain, readable text ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.35rem; margin: 2em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 6px; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 10px; background: var(--paper); border-top: 3px double var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.mobile-bar .btn { flex: 1; }

/* ---------- Forms (shared) ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field-label { font-weight: 600; font-size: .93rem; color: var(--green-900); }
.hint { font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 11px 14px; background: #fffdf8; border: 1px solid #c9bc9e; border-radius: var(--radius); color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: #746d5e; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--green-600); outline-offset: 1px; border-color: var(--green-600); }
.select { appearance: none; padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231f4430' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.textarea { min-height: 120px; resize: vertical; }
.error-msg { display: none; color: var(--danger); font-size: .88rem; font-weight: 500; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--danger); }
.has-error .error-msg, .error-msg.is-visible { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav__links { gap: 16px; }
  .nav { gap: 20px; }
  .nav__phone span { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 80px; }
  .brand__name { font-size: 1.35rem; }
  .split, .area { grid-template-columns: 1fr; }

  /* Tablet & phone: text and estimate box fill the first screen, the green band
     sits under them, and the hero photo moves below the band. */
  .hero, .hero__grid { display: contents; }
  :root { --band-h: 116px; }
  .hero h1 { font-size: clamp(2rem, 5.4vw, 3rem); }
  .hero-wrap { min-height: 0; }
  .hero__text { order: 1; display: flex; flex-direction: column; justify-content: center;
    min-height: min(calc(100vh - var(--chrome) - var(--band-h)), 600px); min-height: min(calc(100svh - var(--chrome) - var(--band-h)), 600px);
    width: min(100% - 40px, var(--container)); margin-inline: auto; padding: clamp(20px, 3.5vh, 44px) 0; }
  .promise { order: 2; }
  .hero__media { order: 3; width: min(100% - 40px, 720px); margin: 28px auto 4px; }
  .hero__media .ph { max-height: none; min-height: 0; aspect-ratio: 4 / 3; }
  .estimate-box { max-width: 620px; }
  .promise ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 16px 0; }
  .promise li { justify-content: center; text-align: center; }
  .promise li { flex-direction: column; }
  .promise__since { display: block; }
  .promise li + li::before { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Tablet top bar: keep one clean line (service area + email) */
  .topbar { font-size: .84rem; }
  .topbar__items span:nth-child(2), .topbar .hide-sm { display: none; }
  .topbar__items span, .topbar a { white-space: nowrap; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 22px; padding: 20px;
    background: var(--paper); border-top: 1px solid var(--line); overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav__cta { flex-direction: column; align-items: stretch; }
  .nav__phone { justify-content: center; padding: 10px; }
  .nav__phone span { display: inline; }
}

/* Tablets with enough height: the photo fills the space between the estimate box
   and the band, so the band ends the first screen instead of floating mid-screen. */
@media (min-width: 721px) and (max-width: 980px) and (min-height: 800px) {
  .hero-wrap { min-height: calc(100vh - var(--chrome)); min-height: calc(100svh - var(--chrome)); }
  .hero__text { min-height: 0; padding-bottom: 24px; }
  .hero__media { order: 1; flex: 1; margin: 0 auto 28px; }
  .hero__media .ph { aspect-ratio: auto; min-height: 140px; }
  /* sign height follows the space left above the band */
  .hero__sign { max-height: none; height: clamp(160px, calc(100vh - 845px), 420px); height: clamp(160px, calc(100svh - 845px), 420px); }
  .hero__media--sign { margin-bottom: 20px; }}

@media (max-width: 720px) {
  :root { --header-h: 72px; }
  body { font-size: 1rem; padding-bottom: 76px; }
  .brand__name { font-size: 1.22rem; }
  .brand__sub { font-size: .66rem; margin-top: 5px; }
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .section-head { margin-bottom: 32px; }

  /* Phones: service cards are text only (no stack of big photo boxes), with a
     tighter list, so the section reads as a clean menu */
  .service-card .ph { display: none; }
  .service-card__body { padding: 20px 20px 18px; }
  .service-card__desc { margin-bottom: 12px; }
  .service-card ul { gap: 4px; font-size: .93rem; margin-bottom: 12px; padding-top: 12px; }
  .service-card .link-arrow { min-height: 44px; }
  .split .ph { aspect-ratio: 4 / 3; }
  .area__map { aspect-ratio: 16 / 10; }

  /* Gallery: two small framed photos per row */
  /* Gallery on phones: one big photo at a time in a row you swipe through. The next
     photo peeks in from the right so it is clear there is more. Never auto-scrolls. */
  .gallery { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 20px; -webkit-overflow-scrolling: touch;
    margin-inline: -20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery:focus-visible { outline-offset: -3px; }
  .gallery__col { display: contents; } /* phones: one swipe row of every photo */
  .gallery__item { flex: 0 0 82%; scroll-snap-align: start; margin: 0; }
  .gallery__item:last-child { margin-right: 8px; }
  .gallery .frame { padding: 8px; }
  .gallery__item .ph { aspect-ratio: 1 / 1; }
  .gallery .ph > .photo { position: absolute; height: 100%; max-height: none; }
  .gallery .ph__label { display: none; }
  .gallery-more { display: none !important; }
  .gallery-hint { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 12px 0 0;
    font-family: var(--f-caps); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
  .gallery-hint .i { width: 14px; height: 14px; }
  .tabs { gap: 0 18px; margin-bottom: 22px; }

  /* Footer: brand + contact full width, the two link lists side by side */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-logo { width: 200px; }
  .site-footer { padding-top: 44px; }
  .site-footer ul { gap: 0; }
  .site-footer li a { display: inline-block; padding: 8px 0; }
  .footer-contact li { padding: 4px 0; }
  .footer-bottom { margin-top: 28px; flex-direction: column; }
  .footer-bottom nav a { display: inline-block; padding: 8px 0; }
  /* Phones: the top bar is dropped (the pinned bottom bar has Call), and the
     first screen ends above that pinned bar. */
  /* Phones: keep the first screen calm. Just the headline and the estimate box;
     the promise band and the hero photo are dropped (the promises are repeated in
     About and the footer, and the services and gallery carry the photos). */
  :root { --topbar-h: 0px; --band-h: 0px; }
  .topbar, .promise, .hero__media { display: none; }
  .hero-wrap { padding-bottom: 28px; border-bottom: 3px double var(--line); }
  .hero__text { min-height: 0; padding: 22px 0 8px; text-align: center; }
  /* Phones: a centered "printed card" first screen. Arched engraving, label,
     headline, gold sprig, then the estimate box. The intro line is dropped. */
  .hero__vignette { display: block; }
  .hero__vignette img { width: auto; height: clamp(110px, 21svh, 180px); margin: 0 auto 14px; }
  .hero .caps { font-size: .72rem; letter-spacing: .12em; margin-bottom: 6px; text-wrap: balance; }
  .hero h1 { text-wrap: balance; }
  .hero h1 { margin-bottom: 0; }
  .hero__ornament { display: flex; margin: 6px 0 16px; }
  .hero .lead { display: none; }
  .estimate-box { text-align: left; }
  .estimate-box__title { text-align: center; }
  .hero h1 { font-size: clamp(1.7rem, 7.6vw, 2.25rem); }
  .hero .lead { font-size: 1rem; line-height: 1.55; }
  /* phones: service on its own line, then ZIP + button side by side */
  .estimate-box { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .estimate-box__title, .estimate-box__note { grid-column: 1 / -1; margin: 0; }
  .estimate-box__row { display: contents; }
  .estimate-box__row .field:first-child { grid-column: 1 / -1; }
  .estimate-box .btn { width: auto; margin-top: 0; padding-inline: 16px; }
  .commercial { grid-template-columns: 1fr; padding: 22px; }
  .mobile-bar { display: flex; }
  .menu-open .mobile-bar { display: none; }
  .zip-check { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Short phones: keep the headline and the estimate box, drop the extras */
@media (max-width: 720px) and (max-height: 700px) {
  .hero .lead, .estimate-box__note { display: none; }
  .hero__ornament { margin: 2px 0 12px; }
  .hero__vignette img { height: 84px; margin-bottom: 10px; }
  .hero__text { padding-top: 14px; }
}

/* Narrowest phones: drop the arrow so the ZIP field has room */
@media (max-width: 380px) {
  .estimate-box .btn .i { display: none; }
  .estimate-box .btn { padding-inline: 14px; }
}
