/* ============================================================
   Greenline Lawn Care - OP Digital build
   Archetype: Bright Friendly. One accent locked. Light theme locked.
   ============================================================ */

/* NAV-SAFETY: never out-ranked. Keep this high in the stylesheet. */
[hidden] { display: none !important; }

:root {
  /* Palette (locked) */
  --accent: #22c55e;          /* primary accent - the only interactive colour */
  --accent-strong: #16a34a;   /* hover/active shade of the same accent */
  --accent-2: #84cc16;        /* secondary, decorative only (gradients/marks) */
  --ink: #14271a;             /* headings + body text */
  --ink-soft: #3f5446;        /* muted text */
  --ink-faint: #6b7d70;       /* captions / fine print */
  --paper: #f7fdf3;           /* page background */
  --surface: #ffffff;         /* cards / panels */
  --surface-tint: #eefbe6;    /* soft green wash */
  --line: #d9ead0;            /* hairlines / borders */
  --on-accent: #ffffff;       /* text on accent (AA: white on #16a34a = 4.6:1) */

  --shadow-sm: 0 2px 8px rgba(20, 39, 26, 0.06);
  --shadow-md: 0 14px 34px rgba(20, 39, 26, 0.10);
  --shadow-lg: 0 26px 60px rgba(20, 39, 26, 0.16);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1200px;
  --header-h: 74px;

  --font-display: "Quicksand", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*, *::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);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--accent-strong); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }

.stars { color: #d7a40a; letter-spacing: 1px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              box-shadow 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn--lg { padding: 16px 30px; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent-strong); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #128a3d; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }

.btn--outline { background: transparent; color: var(--accent-strong); border-color: var(--accent-strong); }
.btn--outline:hover { background: var(--accent-strong); color: var(--on-accent); transform: translateY(-2px); }

.btn--ghost { background: var(--surface-tint); color: var(--ink); }
.btn--ghost:hover { background: #e2f6d3; transform: translateY(-2px); }

.btn--on-accent { background: var(--surface); color: var(--accent-strong); }
.btn--on-accent:hover { background: #f0fff0; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   STICKY NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 253, 243, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); background: rgba(247, 253, 243, 0.96); }

.nav { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; color: var(--ink); }
.brand__mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #06210f; box-shadow: var(--shadow-sm);
}
.brand__name-soft { color: var(--accent-strong); }

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-weight: 600; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color 0.18s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent-strong); transition: width 0.22s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__call { font-size: 0.95rem; padding: 10px 16px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 42px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); cursor: pointer;
}
.nav__toggle-bar { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 0.22s var(--ease), opacity 0.22s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150;
  background: var(--paper);
  padding: calc(var(--header-h) + 18px) 28px 36px;
  display: flex; flex-direction: column; gap: 6px;
  animation: navIn 0.26s var(--ease);
}
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-nav a { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line); }
.mobile-nav__cta { margin-top: 18px; border-bottom: none; color: var(--on-accent); font-size: 1.1rem; text-align: center; }
.mobile-nav__call { border-bottom: none; color: var(--accent-strong); font-size: 1.1rem; }
.mobile-nav__close {
  position: absolute; top: 18px; right: 20px; width: 46px; height: 46px;
  display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .mobile-nav { animation: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 33, 15, 0.86) 0%, rgba(8, 33, 15, 0.66) 46%, rgba(8, 33, 15, 0.18) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: 56px 0; }
