/* ProScapes public sites — shared styles for Lawn Care and Lawn & Garden.
   Brand colors come from the current sites (logo green, canopy green, peach buttons).
   Type: Barlow Condensed for headlines (work-truck lettering feel), Barlow for text. */

:root {
  --green: #548b1c;      /* logo green — large text and accents only */
  --canopy: #144814;     /* deep green — top bar, footer, links, body headings */
  --canopy-2: #0d330d;
  --peach: #f1a17e;      /* call-to-action buttons */
  --peach-2: #ec8a60;
  --ink: #1e2619;
  --muted: #55604c;
  --sage: #eef3e6;       /* soft section background */
  --line: #d6dfca;
  --rust: #b3260a;       /* errors */
  --white: #ffffff;
  --radius: 6px;
  --wrap: 1180px;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--canopy); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--peach-2); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; color: var(--canopy); }
h3 { font-size: 1.5rem; font-weight: 600; color: var(--canopy); }
p { margin: 0 0 1em; max-width: 68ch; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: .25em 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em;
  border-radius: var(--radius); border: 2px solid transparent; font: 600 1.05rem/1 var(--text); text-decoration: none; cursor: pointer; }
.btn-cta { background: var(--peach); color: var(--canopy-2); }
.btn-cta:hover { background: var(--peach-2); color: var(--canopy-2); }
.btn-line { border-color: currentColor; color: var(--canopy); background: transparent; }
.btn-line:hover { background: var(--canopy); color: var(--white); border-color: var(--canopy); }
.btn-light { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--canopy); }

/* Top bar + header */
.topbar { background: var(--canopy); color: var(--white); font-size: .95rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar .area { opacity: .85; }
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo img { height: 62px; width: auto; max-width: 46vw; object-fit: contain; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 10px 10px; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--canopy); background: var(--sage); }
.nav .has-sub { position: relative; }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 6px; min-width: 220px; box-shadow: 0 10px 24px rgba(20,72,20,.12); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: block; }
.nav .sub a { padding: 8px 10px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--line); border-radius: var(--radius);
  min-height: 44px; padding: 0 14px; font: 600 1rem var(--text); color: var(--canopy); }
.header .btn-cta { white-space: nowrap; }

@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line);
    margin: 0; padding: 8px 20px 16px; max-height: calc(100vh - 120px); overflow: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--sage); }
  .nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; }
  .header .btn-cta { display: none; }
  .logo img { height: 52px; }
  .header .wrap { min-height: 72px; }
}
@media (max-width: 560px) { .topbar .area { display: none; } .topbar .wrap { justify-content: center; } }

/* Hero: photo with the estimate form right there */
.hero { position: relative; color: var(--white); background: var(--canopy-2); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,38,10,.9) 0%, rgba(10,38,10,.72) 45%, rgba(10,38,10,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .lead { font-size: 1.2rem; max-width: 46ch; color: rgba(255,255,255,.92); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero.page-hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
.hero.page-hero h1 { max-width: 22ch; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .hero::after { background: rgba(10,38,10,.78); }
}

/* Estimate form */
.estimate { background: var(--white); color: var(--ink); border-radius: 10px; padding: 26px; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.estimate h2 { font-size: 2rem; margin-bottom: .2em; }
.estimate .sub-lead { color: var(--muted); margin-bottom: 14px; }
.field { margin-bottom: 12px; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid #b9c5aa;
  border-radius: var(--radius); background: var(--white); color: var(--ink); min-height: 46px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--canopy); outline: 2px solid rgba(84,139,28,.35); outline-offset: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0 0 12px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; margin: 0; }
.checks input { width: 18px; height: 18px; accent-color: var(--canopy); margin: 0; min-height: 0; }
.checks label:has(input:checked) { border-color: var(--canopy); background: var(--sage); }
.hp { position: absolute; left: -5000px; }
.estimate .btn-cta { width: 100%; margin-top: 6px; font-size: 1.1rem; }
.form-msg { margin-top: 10px; font-weight: 600; }
.form-msg.err { color: var(--rust); }
.form-done { text-align: center; padding: 20px 0; }
.form-done h3 { font-size: 1.8rem; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--sage); }
.section.tight { padding: 48px 0; }
@media (max-width: 700px) { .section { padding: 48px 0; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: 10px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } .split.flip > :first-child { order: 0; } }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* Service tiles: photo + name, the whole tile is the link */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.tile { position: relative; display: block; border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--white); aspect-ratio: 1/1; background: var(--canopy); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(8,30,8,.85) 100%); }
.tile span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font: 700 1.6rem/1 var(--display); }
.tile small { display: block; font: 400 .95rem/1.35 var(--text); margin-top: 6px; opacity: .92; }
.tile:hover img { transform: scale(1.04); }
.tile:hover { color: var(--white); }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { gap: 12px; } .tile span { font-size: 1.3rem; left: 12px; bottom: 10px; } .tile small { display: none; } }

.tiles.two-up { grid-template-columns: repeat(2, 1fr); }
.tiles.two-up .tile { aspect-ratio: 16/10; }
@media (max-width: 620px) { .tiles.two-up { grid-template-columns: 1fr; } }

