/* ==========================================================================
   Centre Animal Nouveau Départ
   Palette: blue = brand / primary actions · purple = community accents
            red = urgency & donations only · purple-black = text & dark panels

   Text colours never hard-code --ink/--muted: components use the semantic
   tokens below (--fg, --fg-strong, --fg-muted, --link, --accent, --border).
   Put .theme-dark on any dark container and everything inside turns light;
   put .theme-light on a white card nested in a dark container to switch back.
   For text on top of a photo, use .overlay (gradient scrim + theme-dark).
   Exception: elements that paint their own background (buttons, tags, chips)
   use fixed colours, so they read the same in any theme.
   ========================================================================== */

:root {
  --ink: #15132a;
  --text: #45435a;
  --muted: #74728a;
  --bg: #ffffff;
  --soft: #f5f6fa;
  --line: #e9e8f0;

  --blue: #2b4ea2;
  --blue-700: #1f3c84;
  --blue-50: #eef2fb;

  --purple: #6a3fa0;
  --purple-900: #2b1a48;
  --purple-50: #f4effa;

  --red: #d62839;
  --red-700: #b51f2f;
  --red-50: #fdecee;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(21, 19, 42, .04), 0 6px 20px rgba(21, 19, 42, .06);
  --shadow-lg: 0 20px 50px rgba(21, 19, 42, .14);

  /* Semantic tokens (light theme) */
  --fg: var(--text);
  --fg-strong: var(--ink);
  --fg-muted: var(--muted);
  --link: var(--blue);
  --accent: var(--purple);
  --border: var(--line);

  --font-head: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: 1.25rem;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

.theme-dark {
  --fg: rgba(255, 255, 255, .82);
  --fg-strong: #fff;
  --fg-muted: rgba(255, 255, 255, .62);
  --link: #fff;
  --accent: rgba(255, 255, 255, .72);
  --border: rgba(255, 255, 255, .14);
  color: var(--fg);
}
.theme-light {
  --fg: var(--text);
  --fg-strong: var(--ink);
  --fg-muted: var(--muted);
  --link: var(--blue);
  --accent: var(--purple);
  --border: var(--line);
  color: var(--fg);
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--fg-strong); line-height: 1.1; margin: 0 0 .5em; font-family: var(--font-head); letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-700); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-700); }
.btn--light { background: var(--soft); color: var(--ink); }
.btn--light:hover { background: var(--line); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--soft); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { border-color: #fff; }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

.eyebrow { margin: 0 0 .9rem; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 1.125rem; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.small-print { font-size: .875rem; opacity: .8; margin-top: 1.5rem; }

/* ---------- Urgent banner ---------- */
.alert { background: var(--ink); color: #fff; font-size: .9rem; }
.alert[hidden] { display: none; }
.alert__inner { display: flex; align-items: center; justify-content: center; gap: .75rem; padding-block: .6rem; text-align: center; }
.alert__inner p { margin: 0; }
.alert__inner a { color: #fff; font-weight: 600; margin-left: .25rem; }
.alert__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(214, 40, 57, .3); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(214, 40, 57, 0); } }
.alert__close { flex: none; margin-left: auto; width: 40px; height: 40px; margin-block: -.5rem; background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .6; }
.alert__close:hover { opacity: 1; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; padding-top: .75rem; }
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: 64px; padding: 0 .65rem 0 1.25rem; border-radius: 999px;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(1.6) blur(14px);
  border: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled .header__bar { border-color: var(--line); box-shadow: var(--shadow); }
.brand img { height: 44px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { display: flex; gap: .25rem; }
.nav ul a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--fg-strong); text-decoration: none; font-weight: 500; font-size: .925rem; transition: background-color .2s; }
.nav ul a:hover { background: var(--soft); }
.nav ul a.is-current { background: var(--blue-50); color: var(--blue); }
.nav__phone { color: var(--fg-strong); font-weight: 600; font-size: .925rem; text-decoration: none; white-space: nowrap; }
.burger { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 0; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { max-width: 34rem; color: var(--fg); margin-top: 1.25rem; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.5rem;
  padding: .4rem .9rem .4rem .7rem; border-radius: 999px; background: var(--soft);
  font-size: .85rem; font-weight: 500; color: var(--ink);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; }

.proof { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; }
.proof p { margin: 0; font-size: .9rem; color: var(--fg-muted); line-height: 1.4; }
.proof strong { color: var(--fg-strong); }
.proof__faces { display: flex; }
.proof__faces img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-left: -10px; }
.proof__faces img:first-child { margin-left: 0; }

.mosaic {
  position: relative; display: grid; gap: .9rem;
  grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1 / .92;
}
.mosaic > img, .mosaic__main { border-radius: var(--radius); overflow: hidden; width: 100%; height: 100%; object-fit: cover; }
.mosaic__main { grid-row: span 2; position: relative; background: var(--soft); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.slides img.is-active { opacity: 1; }
.mosaic__card {
  position: absolute; left: -1.5rem; bottom: 1.5rem; display: grid; grid-template-columns: auto auto; align-items: center; gap: .1rem .9rem;
  padding: 1rem 1.25rem; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  text-decoration: none; color: var(--text); transition: transform .2s;
}
.mosaic__card:hover { transform: translateY(-2px); }
.mosaic__card strong { grid-row: span 2; font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--blue); letter-spacing: -.03em; }
.mosaic__card span { font-size: .875rem; line-height: 1.3; }
.mosaic__arrow { position: absolute; right: -14px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .85rem; }

.values {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem); padding: 2rem 0 0; border-top: 1px solid var(--line);
}
.values li { display: flex; flex-direction: column; gap: .35rem; font-size: .925rem; color: var(--fg-muted); line-height: 1.45; }
.value__num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--fg-strong); letter-spacing: -.03em; line-height: 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--soft { background: var(--soft); }
.head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: 3rem; }
.head h2 { margin: 0; }
.head p:not(.eyebrow) { margin: 0; color: var(--fg-muted); font-size: 1.05rem; }
.head--controls > div:last-child { display: flex; flex-direction: column; gap: 1.25rem; }

