/* W&D Landscaping and Plowing — site styles
   One shared layout for every page: dark header, green banner, light content
   sections with cards, orange call-to-action band, dark footer. */

@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-ExtraBold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --coal: #1d2029;          /* flyer charcoal */
  --coal-deep: #15171e;
  --coal-line: #363b49;
  --lime: #a8e211;          /* logo green */
  --lime-ink: #4f7a00;      /* green that reads on white */
  --banner: #7cb004;        /* Facebook banner green */
  --banner-ink: #242520;    /* banner text */
  --orange: #ea6b2c;        /* flyer orange */
  --orange-hover: #f27d41;
  --ice: #8fc1e6;

  --page: #f2f5f7;          /* light section */
  --card: #ffffff;
  --line: #dbe2e8;
  --ink: #1d2029;
  --ink-muted: #505867;
  --on-dark: #e9ecf1;
  --on-dark-muted: #a9afbc;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --focus: var(--coal);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--card); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0 0 .4em; letter-spacing: .005em; }
h1, h2 { text-transform: uppercase; font-weight: 800; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 25px; font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--lime); color: var(--ink); padding: 10px 14px; font-weight: 600; z-index: 100; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: .02em;
  padding: 14px 22px; min-height: 52px; border-radius: 6px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-orange { background: var(--orange); color: var(--coal-deep); }
.btn-orange:hover { background: var(--orange-hover); }
.btn-dark { background: var(--coal); color: #fff; }
.btn-dark:hover { background: #2b303c; }
.btn-line { border-color: var(--coal); color: var(--coal); background: transparent; }
.btn-line:hover { background: var(--coal); color: #fff; }
.btn-small { font-size: 18px; padding: 10px 16px; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--coal-deep); border-bottom: 1px solid var(--coal-line); font-size: 15px; --focus: var(--lime); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { text-decoration: none; color: var(--on-dark-muted); white-space: nowrap; }
.topbar a:hover { color: var(--lime); }
.topbar-contact { display: flex; gap: 22px; margin: 0; }
.topbar-contact .phone { color: var(--lime); font-weight: 600; }
.topbar-right { margin: 0; }
.topbar .clienthub-link { color: var(--on-dark); }
.clienthub-link[hidden] { display: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--coal-deep); border-bottom: 3px solid var(--lime); --focus: var(--lime); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 86px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; padding: 6px 0; }
.brand img { height: 72px; width: auto; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.02; color: #fff; }
.brand-name span { display: block; color: var(--on-dark-muted); font-weight: 600; font-size: 17px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .01em; color: var(--on-dark); text-decoration: none; padding: 10px 12px; position: relative; }
.site-nav a:not(.btn):hover { color: var(--lime); }
.site-nav a[aria-current="page"] { color: var(--lime); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -22px; height: 5px; background: var(--lime); }
.site-nav .btn { margin-left: 12px; }
.site-nav .btn, .site-nav .btn:hover, .site-nav .btn[aria-current="page"] { color: var(--coal-deep); }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 8px; background: transparent; color: var(--on-dark); border: 2px solid var(--coal-line); border-radius: 6px; font-family: var(--display); font-weight: 700; font-size: 19px; padding: 9px 14px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 980px) { .brand-name { display: none; } }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .header-in { min-height: 74px; }
  .brand img { height: 60px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--coal-deep); border-bottom: 3px solid var(--lime); padding: 8px var(--gutter) 20px; }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 24px; padding: 14px 4px; border-bottom: 1px solid var(--coal-line); }
  .site-nav a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); }
  .site-nav .btn { margin: 18px 0 0; border-bottom: 0; }
}
@media (max-width: 640px) { .topbar-contact .email, .topbar .long { display: none; } }

