/* Clover pet care page by DapsStudioCo
   Colors for each theme are at the top. Change a hex value to recolor everything that uses it. */

:root,
[data-theme="clover"] {
  --page: #fbf7f0;
  --alt: #f2ece1;
  --ink: #233127;
  --muted: #5e6b61;
  --line: #e4dccd;
  --card: #ffffff;
  --accent: #2f6b4f;        /* buttons, selected options */
  --accent-ink: #ffffff;
  --pop: #f4b393;           /* highlights and badges */
  --pop-ink: #3b2416;
  color-scheme: light;
}
[data-theme="biscuit"] {
  --page: #fff8f1;
  --alt: #f7ebdf;
  --ink: #3a2618;
  --muted: #7a6152;
  --line: #ecdccc;
  --card: #ffffff;
  --accent: #c8642d;
  --accent-ink: #ffffff;
  --pop: #9fd8cf;
  --pop-ink: #123a36;
  color-scheme: light;
}
[data-theme="midnight"] {
  --page: #141a2b;
  --alt: #1a2136;
  --ink: #f3efe6;
  --muted: #a7adbd;
  --line: #2a3350;
  --card: #1f2741;
  --accent: #ffd166;
  --accent-ink: #141a2b;
  --pop: #7bd3c0;
  --pop-ink: #0d2b26;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body.has-sticky { padding-bottom: 92px; }
h1, h2, h3 { font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; font-weight: 600; margin: 0; line-height: 1.1; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 10px; z-index: 60; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }
.wrap.narrow { max-width: 780px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; background: none; color: inherit; font: 700 1rem/1.2 "DM Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { border-color: currentColor; }
.btn.ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn.wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(48px + env(safe-area-inset-top)); background: var(--page); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-bottom: 70px; }
.badge { display: inline-block; background: var(--pop); color: var(--pop-ink); font-weight: 700; font-size: .95rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.01em; }
.tagline { margin-top: 16px; font-size: 1.2rem; color: var(--muted); max-width: 30ch; }
.hero .actions { margin-top: 28px; }
.area { margin-top: 18px; color: var(--muted); font-weight: 500; }
/* The signature: a soft "pebble" photo frame */
.hero-photo { margin: 0; aspect-ratio: 1 / 1.05; border-radius: 47% 53% 44% 56% / 55% 44% 56% 45%; overflow: hidden; background: var(--alt); box-shadow: 18px 18px 0 var(--pop); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.hero-photo.missing img { visibility: hidden; }
.wave { display: block; width: 100%; height: 40px; fill: var(--alt); position: absolute; bottom: -1px; left: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 92px) 0; }
.section.alt { background: var(--alt); }
.section h2 { font-size: clamp(2.1rem, 4.4vw, 3rem); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.12rem; margin-bottom: 30px; max-width: 52ch; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.calc-steps { display: grid; gap: 22px; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.25rem; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input, .svc input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 108px; min-height: 56px; padding: 8px 18px; border: 2px solid var(--line); border-radius: 18px; background: var(--card); cursor: pointer; transition: border-color .15s ease, background .15s ease; text-align: center; }
.chip b { font-weight: 700; }
.chip small { color: var(--muted); font-size: .82rem; }
.chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.chip input:focus-visible + span, .svc input:focus-visible + .svc-body, .addon input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.services { display: grid; gap: 10px; }
.svc { position: relative; display: block; cursor: pointer; }
.svc-body { display: grid; gap: 4px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 20px; background: var(--card); transition: border-color .15s ease, background .15s ease; }
.svc input:checked + .svc-body { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.svc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc-top b { font-size: 1.08rem; }
.svc-top em { font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--pop); color: var(--pop-ink); padding: 3px 9px; border-radius: 999px; }
.svc-body small { color: var(--muted); font-size: .95rem; }
.svc-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.svc-meta strong { font-family: "Fredoka", system-ui, sans-serif; font-size: 1.4rem; font-weight: 600; }
.svc-meta span { color: var(--muted); font-size: .9rem; }
.addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.addon { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; }
.addon input { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.addon span { flex: 1; font-weight: 500; }
.addon b { color: var(--muted); font-weight: 700; }
.addon:has(input:checked) { border-color: var(--accent); }
.total { position: sticky; top: 20px; background: var(--card); border-radius: 26px; padding: 26px 24px; border: 2px solid var(--line); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .35); }
.total-label { color: var(--muted); font-weight: 700; }
.total-num { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 3.4rem; line-height: 1.05; margin: 2px 0 12px; }
.total-lines { list-style: none; margin: 0 0 18px; padding: 0; }
.total-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .98rem; }
.total-note { color: var(--muted); font-size: .85rem; margin-top: 12px; }

/* Before & after */
.ba-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 440px)); justify-content: center; gap: 22px; margin-top: 18px; }
.ba-item { margin: 0; }
.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--alt); user-select: none; touch-action: pan-y; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { width: 100%; height: 100%; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .3); pointer-events: none; }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: #233127; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-tag { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(20, 20, 20, .62); color: #fff; font-size: .85rem; font-weight: 700; pointer-events: none; }
.ba-tag.left { left: 14px; } .ba-tag.right { right: 14px; }
.ba-item figcaption { margin-top: 10px; color: var(--muted); font-weight: 500; text-align: center; }

