/* ==========================================================================
   Pet Care by Ella — design system
   Layout concept: a Rover-familiar sitter profile told as a quiet boutique
   editorial. Profile-card hero, service rows with right-aligned rates, a
   day-level availability grid, and a sticky action bar on phones.
   ========================================================================== */

:root {
  /* Palette: warm neutrals only (cream, linen, beige, taupe, mocha, chocolate) */
  --cream: #F5EDE2;
  --paper: #FBF8F3;
  --linen: #ECE1D2;
  --sand: #DACAB5;
  --taupe: #9E8B78;
  --mocha: #6B5545;
  --chocolate: #33231A;
  --honey: #B5864F;

  /* Roles (components use these, never the palette directly) */
  --bg: var(--cream);
  --surface: var(--paper);
  --surface-2: var(--linen);
  --line: var(--sand);
  --line-strong: #C8B39A;
  --text: var(--chocolate);
  --text-2: var(--mocha);
  --text-3: #745F50;
  --limited: #E0D0BA;
  --control-border: #8F7B69;
  --primary: var(--chocolate);
  --primary-hover: #4A3427;
  --on-primary: #FAF4EB;
  --star: var(--honey);
  --focus: #8A6646;
  --focus-ring: rgb(138 102 70 / 0.28);
  --error: #973F2C;
  --error-bg: #F5E1D8;
  --ok: #4F5A37;
  --ok-bg: #E6E6D3;
  --header-bg: rgb(245 237 226 / 0.86);
  --hatch: rgb(51 35 26 / 0.13);
  --scrim: rgb(35 24 17 / 0.42);
  --shadow-sm: 0 1px 2px rgb(51 35 26 / 0.06), 0 2px 10px rgb(51 35 26 / 0.05);
  --shadow-md: 0 2px 6px rgb(51 35 26 / 0.05), 0 16px 44px rgb(51 35 26 / 0.11);
  --shadow-lg: 0 28px 80px rgb(51 35 26 / 0.18);

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-body: "Jost", "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --step--2: 0.75rem;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.22rem, 1.16rem + 0.3vw, 1.38rem);
  --step-3: clamp(1.38rem, 1.28rem + 0.5vw, 1.65rem);
  --step-4: clamp(1.55rem, 1.42rem + 0.7vw, 1.95rem);
  --step-5: clamp(1.8rem, 1.58rem + 1.1vw, 2.35rem);

  /* Space and shape */
  --section: clamp(2.1rem, 1.7rem + 2vw, 3.5rem);
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;
  --wrap: 1160px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1511;
    --surface: #261D17;
    --surface-2: #31261F;
    --line: #45372D;
    --line-strong: #5C4B3E;
    --text: #F2E8DB;
    --text-2: #CDBBA7;
    --text-3: #A6927F;
    --limited: #4E3E32;
    --control-border: #8A7666;
    --primary: #EDE0CF;
    --primary-hover: #FFF6EA;
    --on-primary: #22180F;
    --star: #D8AA72;
    --focus: #E2C29C;
    --focus-ring: rgb(226 194 156 / 0.3);
    --error: #EFA48F;
    --error-bg: #3B231C;
    --ok: #C3CE9F;
    --ok-bg: #293020;
    --header-bg: rgb(28 21 17 / 0.84);
    --hatch: rgb(242 232 219 / 0.11);
    --scrim: rgb(0 0 0 / 0.55);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.35);
    --shadow-md: 0 16px 44px rgb(0 0 0 / 0.38);
    --shadow-lg: 0 28px 80px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1511;
  --surface: #261D17;
  --surface-2: #31261F;
  --line: #45372D;
  --line-strong: #5C4B3E;
  --text: #F2E8DB;
  --text-2: #CDBBA7;
  --text-3: #A6927F;
    --limited: #4E3E32;
    --control-border: #8A7666;
  --primary: #EDE0CF;
  --primary-hover: #FFF6EA;
  --on-primary: #22180F;
  --star: #D8AA72;
  --focus: #E2C29C;
  --focus-ring: rgb(226 194 156 / 0.3);
  --error: #EFA48F;
  --error-bg: #3B231C;
  --ok: #C3CE9F;
  --ok-bg: #293020;
  --header-bg: rgb(28 21 17 / 0.84);
  --hatch: rgb(242 232 219 / 0.11);
  --scrim: rgb(0 0 0 / 0.55);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.35);
  --shadow-md: 0 16px 44px rgb(0 0 0 / 0.38);
  --shadow-lg: 0 28px 80px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
