/* Page CSS for the landing page and the page for landscapers, on the kit's tokens (/kit/system.css).
   Only what sits inside a block and the kit lacks: the quote box, the job cards' panels, the steps,
   the moment's frame. The quote funnel, privacy and thanks pages keep funnel.css. */

/* The quote box: one form, the postcode and the button on one row */
.quote-box { display: grid; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-lg);
             background: var(--card, #fff); border: 1px solid var(--line); }
.quote-box h2 { margin: 0; font-size: var(--t-h3); line-height: 1.2; }
.box-ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-5);
             margin: 0; padding: 0; list-style: none; font-size: var(--t-body); }
.box-ticks li { display: flex; gap: var(--s-2); align-items: baseline; }
.box-ticks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
                        transform: translateY(-1px); }
.quote-box label { font-size: var(--t-small); font-weight: 500; }
.box-row { display: flex; gap: var(--s-3); margin-top: calc(-1 * var(--s-2)); }
.box-row input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 var(--s-4); border: 1px solid var(--line-strong);
                 border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: 400 16px/1 var(--font-text); }
.box-row .btn { flex: none; height: 48px; }
@media (max-width: 639px) {
  .quote-box { padding: var(--s-5); gap: var(--s-3); }
  .box-ticks { font-size: var(--t-small); }
}

/* The hero: the words, the box and three short points on the left; the photograph on the right */
.hero__text > .hero__box { margin-top: var(--s-6); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0; padding: 0; list-style: none;
               font-size: var(--t-small); color: var(--muted); }
.hero-points li { display: flex; gap: var(--s-2); align-items: baseline; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); transform: translateY(-2px); }
@media (min-width: 1024px) { .hero h1 { font-size: clamp(44px, 3.4vw + 8px, 56px); } }
@media (max-width: 639px) {
  .hero .hero__lead { display: none; }   /* the box stays on the first screen; the points say the same */
  .hero h1 { font-size: 32px; }
}

/* How it works: three numbered steps, then who quotes */
.steps { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: var(--s-4); align-items: start; }
.steps p { margin: 0; font-size: var(--t-body); line-height: 1.6; max-width: 52ch; }
.who { margin-top: var(--s-7); display: grid; gap: var(--s-3); }
.who h3 { margin: 0; font-size: var(--t-h3); }
.who p { margin: 0; max-width: 52ch; }
.how-photo { min-height: 420px; }

