/* Gecko Home & Garden Services - gardens, lawns and outdoor jobs around
   Mapua, Ruby Bay and Tasman. Deep Tasman Bay teal for the dark bands, warm
   sand for the light ones, olive for foliage, and one poppy orange that only
   appears on the primary call to action. */

:root {
  --bay: #163d47;
  --bay-deep: #0e2a31;
  --sea: #1e7387;
  --shallows: #8fd3d6;
  --olive: #6b8a3a;
  --olive-deep: #4f6a2a;
  --poppy: #e9752c;
  --poppy-deep: #c95d18;
  --sand: #f8f2e6;
  --shell: #e9dfcd;
  --ink: #1f2527;
  --slate: #4f5b60;
  --white: #ffffff;

  --font: "Avenir Next", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 72rem;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px -24px rgba(14, 42, 49, 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(--white);
}

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

a { color: var(--sea); text-underline-offset: 0.18em; }
a:hover { color: var(--bay); }

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

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--bay);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

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

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--poppy-deep);
}
.section--bay .eyebrow, .hero .eyebrow { color: var(--shallows); }

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

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
[id] { scroll-margin-top: 5.5rem; }
.section--sand { background: var(--sand); }
.section--bay { background: var(--bay); color: var(--sand); }
.section--bay h2, .section--bay h3 { color: var(--white); }
.section--bay p { color: var(--shell); }

.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: 999px;
  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(--poppy); color: var(--white); border-color: var(--poppy); }
.btn--primary:hover { background: var(--poppy-deep); border-color: var(--poppy-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--bay); border-color: #b7c3c6; }
.btn--ghost:hover { border-color: var(--bay); color: var(--bay); }
.btn--ghost.on-dark, .section--bay .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn--ghost.on-dark:hover, .section--bay .btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.topbar {
  background: var(--bay-deep);
  color: var(--shell);
  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(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--shell);
}
.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.75rem;
  text-decoration: none;
  color: var(--bay);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand img { width: 2.25rem; height: 2.25rem; }
.brand .brand-logo { width: auto; height: 2.4rem; border-radius: 6px; }
.brand small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--sea); margin-top: 0.3rem; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--bay); }
.nav .btn { padding: 0.7rem 1.15rem; font-size: 0.95rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--shell);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: var(--bay);
  cursor: pointer;
  min-height: 44px;
}

@media (max-width: 900px) {
  .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(--white);
    border-bottom: 1px solid var(--shell);
    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(--sand); }
  .nav .btn { margin-top: 0.75rem; }
  .topbar .topbar-note { display: none; }
}

/* Hero: deep bay with a low sun and ripple lines behind the photo. */
.hero {
  position: relative;
  background: var(--bay);
  color: var(--sand);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(233,117,44,0.28), transparent 60%),
    repeating-radial-gradient(circle at 110% 120%, transparent 0 2.6rem, rgba(143,211,214,0.09) 2.6rem 2.75rem);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { color: var(--white); max-width: 14ch; letter-spacing: -0.04em; }
.hero .lede { color: var(--shell); margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-actions .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.45); }
.hero-actions .btn--ghost:hover { border-color: var(--white); }
.hero-proof {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  color: var(--shell);
  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(--shallows); flex: none; }
.hero-media { margin: 0; min-width: 0; }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bay-deep);
  border: 4px solid rgba(255,255,255,0.12);
  aspect-ratio: 1 / 1;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { margin: 0.75rem 0 0; font-size: 0.9rem; color: var(--shell); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero-media { width: 100%; max-width: 30rem; }
}
@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: sixteen items in three groups, so a card per group with a
   plain list inside rather than sixteen small cards. */