@media (max-width: 959.98px) {
  html { scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  :is(a, button, input, select, textarea, summary, [tabindex]) { scroll-margin-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
  pointer-events: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.12; }
h4 { font-size: var(--step-1); line-height: 1.2; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--text-2); }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
/* :where() keeps this reset at zero specificity, so a component's own
   padding (e.g. the Home day strip's side gutters) always wins. */
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
::selection { background: var(--surface-2); color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.skip-link {
  position: absolute;
  left: var(--gutter-l);
  top: -200px;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: .75rem 1.1rem;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.wrap--narrow { --wrap: 780px; }
.wrap--mid { --wrap: 980px; }
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.section--tight { padding-block: calc(var(--section) * .62); }
.band { background: var(--surface-2); }
.band--paper { background: var(--surface); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 1rem); min-width: 0; }
.stack > * { min-width: 0; }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, .6rem); align-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 1.2rem + 3vw, 4.5rem); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .split--center { align-items: center; }
}
.split > * { min-width: 0; }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; margin-bottom: clamp(1rem, .85rem + .8vw, 1.6rem); max-width: 42rem; }
.section-head--row { max-width: none; }
@media (min-width: 900px) {
  .section-head--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 2rem; }
  .section-head--row > :last-child { justify-self: end; }
}
.section-head--row > :last-child { justify-self: start; }
@media (min-width: 900px) {
  .section-head.section-head--row > :last-child { justify-self: end; }
}
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-2);
  line-height: 1.4;
}
.lede { font-size: 1rem; color: var(--text-2); max-width: 36rem; line-height: 1.6; }
.prose { max-width: 38rem; }
.prose p + p { margin-top: 1em; }
.prose p { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 500; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: var(--step--1); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.serif { font-family: var(--font-display); }
.nowrap { white-space: nowrap; }
h1, h2, h3, h4, .serif { font-variant-numeric: lining-nums; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header[data-scrolled] { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1;
  padding-bottom: 2px;
  color: var(--text);
  background: var(--surface);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .004em;
  white-space: nowrap;
}
.brand__name em { font-style: italic; font-weight: 400; color: var(--text-2); }

.nav { display: none; }
.nav a {
  position: relative;
  padding-block: .4rem;
  font-size: .95rem;
  font-weight: 450;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--text-2);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}
.nav a:hover { color: var(--text); background-size: 100% 1px; }
.nav a[aria-current="page"] { color: var(--text); background-size: 100% 1px; }
.site-header .header-cta { display: none; }
.menu-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn .icon { width: 20px; height: 20px; }
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .nav { display: flex; align-items: center; gap: 1.6rem; }
  .site-header .header-cta { display: inline-flex; }
}