/* The six jobs: open cards, the words then the photograph */
.services { row-gap: var(--s-5); }
.service.card { text-decoration: none; color: var(--ink); }
.service.card > strong { font-size: var(--t-card); font-weight: 500; }
.service.card > span:not(.panel) { margin-top: var(--s-2); color: var(--ink); max-width: 46ch; }
#jobs .panel { --p-h: 260px; margin-top: var(--s-5); }
#jobs .panel > img { width: 100%; height: 100%; object-fit: cover; }
#jobs > .wrap > .grid { margin-top: 0; }
@media (max-width: 639px) { #jobs .panel { --p-h: 180px; } }

/* Advice: the list beside the one photograph that develops (picture-develops) */
.advice li { font-size: var(--t-body); line-height: 1.6; max-width: 56ch; }
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(560px, var(--ly-fit, 560px)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* The close: the second quote box across the left of the wrap */
.quote-box--end { max-width: 628px; }
.quote-box--end h2 { font-size: var(--t-h2); }
.footer__lede a { color: inherit; }

/* Fixes from the layout check */
.service .panel { display: block; }
.hero__text { min-width: 0; }
@media (max-width: 639px) { .nav__actions > .nav__link { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) {
  .how-photo { min-height: 0; height: 260px; margin-top: var(--s-6); }
  .develop { aspect-ratio: 16 / 9; margin-top: var(--s-6); }
  .faq > details { padding-block: var(--s-4); }
}
.quote-box { grid-template-columns: minmax(0, 1fr); }
.quote-box > * { min-width: 0; }
@media (max-width: 639px) {
  .quote-box h2 { font-size: 22px; }
  .box-row .btn { padding-inline: var(--s-4); }
}

/* The six jobs below 1024: compact rows, the photograph square on the left; three-up from 1024 */
@media (min-width: 1024px) {
  #jobs .services > .service { grid-column: span 4; }
}
@media (min-width: 1024px) and (max-width: 1279px) { #jobs .panel { --p-h: 200px; } }
@media (max-width: 1023px) {
  #jobs .services { row-gap: var(--s-3); }
  #jobs .services > .service { grid-column: 1 / -1; display: grid; grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto 1fr; column-gap: var(--s-4); padding: var(--s-4); }
  #jobs .service > .panel { grid-column: 1; grid-row: 1 / span 2; order: -1; margin: 0; height: 112px; --p-h: 112px; }
  #jobs .service > strong, #jobs .service > span:not(.panel) { grid-column: 2; }
  #jobs .service > span:not(.panel) { margin-top: var(--s-1); }
}
/* The phone hero: the box, the points and the photograph in one screen */
@media (max-width: 639px) {
  .hero h1 { font-size: 30px; }
  .hero__text > .hero__box { margin-top: var(--s-5); }
  .quote-box { padding: var(--s-4); }
}
@media (max-width: 639px) { .box-ticks { row-gap: var(--s-1); } }

/* Round 2: the heading scale under a long h1, the box's title as a line, the open close, fuller frames */
:root { --t-h2: clamp(24px, 1.524vw + 18px, 40px); --t-h3: clamp(20px, 0.762vw + 17px, 28px); }
.box-title { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2;
             letter-spacing: var(--display-tracking); }
.quote-box--end { padding: 0; border: 0; background: none; max-width: 628px; }
.quote-box--end h2 { font-size: var(--t-h2); }
@media (min-width: 1024px) {
  .how-photo { min-height: 600px; }
  .develop { height: min(600px, var(--ly-fit, 600px)); }
}
@media (max-width: 639px) { .how-photo { min-height: 0; height: 300px; margin-top: var(--s-6); } .box-title { font-size: 22px; } }

/* Gate round 1: open job rows on a phone (the photograph on the page margin), the nav at 320 */
@media (max-width: 639px) {
  #jobs .services > .service { padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
  #jobs .service > .panel { border-radius: var(--r-md); }
}
@media (max-width: 359px) { .nav__actions { display: none; } }
@media (max-width: 359px) { .nav:not(.is-open) .nav__actions { display: none; } }
@media (max-width: 639px) { #jobs { --hm: 1; } }

/* The footer: room under the closing form; the small print at body size */
.quote-box--end { margin-bottom: var(--s-8); }
.closing .footer__lede { font-size: var(--t-body); line-height: 1.6; max-width: 60ch; }
@media (max-width: 639px) { .quote-box--end { margin-bottom: var(--s-7); } }
/* The job photographs keep their 4:3 shape at every width from 1024 (no stretched, blown-up crop) */
@media (min-width: 1024px) { #jobs .service > .panel { flex: none; height: auto; aspect-ratio: 4 / 3; } }

/* The page for landscapers (/for-landscapers/): every rule below is scoped to body.for-pros,
   so the homeowner page above keeps its own look */

/* The hero: the film frame's h1 at the film hero's own size (the split hero's sizes above are page-wide) */
.for-pros .hero h1 { font-size: var(--ly-h1); }
@media (max-width: 639px) { .for-pros .hero .hero__lead { display: block; } }
@media (min-width: 1024px) {
  .for-pros .hero__over > :first-child { max-width: 760px; }
  .for-pros .hero__over h1 { max-width: 18ch; }
}
@media (max-width: 639px) {
  .for-pros .hero h1 { font-size: clamp(1.875rem, 1rem + 4.25vw, 2.125rem); }   /* 30 at 320 to 34 at 414, on a rem base */
  .for-pros .nav:not(.is-open) .nav__actions { display: none; }
  .for-pros .nav:not(.is-open) .nav__toggle { margin-left: auto; }   /* the action's label is too long for the phone bar; it is in the open menu */
}

/* The offer: the go line, the four facts as rows; the tools beside them */
.for-pros .offer-facts > li { grid-template-columns: minmax(0, 1fr); }
.for-pros .offer-facts .rows__name { font-size: var(--t-card); }
.for-pros .offer-facts p { margin: 0; }
@media (min-width: 1024px) { .for-pros .offer-photo { height: 600px; } }
@media (max-width: 1023px) { .for-pros .offer-photo { height: 300px; margin-top: var(--s-6); } }

/* What every lead tells you: fourteen answers, four across from 1024, two on a tablet, one on a phone; the checks under them */
.for-pros .answers { margin: 0; padding: 0; list-style: none; row-gap: var(--s-5); }
.for-pros .answers > li { display: grid; gap: var(--s-1); align-content: start; }
.for-pros .answers strong { font-weight: 500; }
.for-pros .answers span { max-width: 36ch; }
@media (min-width: 640px) and (max-width: 1023px) {   /* three across on a tablet, so the list and its checks hold one screen at 768x1024 */
  .for-pros .answers { row-gap: var(--s-4); }
  .for-pros .answers > li { grid-column: auto / span 4; }
  .for-pros .lead-checks { margin-top: var(--s-7); grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-5); }
}
@media (min-width: 1024px) { .for-pros .answers > li { grid-column: auto / span 3; } }
@media (min-width: 640px) { .for-pros .answers > li:nth-last-child(-n + 2) { grid-column: auto / span 6; } }   /* fourteen: the last row's two take half each, so every row is full */
@media (max-width: 639px) { .for-pros #tells { --hm: 2; } .for-pros .answers { row-gap: var(--s-4); } .for-pros .lead-checks { margin-top: var(--s-7); } }
.for-pros .lead-checks { margin: var(--s-8) 0 0; padding: 0; list-style: none; }
@media (min-width: 1024px) { .for-pros .lead-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-5); } }

/* What a lead looks like: the lead card itself, large, on a photograph of a backyard */
.for-pros .lead-frame { padding: var(--s-7); justify-content: flex-start; }
.for-pros .lead-frame > picture { position: absolute; inset: 0; z-index: 0; }
.for-pros .lead-frame > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 60%; }
.for-pros .lead-card { position: relative; z-index: 1; width: min(100%, 880px); padding: var(--s-6); border-radius: var(--r-md);
                       background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .14); }
.for-pros .lead-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5);
                             padding-bottom: var(--s-4); margin-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.for-pros .lead-title { margin: 0; font-family: var(--font-display); font-size: var(--t-card); font-weight: 500; }
.for-pros .example-tag { margin: 0; font-size: var(--t-small); color: var(--muted); }
.for-pros .lead-card__fields { columns: 2; column-gap: var(--s-7); }
.for-pros .lead-card__fields p { margin: 0 0 var(--s-2); break-inside: avoid; font-size: var(--t-body); line-height: 1.5; }
.for-pros .lead-card__fields b { font-weight: 500; color: var(--muted); }
.for-pros .lead-foot { margin: var(--s-3) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-body); }
@media (max-width: 767px) {
  .for-pros .lead-frame { padding: var(--s-3); }
  .for-pros .lead-card { padding: var(--s-5); }
  .for-pros .lead-card__fields { columns: 1; }
}

