/* =========================================================
   Waynick Lawn Care
   Colors are sampled from the logo artwork so the site and the
   logo read as one piece.
   ========================================================= */
:root {
  --stripe-a: #104225;   /* dark mow stripe (from logo background) */
  --stripe-b: #234f2c;   /* light mow stripe */
  --panel: #0a3a1f;      /* logo badge green */
  --panel-2: #0e4526;
  --lime: #84bd34;       /* logo border */
  --lime-hi: #a3d556;
  --white: #ffffff;
  --muted: #cfe0cc;
  --ink: #0a2414;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
  --topbar-h: 64px;
  /* Stripe width tracks the viewport so the lawn looks like the
     logo's background at any size instead of turning into thin
     pinstripes on a phone or giant blocks on a TV. */
  --stripe: clamp(64px, 13.5vw, 200px);
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--stripe-a);
  background-image: repeating-linear-gradient(
    90deg,
    var(--stripe-a) 0 var(--stripe),
    var(--stripe-b) var(--stripe) calc(var(--stripe) * 2)
  );
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--lime-hi); }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--lime-hi); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Banner ---------- */
.banner {
  background: var(--lime);
  color: var(--ink);
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  padding: 8px 16px;
}
.banner a { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(7, 44, 23, .94);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--lime);
}
.brand img { height: 54px; width: auto; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.call-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px;
  background: var(--lime); color: var(--ink);
  border-radius: 999px; text-decoration: none; font-weight: 700;
}
.call-pill:hover { background: var(--lime-hi); color: var(--ink); }
.call-pill svg { width: 18px; height: 18px; fill: currentColor; }
/* On narrow phones the number won't fit beside the menu button;
   the phone icon alone still dials. */
@media (max-width: 420px) { .call-pill span { display: none; } .call-pill { width: 42px; padding: 0; justify-content: center; } }

.menu-btn, .drawer-close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent; color: var(--white);
  border: 2px solid rgba(255, 255, 255, .35); border-radius: 10px;
  cursor: pointer;
}
.menu-btn svg, .drawer-close svg { width: 26px; height: 26px; fill: currentColor; }
.menu-btn:hover, .drawer-close:hover { border-color: var(--lime); }

/* ---------- Drawer menu ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  z-index: 60;
  background: var(--panel);
  border-left: 4px solid var(--lime);
  transform: translateX(105%);
  display: flex; flex-direction: column;
  overflow-y: auto;
  /* visibility keeps hidden menu links out of the tab order until it's
     open. It's delayed on close so the slide-out still animates
     instead of the drawer vanishing instantly. */
  visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; height: var(--topbar-h);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.drawer-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--lime-hi); }

.nav-list, .nav-sub { list-style: none; margin: 0; padding: 0; }
.nav-list { padding: 8px 0; }
.nav-link, .nav-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  font-family: var(--font-head); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .03em;
  color: var(--white); text-decoration: none;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.nav-link:hover, .nav-toggle:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.nav-link.is-current { color: var(--lime-hi); }
.nav-toggle svg { width: 24px; height: 24px; fill: var(--lime); transition: transform .2s; }
.nav-group.is-open > .nav-toggle svg { transform: rotate(90deg); }
.nav-group.is-open > .nav-toggle { color: var(--lime-hi); }
.nav-sub { display: none; padding: 0 0 8px; background: rgba(0, 0, 0, .18); }
.nav-group.is-open > .nav-sub { display: block; }
.nav-sub a {
  display: block; padding: 11px 20px 11px 40px;
  color: var(--muted); text-decoration: none; font-weight: 600;
  border-left: 3px solid transparent;
}
.nav-sub a:hover { color: var(--white); border-left-color: var(--lime); background: rgba(255, 255, 255, .05); }

.drawer-contact { margin-top: auto; padding: 16px; display: grid; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-hi); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { border-color: var(--lime); color: var(--white); background: rgba(132, 189, 52, .12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Panels (the dark badge boxes) ---------- */
.panel {
  background: var(--panel);
  border: 3px solid var(--lime);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 44px);
}
.section { padding: clamp(40px, 7vw, 80px) 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em;
  color: var(--lime-hi); font-size: .95rem; margin-bottom: .4em;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Home hero ---------- */
.home-hero { padding: clamp(28px, 6vw, 70px) 0 clamp(36px, 6vw, 60px); text-align: center; }
.home-hero .logo-big { width: min(760px, 100%); height: auto; margin: 0 auto 18px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .4)); }
.home-hero .tagline {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem); margin: 0 auto 22px; max-width: 30ch;
}
.home-hero .btn-row { justify-content: center; }

/* ---------- Service cards (home) ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 3px solid var(--lime); border-radius: var(--radius);
  overflow: hidden; color: var(--white); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); color: var(--white); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-link { margin-top: auto; font-weight: 700; color: var(--lime-hi); }

/* ---------- Feature points ---------- */
.points { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 26px; }
.point { padding: 20px; border-radius: 12px; background: rgba(255, 255, 255, .05); border-left: 4px solid var(--lime); }
.point h3 { font-size: 1.15rem; margin-bottom: .35em; }
.point p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Area chips ---------- */
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.center .chips { justify-content: center; }
.chips li {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(132, 189, 52, .15); border: 2px solid var(--lime);
  font-weight: 600; font-size: .95rem;
}

