* { box-sizing: border-box; }
body { margin: 0; background: #f2f6f4; color: #182f28; font: 1rem/1.55 system-ui, sans-serif; }
.shell { width: min(100% - 2rem, 48rem); margin-inline: auto; }
header { background: #163e33; color: white; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-block: 1rem; }
.masthead strong { font-size: 1.4rem; }
nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
button { cursor: pointer; color: white; background: #185941; border: 1px solid #185941; border-radius: .45rem; padding: .65rem 1rem; min-height: 44px; font: inherit; }
nav button[aria-pressed=false] { background: white; color: #185941; }
:focus-visible { outline: 3px solid #9e5600; outline-offset: 3px; }
.notice { color: #41594f; }
#feedback:empty { display: none; }
form, article { background: white; border: 1px solid #d2dfd8; border-radius: .75rem; padding: 1rem; margin-bottom: 1rem; }
article form { border: 0; padding: 0; margin: 1rem 0 0; }
form { display: grid; gap: .85rem; justify-items: start; }
label { display: grid; gap: .3rem; width: 100%; }
input, select, textarea { width: 100%; padding: .6rem; min-height: 44px; border-radius: .35rem; border: 1px solid #879c93; font: inherit; color: inherit; background: white; }
article h3 { margin: 0; }
article p, article ol { margin-block: .5rem; }
main { padding-bottom: 2rem; }

body { background: #f7f7f0; }
.shell { width: min(100% - 2rem, 72rem); }
header { background: #12382e; }
h1, h2, h3, p { overflow-wrap: anywhere; }
#view:not([data-role=family]) { max-width: 48rem; }
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: #153f34;
  color: #fffdf2;
  border-radius: 1.4rem;
}
.hero > div { padding: clamp(1.5rem, 5vw, 4rem); }
.hero h1 { font: 500 clamp(2.4rem, 5.2vw, 4.8rem)/.99 Georgia, serif; letter-spacing: -.05em; margin: 0 0 1.2rem; }
.hero p { max-width: 35ch; margin-bottom: 1.6rem; }
.hero img { width: 100%; height: 100%; min-height: 18rem; max-height: 34rem; object-fit: cover; display: block; }
.cta { display: inline-block; color: #17372d; background: #f4d88d; border-radius: 2rem; padding: .75rem 1.2rem; font-weight: 700; text-decoration: none; }
.catalogue, .visit-guide, #booking { margin-block: 2.5rem; }
.catalogue h2, .visit-guide h2, #booking h2 { font: 500 clamp(1.8rem, 4vw, 2.65rem)/1.1 Georgia, serif; margin: 0 0 1rem; }
.services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; }
.services button { padding: 0 0 .9rem; overflow: hidden; text-align: left; background: white; color: #19382e; border-color: #d1ded5; border-radius: .9rem; align-content: start; }
.services button[aria-pressed=true] { outline: 2px solid #296d53; outline-offset: 2px; }
.services button:focus-visible { outline: 3px solid #9e5600; }
.services strong, .services button > span:last-child { display: block; padding-inline: .8rem; }
.services strong { margin-block: .6rem .2rem; }
.services button > span:last-child { color: #41594f; font-size: .9rem; }
.service-photo { display: block; aspect-ratio: 3 / 2; background: #d5e4d8 url("./images/services.jpg") no-repeat; background-size: 200% 200%; }
.company { background-image: url("./images/companionship.jpg"); background-size: cover; background-position: center; }
.walk { background-position: top left; }
.digital { background-position: top right; }
.errand { background-position: bottom left; }
.appointment { background-position: bottom right; }
.visit-guide { padding: clamp(1rem, 4vw, 2rem); border-radius: 1rem; background: #e6eee2; }
.visit-guide ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0; padding-left: 1.3rem; }
.visit-guide li p { margin: .25rem 0 0; }
#booking { padding: clamp(1rem, 4vw, 2rem); max-width: 48rem; }
#booking h2, #booking p, fieldset p { margin: 0; }
fieldset { width: 100%; min-width: 0; border: 0; padding: 0; margin: 0; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.6rem, 1fr)); gap: .5rem; margin-top: .35rem; }
.slots p { grid-column: 1 / -1; }
.slots button { color: #185941; background: #f3f7f2; padding-inline: .45rem; }
.slots button[aria-pressed=true] { background: #185941; color: white; }
button:disabled { cursor: default; opacity: .55; }
@media (max-width: 850px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .hero, .visit-guide ol { grid-template-columns: 1fr; }
  .hero img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
[hidden] { display: none !important; }

#booking .slot-tip { margin-top: .5rem; color: #41594f; font-size: .875rem; }
#booking .selection:empty { display: none; }

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  width: 100%;
}
.visit-actions button { border-radius: .65rem; font-weight: 650; }
.visit-actions .checkout-button {
  background: #f4d88d;
  color: #17372d;
  border-color: #cba953;
}
.visit-actions .checkout-button:hover { background: #efd07c; }

.account-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.account-links a { color: inherit; }
#sign-in { max-width: 32rem; margin-block: 1rem; }
#sign-in:not(:target):not(.is-open) { display: none; }
#sign-in h2 { margin-bottom: .65rem; }
.account-links { align-items: center; }
.account-links #family-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .9rem;
  border-radius: .55rem;
  background: #f4d88d;
  color: #17372d;
  font-weight: 700;
  text-decoration: none;
}
.account-links #family-link:hover { background: #ffe5a3; }
#family-session { padding-bottom: .75rem; }

.visit-location { display: grid; gap: .65rem; }
.visit-location legend { font-weight: 700; }
.visit-location button { justify-self: start; }
.visit-map { width: 100%; height: clamp(16rem, 36vw, 23rem); border-radius: .65rem; }
#location-fields { width: 100%; display: grid; gap: .85rem; }
.pin-status { color: #41594f; }

.retry-visit {
  color: #185941;
  background: #eef5ed;
}
.retry-visit:hover { background: #e2eee1; }

.ops { max-width: 54rem; }
.ops-home { color: inherit; }
.ops-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.ops-toolbar label { width: min(100%, 20rem); }
.ops article h2 { margin: 0; }
.ops article summary { cursor: pointer; width: fit-content; color: #185941; font-weight: 650; }
