/* Maple Crest Tree Service
   Layout idea: hard-edged black and white blocks, condensed heavy headlines,
   real job photos, square corners. No gradients, no shadows, no glow.
   The red leaf in the logo is the only color on the site. */

:root {
  --ink: #111110;
  --paper: #ffffff;
  --bone: #f2f1ee;
  --line: #d6d4cf;
  --mute: #5b5955;
  --leaf: #bf1e2d;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--paper); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 7vw, 88px); }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1; }
p { margin: 0; max-width: 62ch; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; }
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mute { color: var(--mute); }
.on-ink .mute { color: #b9b7b2; }
.stack > * + * { margin-top: 20px; }
.stack-sm > * + * { margin-top: 10px; }

/* ---------- Prototype note ---------- */
.proto {
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  padding: 8px 0;
}
.proto strong { font-weight: 700; }
.tbc { text-decoration: underline dotted 2px; text-underline-offset: 4px; cursor: help; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 14px 24px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 700 17px/1.1 var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.on-ink .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-ink .btn:hover { background: var(--ink); color: var(--paper); }
.on-ink .btn.ghost { background: transparent; color: var(--paper); }
.on-ink .btn.ghost:hover { background: var(--paper); color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

.textlink { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.textlink:hover { text-decoration-thickness: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: auto; }
.brand-name { display: grid; line-height: 1; }
.brand-name b { font: 800 22px/1 var(--display); font-stretch: 100%; letter-spacing: -0.01em; }
.brand-name span { font: 500 13px/1.2 var(--body); letter-spacing: 0.28em; margin-top: 4px; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap; }
.header-cta .btn { min-height: 46px; padding: 10px 18px; font-size: 16px; }

.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  border: 2px solid var(--ink); padding: 8px 14px; font-weight: 700; font-size: 16px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 12px);
  width: min(300px, calc(100vw - 32px));
  background: var(--paper); border: 2px solid var(--ink);
  display: grid;
}
.menu nav a { padding: 14px 18px; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.menu nav a:last-child { border-bottom: 0; }

@media (max-width: 980px) {
  .nav, .header-cta .btn { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 720px) {
  .header-cta { display: none; }
  .menu { display: block; }
  .site-header .wrap { min-height: 64px; }
  .brand img { width: 36px; }
  .brand-name b { font-size: 19px; }
  .brand-name span { font-size: 11px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.bone { background: var(--bone); }
.on-ink { background: var(--ink); color: var(--paper); }
.rule { border-top: 2px solid var(--ink); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 40px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; border-bottom: 2px solid var(--ink); }
.hero-copy {
  background: var(--ink); color: var(--paper);
  padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 64px);
  /* line the text up with the header's left edge on wide screens */
  padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
  display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.hero-copy h1 { max-width: 12ch; }
.hero-photo { position: relative; min-height: 360px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stars { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.stars i { font-style: normal; letter-spacing: 2px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Page title (inner pages) ---------- */
.page-title { border-bottom: 2px solid var(--ink); padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
.page-title h1 { max-width: 16ch; }
.page-title .lead { margin-top: 20px; }
.page-title .btns { margin-top: 28px; }

/* ---------- Proof bar ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--ink); }
.proof div { padding: 22px var(--gut); border-right: 1px solid var(--line); }
.proof div:last-child { border-right: 0; }
.proof b { display: block; font: 800 30px/1 var(--display); font-stretch: 72%; text-transform: uppercase; }
.proof > div > span { display: block; margin-top: 6px; font-size: 15px; color: var(--mute); }
@media (max-width: 860px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof div:nth-child(2) { border-right: 0; }
  .proof div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2px solid var(--ink); }
.service { display: flex; flex-direction: column; text-decoration: none; border-right: 2px solid var(--ink); background: var(--paper); }
.service:last-child { border-right: 0; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid var(--ink); }
.service-body { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-body p { font-size: 16px; }
.service-body .more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; }
.service:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 3px; }
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 2px solid var(--ink); }
  .service:last-child { border-bottom: 0; }
}

/* ---------- Split (text + photo) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 2px solid var(--ink); }
.split img.wide { aspect-ratio: 4 / 3; }
.on-ink .split img { border-color: var(--paper); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split img { aspect-ratio: 4 / 3; }
}

/* ---------- Quotes ---------- */
blockquote { margin: 0; }
.pull { border-left: 6px solid currentColor; padding-left: 20px; }
.pull p { font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.35; }
.pull cite { display: block; margin-top: 10px; font-style: normal; font-size: 15px; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.review { padding: 26px 24px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.review .tag { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.review p { font-size: 17px; }
.review cite { margin-top: auto; font-style: normal; font-weight: 700; font-size: 15px; }
.review cite span { font-weight: 400; color: var(--mute); }
@media (max-width: 980px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .reviews { grid-template-columns: 1fr; } }

.rating { display: flex; align-items: baseline; gap: 14px; }
.rating b { font: 800 64px/0.9 var(--display); font-stretch: 72%; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.step { padding: 28px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 800 56px/1 var(--display); font-stretch: 72%;
}
.step p { font-size: 17px; }
.on-ink .steps { border-top-color: var(--paper); }
.on-ink .step + .step { border-left-color: #3a3936; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Lists ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 16px; height: 3px; background: currentColor; }

/* ---------- Facts (at a glance) ---------- */
.facts { display: grid; grid-template-columns: 220px 1fr; border-top: 2px solid var(--ink); margin: 0; }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; padding-right: 20px; }
@media (max-width: 620px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .facts dd { padding-top: 4px; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 20px 0; font-weight: 700; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 28px/0.8 var(--display); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 22px; display: grid; gap: 12px; }

/* ---------- Service detail blocks ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump a { border: 2px solid var(--ink); padding: 8px 14px; font-weight: 700; font-size: 15px; text-decoration: none; }
.jump a:hover { background: var(--ink); color: var(--paper); }
.detail { scroll-margin-top: 100px; }
.detail + .detail { border-top: 2px solid var(--ink); }

/* ---------- Cards (estimate options, team) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 2px solid var(--ink); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.card.solid { background: var(--ink); color: var(--paper); }
.card .btn { margin-top: auto; }
.card .big { font: 800 30px/1 var(--display); font-stretch: 72%; text-decoration: none; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.person { border: 2px solid var(--ink); padding: 26px 24px; display: grid; gap: 8px; align-content: start; }
.person .role { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 720px) { .team { grid-template-columns: 1fr; } }

figure { margin: 0; }
figcaption { font-size: 14px; color: var(--mute); margin-top: 10px; }
.on-ink figcaption { color: #b9b7b2; }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full, .form .full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: 16px; }
.field .hint { font-size: 14px; color: var(--mute); font-weight: 400; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--body); color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  padding: 12px 14px; min-height: 52px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-block; border: 2px solid var(--ink); padding: 10px 14px; font-weight: 600; font-size: 16px; cursor: pointer; }
.opt input:checked + span { background: var(--ink); color: var(--paper); }
.opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.file { border: 2px dashed var(--ink); padding: 18px; display: grid; gap: 6px; }
.file input { font: inherit; font-size: 15px; }
.form-done { border: 2px solid var(--ink); padding: 22px; display: none; }
.form-done.show { display: grid; gap: 8px; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

/* ---------- Verse band ---------- */
.verse { background: var(--ink); color: var(--paper); }
.verse .mute { color: #b9b7b2; }
.verse-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.badge-disc { width: 240px; height: 240px; border-radius: 50%; background: var(--paper); padding: 14px; }
.badge-disc img { width: 100%; height: 100%; object-fit: contain; }
.scripture { margin: 0; border-left: 6px solid var(--paper); padding-left: 20px; max-width: 64ch; }
.scripture p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }
.scripture cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
@media (max-width: 720px) {
  .verse-grid { grid-template-columns: 1fr; }
  .badge-disc { width: 170px; height: 170px; }
}

/* ---------- Team photo ---------- */
.team-photo { margin-bottom: 20px; }
.team-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; border: 2px solid var(--ink); }

/* ---------- Jobber request form ---------- */
.jobber-form { background: var(--paper); border: 2px solid var(--ink); padding: 8px; min-height: 420px; }
.jobber-form > .card { border: 0; }
.split > .stack > .card { margin-top: 28px; }

/* ---------- Area + CTA band ---------- */
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 56px; align-items: end; }
.cta-band .btns { justify-content: flex-start; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 56px 0 120px; font-size: 16px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #b9b7b2; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .brand-name span { color: #d8d6d1; }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid #3a3936; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #b9b7b2; font-size: 14px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }
@media (min-width: 721px) { .site-footer { padding-bottom: 56px; } }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 2px solid var(--ink);
  }
  .callbar .btn { min-height: 50px; padding: 10px; font-size: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Video clips (muted loops) ---------- */
.split video { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 2px solid var(--ink); background: var(--ink); display: block; }
.on-ink .split video { border-color: var(--paper); }
@media (max-width: 860px) {
  .split video { max-height: 78vh; }
}
.clip-wide { margin-top: clamp(28px, 4vw, 48px); }
.clip-wide video { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border: 2px solid var(--ink); background: var(--ink); display: block; }

/* ---------- Phone tuning (about half of visits are phones) ---------- */
@media (max-width: 720px) {
  /* Call bar slides away while the page's own call/estimate buttons are on screen */
  .callbar { transition: transform 0.2s ease; }
  body.cta-in-view .callbar { transform: translateY(110%); }
}
@media (max-width: 620px) {
  /* Service cards: thumbnail beside text instead of four tall cards */
  .service { flex-direction: row; align-items: stretch; }
  .service img { width: 112px; flex: none; aspect-ratio: 1 / 1; border-bottom: 0; border-right: 2px solid var(--ink); }
  .service-body { padding: 14px 16px; gap: 6px; justify-content: center; }
  .service-body p { font-size: 15px; }
  /* Reviews: swipe sideways instead of six stacked cards */
  .reviews {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 84%; scroll-snap-align: start; }
  .clip-wide video { aspect-ratio: 16 / 9; }
}
@media (max-width: 620px) {
  /* Steps: number beside the text */
  .step, .step + .step { grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 4px; padding: 18px 0; }
  .step::before { font-size: 40px; grid-row: span 2; }
}

/* ---------- Estimate page: form first ---------- */
.estimate { padding-top: clamp(32px, 5vw, 64px); }
.est-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "head side" "form side"; column-gap: clamp(32px, 5vw, 72px); row-gap: 24px; align-items: start; }
.est-head { grid-area: head; }
.est-head .lead { margin-top: 12px; }
.estimate .jobber-form { grid-area: form; }
.est-side { grid-area: side; display: grid; gap: 20px; }
@media (min-width: 861px) { .est-side { position: sticky; top: 96px; } }
@media (max-width: 860px) {
  .est-grid { grid-template-columns: 1fr; grid-template-areas: "head" "form" "side"; row-gap: 20px; }
  .est-head h1 { font-size: clamp(34px, 10vw, 44px); }
  .est-side { margin-top: 24px; }
}
/* Free-plan Netlify badge sits in the bottom-right corner; keep the call bar clear of it */
@media (max-width: 720px) { body.has-host-badge .callbar { bottom: 64px; } }
.est-side h2 { font-size: clamp(26px, 2.6vw, 34px); }
@media (max-width: 720px) { body.has-host-badge .site-footer { padding-bottom: calc(150px + env(safe-area-inset-bottom)); } }

/* ---------- Legal pages (footer links only) ---------- */
.foot-base a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal { display: grid; gap: 14px; }
.legal > * { max-width: 72ch; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 18px; }
.legal p { font-size: 17px; }