/* ---------- Category page hero ---------- */
.page-hero {
  position: relative;
  min-height: clamp(340px, 58vh, 560px);
  display: flex; align-items: flex-end;
  border-bottom: 4px solid var(--lime);
  overflow: hidden;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 30, 16, .15) 0%, rgba(5, 30, 16, .55) 45%, rgba(5, 30, 16, .93) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; padding: 40px 0 36px; }
.page-hero h1 { margin-bottom: .25em; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.page-hero p { font-size: 1.12rem; max-width: 56ch; color: #eef5ec; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

/* ---------- Sub-nav (Services / Gallery / Contact) ---------- */
.subnav {
  position: sticky; top: var(--topbar-h); z-index: 30;
  background: rgba(10, 58, 31, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.subnav ul { list-style: none; margin: 0 auto; padding: 10px 16px; display: flex; gap: 8px; justify-content: center; }
.subnav a {
  display: block; padding: 8px 18px; border-radius: 999px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  color: var(--white); text-decoration: none; border: 2px solid rgba(255, 255, 255, .25);
}
.subnav a:hover, .subnav a.is-active { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* Sticky top bar + sticky sub-nav would otherwise cover the heading
   of whatever section a menu link jumps to. */
[id] { scroll-margin-top: calc(var(--topbar-h) + 70px); }

/* ---------- Service list ---------- */
.services { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 26px; }
.service {
  padding: 22px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.service .ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 12px;
  background: var(--lime);
}
.service .ico svg { width: 26px; height: 26px; fill: var(--ink); }
.service h3 { font-size: 1.2rem; margin-bottom: .35em; }
.service p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Image + text split ---------- */
.split { display: grid; gap: clamp(20px, 4vw, 44px); align-items: center; margin-top: clamp(30px, 5vw, 50px); }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 3px solid var(--lime); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 34px; position: relative; color: var(--muted); }
.checks li strong { color: var(--white); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230a2414' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-top: 24px; }
.ba, .single { margin: 0; background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 10px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; width: 100%; }
.photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.single .photo img { aspect-ratio: 4 / 3; }
.tag {
  position: absolute; left: 8px; top: 8px;
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
}
.tag-before { background: rgba(0, 0, 0, .7); color: var(--white); }
.tag-after { background: var(--lime); color: var(--ink); }
figcaption { padding: 10px 4px 2px; color: var(--muted); font-size: .95rem; }

.empty-card {
  margin-top: 22px; padding: 30px 24px; text-align: center;
  border: 2px dashed rgba(132, 189, 52, .7); border-radius: 12px;
  background: rgba(255, 255, 255, .04); color: var(--muted);
}
.empty-card p { max-width: 54ch; margin-inline: auto; }
.empty-title { font-family: var(--font-head); text-transform: uppercase; font-size: 1.3rem; color: var(--white); letter-spacing: .03em; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: none; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, .9);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 14px; right: 14px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 0; cursor: pointer;
}
.lightbox-close svg { width: 26px; height: 26px; fill: var(--ink); }

/* ---------- Contact block ---------- */
.contact-grid { display: grid; gap: 26px; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.contact-actions { display: grid; gap: 12px; }
.contact-actions .btn { width: 100%; font-size: 1.08rem; min-height: 56px; }
.contact-detail { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.contact-detail strong { color: var(--white); }

/* ---------- Reviews ---------- */
.empty-reviews .empty-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 10px; }
.empty-stars svg { width: 30px; height: 30px; fill: var(--lime); }
.review-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 24px; }
.review { padding: 22px; border-radius: 12px; background: rgba(255, 255, 255, .06); border-top: 4px solid var(--lime); }
.review p { color: #eef5ec; }
.review footer { display: flex; flex-direction: column; font-size: .92rem; color: var(--muted); }
.review footer strong { color: var(--white); font-size: 1rem; }
.stars { display: flex; gap: 2px; margin-bottom: 10px; }
.stars svg { width: 20px; height: 20px; }
.stars .on svg { fill: var(--lime-hi); }
.stars .off svg { fill: rgba(255, 255, 255, .2); }

/* ---------- Footer ---------- */
.footer { background: rgba(5, 30, 16, .96); border-top: 4px solid var(--lime); margin-top: clamp(40px, 6vw, 70px); }
.footer-inner {
  width: min(1120px, 100% - 32px); margin: 0 auto; padding: 40px 0 20px;
  display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-brand img { width: 220px; height: auto; }
.footer h3 { font-size: 1.05rem; color: var(--lime-hi); letter-spacing: .1em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--lime-hi); }
.footer-area { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.footer-copy { text-align: center; color: rgba(255, 255, 255, .55); font-size: .85rem; padding: 14px 16px 24px; margin: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