/* Sitting */
.sit-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.sit { display: flex; flex-direction: column; gap: 8px; background: var(--card); border-radius: 24px; padding: 24px; border: 2px solid var(--line); }
.sit h3 { font-size: 1.45rem; }
.sit-price b { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 2rem; }
.sit-price span { color: var(--muted); font-weight: 500; }
.sit-desc { color: var(--muted); flex: 1; margin-bottom: 8px; }

/* Steps */
.steps-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: s; }
.steps-list li { padding: 24px; border-radius: 24px; border: 2px dashed var(--line); }
.num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pop); color: var(--pop-ink); font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }
.steps-list h3 { font-size: 1.35rem; margin-bottom: 6px; }
.steps-list p { color: var(--muted); }

/* Reviews */
.review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.review { margin: 0; background: var(--card); border-radius: 24px; padding: 24px; border: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.stars { color: #e8a33d; letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: 0; flex: 1; font-size: 1.05rem; }
.review figcaption { font-weight: 700; }

/* Visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.address { font-size: 1.15rem; margin: 10px 0 20px; }
.hours { margin: 0; background: var(--alt); border-radius: 24px; padding: 10px 24px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 700; } .hours dd { margin: 0; color: var(--muted); }

/* FAQ */
.faq-list { margin-top: 18px; }
.faq-list details { background: var(--card); border-radius: 18px; border: 2px solid var(--line); margin-bottom: 10px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; position: relative; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 9px; font-family: "Fredoka", system-ui, sans-serif; font-size: 1.8rem; color: var(--accent); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 20px 18px; color: var(--muted); }

/* Footer */
.footer { background: var(--accent); color: var(--accent-ink); padding: 70px 0 calc(60px + env(safe-area-inset-bottom)); text-align: center; }
.footer h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; }
.footer p { margin: 12px auto 26px; opacity: .88; max-width: 44ch; font-size: 1.1rem; }
.footer .actions { justify-content: center; }
.footer .btn.primary { background: var(--accent-ink); color: var(--accent); }
.theme-picker { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; font-size: .92rem; }
.theme-picker button { min-height: 36px; padding: 0 14px; border: 2px solid currentColor; border-radius: 999px; background: none; color: inherit; font: 700 .9rem/1 "DM Sans", sans-serif; cursor: pointer; }
.theme-picker button[aria-pressed="true"] { background: var(--accent-ink); color: var(--accent); }

/* Sticky */
.sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin: 0 auto; padding: 10px 10px 10px 20px; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 999px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); }
.sticky span { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky .btn { flex-shrink: 0; }
@media (min-width: 861px) { .sticky { display: none !important; } body.has-sticky { padding-bottom: 0; } }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-photo { order: -1; max-width: 420px; width: 88%; margin: 0 auto; }
  .calc, .visit { grid-template-columns: minmax(0, 1fr); }
  .total { position: static; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero { padding-top: calc(28px + env(safe-area-inset-top)); }
  .hero .actions .btn, .footer .actions .btn { flex: 1 1 100%; }
  .chip span { min-width: 0; flex: 1; }
  .chips .chip { flex: 1 1 calc(50% - 10px); display: flex; }
  .addons { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { box-shadow: 12px 12px 0 var(--pop); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
