/* Self-hosted variable fonts (SIL Open Font License), Hebrew + Latin subsets only */
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/assistant-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/assistant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/rubik-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

[hidden] { display: none !important; }

/* Palette sampled from the Dogtov flyer */
:root {
  --sky: #d0e7f4;
  --sky-deep: #a9cde3;
  --cream: #fbf5d9;
  --cream-soft: #fdf9e8;
  --mustard: #e4c456;
  --mustard-soft: #eedf9f;
  --navy: #1d3a55;
  --navy-soft: #3a5570;
  --logo-blue: #355a7f;
  --wa: #1fa855;
  --white: #fff;
  --rule: rgb(29 58 85 / 0.14);
  --mustard-hover: #ebcf6c;
  --shadow: 0 14px 32px -18px rgb(29 58 85 / 0.45);
  --shadow-raised: 0 18px 34px -18px rgb(29 58 85 / 0.55);
  --shadow-header: 0 6px 18px -14px rgb(29 58 85 / 0.6);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: "Assistant", "Arial Hebrew", Arial, sans-serif;
  --font-head: "Rubik", "Arial Hebrew", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  scrollbar-color: var(--logo-blue) var(--cream);
  accent-color: var(--logo-blue);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

::selection { background: var(--mustard); color: var(--navy); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  caret-color: var(--logo-blue);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-size-adjust: from-font;
  line-height: 1.6;
  text-align: start;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--logo-blue); text-underline-offset: 0.22em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--mustard); }

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(46rem, 100% - 2rem); }
.center { text-align: center; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--logo-blue); outline-offset: 3px; border-radius: 0.3rem; }

.icon { width: 1.25rem; height: 1.25rem; fill: currentColor; flex-shrink: 0; }

/* Header: same sky as the hero so the band reads as one surface */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--sky);
  transition: box-shadow 0.3s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.header-inner { display: flex; align-items: center; gap: 0.6rem; padding-block: 0.4rem; }
/* Keep the row's natural width measurable (script.js decides inline vs menu) */
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.brand { display: block; }
.brand img { width: clamp(4.25rem, 3.5rem + 2vw, 5.25rem); }
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-block-size: 2.75rem;
  min-inline-size: 2.75rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: 0.4rem 0.2rem;
}

/* Navigation, collapsed (the default, and the no-script layout): a menu button at the far end
   opening the list as a native popover panel */
.site-nav { order: 9; }
.menu-button {
  anchor-name: --menu-button;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-block-size: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.65);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out);
}
.menu-button:hover { background: var(--white); }
.nav-list {
  list-style: none;
  color: var(--navy);
  position: fixed;
  inset: auto;
  inset-block-start: 5.5rem; /* browsers without anchor() keep this */
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(80dvw, 18rem);
  max-block-size: calc(100dvh - 6rem);
  margin: 0.5rem 0 0;
  padding: 0.5rem;
  overflow: auto;
  border: 0;
  border-radius: 1.25rem;
  background: var(--cream-soft);
  box-shadow: var(--shadow-raised);
}
.nav-list::backdrop { background: rgb(29 58 85 / 0.18); }
.nav-list a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.nav-list a:hover { background: var(--sky); }
/* Current section: a navy underline (shape, not colour alone; navy on sky/cream is over 9:1) */
.nav-list a[aria-current="location"] {
  text-decoration: underline;
  text-decoration-color: var(--navy);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.45em;
}
@media (prefers-reduced-motion: no-preference) {
  .site-header:not(.is-wide) .nav-list {
    transition: opacity 0.2s var(--ease-out), translate 0.2s var(--ease-out), display 0.2s, overlay 0.2s;
    transition-behavior: allow-discrete;
  }
  .site-header:not(.is-wide) .nav-list:not(:popover-open) { opacity: 0; translate: 0 -0.5rem; }
  @starting-style {
    .site-header:not(.is-wide) .nav-list:popover-open { opacity: 0; translate: 0 -0.5rem; }
  }
}
.site-header.is-measuring * { transition: none !important; }

