/* Mobile composition. Loaded after the shared styles, only up to 700px.
   --page-gutter is the single source of horizontal section spacing. */
:root {
  --section-space: 56px;
}

/* Shared axis: each section occupies the same centered page container. */
.hero-copy,
.hero-after,
.about-copy,
.service-content,
.pricing,
.visit,
.contact-copy,
.footer,
.footer-legal {
  text-align: center;
}

.section {
  padding-block: var(--section-space);
}

.about-copy p,
.service-content h3,
.service-description,
.directions,
.hero-after p,
.care-section .section-heading > p {
  max-width: 100%;
  margin-inline: auto;
}

/* Quick contact, centered logo and menu occupy independent columns. */
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0;
}

.mobile-header-actions {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  gap: 4px;
}

.mobile-header-actions a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--cream);
  color: var(--ink);
}

.mobile-header-actions .mobile-header-booking {
  background: var(--yellow);
  border-color: transparent;
}

.mobile-header-actions a:hover {
  background: var(--butter);
}

.mobile-header-actions svg {
  width: 19px;
  height: 19px;
}

.header .brand {
  grid-column: 2;
  grid-row: 1;
  width: 142px;
}

.header .brand .brand-wordmark {
  width: 100%;
}

.menu-toggle {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  min-width: 0;
  width: 82px;
  padding-inline: 10px;
  gap: 8px;
}

.mobile-nav {
  padding-inline: var(--page-gutter);
  text-align: center;
}

.mobile-primary a {
  position: relative;
  justify-content: center;
  padding-inline: 40px;
}

.mobile-primary a svg {
  position: absolute;
  right: 16px;
}

.mobile-secondary {
  grid-template-columns: 1fr;
}

.mobile-nav .mobile-booking {
  justify-content: center;
}

/* Intro: centered portrait, caption, address and opening information. */
.hero-picture figcaption {
  left: 50%;
  right: auto;
  width: max-content;
  transform: translateX(-50%);
}

.hero-after {
  flex-direction: column;
  align-items: center;
  min-height: 0;
  gap: 12px;
  padding-block: 20px 0;
}

.hero-groomer {
  position: static;
  width: 128px;
  order: 2;
  margin-inline: auto;
}

.hero-location {
  justify-content: center;
  min-height: 44px;
  font-size: .8125rem;
}

.hero-after p {
  font-size: .8125rem;
}

/* About and care: copy, illustration captions and signature share one axis. */
.about-copy .signature {
  margin-inline: auto;
  text-align: center;
  transform-origin: center;
}

.service-visual {
  width: calc(100% - 32px);
  padding: 0;
}

.service-photo {
  transform: none;
}

.service-photo-patch {
  inset-inline: -4px;
}

.service-photo-note {
  position: relative;
  display: block;
  right: auto;
  bottom: auto;
  width: max-content;
  max-width: 100%;
  margin: -62px auto 0;
}

.service-includes {
  grid-template-columns: 1fr;
  gap: 14px;
}

.service-includes li {
  align-items: center;
  justify-content: center;
  font-size: .875rem;
}

.service-content .button {
  max-width: 100%;
}

.pricing-mascot {
  margin-inline: auto;
}

.pricing-table caption,
.pricing-table th {
  text-align: center;
}

.pricing-table th:first-child {
  padding-left: 6px;
}

/* Equal internal padding keeps FAQ text centered around the disclosure icon. */
.faq details {
  padding-inline: 16px;
}

.faq summary {
  padding-inline: 24px;
  text-align: center;
}

.faq details > div {
  padding-inline: 0;
}

.faq-contact {
  padding-inline: 0;
}

/* Contact: no absolute mascot or uneven card margins next to the heading. */
.booking-section {
  padding-block: var(--section-space) calc(var(--section-space) + 12px);
}

.contact-mascot {
  position: static;
  width: 88px;
  margin: 0 auto 24px;
}

.booking-panel {
  width: 100%;
  margin-inline: auto;
}

.booking-panel::before {
  inset: 12px 0 -12px;
  transform: none;
}

.booking-card {
  padding-inline: 24px;
}

/* Footer and legal navigation use the same container and centered alignment. */
.footer {
  flex-direction: column;
  gap: 12px;
}

.footer > span {
  order: 0;
  margin: 0;
}

.back-top {
  margin-inline: 0;
}

.footer-legal nav {
  justify-content: center;
}

.document-header {
  flex-direction: column;
  text-align: center;
}

.document-header > a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.document-main h1,
.document-main h2 {
  text-align: center;
}

@media (max-width: 360px) {
  .mobile-header-actions a {
    width: 32px;
  }

  .menu-toggle {
    width: 46px;
    padding-inline: 12px;
  }

  .menu-toggle .menu-label {
    display: none;
  }
}