/* Mobile menu sheet (native <dialog>) */
.menu-sheet {
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: contain;
}
.menu-sheet::backdrop { background: var(--scrim); }
@media (prefers-reduced-motion: no-preference) {
  .menu-sheet[open] { animation: sheet-in .38s var(--ease); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.menu-sheet__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.menu-sheet__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.menu-sheet__list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; }
.menu-sheet__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
}
.menu-sheet__list a[aria-current="page"] { font-style: italic; color: var(--text-2); }
.menu-sheet__list small {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.menu-sheet__foot { margin-top: auto; display: grid; gap: 1rem; padding-top: 2rem; }

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: var(--on-primary);
  --btn-bd: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: .8rem 1.55rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .015em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.btn:hover { --btn-bg: var(--primary-hover); --btn-bd: var(--primary-hover); }
.btn:active { transform: scale(.982); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--text); }
.btn--quiet { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--line); }
.btn--quiet:hover { --btn-bg: var(--surface-2); --btn-bd: var(--line-strong); }
.btn--sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .93rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  font-size: .98rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.link-arrow:hover { border-bottom-color: var(--text); }
.link-arrow::after { content: ""; position: absolute; inset: -12px -6px -10px; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow[target="_blank"]:hover .icon { transform: translate(2px, -2px); }

/* --------------------------------------------------------------------------
   Chips, badges, stars, avatars
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: .45rem;
  min-height: 34px;
  padding: .35rem .85rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}
.chip .icon { width: 16px; height: 16px; color: var(--text-2); }
.chip--plain { background: transparent; }
.badge-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.stars { display: inline-flex; gap: 2px; color: var(--star); vertical-align: -2px; }
.stars .icon { width: var(--star-size, 15px); height: var(--star-size, 15px); }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--size, 56px);
  height: var(--size, 56px);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-display);
  font-style: italic;
  font-size: calc(var(--size, 56px) * .5);
  line-height: 1;
  overflow: hidden;
  position: relative;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--sq { border-radius: 16px; }

/* --------------------------------------------------------------------------
   Photography
   -------------------------------------------------------------------------- */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  isolation: isolate;
  max-width: 100%;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--square { aspect-ratio: 1 / 1; }
.photo--wide { aspect-ratio: 3 / 2; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .8rem;
  border-radius: var(--r-pill);
  background: rgb(251 248 243 / .82);
  color: #33231A;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.photo__tag .icon { width: 15px; height: 15px; }

/* Monogram portrait used until Ella adds her own photo */
.portrait-slot {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--surface) 0%, transparent 70%),
    var(--surface-2);
  border: 1px solid var(--line);
}
.portrait-slot__mono {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(6rem, 4rem + 10vw, 11rem);
  line-height: 1;
  color: var(--text-2);
  opacity: .55;
}
.portrait-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; }
.portrait-slot:not(:has(img)) { display: none; }
.split:has(> .portrait-slot):not(:has(> .portrait-slot img)) { grid-template-columns: minmax(0, 1fr); }
.split:has(> .portrait-slot):not(:has(> .portrait-slot img)) > * { max-width: 44rem; }
.portrait-slot:has(img) { aspect-ratio: 4 / 5; }
@media (min-width: 600px) and (max-width: 899.98px) { .split > .portrait-slot { width: min(100%, 460px); } }
@media (min-width: 900px) { .portrait-slot { aspect-ratio: 4 / 5; } }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(.5rem, .2rem + 1.4vw, 2.5rem); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.hero__media { position: relative; }
.hero__media .photo { aspect-ratio: 1 / 1; border-radius: var(--r-xl); }
.hero__copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-content: start; }
.hero__copy h1 { max-width: 22ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .35rem; }
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .hero__actions .btn { flex: 0 0 auto; } }

.profile-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .2rem .95rem;
  align-items: center;
  margin: -64px 12px 0;
  padding: 1rem 1.1rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.profile-card .avatar { --size: 60px; }
.profile-card__id { display: grid; gap: .15rem; min-width: 0; }
.profile-card__name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; font-weight: 500; }
.profile-card__role { font-size: .84rem; color: var(--text-2); line-height: 1.35; }
.profile-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .9rem; font-size: .9rem; color: var(--text-2); }
.profile-card__meta strong { color: var(--text); font-weight: 500; }
/* Each stat keeps its icon and words together; a narrow card puts the
   second stat on its own line. */
.profile-card__stat { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.profile-card__stat .icon { width: 15px; height: 15px; }
.profile-card__star { width: 15px; height: 15px; color: var(--star); margin-top: -2px; }
.profile-card__badges {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.profile-card__badges .chip { min-height: 30px; font-size: .8rem; padding: .25rem .7rem; background: var(--bg); }
.profile-card__badges:not(:has(.chip:not([hidden]))) { display: none; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 1rem + 4vw, 5rem); align-items: center; }
  .hero__media { order: 2; }
  .hero__media .photo { aspect-ratio: 4 / 5; }
  .hero__copy { order: 1; gap: 1.5rem; }
  .profile-card { position: absolute; left: -48px; right: auto; bottom: 36px; margin: 0; width: min(380px, 90%); }
}

