/* GreenAid Gardening - garden and lawn maintenance, West Auckland.
   Warm paper background, leaf greens from the logo, terracotta for the one
   primary call to action (the pots in their photos), and a slate green for the
   dark sections. Serif headings carry over the feel of the current site. */

:root {
  --leaf: #3d8b37;
  --leaf-deep: #2b6a28;
  --fern: #9ccf6a;
  --clay: #c96a3c;
  --clay-deep: #a9512a;
  --slate: #2f3f3a;
  --slate-deep: #1f2c28;
  --ink: #1e2622;
  --muted: #4f5c55;
  --paper: #fbfaf6;
  --sage: #edf2e8;
  --mist: #dfe6db;
  --white: #ffffff;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, "Times New Roman", serif;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 72rem;
  --radius: 6px;
  --shadow: 0 20px 45px -28px rgba(31, 44, 40, 0.5);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--leaf-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--muted); }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
}
.section--slate .eyebrow { color: var(--fern); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
[id] { scroll-margin-top: 5.5rem; }
.section--sage { background: var(--sage); }
.section--slate { background: var(--slate); color: var(--sage); }
.section--slate h2, .section--slate h3 { color: var(--white); }
.section--slate p { color: var(--mist); }

.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: normal;
  text-align: center;
  min-height: 44px;
  font-family: inherit;
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--clay); color: var(--white); border-color: var(--clay); }
.btn--primary:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #b6c2b4; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost.on-dark, .section--slate .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn--ghost.on-dark:hover, .section--slate .btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.topbar {
  background: var(--leaf-deep);
  color: var(--sage);
  font-size: 0.9rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.4rem;
}
.topbar a { color: var(--white); text-decoration: none; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,246,0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--mist);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand img { width: 2.4rem; height: 2.4rem; }
.brand small { display: block; font-family: var(--font); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; color: var(--leaf); margin-top: 0.35rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 0.7rem 1.15rem; font-size: 0.95rem; color: var(--white); }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--mist);
  border-radius: var(--radius);
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    padding: 0.5rem var(--gutter) 1rem;
    box-shadow: var(--shadow);
  }
  .nav-ready .nav.is-open { display: flex; }
  html:not(.js) .header .wrap { flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .header .nav { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--sage); }
  .nav .btn { margin-top: 0.75rem; }
  .topbar .topbar-note { display: none; }
}

/* Hero: light, photo on the right, a leaf-green rule under the heading. */
.hero {
  position: relative;
  background: var(--paper);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10vw; top: -20%;
  width: 55vw; height: 140%;
  background: var(--sage);
  transform: skewX(-8deg);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { max-width: 14ch; }
.hero h1::after {
  content: "";
  display: block;
  width: 4rem; height: 4px;
  background: var(--leaf);
  margin-top: 0.4em;
  border-radius: 2px;
}
.hero .lede { margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-proof {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-proof li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-proof svg { width: 1.1em; height: 1.1em; color: var(--leaf); flex: none; }
.hero-media { margin: 0; min-width: 0; }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--mist);
}
.hero-photo img { width: 100%; height: auto; }
.hero-caption { margin: 0.75rem 0 0; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero::after { display: none; }
  .hero h1 { max-width: 16ch; }
  .hero-media { width: 100%; max-width: 36rem; }
}
@media (max-width: 600px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-proof { flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
}

/* Services: a ruled list, two columns. The items are all garden work of the
   same kind, so rules line them up better than cards would. */
.services {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  border-top: 1px solid var(--mist);
}
.service {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--mist);
  align-items: start;
}
.service-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--sage);
  color: var(--leaf-deep);
  display: grid; place-items: center;
}
.service-icon svg { width: 1.5rem; height: 1.5rem; }
.service h3 { margin: 0.2rem 0 0.35rem; }
.service p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.services-note { margin-top: 1.5rem; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Why GreenAid */
.why {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.why-list li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.why-list svg { width: 2.75rem; height: 2.75rem; padding: 0.6rem; border-radius: 50%; background: var(--leaf-deep); color: var(--fern); }
.why-list strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 0.15rem; font-family: var(--font-head); }
.why-list p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }

/* Before and after: portrait collages from the owner's own gallery. */
.pairs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.pairs figure { margin: 0; }
.pairs .photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--mist);
}
.pairs .photo picture { display: block; width: 100%; height: 100%; }
.pairs .photo img { width: 100%; height: 100%; object-fit: cover; }
.pairs figcaption { margin-top: 0.7rem; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 900px) { .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Recent work: landscape and square photos on a 4:3 grid. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.gallery figure { margin: 0; }
.gallery .photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--slate-deep);
}
.gallery .photo picture { display: block; width: 100%; height: 100%; }
.gallery .photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { margin-top: 0.7rem; font-size: 0.92rem; color: var(--mist); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

/* Process: numbered, because it is a sequence. */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; border-top: 3px solid var(--leaf); padding-top: 1rem; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--leaf);
  margin-bottom: 0.5rem;
}
.steps p { margin: 0; font-size: 0.98rem; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Area */
.area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.towns {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.towns li {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.towns li.is-base { background: var(--leaf-deep); border-color: var(--leaf-deep); color: var(--white); }
@media (max-width: 760px) { .area { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: var(--measure); border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem; top: 50%;
  width: 0.7rem; height: 0.7rem;
  border-right: 2px solid var(--leaf);
  border-bottom: 2px solid var(--leaf);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding-bottom: 1.15rem; color: var(--muted); }
@media (min-width: 861px) {
  #services .wrap, #faq .wrap { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 0 4rem; align-items: start; }
  #services .section-head, #faq .section-head { position: sticky; top: 7rem; }
  .services-note { grid-column: 2; }
}

/* Quote form */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list svg { width: 1.35rem; height: 1.35rem; color: var(--fern); flex: none; margin-top: 0.2rem; }
.contact-list a { color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { display: block; font-size: 0.9rem; color: var(--mist); }

.form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}
.form p { color: var(--muted); }
.form-intro { font-size: 0.95rem; }
.form-status { min-height: 1.6em; font-weight: 600; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; min-width: 0; }
.field label { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid #7d8a80;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
  border-color: var(--leaf);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field-hint { font-size: 0.85rem; color: var(--muted); }
.field [aria-invalid="true"] { border-color: #a52828; }
.form .field-error { color: #a52828; font-size: 0.85rem; margin: 0; }
.form .field-error:empty { display: none; }
.form .btn { width: 100%; margin-top: 0.5rem; }
.btn:disabled { cursor: wait; opacity: 0.75; }
.form-fine { font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 0; }
.honey { position: absolute; left: -9999px; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--slate-deep); color: var(--mist); padding-block: 3rem 2rem; font-size: 0.92rem; }
.footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
}
.footer .brand { color: var(--white); margin-bottom: 1rem; }
.footer .brand small { color: var(--fern); }
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.75rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer a { color: var(--mist); text-decoration: none; overflow-wrap: anywhere; }
.footer li a { display: inline-block; padding-block: 0.25rem; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer p { color: var(--mist); max-width: 40ch; }
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: rgba(223,230,219,0.8);
}
.footer-legal a { color: inherit; text-decoration: underline; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer .wrap { grid-template-columns: 1fr; } }

/* Mobile call bar: a phone visitor wants the number. */
.callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--slate-deep);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
}
.callbar .btn { flex: 1; }
.callbar .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.45); }
@media (max-width: 860px) {
  .callbar { display: flex; }
  .has-callbar { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: 6rem; }
}

/* Inner pages */
.page { padding-block: clamp(2.5rem, 6vw, 5rem); }
.page .wrap { max-width: var(--measure); }
.page h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.page h2 { font-size: 1.35rem; margin-top: 2rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.3rem; }
.page .meta { color: var(--muted); font-size: 0.95rem; }

.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; padding: 0.75rem 1rem; background: var(--white); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .hero::after { display: none; }
}
