:root {
  --cream: #f8f1e7;
  --cream-deep: #efe2d2;
  --terracotta: #b96850;
  --terracotta-dark: #914833;
  --sage: #87998b;
  --sage-pale: #dfe6dd;
  --charcoal: #343431;
  --white: #fffdf9;
  --border: #dfd4c7;
  --shadow: 0 12px 30px rgba(76, 59, 47, .09);
  --radius: 22px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--charcoal); background: var(--cream); font-family: "Nunito Sans", sans-serif; line-height: 1.55; }
a { color: var(--terracotta-dark); text-underline-offset: 3px; }
h1, h2 { margin: 0 0 .45rem; line-height: 1.05; }
h1 { font: 700 clamp(2.5rem, 9vw, 4.6rem)/.95 "Caveat", cursive; color: var(--terracotta-dark); }
h2 { font-size: 1.3rem; }
h3 { margin: .4rem 0 .2rem; }
p { margin: .4rem 0 1rem; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: .75rem max(1rem, calc((100vw - 1160px)/2)); background: rgba(248,241,231,.95); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); }
.brand { display: block; color: var(--charcoal); text-decoration: none; }
.brand-logo { display: block; width: 112px; height: auto; mix-blend-mode: multiply; }
.nav-toggle { border: 1px solid var(--terracotta); background: transparent; border-radius: 999px; padding: .45rem .8rem; color: var(--charcoal); }
nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); padding: 1rem; box-shadow: var(--shadow); }
nav.open { display: grid; }
nav a, .link-button { padding: .65rem; text-decoration: none; color: var(--charcoal); font: inherit; }
nav form { margin: 0; }
.link-button { border: 0; background: none; cursor: pointer; }
main { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; min-height: calc(100vh - 170px); padding: 1.5rem 0 4rem; }
.hero { padding: 3rem 1.25rem; border-radius: 0 0 42px 42px; background: linear-gradient(145deg, var(--cream-deep), #f3e7da); display: grid; gap: 1.5rem; }
.hero > div:first-child { max-width: 690px; }
.hero p:not(.eyebrow) { font-size: 1.1rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; color: var(--sage); font-weight: 800; font-size: .72rem; margin-bottom: .6rem; }
.button { display: inline-block; border: 0; border-radius: 999px; background: var(--terracotta); color: white; padding: .8rem 1.2rem; font: 700 .96rem "Nunito Sans", sans-serif; text-decoration: none; cursor: pointer; box-shadow: 0 5px 12px rgba(145,72,51,.16); }
.button:hover { background: var(--terracotta-dark); }
.button.secondary { color: var(--terracotta-dark); background: var(--white); border: 1px solid var(--border); box-shadow: none; }
.button.small { padding: .55rem .9rem; }
.button.danger { background: #9b3c37; }
.quick-grid, .dog-grid, .detail-grid, .price-grid { display: grid; gap: 1rem; margin: 1.25rem 0; }
.card, .dog-card, .price-grid article { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.quick-grid .card { color: var(--charcoal); text-decoration: none; }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--sage-pale); border-radius: 50%; font-size: 1.25rem; margin-bottom: .8rem; }
.section { margin: 2.5rem 0; }
.section-title, .split { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-title h2 { font: 700 2.1rem "Caveat", cursive; color: var(--terracotta-dark); }
.booking-row, .record-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .9rem; padding: 1rem; border-bottom: 1px solid var(--border); background: rgba(255,253,249,.55); }
.booking-meta { grid-column: 2; display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.date-tile { display: grid; place-items: center; width: 58px; height: 62px; background: var(--sage-pale); border-radius: 16px; line-height: 1; }
.date-tile strong { font-size: 1.4rem; }
.date-tile span { font-size: .75rem; text-transform: uppercase; }
.badge { display: inline-block; padding: .28rem .6rem; border-radius: 999px; background: #f0dacf; color: #7d4433; font-size: .72rem; font-weight: 800; }
.badge.green { background: var(--sage-pale); color: #476152; }
.badge.danger { background: #f3d2ce; color: #8a352f; }
.page-heading { padding: 2rem 0 1rem; max-width: 850px; }
.form-card { display: grid; gap: .9rem; background: var(--white); padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card.wide { max-width: 820px; margin: 0 auto; }
.form-card > div { display: grid; gap: .35rem; }
label { font-weight: 800; font-size: .88rem; }
input, select, textarea { width: 100%; padding: .8rem; border: 1px solid #cfc2b4; border-radius: 12px; background: #fff; font: inherit; color: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(185,104,80,.18); border-color: var(--terracotta); }
input[type=checkbox] { width: auto; }
.terms-consent { margin: 1.25rem 0; padding: 1.25rem; border: 1px solid var(--border); border-radius: 18px; background: var(--cream); }
.terms-consent h2 { margin-top: 0; }
.consent-check { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1rem; }
.consent-check input { margin-top: .3rem; flex: 0 0 auto; }
.consent-check label { font-weight: 700; }
.field-errors, .form-errors { color: #8a2f24; font-weight: 700; }
.signed-terms { margin-top: 1.5rem; }
.signed-terms article { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.signed-terms article p { margin-bottom: 0; }
.receipt dl { margin: 1.5rem 0; }
.receipt dl div { display: grid; grid-template-columns: minmax(10rem, .4fr) 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--border); }
.receipt dt { font-weight: 800; }
.receipt dd { margin: 0; overflow-wrap: anywhere; }
.receipt code { font-size: .78rem; }
.receipt-statement { padding: 1rem; border-radius: 14px; background: var(--cream); }
.receipt-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 620px) {
  .signed-terms article, .receipt dl div { display: block; }
  .signed-terms .button { margin-top: .75rem; }
}
@media print {
  .no-print, .site-header, footer { display: none !important; }
  body { background: white; }
  main { max-width: none; padding: 0; }
  .receipt { box-shadow: none; border: 0; }
}
.helptext { font-size: .78rem; color: #666; }
.errorlist { color: #8a352f; margin: 0; padding-left: 1.2rem; }
.auth-card { max-width: 520px; margin: 3rem auto; }
.auth-card .form-card { margin: 1.5rem 0; }
.center { text-align: center; }
.dog-card { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; color: var(--charcoal); text-decoration: none; align-items: center; }
.dog-card img, .dog-placeholder { width: 100px; height: 100px; object-fit: cover; border-radius: 18px; }
.dog-placeholder { display: grid; place-items: center; background: var(--sage-pale); font-size: 2rem; }
.detail-grid dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; }
.detail-grid dt { color: #6d6d68; }
.detail-grid dd { margin: 0; font-weight: 700; text-align: right; }
.two-column { display: grid; gap: 1.5rem; }
.record-row { grid-template-columns: 1fr auto; border-radius: 14px; margin-bottom: .5rem; }
.empty { text-align: center; padding: 2.5rem; border: 1px dashed #cbbdae; border-radius: var(--radius); grid-column: 1/-1; }
.empty > span { font-size: 2rem; }
.price-grid { grid-template-columns: 1fr 1fr; max-width: 700px; margin-inline: auto; }
.price-grid article { text-align: center; }
.price-grid strong { color: var(--terracotta-dark); font-size: 1.45rem; }
.pricing-note { max-width: 780px; margin: 1rem auto 1.5rem; padding: 1rem; background: var(--sage-pale); border-radius: 14px; font-size: .9rem; }
.payment-line { display: flex; gap: 1rem; justify-content: flex-end; padding: .45rem 1rem 1rem; color: #686861; font-size: .85rem; }
.messages p { padding: .8rem 1rem; border-radius: 12px; background: var(--sage-pale); }
.text-danger { color: #8a352f; }
footer { text-align: center; padding: 1.5rem; background: var(--cream-deep); color: #69635c; }
footer span { color: var(--terracotta); }

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  nav { position: static; display: flex; align-items: center; background: transparent; padding: 0; box-shadow: none; }
  nav a, .link-button { padding: .5rem .6rem; font-size: .85rem; }
  .hero { grid-template-columns: 1fr auto; align-items: end; padding: 4rem 3.5rem; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .dog-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: repeat(3, 1fr); }
  .two-column { grid-template-columns: minmax(300px, .8fr) 1.2fr; align-items: start; }
  .booking-row { grid-template-columns: auto 1fr auto; }
  .booking-meta { grid-column: auto; min-width: 210px; }
}