/* ---------- Check lists ---------- */
.checks li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232b4ea2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4.5 8.5l2.2 2.2 4.8-5'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.checks--cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.theme-dark .checks li::before, .checks--light li::before { background-color: rgba(255, 255, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4.5 8.5l2.2 2.2 4.8-5'/%3E%3C/svg%3E"); }
.theme-light .checks li::before { background-color: var(--blue-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232b4ea2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4.5 8.5l2.2 2.2 4.8-5'/%3E%3C/svg%3E"); }
.note { margin: 1.25rem 0 0; font-size: .875rem; font-weight: 600; color: var(--accent); }

/* ---------- Services (tabs) ---------- */
.tabs { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; align-items: start; }
.tabs__list { display: flex; flex-direction: column; gap: .35rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.tabs__list button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.25rem; border-radius: 16px; transition: background-color .2s;
}
.tabs__list button:hover { background: var(--soft); }
.tabs__list button[aria-selected="true"] { background: var(--ink); }
.tabs__list button[aria-selected="true"] strong { color: #fff; }
.tabs__list button[aria-selected="true"] small, .tabs__list button[aria-selected="true"] .tabs__num { color: rgba(255, 255, 255, .6); }
.tabs__list button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tabs__list strong { display: block; color: var(--fg-strong); font-weight: 600; }
.tabs__list small { display: block; color: var(--fg-muted); font-size: .85rem; margin-top: .1rem; }
.tabs__num { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--blue); padding-top: .15rem; }
.tabs__panel { background: var(--soft); border-radius: var(--radius-lg); overflow: hidden; }
.tabs__panel[hidden] { display: none; }
.tabs__panel > img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.tabs__body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.tabs__body h3 { font-size: 1.6rem; }
.tabs__body .btn { margin-top: .5rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; font-size: .95rem; }
.cols h4 small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--fg-muted); font-size: .85rem; margin-top: .15rem; }

