body { font-family: var(--text-face); }
.renovation h1, .renovation h2, .grooming h1, .grooming h2,
.home-services h1, .home-services h2 {
  font-family: var(--display-face);
  font-weight: 400;
  letter-spacing: -.025em;
}
.fitness h1, .fitness h2 { font-family: var(--text-face); font-weight: 800; }
.grooming .hero { background: #f4e9ed; }
.renovation .hero { background: #efeee3; }
.fitness .concept-hero { border-bottom: 2px solid var(--accent); }
.home-services #options { border-top: 3px solid var(--accent); }
:where(a, button, summary, select, textarea, input):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  :where(.action, .select-service, button, .hero a, nav a):hover {
    filter: brightness(1.12);
    text-decoration: underline;
    text-underline-offset: .25em;
  }
}
@media (prefers-reduced-motion: no-preference) {
  main article, main figure { transition: transform 220ms ease, box-shadow 220ms ease; }
  :where(.action, .select-service, button, .hero a) { transition: transform 180ms ease, filter 180ms ease; }
  .demo-reveal-pending { opacity: 0; }
  .demo-reveal-pending:focus-within { opacity: 1; }
  .demo-reveal-running { animation: demo-rise 490ms cubic-bezier(.18,.7,.3,1) var(--demo-delay, 0ms) both; }
  @keyframes demo-rise {
    from { opacity: 0; translate: 0 20px; }
    to { opacity: 1; translate: 0 0; }
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
}

/* Keep interactive cards aligned while highlighting their controls. */
:is(#services, #options) article {
  min-width: 0;
  padding: clamp(.9rem, 2.2vw, 1.3rem);
}
:is(.renovation, .grooming) #services article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
:is(.renovation, .grooming) #services article .select-service { margin-top: auto; }
:is(#services, #options) article h3 { min-width: 0; overflow-wrap: break-word; }
:is(#services, #options) article:focus-within {
  outline: 1px solid currentColor;
  outline-offset: 1px;
}
:is(.action, .select-service, .times button, .concept-grid article > button) {
  min-height: 44px;
}
:is(.action, .select-service, .times button, .concept-grid article > button) .action-arrow {
  display: inline-block;
  margin-inline-start: .25em;
}
@media (hover: hover) and (pointer: fine) {
  :is(#services, #options) article:hover { box-shadow: 0 3px 9px rgb(20 25 19 / 10%); }
  :is(.action, .select-service, .times button, .concept-grid article > button):hover .action-arrow { translate: 2px -1px; }
}
@media (prefers-reduced-motion: no-preference) {
  .action-arrow { transition: translate 160ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  .action-arrow { translate: none !important; }
}
.grooming img.coat-photo {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: #eae8de;
}
.grooming .hero img { object-position: center 42%; }
.fitness .concept-hero .demo-photo { object-position: center 40%; }
.home-services .concept-hero .demo-photo { object-position: center 55%; }
@media (max-width: 45rem) {
  .grooming img.coat-photo { aspect-ratio: 4 / 3; }
  .fitness .concept-hero .demo-photo { aspect-ratio: 3 / 2; }
}
.renovation .gallery figure:first-child img { object-position: 50% 55%; }
.fitness img[src$="/reformer.jpg"] { object-position: 45% 48%; }
.home-services img[src$="/paint.jpg"] { object-position: 50% 45%; }
.home-services img[src$="/repair.jpg"] { object-position: 50% 58%; }

@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .23em; }
  button:not(:disabled):hover { filter: brightness(.89); box-shadow: 0 2px 7px #14201926; }
  .fitness button:not(:disabled):hover { filter: brightness(1.12); }
  main article:hover { box-shadow: 0 3px 10px rgb(20 25 19 / 12%); }
  main :is(img, .demo-photo):hover {
    outline: 2px solid currentColor;
    outline-offset: -2px;
    box-shadow: 0 4px 12px rgb(20 25 19 / 20%);
  }
}

body :is(h1, h2, h3) {
  font-family: var(--text-face);
  font-weight: 750;
  letter-spacing: -.035em;
}
body :is(.hero, .concept-hero) h1 { font-size: clamp(2.2rem, 5.8vw, 4.4rem); }
@media (hover: hover) and (pointer: fine) {
  a:hover, a:hover *, button:hover, button:hover * { text-decoration: none !important; }
  a:hover { color: var(--accent, #17617d); }
  .select-service:hover { color: inherit; background: #17617d18; }
  .grooming .select-service[aria-current="true"]:hover { background: #744664; color: #fff; }
  :is(#services, #options) article:hover { box-shadow: 0 5px 13px rgb(20 25 19 / 16%); }
}

.grooming .gallery .photos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grooming .gallery .photos img {
  background: #f4efe9;
  object-fit: contain;
}
.fitness .concept-hero .action {
  background: #dafa66;
  color: #172114;
}
.fitness .concept-hero .action:focus-visible { outline-color: #dafa66; }
.fitness .concept-hero .action:active { background: #bedf50; color: #172114; }
.fitness #options .concept-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fitness #options article { display: flex; height: 100%; }
.fitness #options article .demo-photo {
  aspect-ratio: 3 / 2;
  height: auto;
  flex: none;
}
.fitness #options article .times { margin-top: auto; }
@media (hover: hover) and (pointer: fine) {
  .fitness .concept-hero .action:hover { background: #efffba; color: #172114; filter: none; }
  .fitness .concept-hero .action:active:hover { background: #bedf50; }
  .fitness #options article:hover { background: #2f3a2b; border-color: #aabe74; }
  .fitness #options article .demo-photo:hover { outline: 0; box-shadow: none; }
  .fitness .times button:hover { background: #f1ffbc; color: #172114; filter: none; }
}
@media (max-width: 45rem) {
  .fitness #options .concept-grid, .grooming .gallery .photos {
    grid-template-columns: minmax(0, 1fr);
  }
}
