/* Sun Bay Lawns — public site.
   Mobile-first: most visitors are on a phone looking for someone to call. */

:root {
  /* Sampled from Matt's logo so the site and the mark are the same brand
     rather than two that happen to share a name. The old palette was teal;
     the logo is navy, gold and an olive-leaning green. */
  --bay: #23394f;
  --bay-deep: #16273a;
  --grass: #35702f;
  --grass-dark: #295623;
  --sun: #e0a53f;
  --sand: #f7f4ec;
  --paper: #ffffff;
  --ink: #17211f;
  --muted: #5a6663;
  --line: #e2ddd2;
  --wrap: 1120px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 59, 58, 0.06), 0 8px 24px rgba(15, 59, 58, 0.08);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--grass-dark); }
a:hover { color: var(--bay); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 620px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--sun); color: var(--ink); padding: 0.75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* -------------------------------------------------------------- header - */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
/* Mobile: brand and the call button share the top row, nav scrolls beneath.
   Desktop: all three on one line. */
.header-inner { padding: 0.6rem 0; }
.header-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.12rem; color: var(--bay); text-decoration: none;
  min-width: 0;
}
/* The real logo replaces the CSS-drawn placeholder mark. Width and height are
   set on the element so it reserves its space before the image loads and does
   not shove the header around (layout shift is a ranking signal, and it looks
   cheap). */
.brand-logo { width: 42px; height: 42px; flex: none; display: block; }
/* Narrow phones scroll the nav rather than have it wrap. The scroll container
   is the <nav> wrapper — which is also the flex child the desktop layout
   orders, so both live on `.main-nav`, not on the inner <ul>. */
.main-nav { overflow-x: auto; scrollbar-width: none; margin-top: 0.45rem; }
.main-nav::-webkit-scrollbar { display: none; }
.nav {
  display: flex; gap: 0.9rem; list-style: none; margin: 0; padding: 0 0 2px;
  font-size: 0.92rem;
}
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bay); font-weight: 600; }
.call-btn {
  background: var(--grass); color: #fff; text-decoration: none;
  padding: 0.5rem 0.9rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  white-space: nowrap; flex: none;
}
.call-btn:hover { background: var(--grass-dark); color: #fff; }

@media (min-width: 820px) {
  /* `display: contents` promotes the brand and call button to be direct flex
     children of the header, so all three sit on one line with no extra markup. */
  .header-inner { display: flex; align-items: center; gap: 1.75rem; }
  .header-top { display: contents; }
  .brand { order: 1; font-size: 1.18rem; }
  .main-nav { order: 2; margin: 0 auto 0 0; overflow: visible; }
  .nav { font-size: 0.97rem; gap: 1.15rem; }
  .call-btn { order: 3; }
}

/* ---------------------------------------------------------------- hero - */

.hero {
  /* The overlay is heavy on purpose: the headline has to stay legible over a
     photo that is mostly mid-tone grass and bright sky. */
  background:
    linear-gradient(105deg, rgba(22, 39, 58, 0.94) 0 38%, rgba(22, 39, 58, 0.66) 100%),
    url('/static/img/hero.webp') center / cover no-repeat,
    var(--bay);
  color: #fff;
}
.hero-inner { padding: clamp(3rem, 9vw, 6rem) 0; max-width: 720px; }
.hero h1 { color: #fff; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.78rem;
  font-weight: 700; color: var(--sun); margin-bottom: 0.9rem;
}
.lede { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: inherit; opacity: 0.94; }
.hero .lede { max-width: 46ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

.btn {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 999px;
  font-weight: 650; text-decoration: none; border: 2px solid transparent;
  font-size: 1rem; cursor: pointer;
}
.btn-primary { background: var(--sun); color: #23180a; }
.btn-primary:hover { background: #dd9720; color: #23180a; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: inherit; }
.band-alt .btn-ghost, .band .btn-ghost { color: var(--bay); }
.band-alt .btn-ghost:hover, .band .btn-ghost:hover { background: rgba(15, 59, 58, 0.07); }

/* --------------------------------------------------------------- bands - */

.band { padding: clamp(2.5rem, 6vw, 4.25rem) 0; }
.band-alt { background: var(--sand); }
.band-dark { background: var(--bay); color: #fff; }
.band-dark h2 { color: #fff; }
.page-head { padding-bottom: 1.5rem; }
.section-head { margin-bottom: 0.35rem; }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 1.75rem; }
.band-dark .section-intro { color: rgba(255, 255, 255, 0.85); }
.closer { text-align: center; }
.closer .cta-row { justify-content: center; }

.trust-grid, .service-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.trust h2 { font-size: 1.08rem; margin-bottom: 0.25rem; }
.trust p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.service {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.3rem;
}
.service h2, .service h3 { font-size: 1.1rem; margin-bottom: 0.35rem; color: var(--bay); }
.service p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ------------------------------------------------------------- gallery - */

.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  /* Without this, a captioned card stretches every uncaptioned card in its
     row, leaving them with a blank white strip under the photo. */
  align-items: start;
}
.shot {
  margin: 0; background: var(--paper); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot figcaption {
  padding: 0.7rem 0.9rem; font-size: 0.92rem; color: var(--muted);
}
.more-row { margin-top: 1.75rem; }
.empty { color: var(--muted); font-style: italic; }

/* ---------------------------------------------------------------- misc - */

.owner blockquote {
  margin: 0; font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.55;
  border-left: 4px solid var(--sun); padding-left: 1.15rem; max-width: 62ch;
}
.attribution { color: var(--muted); margin-top: 0.75rem; font-weight: 600; }

.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: 0.7rem 0.8rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); color: var(--ink); width: 100%;
}
.form textarea { resize: vertical; }
.form .req { color: #b4463a; margin-left: 0.15rem; }
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 0.9rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; }
.notice-good { background: #e4f3e9; border: 1px solid #b9dfc7; color: #1d5c37; }
.notice-bad { background: #fdeceb; border: 1px solid #f2c4bf; color: #8f2f25; }

/* -------------------------------------------------------------- footer - */

.site-footer {
  background: var(--bay-deep); color: rgba(255, 255, 255, 0.86);
  padding: 2.5rem 0; margin-top: 0; text-align: center; font-size: 0.95rem;
}
.site-footer a { color: #fff; }
.footer-brand { font-weight: 700; font-size: 1.1rem; color: #fff; }
.site-footer .fine { color: rgba(255, 255, 255, 0.62); font-size: 0.86rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------- service groups & FAQ - */

.service-group { margin-block: 2.2rem; }
.service-group > h2 {
  font-size: 1.35rem; color: var(--bay); margin-bottom: 0.35rem;
}

.center { text-align: center; }

/* Town chips. This is the service area in scannable form — a customer looks
   for their own town, and it puts the place names in real on-page text. */
.town-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin-block: 1.1rem; padding: 0;
}
.town-list span {
  background: var(--sand); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.85rem; font-size: 0.94rem; color: var(--bay);
}

.area-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.area-grid li {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.95rem 1.1rem; box-shadow: var(--shadow);
}
.area-grid strong { display: block; color: var(--bay); font-size: 1.06rem; }
.area-grid span { color: var(--muted); font-size: 0.92rem; }

.faq { display: grid; gap: 0.6rem; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.85rem 1.05rem;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--bay); list-style-position: inside;
}
.faq-item summary::marker { color: var(--grass); }
.faq-item p { margin: 0.6rem 0 0; color: var(--muted); }

.footer-towns {
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); line-height: 1.7;
  max-width: 70ch; margin-inline: auto;
}