/* ---------- Adoption ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.toolbar__note { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .875rem; color: var(--fg-muted); }
.toolbar__note svg { flex: none; width: 18px; fill: var(--blue); }
.toolbar__note a { font-weight: 600; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; background: #fff; border-radius: 999px; box-shadow: var(--shadow); }
.chip {
  font: 500 .9rem var(--font-body); padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--fg-strong); border: 0; transition: background-color .2s, color .2s;
}
.chip span { color: var(--fg-muted); margin-left: .2rem; font-size: .8rem; }
.chip:hover { background: var(--soft); }
.chip.is-active { background: var(--ink); color: #fff; }
.chip.is-active span { color: rgba(255, 255, 255, .6); }

.animals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.animal button { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; }
.animal button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: var(--radius); }
.animal__img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.animal__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform .6s ease; }
.animal button:hover .animal__img img { transform: scale(1.05); }
.animal__tag {
  position: absolute; top: .75rem; left: .75rem; background: rgba(255, 255, 255, .92); color: var(--purple);
  font-size: .75rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px;
}
.animal__body { padding: .9rem .15rem 0; }
.animal__body h3 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.animal__body h3::after { content: "→"; font-family: var(--font-body); font-size: 1rem; color: var(--blue); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.animal button:hover h3::after { opacity: 1; transform: none; }
.animal__meta { margin: .15rem 0 0; font-size: .875rem; color: var(--fg-muted); }
.animal__cta { display: none; }

.bento { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.25rem; margin-top: 4rem; }
.bento__item { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); }
.bento__item h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.bento__item .checks { font-size: .95rem; }
.bento__item--dark { background: var(--ink); }
.bento__item--dark .btn { margin-top: .5rem; }

/* ---------- Colour panels (foster, donate, contact) ---------- */
.panel-wrap { padding: clamp(1rem, 3vw, 2rem) var(--gutter); }
.panel {
  max-width: calc(var(--container) + 8rem); margin: 0 auto; border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}
.panel--purple { background: var(--purple-900); }
.panel--blue { background: var(--blue); }
.panel--dark { background: var(--ink); }
.panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.panel__grid--top { align-items: start; }
.panel__img { border-radius: var(--radius); width: 100%; }