/* How it works: four steps across, then the photograph as a wide strip */
.for-pros .steps--row { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-5); }
.for-pros .steps--row li { grid-template-columns: 1fr; gap: var(--s-3); }
.for-pros .how-strip { height: 360px; margin-top: var(--s-8); }
@media (max-width: 1023px) {
  .for-pros .steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .for-pros .how-strip { height: 280px; margin-top: var(--s-7); }
}
@media (max-width: 639px) { .for-pros .steps--row { grid-template-columns: 1fr; } .for-pros .how-strip { height: 260px; } }

/* What we ask of you: the three asks, then the one statement that lights up (word-highlight) */
.for-pros .ask-list li { font-size: var(--t-body); line-height: 1.6; max-width: 62ch; }
.for-pros #ask .mo-wh__text { margin: var(--s-9) 0 0; }

/* The fine print: four short lines beside the ferns */
.for-pros .terms { display: grid; gap: var(--s-4); }
.for-pros .terms p { margin: 0; max-width: 52ch; line-height: 1.6; }
.for-pros .terms__lead { font-size: var(--t-card); font-weight: 500; }
@media (min-width: 1024px) { .for-pros .fine-photo { min-height: 600px; } }
@media (max-width: 1023px) { .for-pros .fine-photo { height: 300px; margin-top: var(--s-6); } }

/* The close: the garden path in its frame, a phone crop of it on a phone; the picture fills the frame */
.for-pros .close__media > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
@media (min-width: 640px) and (max-width: 1023px) { .for-pros .hero__over > :first-child { max-width: 560px; justify-self: start; } }   /* a box, not a band across the frame */
@media (max-width: 639px) { .for-pros .closing__cta .btn { white-space: normal; text-align: center; height: auto; min-height: 48px; } }   /* the long label wraps at 320 */
/* the price as the hero's notice line, in the box's inverse colours, 16px above the h1 */
.for-pros .hero__over .hero-notice { margin: 0 0 var(--s-4); color: var(--p-inv-ink); }
