:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #16202c;
  --muted: #5d6b7a;
  --line: #dfe6ee;
  --brand: #1d4e89;
  --brand-ink: #ffffff;
  --brand-soft: #e5eef9;
  --accent: #e08a1e;
  --accent-soft: #fdf1df;
  --ok: #1f6f4a;
  --ok-soft: #e3f4ea;
  --warn: #8a5a00;
  --warn-soft: #fff4dc;
  --error: #a3261b;
  --error-soft: #fde8e6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(22, 32, 44, 0.06), 0 6px 18px rgba(22, 32, 44, 0.06);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151c;
    --card: #18212b;
    --text: #eef3f8;
    --muted: #a3b1c0;
    --line: #2b3745;
    --brand: #7fb2ee;
    --brand-ink: #0b1a2c;
    --brand-soft: #1b2c42;
    --accent: #f3a94b;
    --accent-soft: #3a2a14;
    --ok: #6fd3a0;
    --ok-soft: #173326;
    --warn: #f2c56b;
    --warn-soft: #3a2e12;
    --error: #ff9b90;
    --error-soft: #3d1c19;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding-top: 20px; padding-bottom: 40px; outline: none; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 1.9rem; margin: 0.4em 0; }
h2 { font-size: 1.3rem; margin: 1.4em 0 0.5em; }
a { color: var(--brand); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px; z-index: 10; }
[hidden] { display: none !important; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
.header-links { display: flex; gap: 14px; font-size: 0.95rem; }
.header-links a { text-decoration: none; font-weight: 600; }

.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 20px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 16px; grid-template-columns: 2fr 1fr; }
.site-footer h2 { font-size: 1.05rem; margin: 0 0 4px; }
.site-footer li { margin: 4px 0; }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 14px 0; }
.hero { background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); padding: 26px 20px; margin-top: 4px; }
.hero h1 { margin-top: 0; }
.hero p { font-size: 1.08rem; }
.hero .card { color: var(--text); }
/* Hero: close-up grass with dew drops (public/img/hero.jpg); green gradient until the photo is in. */
.hero-dew {
  background-color: #1f4d1a;
  background-image: linear-gradient(180deg, rgba(5, 20, 5, 0.55) 0%, rgba(5, 20, 5, 0.15) 45%, rgba(5, 20, 5, 0.6) 100%), url('/img/hero.jpg'), linear-gradient(160deg, #3f7f2c, #12340f);
  background-size: cover;
  background-position: center 55%;
  color: #ffffff;
  padding: 56px 24px 32px;
  text-align: center;
}
.hero-dew .hero-title { font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 4px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }
.hero-dew .hero-tag { font-size: 1.25rem; margin: 0 0 10px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.hero-dew > p { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.hero-dew .card { text-align: left; }

.banner { border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.error { background: var(--error-soft); color: var(--error); }
.banner.info { background: var(--brand-soft); color: var(--text); }

button, .button {
  font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); text-decoration: none; display: inline-block; text-align: center;
}
button.secondary, .button.secondary { background: var(--brand-soft); color: var(--text); }
button.danger { background: var(--error-soft); color: var(--error); }
button.link { background: none; color: var(--brand); padding: 4px 0; text-decoration: underline; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.big, .button.big { width: 100%; padding: 15px; font-size: 1.05rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

form .field { margin: 12px 0; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
input[type='text'], input[type='email'], input[type='tel'], input[type='number'], select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text);
}
textarea { min-height: 80px; resize: vertical; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 180px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0; }
legend { font-weight: 700; padding: 0 6px; }

.steps { counter-reset: step; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding: 0; list-style: none; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 6px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.tabs button { background: var(--brand-soft); color: var(--text); padding: 8px 14px; }
.tabs button[aria-pressed='true'] { background: var(--brand); color: var(--brand-ink); }

.services { display: grid; gap: 10px; }
.service { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.service .price { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.choice { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 8px 0; cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { margin-right: 8px; }
.choice.disabled { opacity: 0.55; cursor: not-allowed; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.times button { background: var(--card); color: var(--text); border: 1px solid var(--line); padding: 10px 6px; }
.times button[aria-pressed='true'] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.summary { width: 100%; border-collapse: collapse; }
.summary td { padding: 6px 0; }
.summary td:last-child { text-align: right; }
.summary tr.total td { font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; }

.walk { border-left: 4px solid var(--brand); }
.walk.cancelled { border-left-color: var(--line); opacity: 0.8; }
.walk.completed { border-left-color: var(--ok); }
.message { background: var(--ok-soft); border-radius: 10px; padding: 10px 12px; margin-top: 8px; white-space: pre-wrap; }
.waiver-text { white-space: pre-wrap; background: var(--bg); border-radius: 10px; padding: 12px; max-height: 320px; overflow: auto; }
.pill { display: inline-block; font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--brand-soft); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.muted { background: var(--line); color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; z-index: 20; }