/* --------------------------------------------------------------------------
   Service rows (Rover-style: icon, name, rate on the right)
   -------------------------------------------------------------------------- */
.service-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
a.service-row:hover .service-row__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.service-row__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); color: var(--text); }
.service-row__icon .icon { width: 24px; height: 24px; }
.service-row__text { display: grid; gap: .1rem; min-width: 0; }
.service-row__name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; font-weight: 500; }
.service-row__sub { font-size: .9rem; color: var(--text-2); }
.service-row__price { display: grid; justify-items: end; text-align: right; line-height: 1.1; }
.service-row__price strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; font-variant-numeric: lining-nums; }
.service-row__price span { font-size: .8rem; color: var(--text-2); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Rates table and accordions
   -------------------------------------------------------------------------- */
.rates { display: grid; margin: 0; }
.rates__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px dashed var(--line-strong); }
.rates__row:last-child { border-bottom: 0; }
@media (max-width: 599.98px) {
  .peak-list .rates__row { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .peak-list .rates__row dd { text-align: left; font-weight: 400; color: var(--text-2); font-size: .95rem; }
}
.rates__row dt { color: var(--text); text-wrap: pretty; }
.rates__row dt small { display: block; font-size: .82rem; color: var(--text-2); }
.rates__row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums lining-nums; font-weight: 500; white-space: nowrap; }
.rates__row dd small { display: block; font-weight: 400; color: var(--text-2); font-size: .8rem; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
  -webkit-tap-highlight-color: transparent;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .25s var(--ease);
}
.accordion details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.accordion__body { padding: 0 0 1.35rem; color: var(--text-2); max-width: 42rem; }
.accordion__body p + p { margin-top: .75em; }

/* --------------------------------------------------------------------------
   Cards, notices, lists
   -------------------------------------------------------------------------- */
.card { padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.card--linen { background: var(--surface-2); border-color: transparent; }
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; align-items: start; padding: 1rem 1.15rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: .95rem; color: var(--text-2); }
.notice .icon { width: 22px; height: 22px; color: var(--text); margin-top: 1px; }
.notice strong { color: var(--text); font-weight: 500; }
.notice--linen { background: var(--surface-2); border-color: transparent; }
.notice--error { background: var(--error-bg); border-color: transparent; color: var(--error); }
.notice--error .icon, .notice--error strong { color: var(--error); }
.notice--ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.notice--ok .icon, .notice--ok strong { color: var(--ok); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; color: var(--text-2); }
.checklist li .icon { width: 20px; height: 20px; color: var(--text); margin-top: 3px; }
.checklist strong { color: var(--text); font-weight: 500; }

.town-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }

/* --------------------------------------------------------------------------
   Availability calendar (shared by Home, Availability and Book)
   -------------------------------------------------------------------------- */