/* Navigation, inline: the row fits, so the same list sits right after the logo */
.site-header.is-wide .site-nav { order: 0; margin-inline-start: clamp(0.5rem, 1.5vw, 1.5rem); }
.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .nav-list {
  position: static;
  display: flex;
  gap: 1.75rem;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  translate: none;
}
.site-header.is-wide .nav-list a { padding: 0.4rem 0; border-radius: 0; }
.site-header.is-wide .nav-list a:hover {
  background: none;
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.45em;
}
.site-header.is-wide .nav-list a[aria-current="location"] { text-decoration-color: var(--navy); }
@media (forced-colors: active) {
  .nav-list a[aria-current="location"] { text-decoration-color: CanvasText; }
}
/* Instagram + Facebook: round 44px targets, line icons in the text colour */
.social { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid;
  place-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--navy);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.social a:hover { background: rgb(255 255 255 / 0.6); color: var(--logo-blue); }
.social .icon { width: 1.35rem; height: 1.35rem; }
.header-inner > .social { margin-inline-start: auto; }
/* Phones: the header phone keeps only its icon (the number is in its aria-label and in the hero) */
@media (max-width: 36rem) {
  .site-header:not(.is-wide) .header-phone bdi { display: none; }
  .header-phone .icon { width: 1.35rem; height: 1.35rem; }
}
/* Very narrow phones: the menu button's label is kept for screen readers only */
@media (max-width: 23rem) {
  .menu-button { padding-inline: 0.7rem; }
  .menu-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Buttons: the flyer's yellow pill is the primary action */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-block-size: 3.25rem;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.12rem;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), translate 0.25s var(--ease-out);
}
.btn-primary { background: var(--mustard); color: var(--navy); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--mustard-hover); translate: 0 -2px; box-shadow: var(--shadow-raised); }
.btn-primary:active { translate: 0 0; }
.btn-lg { min-block-size: 3.9rem; padding: 0.8rem 2.1rem; font-size: 1.25rem; }
.btn-lg .icon { width: 1.5rem; height: 1.5rem; }
/* The quiet button wraps its label in one span: a flex button would otherwise
   underline each word group separately, with a gap between them */
.btn-quiet { color: var(--navy); }
bdi { white-space: nowrap; }
.btn-quiet > span {
  text-decoration: underline;
  text-decoration-color: rgb(228 196 86 / 0.55);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
  transition: text-decoration-color 0.25s var(--ease-out);
}
.btn-quiet:hover > span { text-decoration-color: var(--mustard); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { translate: none; } }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-block: 1.75rem 0; }
.center .cta-row, .hero .cta-row { justify-content: center; }

/* Hero: heading in the sky, the photo rises out of it, the wave cuts across, like the flyer */
.hero {
  position: relative;
  background: var(--sky);
  padding-top: clamp(2rem, 5vw, 3.75rem);
  overflow: clip;
}
.lead { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); color: var(--navy-soft); max-width: 38rem; }
/* One grid cell for photo and text: the photo sits at the bottom, the text on its sky */
.hero-stage { display: grid; width: min(56rem, 100%); margin-inline: auto; }
.hero-stage > * { grid-area: 1 / 1; }
.hero-media { margin: 0; align-self: end; margin-top: clamp(7rem, 2rem + 9vw, 10rem); }
/* Feather the photo's edges so its sky melts into the band with no visible seam */
.hero-media img {
  width: 100%;
  mask-image:
    linear-gradient(to right, transparent, #000 9%, #000 91%, transparent),
    linear-gradient(to bottom, transparent, #000 14%);
  mask-composite: intersect;
}
.hero-text {
  position: relative;
  z-index: 1;
  align-self: start;
  justify-self: center;
  width: min(44rem, 100% - 2rem);
  text-align: center;
}
.hero-text .lead { margin-inline: auto; }
/* A soft glow of the sky behind the text keeps it readable where it crosses the photo */
.hero-text::before {
  content: "";
  position: absolute;
  inset: -12% -18% -22%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--sky) 62%, rgb(208 231 244 / 0));
}
@media (max-width: 56rem) {
  .hero-stage { display: flex; flex-direction: column; }
  .hero-text { order: -1; margin-inline: auto; }
  .hero-media { margin-top: clamp(1rem, 4vw, 2rem); }
}
.wave { display: block; width: 100%; height: clamp(2.75rem, 6vw, 5.5rem); fill: var(--cream); }
.hero .wave { position: absolute; inset-inline: 0; bottom: -1px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: rise 1.1s var(--ease-out) both; }
}
@keyframes rise {
  from { translate: 0 2.5rem; }
  to { translate: 0 0; }
}