/* Recent-work gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* FAQs */
.faq { max-width: 820px; }
.faq details { border-top: 2px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; font: 600 1.35rem/1.2 var(--display); color: var(--canopy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 600 1.8rem/1 var(--text); color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }

/* Simple list of services with no photos */
.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; margin-top: 24px; list-style: none; padding: 0; }
.svc-list li { border-top: 2px solid var(--line); padding: 14px 0; margin: 0; }
.svc-list a { font: 600 1.35rem/1.1 var(--display); text-decoration: none; }

/* How it works — real 3-step sequence */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; }
.steps li { margin: 0; padding-top: 14px; border-top: 4px solid var(--green); }
.steps li::before { counter-increment: step; content: counter(step); font: 700 2.6rem/1 var(--display); color: var(--green); display: block; margin-bottom: 6px; }
.steps h3 { margin-bottom: .3em; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Testimonial */
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font: 500 1.45rem/1.45 var(--text); color: var(--canopy); }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-weight: 600; color: var(--muted); }

/* Area links */
.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.areas a { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--white); }
.areas a:hover { border-color: var(--canopy); }

/* Estimate band at the bottom of inner pages */
.band { background: var(--canopy); color: var(--white); }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.band h2 { color: var(--white); }
.band p { color: rgba(255,255,255,.9); }
.band .phone { font: 700 2.2rem/1 var(--display); color: var(--peach); text-decoration: none; }
@media (max-width: 900px) { .band .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 44px; } }

/* Footer */
.footer { background: var(--canopy-2); color: rgba(255,255,255,.85); padding: 48px 0 100px; font-size: .97rem; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer h3 { color: var(--white); font-size: 1.3rem; }
.footer a { color: var(--white); }
.footer ul { list-style: none; padding: 0; }
.footer .logo-w img { height: 60px; width: auto; margin-bottom: 14px; }
.footer .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; opacity: .75; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .footer { padding-bottom: 48px; } }

/* Phone: always-visible call + estimate bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--white); border-top: 1px solid var(--line); padding: 8px; gap: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .callbar .btn { width: 100%; }
}

/* Preview banner (test address only) */
.preview-flag { background: #fff4c2; color: #4a3b00; text-align: center; font-size: .9rem; padding: 6px 12px; }

/* Compact estimate form in the hero so the photo side stays the focus */
.hero .estimate { padding: 22px; }
.hero .estimate .checks { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 5px; }
.hero .estimate .checks label { padding: 6px 8px; font-size: .9rem; }
.hero .estimate textarea { min-height: 56px; }
.hero .estimate .field { margin-bottom: 10px; }
.nav a { white-space: nowrap; }

/* ProScapes family switch — very top of both public sites */
.family { background: #0d330d; color: rgba(255,255,255,.8); font-size: .85rem; }
.family .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.family-name { font-weight: 700; letter-spacing: .02em; color: #fff; }
.family-switch { display: inline-flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 3px; }
.family-switch > * { padding: 4px 12px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.family-switch .on { background: #f1a17e; color: #0d330d; }
.family-switch a:hover { background: rgba(255,255,255,.14); color: #fff; }
.family-switch small { font-weight: 400; opacity: .8; font-size: .8rem; }
@media (max-width: 640px) { .family-name { display: none; } .family .wrap { justify-content: center; } .family-switch small { display: none; } }

/* ---- v0.3: plant list, pick up / delivery, discount code, running estimate ---- */
[hidden] { display: none !important; }
.order-list { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: var(--sage); }
.order-list h3, .order-totals h3 { font-size: 1.2rem; margin: 0 0 6px; }
.order-items { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.order-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; background: var(--white); border-radius: 8px; padding: 8px 10px; }
.oi-name { font-weight: 600; min-width: 0; } .oi-name small { display: block; color: var(--muted); font-weight: 400; }
.oi-qty { display: inline-flex; align-items: center; gap: 6px; } .oi-qty b { min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; }
.oi-qty button, .oi-remove { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); font: 700 1rem/1 var(--text); color: var(--canopy); cursor: pointer; padding: 0; }
.oi-remove { border: 0; color: var(--muted); font-size: 1.3rem; }
.oi-price { font-weight: 700; color: var(--canopy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-more { font-weight: 600; font-size: .95rem; }
.fulfill { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.code-row { display: flex; gap: 8px; } .code-row input { flex: 1; text-transform: uppercase; } .code-row .btn { min-height: 44px; padding: .5em 1.1em; font-size: .95rem; }
.code-msg { margin: 6px 0 0; font-size: .92rem; font-weight: 600; min-height: 0; } .code-msg:empty { display: none; }
.code-msg.ok { color: var(--green); } .code-msg.err { color: var(--rust); }
.order-totals { border-top: 2px solid var(--canopy); margin: 4px 0 12px; padding-top: 10px; font-variant-numeric: tabular-nums; }
.order-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.order-totals .ot-total { font-weight: 800; font-size: 1.15rem; color: var(--canopy); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
.order-totals .hint { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.cta-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--canopy); color: #fff; font-size: .8rem; font-weight: 800; }
@media (max-width: 480px) { .order-items li { grid-template-columns: minmax(0, 1fr) auto auto; } .oi-price { grid-column: 1 / 2; grid-row: 2; font-size: .92rem; } .oi-remove { grid-row: 1; grid-column: 3; } }