.cal { display: grid; gap: .85rem; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cal__title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; font-weight: 500; }
.cal__nav { display: flex; gap: .45rem; }
.cal__nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.cal__nav button:disabled { opacity: .35; cursor: default; }
.cal__nav .icon { width: 18px; height: 18px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 480px) { .cal__grid { gap: 5px; } }
.cal__dow { text-align: center; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding-bottom: .2rem; }
.cal__day {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .12s var(--ease);
}
.cal__day:hover { border-color: var(--text); }
.cal__day:active { transform: scale(.95); }
.cal__day[data-state="limited"] {
  background: linear-gradient(135deg, var(--surface) 0 52%, var(--limited) 52% 100%);
}
.cal__day[data-state="booked"], .cal__day[data-state="off"] {
  background: repeating-linear-gradient(135deg, transparent 0 5px, var(--hatch) 5px 6.5px), var(--bg);
  border-color: transparent;
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: var(--text-3);
  cursor: not-allowed;
}
.cal__day[data-state="past"], .cal__day[data-state="unknown"] {
  background: transparent;
  border-color: transparent;
  color: var(--text-3);
  opacity: .5;
  cursor: default;
}
.cal__day[data-state="booked"]:hover, .cal__day[data-state="off"]:hover, .cal__day[data-state="past"]:hover, .cal__day[data-state="unknown"]:hover { border-color: transparent; }
.cal__day.is-blank { visibility: hidden; }
.cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--text-2); }
.cal__day[data-state="limited"]::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 12px; height: 2px; margin-left: -6px; border-radius: 2px; background: var(--text-2); }
.cal__day .cal__peak { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--star); }
.cal__day[data-state="request"] { border-style: dashed; border-color: var(--control-border); }
.cal__day.is-checkout { text-decoration: none; color: var(--text); cursor: pointer; border-color: var(--control-border); background: linear-gradient(135deg, var(--surface) 0 50%, transparent 50%), repeating-linear-gradient(135deg, transparent 0 5px, var(--hatch) 5px 6.5px), var(--bg); }
.cal__day.is-checkout:hover { border-color: var(--text); }
.cal__day.is-range { background: var(--surface-2); border-color: var(--surface-2); color: var(--text); text-decoration: none; }
.cal__day[aria-pressed="true"], .cal__day.is-start, .cal__day.is-end {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
}
.cal__day[aria-pressed="true"] .cal__peak, .cal__day.is-start .cal__peak, .cal__day.is-end .cal__peak { background: var(--on-primary); }
.cal__day[aria-pressed="true"]::after, .cal__day.is-start::after, .cal__day.is-end::after { background: var(--on-primary); }
.cal__legend { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; font-size: .84rem; color: var(--text-2); }
.cal__legend span { display: inline-flex; align-items: center; gap: .45rem; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface); flex: none; }
.swatch--limited { background: linear-gradient(135deg, var(--surface) 0 52%, var(--limited) 52% 100%); }
.swatch--booked { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--hatch) 3px 4.5px), var(--bg); border-color: var(--line); }
.swatch--request { border-style: dashed; border-color: var(--control-border); }
.swatch--checkout { background: linear-gradient(135deg, var(--surface) 0 50%, transparent 50%), repeating-linear-gradient(135deg, transparent 0 3px, var(--hatch) 3px 4.5px), var(--bg); border-color: var(--control-border); }
.swatch--peak { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--star); }
.cal__months { display: grid; gap: 2rem; }
@media (min-width: 980px) { .cal__months--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
.cal__status { font-size: .84rem; color: var(--text-2); }
.card--calendar { padding: clamp(.75rem, .4rem + 1.5vw, 1.75rem); }

/* Day detail panel */
.day-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.25rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.day-panel__title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; }

/* 14-day strip on Home */
.daystrip { display: grid; grid-auto-flow: column; grid-auto-columns: 60px; gap: 8px; overflow-x: auto; list-style: none; margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); padding: 4px var(--gutter-r) 10px var(--gutter-l); scroll-padding-inline: var(--gutter-l); scroll-snap-type: x proximity; scrollbar-width: thin; }
.daystrip__item { scroll-snap-align: start; display: grid; }
.daystrip__day { display: grid; justify-items: center; gap: .15rem; padding: .7rem .2rem .6rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); }
.daystrip__day small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.daystrip__day strong { font-family: var(--font-display); font-size: 1.3rem; line-height: 1; font-weight: 500; font-variant-numeric: lining-nums; }
.daystrip__day em { font-style: normal; font-size: .7rem; color: var(--text-2); }
.daystrip__day[data-state="limited"] { background: linear-gradient(135deg, var(--surface) 0 52%, var(--limited) 52% 100%); }
.daystrip__day[data-state="request"] { border-style: dashed; border-color: var(--control-border); }
.daystrip__day[data-state="booked"], .daystrip__day[data-state="off"] { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--hatch) 5px 6.5px), var(--bg); border-color: transparent; color: var(--text-3); }
.daystrip__day[data-state="booked"] strong, .daystrip__day[data-state="off"] strong { text-decoration: line-through; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid--2 > .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: .45rem; min-width: 0; }
.label { font-size: .93rem; font-weight: 500; color: var(--text); }
.label .opt { font-weight: 400; color: var(--text-3); font-size: .85rem; margin-left: .25rem; }
.hint { font-size: .85rem; color: var(--text-2); line-height: 1.45; }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--control-border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px var(--focus-ring); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: .85rem; color: var(--error); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select { padding-right: 2.6rem; }