/* Scroll motion, one idea: things are drawn in the reading direction (right to left),
   like the underline on the flyer. Only where scroll timelines exist and motion is welcome;
   everywhere else the default state is the finished, fully visible page. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section-title::after,
    .statement-text::after,
    .event h3::after {
      transform-origin: right center;
      animation: draw-bar linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 40%;
    }
  }
}
@keyframes draw-bar {
  from { scale: 0 1; }
  to { scale: 1 1; }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-soft { background: var(--cream-soft); }
.section-title { text-align: center; }
.section-title::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 0.45rem;
  margin: 0.9rem auto 0;
  border-radius: 999px;
  background: var(--mustard);
}
.section-title + * { margin-top: 2.25rem; }
.section-lead { text-align: center; font-size: 1.25rem; font-weight: 600; color: var(--navy-soft); }

/* Services: an editorial list, heading beside its text */
.services { list-style: none; padding: 0; margin-bottom: 0; border-top: 2px solid var(--rule); }
.services li {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2fr;
  gap: 0.5rem 3rem;
  align-items: baseline;
  padding-block: 1.75rem;
  border-bottom: 2px solid var(--rule);
}
.services h3 { margin: 0; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); }
.services p { margin: 0; color: var(--navy-soft); max-width: 60ch; }
@media (max-width: 44rem) { .services li { grid-template-columns: 1fr; } }

/* Statement band */
.statement { background: var(--navy); color: var(--cream); text-align: center; }
.statement-text { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.8rem); color: var(--cream); margin-bottom: 1rem; }
.statement-text::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 0.45rem;
  margin: 1.25rem auto 0;
  border-radius: 999px;
  background: var(--mustard);
}
.statement p { color: var(--sky); font-size: 1.2rem; max-width: 40rem; margin: 0 auto; }

.section-sky { background: var(--sky); }

/* Meet the dogs: round portraits like Naama's, no card boxes */
.dogs {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.dog { display: grid; justify-items: center; align-content: start; text-align: center; max-inline-size: 15rem; }
.dog-photo {
  width: clamp(10rem, 16vw, 13rem);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 0.5rem solid var(--cream-soft);
  box-shadow: var(--shadow);
  margin-bottom: 1.1rem;
}
.dog h3 { margin: 0 0 0.15rem; }
.dog-meta { margin: 0 0 0.4rem; font-weight: 700; color: var(--logo-blue); }
.dog p:last-child { margin: 0; color: var(--navy-soft); }
/* Phones: one row per dog, photo beside the text */
@media (max-width: 44rem) {
  .dogs { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .dog {
    grid-template-columns: auto 1fr;
    column-gap: 1.1rem;
    justify-items: start;
    align-items: center;
    text-align: start;
    max-inline-size: none;
  }
  .dog-photo { grid-row: span 3; width: 6.75rem; margin: 0; border-width: 0.35rem; }
  .dog h3, .dog .dog-meta, .dog p:last-child { grid-column: 2; }
  .dog h3 { align-self: end; }
  .dog p:last-child { align-self: start; }
}

/* Gallery: one tall feature photo, the rest in a tidy grid */
.gallery {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(9rem, 16vw, 14rem);
  gap: clamp(0.6rem, 1.5vw, 1rem);
}
.gallery li { border-radius: 1.5rem; overflow: hidden; background: var(--sky); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-feature { grid-row: span 2; }
/* The session video fills the tall cell (both are about 4:5) */
.gallery-video { position: relative; }
.gallery-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-toggle, .video-sound {
  position: absolute;
  inset-block-end: 0.75rem;
  inset-inline-start: 0.75rem;
  display: grid;
  place-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgb(29 58 85 / 0.72);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out);
}
.video-toggle:hover, .video-sound:hover { background: var(--navy); }
.video-toggle .icon, .video-sound .icon { width: 1.25rem; height: 1.25rem; }
.video-sound { inset-inline-start: 4.1rem; }
.video-sound .icon-sound-on, .gallery-video.has-sound .video-sound .icon-sound-off { display: none; }
.gallery-video.has-sound .video-sound .icon-sound-on { display: block; }
.video-toggle .icon-play, .gallery-video.is-paused .video-toggle .icon-pause { display: none; }
.gallery-video.is-paused .video-toggle .icon-play { display: block; }
.video-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 44rem) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(8rem, 38vw, 12rem); }
  .gallery li { border-radius: 1.1rem; }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 2.25rem;
  max-width: 52rem;
}
.chips li { background: var(--sky); border-radius: 999px; padding: 0.55rem 1.25rem; font-weight: 700; }
.text-link { font-weight: 700; font-size: 1.15rem; }