.groups {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.group {
  background: var(--white);
  border: 1px solid var(--shell);
  border-top: 5px solid var(--olive);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.group:nth-child(2) { border-top-color: var(--sea); }
.group:nth-child(3) { border-top-color: var(--poppy); }
.group-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--sand);
  color: var(--bay);
  display: grid; place-items: center;
}
.group-icon svg { width: 1.6rem; height: 1.6rem; }
.group h3 { margin: 0.25rem 0 0; font-size: 1.3rem; }
.group > p { margin: 0; color: var(--slate); font-size: 0.98rem; }
.group ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.group li { padding-left: 1.4rem; position: relative; font-size: 0.98rem; }
.group li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--olive);
}
.group:nth-child(2) li::before { background: var(--sea); }
.group:nth-child(3) li::before { background: var(--poppy); }
.group li strong { color: var(--bay); }
.group li span { display: block; color: var(--slate); font-size: 0.92rem; }
.services-note { margin-top: 1.5rem; font-size: 0.95rem; color: var(--slate); }
@media (max-width: 900px) { .groups { grid-template-columns: 1fr; max-width: 36rem; } }

/* Fees: rows of label and price, grouped by job. A list, not a table, so
   the rows wrap cleanly on a phone. */
.fees {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
}
.fee-block {
  background: var(--white);
  border: 1px solid var(--shell);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.fee-block h3 { margin-bottom: 0.25rem; }
.fee-block > p { margin: 0 0 0.75rem; color: var(--slate); font-size: 0.92rem; }
.fee-list { list-style: none; margin: 0; padding: 0; }
.fee-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--sand);
  font-size: 0.98rem;
}
.fee-list li:first-child { border-top: 0; }
.fee-list b { font-weight: 700; color: var(--bay); white-space: nowrap; }
.fees-note { margin-top: 1.5rem; font-size: 0.95rem; color: var(--slate); max-width: none; }
@media (max-width: 720px) { .fees { grid-template-columns: 1fr; } }

/* Why Roy */
.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(--sea); color: var(--white); }
.why-list strong { display: block; color: var(--bay); font-size: 1.1rem; margin-bottom: 0.15rem; }
.why-list p { margin: 0; color: var(--shell); }
.section--bay .why-list strong { color: var(--white); }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }

/* 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; padding-top: 0.5rem; }
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--poppy);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1rem;
}
.steps p { margin: 0; font-size: 0.98rem; color: var(--slate); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Gallery: six photos of mixed shapes, so a fixed-ratio grid with
   object-fit keeps the rows tidy. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.gallery figure { margin: 0; }
.gallery .photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--shell);
  background: var(--shell);
}
.gallery .photo picture { display: block; width: 100%; height: 100%; }
.gallery .photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { margin-top: 0.75rem; font-size: 0.92rem; color: var(--slate); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

/* About Roy */
.about {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--shell);
  box-shadow: var(--shadow);
}
.about blockquote {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--poppy);
  font-size: 1.15rem;
  color: var(--ink);
}
.about blockquote p { margin: 0; }
.about cite { display: block; margin-top: 0.5rem; font-style: normal; font-weight: 700; color: var(--bay); font-size: 0.95rem; }
.about .meta { color: var(--slate); font-size: 0.95rem; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 14rem; } }

/* 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: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}
.towns li {
  background: var(--white);
  border: 1px solid var(--shell);
  border-left: 4px solid var(--sea);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--bay);
}
@media (max-width: 760px) { .area { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: var(--measure); border-top: 1px solid var(--shell); }
.faq details { border-bottom: 1px solid var(--shell); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700;
  color: var(--bay);
  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(--poppy);
  border-bottom: 2px solid var(--poppy);
  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(--slate); }
@media (min-width: 901px) {
  #faq .wrap { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 0 4rem; align-items: start; }
  #faq .section-head { position: sticky; top: 7rem; }
}

/* 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(--shallows); 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(--shell); }

.form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}
.form p { color: var(--slate); }
.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(--bay); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid #78878c;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
  border-color: var(--sea);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field-hint { font-size: 0.85rem; color: var(--slate); }
.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(--slate); 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(--bay-deep); color: var(--shell); 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(--shallows); }
.footer h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer a { color: var(--shell); 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(--shell); 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(233,223,205,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(--bay-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: 900px) {
  .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(--slate); font-size: 0.95rem; }

.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; padding: 0.75rem 1rem; background: var(--white); color: var(--bay); 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::before { display: none; }
}