.choice-list { display: grid; gap: .65rem; }
.choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.choice:hover { border-color: var(--text-2); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.choice__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); }
.choice__icon .icon { width: 23px; height: 23px; }
.choice__text { display: grid; gap: .1rem; min-width: 0; }
.choice__title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; font-weight: 500; }
.choice__sub { font-size: .87rem; color: var(--text-2); line-height: 1.4; }
.choice__price { text-align: right; line-height: 1.1; }
.choice__price strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.choice__price span { font-size: .78rem; color: var(--text-2); white-space: nowrap; }
.choice__tick {
  position: absolute;
  top: -8px;
  right: -8px;
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
}
.choice__tick .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.choice:has(input:checked) .choice__tick { display: grid; }

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  max-width: 100%;
}
.segmented label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: .4rem 1.05rem;
  border-radius: var(--r-pill);
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.segmented label:has(input:checked) :is(span, small) { color: inherit; }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

.toggle-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.toggle {
  position: relative;
  display: inline-grid;
  gap: .05rem;
  min-height: 52px;
  padding: .55rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle strong { font-weight: 500; font-size: .95rem; }
.toggle span { font-size: .78rem; color: var(--text-2); }
.toggle:has(input:checked) { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.toggle:has(input:checked) span { color: var(--on-primary); opacity: .8; }
.toggle:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.toggle:has(input:disabled) { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

.stepper { display: inline-grid; grid-template-columns: 44px minmax(2.5rem, auto) 44px; align-items: center; border: 1px solid var(--control-border); border-radius: var(--r-pill); background: var(--surface); }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--text); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { text-align: center; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
.stepper .icon { width: 18px; height: 18px; }

.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: start; cursor: pointer; font-size: .95rem; color: var(--text-2); }
.check input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--control-border); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--on-primary); border-bottom: 2px solid var(--on-primary); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

/* --------------------------------------------------------------------------
   Sticky action bar (phones) — the Rover-style "from $30 per visit" bar
   -------------------------------------------------------------------------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 34px rgb(51 35 26 / .09);
}
.action-bar__info { display: grid; gap: .05rem; min-width: 0; margin-right: auto; line-height: 1.25; }
.action-bar__price { font-size: .95rem; color: var(--text-2); white-space: nowrap; }
.action-bar__price strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); font-weight: 500; }
.action-bar__meta { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--text-2); white-space: nowrap; }
.action-bar__meta .icon { width: 13px; height: 13px; color: var(--star); }
.action-bar .btn { flex: none; min-height: 50px; padding-inline: 1.3rem; }
@media (max-width: 959.98px) {
  body.has-action-bar { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 960px) { .action-bar { display: none; } }

/* --------------------------------------------------------------------------
   Page intro (inner pages)
   -------------------------------------------------------------------------- */