.perks__title { font-size: 1rem; margin-top: 2rem; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.perk { padding: 1rem; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.perk strong { display: block; color: var(--fg-strong); font-weight: 600; }
.perk small { font-size: .825rem; line-height: 1.35; display: block; margin-top: .2rem; }

.sheet { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.story__media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.story__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.story__media blockquote {
  margin: -4rem 1.5rem 0; position: relative; padding: 1.5rem 1.75rem; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-family: var(--font-head); font-size: 1.2rem; line-height: 1.35; color: var(--ink); letter-spacing: -.01em;
}
.story__media cite { display: block; margin-top: .6rem; font: 500 .875rem var(--font-body); color: var(--fg-muted); font-style: normal; }
.story__text .lead { color: var(--fg-strong); }

details.more { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
details.more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--blue); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-50); font-size: 1rem; transition: transform .2s; }
details.more[open] summary::after { transform: rotate(45deg); }
details.more[open] summary { margin-bottom: 1.25rem; }
.prose p { margin-bottom: 1.1em; }
.signature { font-family: var(--font-head); font-size: 1.25rem; color: var(--fg-strong); }

/* ---------- Wins ---------- */
.wins { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.win { display: grid; grid-template-columns: 42% 1fr; background: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.win img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: 50% 25%; }
.win__body { padding: clamp(1.5rem, 3vw, 2.25rem); align-self: center; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.tag--red { background: var(--red-50); color: var(--red-700); }
.tag--blue { background: var(--blue-50); color: var(--blue); }

/* ---------- Team carousel ---------- */
.carousel-nav { display: flex; gap: .5rem; }
.round {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.05rem; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.round:hover { border-color: var(--ink); }
.round:disabled { opacity: .35; cursor: default; }
.team {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 1.25rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.team::-webkit-scrollbar { display: none; }
.team li { scroll-snap-align: start; }
.team img { width: 100%; aspect-ratio: 1; object-position: 50% 30%; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.team span { display: block; margin-top: .7rem; font-weight: 600; color: var(--fg-strong); font-size: .95rem; }

/* ---------- Partners ---------- */
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-bottom: 3.5rem; }
.logos li { position: relative; min-width: 0; aspect-ratio: 1; border-radius: var(--radius); background: var(--soft); }
.logos img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.logos li:hover img { filter: none; opacity: 1; }

.directory { border-top: 1px solid var(--line); }
.directory__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem 3rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.directory__name h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.directory__name .quote { margin: 0 0 .5rem; color: var(--fg-muted); font-size: .9rem; }
.directory__name .link-arrow { font-size: .9rem; }
.directory__list li {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 7.5rem; gap: 1rem; align-items: baseline;
  padding: .55rem 0; font-size: .95rem;
}
.directory__list li + li { border-top: 1px dashed var(--line); }
.directory__list .city { font-weight: 600; color: var(--fg-strong); }
.directory__list a[href^="tel"] { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }

/* ---------- Contact ---------- */
.big-phone { display: inline-block; margin: 1rem 0 2rem; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--fg-strong); text-decoration: none; letter-spacing: -.03em; }
.big-phone:hover { opacity: .8; }
.meta li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .25rem 1rem; padding: .9rem 0; border-top: 1px solid var(--border); font-size: .95rem; }
.meta__label { color: var(--fg-muted); }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.socials a {
  display: inline-flex; align-items: center; min-height: 36px; padding: .35rem .9rem; border-radius: 999px;
  border: 1px solid var(--border); text-decoration: none; font-weight: 500; font-size: .9rem; transition: border-color .2s;
}
.socials a:hover { border-color: var(--fg-strong); }

.form { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.15rem; }
.field label, .field legend { display: block; font-weight: 600; color: var(--fg-strong); margin-bottom: .4rem; font-size: .9rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--soft); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); background: #fff; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.subjects { display: flex; flex-wrap: wrap; gap: .4rem; }
.subjects label { margin: 0; font-weight: 500; cursor: pointer; }
.subjects input { position: absolute; opacity: 0; pointer-events: none; }
.subjects span { display: inline-block; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); font-size: .875rem; transition: all .15s; }
.subjects label:hover span { border-color: var(--ink); }
.subjects input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.subjects input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form__status { margin: 1rem 0 0; font-weight: 600; font-size: .9rem; color: var(--blue); min-height: 1.4em; }
.form__status.is-error { color: var(--red-700); }

/* ---------- Footer ---------- */
.footer { padding: clamp(3.5rem, 7vw, 5rem) 0 0; font-size: .925rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__logo { height: 56px; width: auto; margin-bottom: 1rem; mix-blend-mode: multiply; }
.footer__grid p { max-width: 22rem; color: var(--fg-muted); }
.footer h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-muted); font-weight: 600; margin-bottom: 1rem; }
.footer li { margin-bottom: .5rem; color: var(--fg); }
.footer a { color: var(--fg-strong); text-decoration: none; }
.footer a:hover { color: var(--blue); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--fg-muted); font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* ---------- Modal ---------- */
.modal {
  width: min(960px, 100% - 2rem); max-height: calc(100% - 2rem); padding: 0; border: 0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); color: var(--fg); overflow: auto;
}
.modal::backdrop { background: rgba(21, 19, 42, .55); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal__grid { display: grid; grid-template-columns: 1fr 1.15fr; }
.modal__img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.modal__body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.modal__breed { margin: 0 0 .35rem; color: var(--purple); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.modal h3 { font-size: 2.25rem; letter-spacing: -.03em; margin-bottom: 1rem; }
.modal__facts { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.modal__facts li { background: var(--soft); color: var(--ink); font-weight: 500; font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; }
.modal__family { background: var(--purple-50); border-radius: 14px; padding: 1rem 1.15rem; margin-bottom: 1.25rem; font-size: .925rem; }
.modal__family strong { color: var(--purple); display: block; margin-bottom: .25rem; font-size: .85rem; }
.modal__family p { margin: 0; }
.modal__story { font-size: .95rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.modal__close {
  position: sticky; top: .9rem; z-index: 2; display: block; margin: .9rem .9rem -40px auto; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
body.has-modal { overflow: hidden; }

/* ---------- Text on photos ---------- */
.overlay { position: relative; overflow: hidden; }
.overlay > img { width: 100%; height: 100%; object-fit: cover; }
.overlay__content {
  position: absolute; inset: auto 0 0 0; padding: 3rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(21, 19, 42, .85), rgba(21, 19, 42, .45) 60%, transparent);
}

/* ---------- Mobile action bar ---------- */
.mobilebar { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav__phone { display: none; }
  .animals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: calc(100% + .5rem); left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: .75rem; padding: 1rem;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav { max-height: calc(100dvh - 7rem); overflow-y: auto; overscroll-behavior: contain; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: .8rem 1rem; font-size: 1rem; }
  .nav__phone { display: block; padding: .5rem 1rem; }
  .hero__grid, .panel__grid, .story, .head { grid-template-columns: 1fr; }
  .head { align-items: start; }
  .mosaic { max-width: 640px; }
  .mosaic__card { left: 1rem; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .tabs { grid-template-columns: 1fr; }
  .tabs__list {
    position: static; flex-direction: row; gap: .4rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__list button { flex: none; padding: .7rem 1rem; border-radius: 999px; background: var(--soft); scroll-snap-align: start; }
  .tabs__list small, .tabs__num { display: none; }
  .tabs__list strong { font-size: .925rem; }
  .story__media { position: static; max-width: 560px; }
  .wins, .bento { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory__row { grid-template-columns: 1fr; gap: .75rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .modal__grid { grid-template-columns: 1fr; }
  .modal__img { height: auto; min-height: 0; aspect-ratio: 4 / 3; max-height: 360px; }
}

@media (max-width: 640px) {
  :root { --gutter: 1rem; }
  .header { padding-top: .5rem; }
  .header__bar { padding-left: 1rem; }
  .brand img { height: 38px; }
  .nav .btn { width: 100%; }
  .alert { font-size: .825rem; }
  .btn { white-space: normal; text-align: center; }
  .actions .btn { width: 100%; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; }
  .mosaic__main { grid-column: 1 / -1; grid-row: auto; height: auto; aspect-ratio: 4 / 3; }
  .mosaic > img { height: auto; aspect-ratio: 1; }
  .mosaic__card { position: static; grid-column: 1 / -1; box-shadow: var(--shadow); }
  .mosaic__arrow { position: static; translate: none; grid-row: span 2; justify-self: end; }
  .mosaic__card { grid-template-columns: auto 1fr auto; }
  .values { gap: 1.5rem; }
  .value__num { font-size: 1.6rem; }
  .cols, .checks--cols, .form__row, .perks { grid-template-columns: 1fr; }
  .tabs__panel > img { aspect-ratio: 16 / 9; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 40px; padding: .5rem .9rem; }
  .animals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .85rem; }
  .win { grid-template-columns: 1fr; }
  .win img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .story__media blockquote { margin: -3rem .75rem 0; font-size: 1.05rem; }
  .team { grid-auto-columns: 62%; gap: .85rem; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory__list li { grid-template-columns: 1fr auto; gap: .1rem 1rem; }
  .directory__list li > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--fg-muted); }
  .directory__list li > a:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .meta li { grid-template-columns: 1fr; gap: .4rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .panel { border-radius: 24px; }
  .subjects span { padding: .6rem .95rem; }

  /* Quick view opens as a bottom sheet */
  .modal { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .modal[open] { animation: sheet .3s ease; }
  .modal__img { max-height: 300px; }
  .modal h3 { font-size: 1.85rem; }
  .modal__actions .btn { flex: 1 1 100%; }
  .modal__body { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }

  /* Always-visible quick actions */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobilebar {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .mobilebar .btn { padding: .75rem .5rem; font-size: .9rem; }
}
@keyframes sheet { from { transform: translateY(100%); } }

/* Touch screens: no hover, so show the affordances by default */
@media (hover: none) {
  .animal__body h3::after { opacity: 1; transform: none; }
  .animal button:hover .animal__img img { transform: none; }
  .logos img { filter: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