.hero__content { max-width: 660px; color: #fff; }
.hero__eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #0a2e14; background: var(--accent-2); padding: 7px 14px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.hero__title { font-size: clamp(2.1rem, 5.4vw, 3.7rem); color: #fff; margin-bottom: 16px; }
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: rgba(255, 255, 255, 0.94); max-width: 36ch; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__cta .btn--outline { color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.hero__cta .btn--outline:hover { background: #fff; color: var(--accent-strong); border-color: #fff; }
.hero__trust { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.95); margin: 0; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { background: var(--ink); color: #eafff0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 24px; }
.trust__item { display: flex; align-items: center; justify-content: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; text-align: center; }
.trust__item svg { color: var(--accent-2); flex-shrink: 0; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section__head { max-width: 660px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section__lead { font-size: 1.12rem; color: var(--ink-soft); margin: 0; }
.section__lead .stars { margin-right: 8px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Services (grid of cards) ---------- */
.services { background: var(--paper); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { padding: 30px 26px; transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #bfe1ac; }
.service-card__icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: var(--surface-tint); color: var(--accent-strong); margin-bottom: 16px;
}
.service-card h3 { font-size: 1.28rem; margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); margin: 0; }
.service-card--accent { background: linear-gradient(150deg, var(--accent-strong), #0f7a36); border-color: transparent; color: #fff; }
.service-card--accent h3 { color: #fff; }
.service-card--accent p { color: rgba(255, 255, 255, 0.92); }
.service-card--accent .service-card__icon { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ---------- Why choose us (asymmetric split + numbered list) ---------- */
.why { background: var(--surface-tint); }
.why__layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.why__intro { position: sticky; top: calc(var(--header-h) + 28px); }
.why__intro .section__title { text-align: left; }
.why__intro .section__lead { text-align: left; margin-bottom: 26px; }
.why__list { display: grid; gap: 14px; }
.why__item {
  display: flex; gap: 18px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.why__num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--accent-strong); background: var(--surface-tint); width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.why__item h3 { font-size: 1.2rem; margin-bottom: 4px; }
.why__item p { color: var(--ink-soft); margin: 0; }

/* ---------- Free quote CTA (2-col + photo) ---------- */
.hook { background: var(--ink); color: #eafff0; overflow: hidden; }
.hook__layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hook__eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.hook__copy .section__title { color: #fff; text-align: left; }
.hook__copy .section__lead { color: rgba(234, 255, 240, 0.85); text-align: left; margin-bottom: 24px; }
.hook__points { display: grid; gap: 12px; margin-bottom: 30px; }
.hook__points li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.hook__points svg { color: var(--accent-2); flex-shrink: 0; }

/* photo */
.hook__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 2px rgba(132, 204, 22, 0.18); aspect-ratio: 4 / 3.2; }
.hook__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Work gallery (bento with rhythm) ---------- */
.work { background: var(--paper); }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work__tile { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3.4; }
.work__tile--wide { grid-column: span 2; aspect-ratio: 16 / 9.6; }
.work__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.work__tile:hover img { transform: scale(1.05); }
.work__tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 0.98rem;
  background: linear-gradient(to top, rgba(8, 33, 15, 0.82), transparent);
}

/* ---------- Reviews ---------- */
.reviews { background: var(--surface-tint); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.review .stars { font-size: 1.05rem; }
.review p { font-size: 1.08rem; color: var(--ink); margin: 0; }
.review footer { color: var(--ink-faint); font-size: 0.96rem; margin-top: auto; }
.review footer strong { color: var(--ink); font-family: var(--font-display); }

/* ---------- Service area (split + suburb pills) ---------- */
.areas { background: var(--paper); }
.areas__layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 70px); align-items: center; }
.areas__copy .section__title, .areas__copy .section__lead { text-align: left; }
.areas__copy .section__lead { margin-bottom: 24px; }
.areas__list { display: flex; flex-wrap: wrap; gap: 12px; }
.areas__list li {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 11px 20px; box-shadow: var(--shadow-sm); transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.areas__list li:hover { transform: translateY(-3px); border-color: var(--accent); }

/* ---------- FAQ (split header + accordions) ---------- */
.faq { background: var(--surface-tint); }
.faq__layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 28px); }
.faq__head .section__title, .faq__head .section__lead { text-align: left; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq__chevron::before, .faq__chevron::after { content: ""; position: absolute; background: var(--accent-strong); border-radius: 2px; transition: transform 0.25s var(--ease); }
.faq__chevron::before { top: 6px; left: 0; width: 14px; height: 2.5px; }
.faq__chevron::after { top: 0; left: 6px; width: 2.5px; height: 14px; }
.faq__item[open] .faq__chevron::after { transform: scaleY(0); }
.faq__body { padding: 0 24px 22px; }
.faq__body p { color: var(--ink-soft); margin: 0; }

/* ---------- CTA band + quote form ---------- */
.cta-band { background: linear-gradient(150deg, var(--accent-strong) 0%, #0f7a36 100%); color: #fff; }
.cta-band__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 64px); align-items: center; }
.cta-band__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: #fff; }
.cta-band__lead { font-size: 1.14rem; color: rgba(255, 255, 255, 0.92); max-width: 44ch; margin-bottom: 26px; }
.cta-band__actions { margin-bottom: 14px; }
.cta-band__hours { font-weight: 600; color: rgba(255, 255, 255, 0.9); margin: 0; }

.quote-form { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow-lg); }
.quote-form__title { font-size: 1.5rem; margin-bottom: 18px; color: var(--ink); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.field__opt { color: var(--ink-faint); font-weight: 600; font-size: 0.85rem; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; width: 100%; transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #7c8d80; } /* AA on --paper */
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
.field textarea { resize: vertical; min-height: 90px; }
.form-note { margin: 12px 0 0; padding: 12px 14px; background: var(--surface-tint); border-radius: 10px; color: #0f5c2a; font-weight: 600; }
.quote-form__fineprint { margin: 14px 0 0; font-size: 0.85rem; color: var(--ink-faint); text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #cfe4d6; padding: clamp(54px, 7vw, 80px) 0 30px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.brand--footer { color: #fff; margin-bottom: 14px; }
.site-footer__brand p { color: #a9c3b2; max-width: 38ch; margin: 0; }
.site-footer__col h4 { font-size: 1.05rem; color: #fff; margin-bottom: 14px; }
.site-footer__col ul { display: grid; gap: 9px; }
.site-footer__col a, .site-footer__col li { color: #a9c3b2; transition: color 0.18s var(--ease); }
.site-footer__col a:hover { color: var(--accent-2); }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem; color: #8eaa9b;
}
.site-footer__base p { margin: 0; }

/* ============================================================
   STICKY MOBILE CALL BAR
   ============================================================ */
.mobile-callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 253, 243, 0.97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(20, 39, 26, 0.12); backdrop-filter: blur(8px);
}
.mobile-callbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 700; padding: 14px; border-radius: 12px; }
.mobile-callbar__call { background: var(--accent-strong); color: var(--on-accent); }
.mobile-callbar__quote { background: var(--surface); color: var(--accent-strong); border: 2px solid var(--accent-strong); }

/* ============================================================
   SCROLL REVEAL (refined)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .why__layout, .areas__layout, .faq__layout { grid-template-columns: 1fr; }
  .why__intro, .faq__head { position: static; }
  .hook__layout { grid-template-columns: 1fr; gap: 44px; }
  .cta-band__layout { grid-template-columns: 1fr; }
  .services__grid, .work__grid, .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .work__tile--wide { grid-column: span 2; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
  .mobile-callbar { display: flex; }
  body { padding-bottom: 76px; }
  .hero { min-height: auto; padding-top: 8px; }
  .hero__inner { padding: 64px 0 72px; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .services__grid, .work__grid, .reviews__grid { grid-template-columns: 1fr; }
  .work__tile--wide { grid-column: span 1; aspect-ratio: 16 / 10; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
  .btn { font-size: 0.98rem; }
}

/* ============================================================
   REDUCED MOTION - degrade everything to static
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .work__tile:hover img { transform: none; }
}