.page-intro { padding-top: clamp(1.25rem, .9rem + 1.5vw, 2.5rem); padding-bottom: clamp(.75rem, .6rem + 1vw, 1.75rem); }
.page-intro__inner { display: grid; gap: .6rem; max-width: 46rem; }
.page-intro h1 { font-size: var(--step-5); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding-bottom: 2rem; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
.footer-brand { display: grid; gap: .9rem; align-content: start; }
.footer-brand p { color: var(--text-2); max-width: 26rem; }
.footer-col h2 { font-family: var(--font-body); font-size: var(--step--2); font-weight: 500; letter-spacing: .17em; text-transform: uppercase; color: var(--text-3); margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a { text-decoration: none; color: var(--text); }
.footer-col a:hover { text-decoration: underline; }
.footer-legal { margin-top: 2.75rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-size: .8rem; color: var(--text-3); line-height: 1.5; }
@media (min-width: 760px) { .footer-legal { grid-template-columns: auto minmax(0, 1fr); gap: 2rem; } .footer-legal p:last-child { text-align: right; } }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   Simpler layout (owner feedback, Nov 2026): smaller rows and footer, plain
   section headings, the reviews swipe-through, photo grid, pet cards and
   the Rover profile sections on About.
   -------------------------------------------------------------------------- */
.hero { padding-bottom: clamp(1.25rem, .9rem + 1.6vw, 2.5rem); }
.hero__copy { gap: .8rem; }
@media (min-width: 900px) { .hero__copy { gap: 1rem; } }
.service-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: .85rem; padding: .8rem 0; }
.service-row__icon { width: 40px; height: 40px; }
.service-row__icon .icon { width: 20px; height: 20px; }
.site-footer { padding-top: clamp(2rem, 1.6rem + 2vw, 3rem); }
.footer-legal { margin-top: 1.75rem; }

.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.head-row > h1, .head-row > h2 { margin: 0; }

.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .92rem; color: var(--text-2); }
.rating-line .icon { width: 16px; height: 16px; color: var(--star); }
.rating-line strong { color: var(--text); font-weight: 500; }
.rating-line--place .icon { color: inherit; }

.text-block { max-width: 40rem; }
.text-block p { color: var(--text-2); line-height: 1.65; }
.text-block p + p { margin-top: .9em; }
.text-block h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.text-block ul { margin: .9em 0 0; padding-left: 1.1rem; color: var(--text-2); display: grid; gap: .6em; line-height: 1.6; }