/* ---------- Green banner (from the Facebook cover) — same on every page ---------- */
.banner {
  background-color: var(--banner);
  background-image:
    linear-gradient(90deg, rgba(124, 176, 4, .92) 0%, rgba(124, 176, 4, .78) 45%, rgba(124, 176, 4, .15) 80%),
    url("/assets/img/banner.jpg");
  background-size: auto, cover;
  background-position: center, right center;
  color: var(--banner-ink);
  border-bottom: 5px solid var(--orange);
  --focus: var(--banner-ink);
}
.banner-in { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.banner h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; max-width: 15.5em; margin-bottom: .3em; color: var(--banner-ink); }
.banner .sub { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.2; margin: 0; max-width: 34em; }
.banner .btn-row { margin-top: 26px; }
.banner .btn-line { border-color: var(--banner-ink); color: var(--banner-ink); }
.banner .btn-line:hover { background: var(--banner-ink); color: #fff; }
.banner-home h1 { font-size: clamp(32px, 4.2vw, 56px); max-width: 16em; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.jump a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--banner-ink); border: 2px solid rgba(36, 37, 32, .55); padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.jump a:hover { background: var(--banner-ink); color: #fff; border-color: var(--banner-ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; background: var(--card); }
.section.alt { background: var(--page); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(24px, 3.5vw, 40px); max-width: 46em; }
.section-head p { color: var(--ink-muted); font-size: 19px; margin: 0; }
.tag { align-self: flex-start; display: inline-block; font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--lime-ink); background: #eef7d6; border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }
.tag.orange { color: #8a3a0d; background: #fde7da; }
.tag.ice { color: #1d4f75; background: #e3f0fa; }

/* ---------- Cards: one style used everywhere ---------- */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--lime);
  border-radius: var(--radius); padding: clamp(22px, 2.6vw, 30px);
  display: flex; flex-direction: column;
}
.section:not(.alt) .card { background: var(--page); }
.card.orange { border-top-color: var(--orange); }
.card.ice { border-top-color: var(--ice); }
.card.dark { border-top-color: var(--coal); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-muted); margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--lime-ink); text-underline-offset: 4px; text-decoration-thickness: 2px; align-self: flex-start; }
.card.orange .card-link { color: #b34a12; }
.card.ice .card-link { color: #1d5f8f; }
.card .num { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: .9; color: var(--lime-ink); margin-bottom: 10px; }
.list { list-style: none; padding: 0; margin: 0 0 18px; }
.list li { padding: 6px 0 6px 20px; position: relative; border-bottom: 1px solid var(--line); font-weight: 500; }
.list li:last-child { border-bottom: 0; }
.list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; background: var(--lime-ink); transform: rotate(45deg); }
.list.check li::before { left: 3px; top: 13px; width: 12px; height: 7px; background: none; border-left: 3px solid var(--lime-ink); border-bottom: 3px solid var(--lime-ink); transform: rotate(-45deg); }
.card h2 { font-size: clamp(28px, 3vw, 36px); }
.card.help { background: var(--coal); border-color: var(--coal); border-top-color: var(--lime); color: var(--on-dark); }
.section .card.help { background: var(--coal); }
.card.help h3 { color: #fff; }
.card.help p { color: var(--on-dark-muted); }
.card.help .btn { align-self: flex-start; margin-top: auto; }
.card.orange .list li::before { background: var(--orange); }
.card.ice .list li::before { background: #3f86bd; }

/* Two-column layout used on Home, About, Service area and Get a quote */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.form { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split.even, .split.form { grid-template-columns: 1fr; } .split.form > #request { order: -1; } }
.prose p { font-size: 18px; color: var(--ink); }
.prose .big { font-size: 21px; line-height: 1.55; }

/* Wade's contact card */
.contact-card { padding: 0; overflow: hidden; border-top: 0; }
.contact-card .logo-plate { background: var(--coal-deep); padding: 24px; border-bottom: 5px solid var(--lime); }
.contact-card .logo-plate img { max-width: 240px; margin: 0 auto; }
.contact-card .body { padding: 24px 26px 28px; }
.contact-card h3 { font-size: 32px; text-transform: uppercase; font-weight: 800; margin: 0; }
.contact-card .role { color: var(--ink-muted); margin: 2px 0 16px; font-weight: 500; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-lines li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.contact-lines li:first-child { border-top: 0; }
.contact-lines svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--lime-ink); }
.contact-lines a { color: var(--ink); font-weight: 600; text-decoration-color: var(--lime-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-lines .muted { color: var(--ink-muted); }
.contact-card .btn-row .btn { flex: 1 1 0; padding-left: 10px; padding-right: 10px; }

/* Towns */
.town-list { list-style: none; padding: 0; margin: 0 0 18px; }
.town-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 19px; }
.town-list li:last-child { border-bottom: 0; }
.town-list .note { color: #b34a12; font-size: 15px; font-weight: 600; }
.state { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-muted); margin: 0 0 4px; }

/* Map */
.map-card { padding: 16px; }
.map-card svg { width: 100%; border-radius: 6px; }
.map-card figcaption { color: var(--ink-muted); font-size: 14px; padding: 10px 4px 0; }
figure.card { margin: 0; }
.map-bg { fill: #eef3e4; }
.map-grid { stroke: #dde6cf; stroke-width: 1; }
.map-zone { fill: #d3e9a3; stroke: #d3e9a3; stroke-width: 110; stroke-linejoin: round; }
.map-town { fill: var(--ink); font-family: var(--display); font-weight: 700; font-size: 26px; }
.map-sub { fill: var(--ink-muted); font-family: var(--body); font-size: 15px; }
.map-dot { fill: var(--lime-ink); }
.map-home { fill: var(--orange); }
.map-label-state { fill: #8e9a7c; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .2em; }
.map-scale { stroke: var(--ink-muted); stroke-width: 2; }
.map-scale-text, .map-north { fill: var(--ink-muted); font-family: var(--body); font-size: 14px; }
.map-north-arrow { fill: var(--ink-muted); }

/* Quote card + Jobber */
.jobber-slot { margin-top: 4px; }
.quote-fallback { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 20px; }
.quote-fallback[hidden] { display: none; }
.quote-fallback .lead { font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.form-link { margin-bottom: 24px; }
.form-link[hidden] { display: none; }

/* ---------- Orange call-to-action band (same on every page) ---------- */
.cta-band { background: var(--orange); color: var(--coal-deep); }
.cta-band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: clamp(40px, 6vw, 60px); padding-bottom: clamp(40px, 6vw, 60px); }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; font-weight: 500; font-size: 18px; }
.cta-phone { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--coal-deep); text-decoration: none; display: block; margin-bottom: 12px; }
.cta-phone:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--coal-deep); border-top: 3px solid var(--lime); color: var(--on-dark-muted); font-size: 16px; --focus: var(--lime); }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.footer-in h2 { font-size: 22px; color: #fff; margin-bottom: 14px; text-transform: none; font-weight: 700; }
.footer-in ul { list-style: none; padding: 0; margin: 0; }
.footer-in li { padding: 4px 0; }
.footer-in a { color: var(--on-dark); text-decoration: none; }
.footer-in a:hover { color: var(--lime); text-decoration: underline; }
.footer-logo img { width: 170px; margin-bottom: 14px; }
.footer-bottom { background: linear-gradient(var(--coal-line), var(--coal-line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; padding-top: 18px; padding-bottom: 24px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-in { grid-template-columns: 1fr; } }

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

/* W&D requested color and action updates */
.btn-green { background: var(--lime); color: var(--coal-deep); }
.btn-green:hover { background: #b9ef39; color: var(--coal-deep); }
.jump a.jump-lawn { background: #eef7d6; border-color: #eef7d6; color: var(--lime-ink); }
.jump a.jump-yard { background: #fde7da; border-color: #fde7da; color: #8a3a0d; }
.jump a.jump-snow { background: #e3f0fa; border-color: #e3f0fa; color: #1d4f75; }
.jump a:hover { filter: brightness(.92); }
.cta-band .btn-row .btn { flex: 1 1 0; white-space: nowrap; }
.instant-quote { align-items: flex-start; }
.instant-quote h2, .instant-quote p { color: #fff; }
@media (max-width: 400px) { .cta-band .btn-row .btn { padding-inline: 12px; } }
