/* Weekend Pet Visits — home visits for cats and dogs, Leighton Buzzard */
:root {
  --sage: #6B8F71;
  --sage-dark: #547259;
  --sage-soft: #E4EDE5;
  --cream: #F7F3EB;
  --cream-deep: #EDE6D8;
  --terracotta: #C46B4A;
  --terracotta-dark: #A85538;
  --charcoal: #2C2A28;
  --muted: #5C5854;
  --white: #ffffff;
  --line: rgba(44, 42, 40, 0.12);
  --shadow: 0 18px 40px rgba(44, 42, 40, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --header-h: 4.5rem;
  --max: 74rem;
  --focus: 0 0 0 3px var(--cream), 0 0 0 5px var(--sage);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--sage-dark);
  text-underline-offset: 0.18em;
}

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

:focus { outline: none; }
:focus-visible { box-shadow: var(--focus); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 1rem; box-shadow: var(--focus); }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--charcoal);
  min-width: 0;
}
.brand:hover { color: var(--charcoal); }

.brand-mark { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }

.brand-word {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--charcoal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--charcoal);
}

.header-cta { padding: 0.72rem 1.05rem; white-space: nowrap; }

/* Hero */
.hero {
  padding: 2.75rem 0 3.25rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0 0 0.9rem;
}

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.35rem, 7vw, 4.1rem);
  margin: 0 0 1.1rem;
  font-variation-settings: "SOFT" 40, "opsz" 96;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-meta a { color: var(--charcoal); text-decoration: none; font-weight: 600; }
.hero-meta a:hover { color: var(--terracotta); }

.hero-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(107, 143, 113, 0.16);
}

.hero-art {
  background: linear-gradient(165deg, var(--sage-soft), var(--cream));
  border-radius: calc(var(--radius-lg) - 8px);
  min-height: 16rem;
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-art svg.scene { width: min(100%, 22rem); height: auto; }

.hero-caption {
  margin: 1rem 0 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero-caption strong { color: var(--charcoal); font-weight: 600; }

/* Trust */
.trust {
  padding: 0 0 3rem;
}

.trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.7rem;
  border-radius: var(--radius-sm);
}

.icon-bubble {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-bubble svg { width: 1.2rem; height: 1.2rem; }

.trust-item span {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); }
.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.6rem;
}
.section-intro {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 2rem;
}

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.3rem;
}
.section-alt .step { background: var(--cream); border-color: transparent; }

.step h3 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step p { margin: 0; color: var(--muted); }

/* Included */
.include-grid {
  display: grid;
  gap: 0.85rem;
}

.include {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.include h3 {
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
}
.include p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Pricing */
.price-grid {
  display: grid;
  gap: 1rem;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.45rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
  position: relative;
}

.badge {
  align-self: flex-start;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.price-card h3 {
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
  color: inherit;
}

.amount {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0.4rem 0 0.7rem;
}
.amount small {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0.2rem;
}
.featured .amount small { color: rgba(247, 243, 235, 0.7); }

.price-card p { margin: 0 0 1rem; color: var(--muted); flex: 1; }
.featured p { color: rgba(247, 243, 235, 0.78); }

.price-card .btn { margin-top: auto; align-self: flex-start; }
.featured .btn-primary { background: var(--terracotta); }

.fine {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Area + insurance */
.split {
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
}

.section-alt .panel { background: var(--cream); border-color: transparent; }

.panel h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }
.panel p { margin: 0 0 0.8rem; color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.not-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.not-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--muted);
}
.not-list svg { flex-shrink: 0; margin-top: 0.2rem; color: var(--terracotta); }

/* Form */
.book-layout {
  display: grid;
  gap: 1.5rem;
}

.form-card, .thanks {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.7rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-card h2 { margin-bottom: 0.4rem; }

form { display: grid; gap: 1rem; }

.form-row {
  display: grid;
  gap: 1rem;
}

.field { display: grid; gap: 0.35rem; }

label, .legend {
  font-weight: 600;
  font-size: 0.92rem;
}

.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.85rem;
}

textarea { min-height: 6.5rem; resize: vertical; }

input:hover, textarea:hover, select:hover {
  border-color: rgba(107, 143, 113, 0.35);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  background: var(--white);
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-soft);
}

.choices {
  display: grid;
  gap: 0.45rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.choice:hover { border-color: rgba(107, 143, 113, 0.35); }

.choice:has(:focus-visible) {
  box-shadow: 0 0 0 3px var(--sage-soft);
  border-color: var(--sage);
}

.choice input { margin-top: 0.2rem; accent-color: var(--sage); width: 1.05rem; height: 1.05rem; flex-shrink: 0; }

.inline-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.inline-choices .choice { flex: 1 1 5.5rem; justify-content: center; align-items: center; }
.inline-choices .choice input { margin: 0; }

.consent { align-items: flex-start; }

.form-error {
  color: #8B3A2A;
  font-size: 0.88rem;
  min-height: 1.1em;
}
.field .hint + .form-error { min-height: 0; }

.form-banner {
  display: none;
  background: #F8E4DC;
  color: #8B3A2A;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
}
.form-banner.is-on { display: block; }

.form-actions { margin-top: 0.25rem; }
.form-actions .btn { width: 100%; padding: 1rem; font-size: 1rem; }

.thanks { display: none; text-align: left; }
.thanks.is-on { display: block; }
.thanks h2 { margin-top: 0.3rem; }
.thanks p { color: var(--muted); }

.book-aside h2 { margin-top: 0; }
.book-aside .panel { background: var(--sage-soft); border: 0; }

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.site-footer .brand-word { color: var(--charcoal); display: inline-block; margin-bottom: 0.15rem; }
.site-domain {
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.site-footer a { color: var(--charcoal); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--terracotta); }

.footer-note { margin: 1.25rem 0 0; font-size: 0.85rem; }

@media (min-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 3rem)); }
  .trust-row { grid-template-columns: repeat(4, 1fr); gap: 0.25rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .include-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { grid-column: auto; }
  .split { grid-template-columns: 1fr 1fr; }
  .form-card, .thanks { padding: 2rem 2.15rem 2.15rem; }
  .form-row { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 3rem; }
  .section { padding: 4.5rem 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .include-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { grid-column: auto; }
  .book-layout { grid-template-columns: minmax(16rem, 0.52fr) minmax(28rem, 1.48fr); align-items: start; gap: 2.75rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .form-actions .btn { width: auto; min-width: 16rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}
legend { padding: 0; }
.trust-row {
  list-style: none;
  margin: 0;
}
.brand-wordmark {
  width: 5.2rem;
  height: auto;
  overflow: visible;
  display: block;
  flex-shrink: 0;
}
.brand-wordmark text {
  font-family: var(--font-serif);
  font-weight: 560;
  fill: currentColor;
}
.thanks .icon-bubble { margin-bottom: 0.8rem; }
.thanks a { font-weight: 600; }