/* Meet & greet */
.mg {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .2rem .9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.mg__icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--text); }
.mg__icon .icon { width: 20px; height: 20px; }
.mg__title { font-size: 1.2rem; line-height: 1.2; }
.mg__price { margin-left: .35rem; font-family: var(--font-body); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.mg__text { font-size: .92rem; color: var(--text-2); line-height: 1.45; }
.mg .btn { grid-column: 1 / -1; justify-self: start; margin-top: .65rem; }
@media (min-width: 700px) {
  .mg { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mg .btn { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
}

/* Service cards (Services page) */
.svc-list { display: grid; gap: .8rem; }
.svc-card { display: grid; gap: .8rem; padding: 1.1rem 1.15rem 1.2rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.svc-card > p { color: var(--text-2); line-height: 1.6; max-width: 46rem; }
.svc-card__head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .85rem; align-items: center; }
.svc-card__name h2 { font-size: 1.3rem; line-height: 1.15; }
.svc-card__name p { font-size: .88rem; color: var(--text-2); }
.svc-card__price { display: grid; justify-items: end; text-align: right; line-height: 1.1; }
.svc-card__price strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; font-variant-numeric: lining-nums; }
.svc-card__price span { font-size: .8rem; color: var(--text-2); white-space: nowrap; }
.svc-card__rates { border-top: 1px solid var(--line); padding-top: .6rem; }
.svc-card__rates summary { cursor: pointer; font-size: .92rem; font-weight: 500; padding: .2rem 0; }
.svc-card__rates .rates { margin-top: .3rem; }
.svc-card__rates .rates__row { padding: .55rem 0; font-size: .92rem; }
.svc-card__foot { display: flex; gap: .5rem; align-items: center; font-size: .86rem; color: var(--text-2); }
.svc-card__foot .icon { width: 18px; height: 18px; }
.svc-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-card--mg { background: var(--surface-2); }

/* Reviews swipe-through */
.review-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: .75rem;
  margin: 0;
  padding: 0 0 .25rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.review-slider__track::-webkit-scrollbar { display: none; }
.review-slider__track:focus-visible { outline-offset: 4px; }
@media (min-width: 700px) { .review-slider__track { grid-auto-columns: calc((100% - .75rem) / 2); } }
@media (min-width: 1020px) { .review-slider__track { grid-auto-columns: calc((100% - 1.5rem) / 3); } }
/* A lone review fills the row on a phone (nothing peeks in after it) and
   keeps a comfortable reading width on wider screens. */
.review-slider--single .review-slider__track { grid-auto-columns: minmax(0, 100%); }
.review-slider--single .review-slide { width: 100%; max-width: 40rem; }
.review-slide {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1.05rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.band .review-slide { background: var(--bg); }
.review-slide__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: center; }
.review-slide__head .avatar { --size: 40px; font-size: 1.05rem; background: var(--surface-2); border: 1px solid var(--line); }
.review-slide__who { display: grid; gap: .05rem; min-width: 0; }
.review-slide__who strong { font-weight: 500; }
.review-slide__who span { font-size: .82rem; color: var(--text-2); }
.review-slide__text { color: var(--text); line-height: 1.6; overflow-wrap: anywhere; }
.review-slide__more { font-size: .9rem; align-self: flex-start; }
.review-slide__src { margin-top: auto; padding-top: .2rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.review-slider__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .8rem; }
.review-slider__count { font-size: .85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.round-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn .icon { width: 18px; height: 18px; }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; } }
.photo-grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
/* About's full gallery: smaller thumbnails, so every photo fits in less room */
.photo-grid--dense { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
@media (min-width: 700px) { .photo-grid--dense { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; } }
@media (min-width: 1020px) { .photo-grid--dense { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; } }
.photo-grid--dense img { border-radius: var(--r-xs); }

/* About: Rover profile sections */
.about-sections { padding-bottom: var(--section); }
.about-sections > .about-block + .about-block { border-top: 1px solid var(--line); }
.about-block { display: grid; gap: .8rem; padding-block: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.about-block > h2 { font-size: var(--step-3); }
@media (min-width: 900px) {
  .about-block { grid-template-columns: 14rem minmax(0, 1fr); column-gap: 2.5rem; align-items: start; }
  .about-block--wide { grid-template-columns: minmax(0, 1fr); }
}
.facts { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .95rem; }
.facts .icon { width: 18px; height: 18px; margin-top: .15rem; color: var(--text-2); }
@media (min-width: 700px) { .facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
/* Scoped to .pet-cards: the booking form has its own .pet-card (book.css). */
.pet-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; max-width: 30rem; margin: 0; padding: 0; list-style: none; }
.pet-cards .pet-card { display: grid; gap: .35rem; align-content: start; }
.pet-cards .pet-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); margin-bottom: .2rem; }
.pet-cards .pet-card h3 { font-size: 1.2rem; }
.pet-cards .pet-card p { font-size: .88rem; color: var(--text-2); line-height: 1.45; }

/* Landscape photo of Ella (shorter than the tall portrait frame) */
.portrait-slot--wide, .portrait-slot--wide:has(img) { aspect-ratio: 4 / 3; }
.split > .portrait-slot--wide { width: min(100%, 520px); }
@media (min-width: 900px) { .portrait-slot--wide, .portrait-slot--wide:has(img) { aspect-ratio: 4 / 3; } }

/* Hero on phones and tablets (one column): a shorter photo and a smaller
   card overlap, so the name, both buttons and the top of the meet & greet
   fit above the booking bar on a 390×844 phone. */
@media (max-width: 899.98px) {
  .hero__media .photo { aspect-ratio: 3 / 2; }
  .hero__media .photo img { object-position: 50% 55%; }
  .profile-card { margin-top: -40px; }
}

/* Hero: a square photo in a narrower column, so the first screen isn't all photo */
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .hero__media .photo { aspect-ratio: 1 / 1; }
  .hero { padding-top: clamp(1rem, .5rem + 1.5vw, 2rem); }
}
@media (min-width: 900px) {
  .profile-card { bottom: -28px; left: -40px; }
  .hero { padding-bottom: clamp(2.5rem, 1.5rem + 2vw, 3.5rem); }
}