.about { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media { margin: 0; }
.about-media img {
  width: clamp(12rem, 24vw, 18rem);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 0.55rem solid var(--sky);
  box-shadow: var(--shadow);
}
.about-role { font-weight: 700; color: var(--logo-blue); }
.about-text p { max-width: 62ch; }
@media (max-width: 56rem) {
  .about { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about-text p { margin-inline: auto; }
}

/* Workshop: the flyer itself, as a working card */
.event {
  max-width: 44rem;
  margin-inline: auto;
  background: var(--cream-soft);
  border-radius: 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.event h3 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 800; margin-bottom: 0.3em; }
.event h3 span { display: block; font-size: 0.62em; font-weight: 700; margin-top: 0.35em; }
.event h3::after {
  content: "";
  display: block;
  width: 5rem;
  height: 0.4rem;
  margin: 1.1rem auto 0;
  border-radius: 999px;
  background: var(--mustard);
}
.event-sub { font-weight: 700; color: var(--navy-soft); max-width: 30rem; margin: 1rem auto 2rem; }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto 2rem; max-width: 32rem; }
.nowrap { white-space: nowrap; }
/* Very narrow phones: one column, so the date and hours never collide */
@media (max-width: 22rem) {
  .event .event-grid { grid-template-columns: 1fr; }
  .event .event-grid div:nth-child(odd) { border-inline-end: 0; }
  .event .event-grid div:not(:last-child) { border-bottom: 2px solid var(--rule); }
}
.event-grid div { padding: 1rem 0.5rem; }
.event-grid div:nth-child(odd) { border-inline-end: 2px solid var(--rule); }
.event-grid div:nth-child(-n + 2) { border-bottom: 2px solid var(--rule); }
.event-grid dt { font-weight: 700; color: var(--navy-soft); }
.event-grid dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  font-variant-numeric: tabular-nums;
}
.event-cta {
  display: block;
  background: var(--mustard-soft);
  color: var(--navy);
  border-radius: 1rem;
  padding: 1rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out);
}
.event-cta:hover { background: var(--mustard); }

/* Ready for real parent quotes (not in the page until there are some) */
.quotes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; }
.quotes blockquote { margin: 0 0 1rem; font-size: 1.25rem; }
.quote-by { margin: 0; font-weight: 700; color: var(--logo-blue); }

/* FAQ accordion (native details) */
.accordion details { border-bottom: 2px solid var(--rule); }
.accordion details:first-of-type { border-top: 2px solid var(--rule); }
.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75ch;
  padding: 1.15rem 0.25rem;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
}
.accordion summary:hover { color: var(--logo-blue); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: "";
  inline-size: 0.9em;
  block-size: 0.9em;
  flex-shrink: 0;
  background-color: var(--logo-blue);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8l8 8 8-8' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}
.accordion summary:dir(rtl)::before { rotate: 90deg; }
.accordion details[open] > summary::before { rotate: 0deg; }
.accordion details p { padding: 0 1.9rem 1.25rem 0.25rem; margin: 0; color: var(--navy-soft); }
.accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.accordion details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before { transition: rotate 0.25s var(--ease-out); }
  .accordion details::details-content {
    transition: block-size, content-visibility;
    transition-duration: 0.35s;
    transition-timing-function: var(--ease-out);
    transition-behavior: allow-discrete;
  }
}

