/* Stratton Lawn Care v2: desktop layout, photo gallery, before/after, viewer, rain banner, route badge. Loaded on every page. */

/* ---------- Header: visible "Menu" label on computers ---------- */
@media (min-width: 821px) {
  .menu summary { width: auto; height: 44px; padding: 0 14px; grid-template-columns: 20px auto; column-gap: 9px; row-gap: 5px; align-content: center; }
  .menu summary span { grid-column: 1; }
  .menu summary::after { content: "Menu"; grid-column: 2; grid-row: 1 / span 3; align-self: center; font-weight: 700; font-size: .95rem; color: var(--g9); }
  .menu summary:hover { border-color: var(--g6); }
}
@media (max-width: 1100px) { .nav-links a[href^="tel"] { display: none; } }
@media (max-width: 980px) { .nav-links a[href="season-plans.html"], .nav-links a[href$="#reviews"] { display: none; } }
.nav-links a { position: relative; }
.nav-links a:not(.btn):hover { color: var(--g6); }

/* ---------- Roomier sections on big screens ---------- */
@media (min-width: 1000px) {
  section { padding: 96px 0; }
  .wrap { max-width: 1200px; padding: 0 28px; }
  .lede { font-size: 1.2rem; }
}

/* ---------- Hero: quick price box on computers ---------- */
.hero-q { display: none; }
@media (min-width: 1000px) {
  .hero .wrap.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 56px; align-items: center; padding-top: 110px; padding-bottom: 110px; }
  .hero-q { display: block; background: #fff; color: var(--ink); border-radius: 22px; padding: 30px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
  .hq-eye { margin: 0 0 6px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: var(--g6); }
  .hq-h { font-size: 1.9rem; margin: 0 0 16px; }
  .hero-q input { margin-bottom: 12px; font-size: 1.05rem; padding: .95em 1em; }
  .hero-q .btn { width: 100%; font-size: 1.05rem; padding: 1em; }
  .hq-note { margin: 10px 0 0; text-align: center; color: var(--mute); font-size: .88rem; }
  .hq-list { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; font-size: .95rem; }
  .hq-list li::before { content: "✓"; color: var(--g6); font-weight: 800; margin-right: 8px; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Quote: card + side panel ---------- */
.qwrap { max-width: 820px; margin: 28px auto 0; }
.qwrap .qcard { margin: 0; max-width: none; }
.qside { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.qside h3 { margin: 4px 0 10px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--g1); color: var(--g6); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.qs-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.qs-photos:empty { display: none; }
.qs-photos .wph { aspect-ratio: 1; border-radius: 10px; }
.qs-rev { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.qs-rev p { margin: .4em 0; font-style: italic; color: var(--ink); }
.qs-rev cite { font-style: normal; font-weight: 700; font-size: .9rem; }
.qs-text { margin: 16px 0 0; font-weight: 600; }
@media (min-width: 1000px) {
  .qwrap { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
  .qside { margin-top: 0; position: sticky; top: 84px; }
  #quote h2, #quote .eyebrow, #quote > .wrap > .lede { text-align: left !important; margin-left: 0 !important; }
}

/* ---------- Service cards with photos ---------- */
.svc.has-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.svc.has-media > :not(.svc-img) { margin-left: 22px; margin-right: 22px; }
.svc.has-media h3 { margin-top: 18px; }
.svc.has-media > :last-child { margin-bottom: 22px; }
.svc.has-media .ic { display: none; }
.svc-img { aspect-ratio: 16 / 10; background: var(--g1); display: grid; place-items: center; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc-img span { font-size: 3rem; filter: saturate(.9); }
.svc.hot .svc-img { background: rgba(255,255,255,.08); }
.svc.has-media:hover .svc-img img { transform: scale(1.04); }
@media (min-width: 1000px) { #services .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Our work gallery ---------- */
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.work-head .lede { margin-bottom: 0; }
.wchips { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 0; }
.wchips:empty { display: none; }
.wchips button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .5em 1em; font: 600 .92rem Inter, sans-serif; color: var(--ink); cursor: pointer; }
.wchips button small { color: var(--mute); font-weight: 600; margin-left: 2px; }
.wchips button[aria-pressed="true"] { background: var(--g8); border-color: var(--g8); color: #fff; }
.wchips button[aria-pressed="true"] small { color: #cfe2c7; }
.wgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.wph { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--g1); aspect-ratio: 4 / 3; cursor: zoom-in; }
.wph img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.wph span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: .85rem; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.62)); opacity: 0; transition: opacity .25s; }
.wph:hover img, .wph:focus-visible img { transform: scale(1.05); }
.wph:hover span, .wph:focus-visible span { opacity: 1; }
.wph.big { grid-column: span 2; }
.wph.big span { opacity: 1; font-size: .95rem; }
@media (hover: none) { .wph span { opacity: 1; font-size: .78rem; padding: 18px 8px 6px; } .wph:not(.big) span { display: none; } }
.wgrid.home .wph:nth-child(n+10) { display: none; }
@media (min-width: 700px) { .wgrid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .wgrid.home .wph:nth-child(n+10) { display: block; } .wgrid.home .wph:nth-child(n+12) { display: none; } }
@media (min-width: 1000px) {
  .wgrid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .wgrid.home .wph:nth-child(n+12) { display: block; }
  .wph.big { grid-row: span 2; aspect-ratio: auto; }
}
.wgrid.strip { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .wgrid.strip { grid-template-columns: repeat(3, 1fr); } }
.wstrip { margin-top: 26px; }
.wmore { margin: 22px 0 0; text-align: center; }

/* ---------- Before / after ---------- */
.bagrid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
@media (min-width: 700px) { .bagrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bagrid { grid-template-columns: repeat(3, 1fr); } }
.bacard { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.bacard figcaption { padding: 10px 6px 4px; font-weight: 600; font-size: .95rem; }
.bacard .ba { border-radius: 11px; touch-action: pan-y; }
.ba-t { position: absolute; top: 10px; z-index: 2; font: 700 .72rem Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; font-style: normal; padding: 4px 9px; border-radius: 999px; color: #fff; pointer-events: none; }
.ba-t.b { left: 10px; background: rgba(120,72,36,.88); }
.ba-t.a { right: 10px; background: rgba(31,77,38,.9); }
.ba input[type=range] { z-index: 3; }
.ba::before { content: "⟷"; position: absolute; z-index: 2; top: 50%; left: var(--pos); transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--g9); display: grid; place-items: center; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.35); pointer-events: none; }

/* ---------- Full screen photo viewer ---------- */
html.lb-on { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,16,9,.94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none !important; }
.lb-f { margin: 0; max-width: min(1400px, 94vw); display: flex; flex-direction: column; align-items: center; }
.lb-f img { max-width: 100%; max-height: 82vh; border-radius: 10px; object-fit: contain; background: #111; }
.lb-f figcaption { color: #e3eedd; margin-top: 12px; font-weight: 600; text-align: center; font-size: .95rem; }
.lb button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255,255,255,.26); }
.lb button[hidden] { display: none; }
.lb-x { top: 16px; right: 16px; }
.lb-p { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-n { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lb-p, .lb-n { top: auto; bottom: 18px; transform: none; } .lb-p { left: calc(50% - 64px); } .lb-n { right: calc(50% - 64px); } .lb-f img { max-height: 72vh; } }

/* ---------- Weather banner ---------- */
.wx { background: #fff3d6; color: #4a3a00; border-bottom: 1px solid #ecd9a6; font-size: .93rem; }
.wx.snow { background: #e6f0fb; color: #183a5c; border-color: #c9dbef; }
.wx .wrap { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.wx p { margin: 0; flex: 1; }
.wx a { color: inherit; font-weight: 700; }
.wx button { border: 0; background: none; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 6px; opacity: .7; }

/* ---------- Quote tool: route badge ---------- */
.route-hit { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1.5px dashed var(--g6); color: var(--g9); font-weight: 700; }

/* ---------- Chat bubble stays clear of the Wix tag (until Premium removes it) ---------- */
@media (min-width: 821px) { .cb-btn { bottom: 70px !important; } .cb { bottom: 134px !important; } }

/* ---------- Small screens: keep the quote focused ---------- */
@media (max-width: 999px) { .qside .qs-photos { display: none; } }

/* ---------- Lawn report + report maker ---------- */
.lr { padding: 44px 0 80px; }
.lr-wrap { max-width: 660px; }
.lr h1 { font-size: clamp(2rem, 6vw, 3rem); }
.lr-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-top: 18px; }
.lr-card h3 { margin-top: 0; }
.lr-row { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.lr-row span { color: var(--mute); }
.lr-note { margin-top: 16px; background: var(--g1); border-radius: 12px; padding: 12px 14px; }
.lr-note p { margin: .3em 0 0; }
.lr-tip { background: var(--sand); border-color: transparent; }
.lr-tip p { margin: .4em 0 0; }
.lr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.lr-actions .btn { flex: 1 1 200px; }
.lr .fld { margin: 0 0 16px; border: 0; padding: 0; }
.lr .fld label, .lr .fld legend { display: block; font-weight: 600; margin-bottom: 6px; }
.lr input, .lr textarea, .lr select { width: 100%; font: inherit; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.lr .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lr .chip { position: relative; }
.lr .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lr .chip span { display: inline-block; padding: .55em 1em; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; font-size: .93rem; }
.lr .chip input:checked + span { background: var(--g8); border-color: var(--g8); color: #fff; }
.lr .help { color: var(--mute); font-size: .9rem; }
/* ---------- Wix "Built on" tag (shows until Premium): keep our phone buttons above it ---------- */
@media (max-width: 820px) {
  body:has(#wixheadless-banner-container[style*="block"]) .bar { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  body:has(#wixheadless-banner-container[style*="block"]) .cb-btn { bottom: 150px !important; }
  body:has(#wixheadless-banner-container[style*="block"]) .cb { bottom: 206px !important; }
  body:has(#wixheadless-banner-container[style*="block"]) footer { padding-bottom: 170px; }
  .work-head .btn { display: none; }
  .wchips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .wchips::-webkit-scrollbar { display: none; }
  .wchips button { flex: 0 0 auto; }
}

/* ---------- Service cards without a photo: striped lawn tile ---------- */
.svc-img span { font-size: 3.6rem; }
.svc-img.noimg { background: repeating-linear-gradient(90deg, #e9f2e4 0 34px, #dcebd6 34px 68px); }
.svc.hot .svc-img.noimg { background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 34px, rgba(255,255,255,.11) 34px 68px); }
/* ---------- Small polish (Oct 20) ---------- */
.page-hero + section { padding-top: 48px; }
body:has(#lawn-report) .bar, body:has(#lawn-maker) .bar { display: none !important; }
body:has(#lawn-report) footer, body:has(#lawn-maker) footer { padding-bottom: 90px; }
@media (max-width: 820px) { body:has(#wixheadless-banner-container[style*="block"]) .bar { background: var(--cream); } }
/* ---------- Services page photos ---------- */
.row-img { margin-top: 16px; aspect-ratio: 16 / 10; max-width: 480px; }
/* ---------- Sign-up forms (snow list, property quote) ---------- */
.lf-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-top: 18px; box-shadow: 0 20px 50px -34px rgba(22,55,27,.35); }
.lf .fld { margin: 0 0 16px; border: 0; padding: 0; }
.lf .fld > label, .lf legend { display: block; font-weight: 600; margin-bottom: 6px; }
.lf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lf .chip { position: relative; }
#snow-list .lede, #property-quote .lede { max-width: none; }
/* ---------- Photo upload (quote form, snow list) ---------- */
.fld.up .up-label { display: block; font-weight: 600; margin-bottom: 6px; }
.up-label .opt { font-weight: 400; color: var(--mute); }
.up-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-bottom: 8px; }
.up-list:empty { display: none; }
.up-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--g1); }
.up-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-item.up img { opacity: .5; }
.up-item.err { outline: 2px solid #b3261e; outline-offset: -2px; }
.up-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.62); color: #fff; font-size: 18px; line-height: 28px; padding: 0; cursor: pointer; }
.up-spin { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border: 3px solid rgba(255,255,255,.85); border-top-color: var(--g6); border-radius: 50%; animation: upspin .8s linear infinite; }
@keyframes upspin { to { transform: rotate(360deg); } }
.up-bad { position: absolute; left: 4px; right: 4px; bottom: 4px; background: #b3261e; color: #fff; border-radius: 8px; font-size: .7rem; font-weight: 700; text-align: center; padding: 2px 0; }
.fld.up > label.up-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border: 2px dashed var(--line); border-radius: var(--r); background: #fff; font-weight: 600; color: var(--g8); cursor: pointer; }
.fld.up > label.up-btn:hover { border-color: var(--g6); background: var(--g1); }
.fld.up .up-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fld.up > label.up-btn:focus-within { outline: 3px solid var(--g2); outline-offset: 2px; }
.fld.up > label.up-btn[hidden] { display: none; }
/* ---------- Easier quote (Oct 20): address box in the phone hero, pinned price, tappable service cards ---------- */
@media (max-width: 999px) {
  .hero .wrap.hero-grid { display: flex; flex-direction: column; padding-top: 34px; padding-bottom: 40px; }
  .hero .hero-l { display: contents; }
  .hero .hero-l > .eyebrow { order: 1; }
  .hero .hero-l > h1 { order: 2; }
  .hero .hero-q { order: 3; display: block; background: #fff; color: var(--ink); border-radius: 18px; padding: 18px; margin: 6px 0 18px; box-shadow: 0 24px 50px -28px rgba(0,0,0,.75); }
  .hero .hero-l > .hero-cta { order: 4; margin-top: 0; }
  .hero .hero-l > .trust { order: 5; }
  .hero .hero-l > .lede { display: none; }
  .hero .hero-cta .btn-light { display: none; }
  .hero .hq-eye { margin: 0 0 4px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: var(--g6); }
  .hero .hq-h { font-size: 1.35rem; line-height: 1.2; margin: 0 0 12px; color: var(--ink); }
  .hero .hero-q input { width: 100%; margin-bottom: 10px; font-size: 1.1rem; padding: .9em 1em; }
  .hero .hero-q .btn { width: 100%; font-size: 1.1rem; padding: 1em; }
  .hero .hq-note { margin: 10px 0 0; text-align: center; color: var(--mute); font-size: .9rem; }
  .hero .hq-list { display: none; }
}
.q-mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--g9); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.45); }
.q-mini[hidden] { display: none; }
.qm-l { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.qm-k { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.qm-v { font-size: 1.35rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-mini .btn { padding: .85em 1.3em; font-size: 1.05rem; white-space: nowrap; }
body.qm-on .bar { display: none; }
@media (min-width: 1000px) { .q-mini { left: 50%; right: auto; transform: translateX(-50%); bottom: 18px; border-radius: 18px; width: min(560px, 92vw); padding: 12px 14px 12px 22px; } }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,122,58,0); } 35% { box-shadow: 0 0 0 7px rgba(47,122,58,.35); } }
#q-address-form.nudge { animation: nudge 1.1s ease 2; border-radius: 14px; }
#services .svc.tap { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
#services .svc.tap:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(22,55,27,.5); }
#services .svc.tap:active { transform: scale(.99); }
#services .svc.tap:focus-visible { outline: 3px solid var(--g6); outline-offset: 3px; }
.svc-go { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--g6); }
footer a { display: inline-block; padding: 8px 0; }
ul.towns a { display: inline-block; padding: 8px 2px; }
/* Keep the sticky header from covering what we scroll to */
#quote, #q-area, #q-step2, #lead, #snow-list, #property-quote, section[id] { scroll-margin-top: 80px; }

/* Bigger tap targets for FAQ questions and breadcrumbs (easier for everyone) */
.faq summary { padding-top: 10px; padding-bottom: 10px; cursor: pointer; }
.crumbs a { display: inline-block; padding: 6px 0; }
