/* Tailwash Mobile Dog Grooming: a sample site for a made-up business. */
@font-face { font-family: "Rubik"; src: url("/assets/fonts/rubik-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --sky: #dff1fb;
  --sky-2: #bfe6fa;
  --navy: #16325c;
  --navy-2: #3d5578;
  --gum: #c2335f;
  --gum-dark: #a3264d;
  --sun: #ffd45c;
  --round: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--navy); font: 400 1.05rem/1.6 var(--round); }
.wrap { width: min(68rem, 100% - 2.5rem); margin-inline: auto; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }
a { color: var(--gum-dark); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: 0.5rem 1rem; z-index: 200; }
.skip:focus { top: 3.5rem; }

.head { background: var(--sky); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.5rem; color: var(--navy); text-decoration: none; min-height: 44px; }
.bub { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--gum); }
.bub::after { content: ""; position: absolute; right: -6px; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); }
.head nav { display: flex; align-items: center; gap: 0.5rem; }
.head nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem; color: var(--navy); font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.65rem 1.4rem; border-radius: 999px; border: 0; background: var(--gum); color: #fff; font: 700 1rem/1.2 var(--round); text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--gum-dark); }
.btn:hover { background: var(--gum-dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--gum-dark); }
.btn-small { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn-wide { width: 100%; }

.hero { background: var(--sky); padding: 2.5rem 0 4rem; border-radius: 0 0 48px 48px; }
.hero-in { display: grid; gap: 1.5rem; align-items: center; }
.tag { display: inline-block; padding: 0.3rem 0.9rem; border-radius: 999px; background: var(--sun); font-weight: 700; font-size: 0.9rem; }
.lede { font-size: 1.2rem; color: var(--navy-2); max-width: 32rem; margin-bottom: 1.6rem; }
.van { width: min(100%, 28rem); margin-inline: auto; }

section { padding: 3.5rem 0; }
.sub { color: var(--navy-2); }
.table-wrap { overflow-x: auto; margin-top: 1.5rem; border-radius: 20px; border: 3px solid var(--sky-2); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.85rem clamp(0.45rem, 2.4vw, 1rem); text-align: left; border-bottom: 1px solid var(--sky-2); }
thead th { background: var(--sky); font-weight: 700; }
th span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--navy-2); }
td { font-weight: 700; font-size: 1.1rem; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.book { background: linear-gradient(180deg, #fff, #fff4f7); }
.book-in { display: grid; gap: 2rem; margin-top: 1.5rem; }
.book-form[hidden], .book-in[hidden], .sent[hidden] { display: none; }
fieldset { border: 0; margin: 0 0 1.2rem; padding: 0; }
legend { font-weight: 700; margin-bottom: 0.4rem; padding: 0; }
.cards { display: grid; gap: 0.5rem; }
.cards label, .days label { position: relative; cursor: pointer; }
.cards input, .days input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cards span { display: block; min-height: 48px; padding: 0.7rem 0.9rem; border-radius: 16px; border: 3px solid var(--sky-2); background: #fff; color: var(--navy-2); font-size: 0.95rem; }
.cards span b { display: block; color: var(--navy); font-size: 1.05rem; }
.cards input:checked + span { border-color: var(--gum); background: #fff0f4; }
.cards input:focus-visible + span, .days input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.days { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.days span { display: grid; place-items: center; min-width: 3.4rem; min-height: 48px; padding: 0 0.7rem; border-radius: 14px; border: 3px solid var(--sky-2); background: #fff; font-weight: 700; }
.days input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.f { margin-bottom: 1.1rem; }
.f label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.opt { font-weight: 400; color: var(--navy-2); }
.f input, textarea { width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; border: 3px solid var(--sky-2); border-radius: 14px; background: #fff; color: var(--navy); font: inherit; }
.f input:focus-visible, textarea:focus-visible { border-color: var(--navy); outline: none; }
.err { color: #b0153f; font-weight: 700; margin: 0.35rem 0 0; }
.err:empty { display: none; }
[aria-invalid="true"] { border-color: #b0153f !important; }
.estimate { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border-radius: 14px; background: var(--sun); font-weight: 600; }

.preview { align-self: start; padding: 1.4rem; border-radius: 24px; background: var(--navy); color: #fff; }
.pv-note { font-size: 0.93rem; color: #c8d6ea; }
.mail { background: #fff; color: var(--navy); border-radius: 16px; padding: 1rem 1.1rem; }
.mail-head { margin: 0; padding: 0.35rem 0; border-bottom: 1px solid var(--sky-2); font-size: 0.93rem; }
.mail-head span { display: inline-block; min-width: 4.5rem; color: var(--navy-2); }
.mail-body { padding-top: 0.8rem; font-size: 0.97rem; }
.mail-body p { margin: 0 0 0.7rem; }
.sent { padding: 1.6rem; border-radius: 24px; background: var(--sky); margin-top: 1.5rem; }

.faq-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
.faq-grid div { padding: 1.3rem; border-radius: 20px; background: var(--sky); }
.faq-grid p { margin: 0; color: var(--navy-2); }
.contact a { display: inline-block; min-height: 24px; }
.foot { padding: 2rem 0; background: var(--navy); color: #d5e1f0; font-size: 0.95rem; }
.foot a { color: var(--sun); }
.foot :focus-visible { outline-color: var(--sun); }

@media (min-width: 44em) {
  .hero-in { grid-template-columns: 1.2fr 1fr; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 60em) {
  .book-in { grid-template-columns: 1.3fr 1fr; }
  .preview { position: sticky; top: 4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