/* Contact */
.contact { background: var(--sky); padding-bottom: clamp(3.5rem, 8vw, 5.5rem); }
.section-soft + .contact .wave-top { fill: var(--cream-soft); }
.contact-inner { padding-top: 1.25rem; }
.contact-logo { width: 8.5rem; margin: 0 auto 1rem; }
.contact .lead { margin-inline: auto; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  font-weight: 600;
}

.site-footer { background: var(--navy); color: var(--cream); padding-block: 1.25rem; text-align: center; font-size: 0.95rem; }
.site-footer p { margin: 0; }
.site-footer .social { justify-content: center; margin-bottom: 0.5rem; }
.site-footer .social a { color: var(--cream); }
.site-footer .social a:hover { background: rgb(251 245 217 / 0.12); color: var(--mustard-soft); }
.contact-links .with-icon { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem;
}
.footer-links a { color: var(--cream); text-decoration-color: var(--mustard); padding-block: 0.3rem; display: inline-block; }
.footer-links a:hover { color: var(--mustard-soft); }
.site-footer :focus-visible { outline-color: var(--mustard); }

/* Text pages: accessibility statement, privacy */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.doc h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); margin-top: 2.25em; }
.doc p, .doc li { max-width: 68ch; }
.doc-back { font-weight: 700; margin-bottom: 2rem; }
.doc-updated { text-align: center; color: var(--navy-soft); font-weight: 600; margin-top: 1.25rem; }
.doc-list { padding-inline-start: 1.25rem; }
.doc-list li { margin-bottom: 0.5rem; }
.doc-list li::marker { color: var(--logo-blue); }
.doc-contact { list-style: none; padding: 0; font-weight: 700; }
.doc-contact li { margin-bottom: 0.35rem; }

/* Floating WhatsApp button, phones only (icon only, so the green brand colour is safe) */
.wa-float {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: none;
  place-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: var(--shadow);
}
.wa-float svg { width: 1.9rem; height: 1.9rem; fill: var(--white); }
/* Hidden while another WhatsApp button is already on screen (hero CTA, contact) */
.wa-float { transition: opacity 0.25s var(--ease-out), visibility 0.25s, translate 0.25s var(--ease-out); }
.wa-float.is-hidden { opacity: 0; visibility: hidden; translate: 0 0.75rem; }
@media (prefers-reduced-motion: reduce) { .wa-float.is-hidden { translate: none; } }
@media (max-width: 56rem) {
  .wa-float { display: grid; }
  .site-footer { padding-bottom: 5.5rem; }
}

/* Team: the same sky, cream, wave and round portraits as the home page. */
.team-hero { position: relative; text-align: center; padding-block-end: clamp(6rem, 12vw, 9rem); }
.team-hero .wave { position: absolute; inset-inline: 0; inset-block-end: -1px; }
.team-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem); }
.team-eyebrow { font-weight: 700; color: var(--logo-blue); margin-block: 0 0.75rem; }
.team-founder-photo { inline-size: 18.75rem; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 0.5rem solid var(--sky); margin-inline: auto; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 3rem 2rem; padding: 0; margin-block: 3rem 0; list-style: none; }
.team-grid > li { min-inline-size: 0; }
.team-card { max-inline-size: 26rem; margin-inline: auto; }
.team-card img { inline-size: min(100%, 20rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 0.5rem solid var(--sky); margin-inline: auto; margin-block-end: 1.5rem; }
.team-card h3 { margin-block: 0 0.5rem; font-size: 1.6rem; text-align: center; }
.team-role { color: var(--logo-blue); font-weight: 700; text-align: center; }
.team-card p { white-space: pre-line; }
.team-dogs { border-block-start: 1px solid var(--rule); padding-block-start: 1rem; color: var(--navy-soft); }
