/* ==========================================================================
   Bandits Dog Town — Stylesheet
   Structure: fonts → tokens → base → layout → components → utilities
   Every colour, spacing, font size, radius and shadow is a var(--token)
   defined below. No hardcoded values. The look comes from
   design_handoff/option-b/README.md.
   ========================================================================== */

/* ---- Fonts (self-hosted, no external requests) -------------------------- */

@font-face {
  font-family: 'Fredoka';
  src: url('../assets/fonts/fredoka-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fredoka';
  src: url('../assets/fonts/fredoka-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/nunito-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/nunito-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/nunito-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/nunito-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens --------------------------------------------------------------- */

:root {

  /* Colour: surfaces */
  --color-surface: #FFF3DC;
  --color-surface-alt: #FFFFFF;
  --color-surface-dark: #3A2417;
  --color-surface-dark-alt: #3A2417;
  --color-white: #FFFFFF;

  /* Colour: pastels. Fills only, never text on cream */
  --color-butter: #FFD66B;
  --color-pink: #F7C3D0;
  --color-sky: #A8D5F0;
  --color-sage: #BFE0C6;

  /* Colour: text */
  --color-ink: #3A2417;
  --color-ink-muted: #6E5444;
  --color-ink-soft: #6E5444;
  --color-ink-on-dark: #FFF3DC;
  --color-ink-on-dark-soft: #F3E6D3;
  --color-ink-on-dark-muted: #E8D9C2;

  /* Colour: accent (coral: CTAs, links, heading highlight). Do not lighten */
  --color-accent: #B0442A;
  --color-accent-hover: #7E3220;

  /* Colour: border */
  --color-border: #F2E2C4;
  --color-border-muted: #E8D9C2;
  --color-border-dark: #6E5444;
  --color-border-input: #6E5444;

  /* Colour: focus ring. Dark bands switch to butter, as coral fails on chocolate */
  --color-focus: #B0442A;
  --color-focus-on-dark: #FFD66B;

  /* Colour: feedback (form validation only) */
  --color-error: #B3261E;

  /* Type families */
  --font-display: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', -apple-system, 'Segoe UI', sans-serif;

  /* Type weights */
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Type scale (mobile-first, fluid) */
  --text-h1: clamp(2.625rem, 5.8vw, 4.5rem);
  --text-h2: clamp(2rem, 4vw, 3.125rem);
  --text-h3-lg: 1.75rem;
  --text-h3: 1.375rem;
  --text-display: clamp(2.125rem, 4.4vw, 3.375rem);
  --text-display-lg: clamp(2.25rem, 5vw, 3.75rem);
  --text-stat: 2.5rem;
  --text-subhead: 1.5rem;
  --text-lead: 1.1875rem;
  --text-badge-title: 1.125rem;
  --text-body-lg: 1.0625rem;
  --text-body: 1rem;
  --text-card: 0.9375rem;
  --text-small: 0.875rem;
  --text-micro: 0.8125rem;
  --text-wordmark: 1.875rem;
  --text-wordmark-sm: 1.25rem;
  --text-wordmark-sub: 0.9375rem;
  --text-wordmark-sub-sm: 0.75rem;

  --leading-tight: 1;
  --leading-heading: 1.08;
  --leading-lead: 1.55;
  --leading-body: 1.6;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;

  /* Radii */
  --radius-tail: 6px;
  --radius-sm: 12px;
  --radius-badge: 20px;
  --radius-md: 28px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* Blobs: organic shapes for fills and photo masks */
  --blob-hero-pink: 62% 38% 46% 54% / 55% 52% 48% 45%;
  --blob-hero-butter: 50% 50% 40% 60% / 60% 55% 45% 40%;
  --blob-portrait-back: 58% 42% 50% 50% / 50% 55% 45% 50%;
  --blob-portrait: 50% 50% 46% 54% / 44% 46% 54% 56%;
  --blob-photo-wide: 40% 60% 45% 55% / 18% 18% 22% 22%;
  --blob-closing: 58% 42% 52% 48% / 55% 50% 50% 45%;

  /* Shadows */
  --shadow-sm: 0 10px 20px rgba(58, 36, 23, 0.18);
  --shadow-md: 0 12px 24px rgba(58, 36, 23, 0.15);

  /* Sizes */
  --size-tap: 44px;
  --size-button: 50px;
  --size-carousel-btn: 52px;
  --size-step: 40px;
  --size-avatar: 40px;
  --size-photo-card: 140px;
  --size-float-lg: 104px;
  --size-float-md: 92px;
  --size-float-sm: 84px;
  --size-paw: 34px;
  --size-paw-sm: 22px;
  --size-paw-deco: 40px;
  --size-hero-stage: 560px;
  --size-hero-stage-narrow: 480px;
  --size-corner-circle: 420px;
  --size-corner-circle-sm: 180px;

  /* Border widths */
  --border-card: 2px;
  --border-float: 5px;
  --border-photo: 6px;

  /* Decorative touches */
  --opacity-blob: 0.9;
  --opacity-corner: 0.35;
  --opacity-paw: 0.35;
  --tilt-paw: 18deg;
  --tilt-paw-deco: -20deg;
  --tilt-badge: -3deg;
  --tilt-card: -2deg;
  --lift-card: -4px;

  /* Breakpoints (reference only — used directly in @media below) */
  --bp-sm: 600px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  /* Overall page width — the single place to widen or narrow the site */
  --container-max: 1200px;
  /* Header and footer run wider than the page content */
  --container-wide: 1680px;
}

/* ---- Base ------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-heading);
  margin: 0 0 var(--space-4);
  color: var(--color-ink);
}

h1 { font-size: var(--text-h1); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
}

ul, ol {
  padding-left: var(--space-6);
}

/* Focus — visible everywhere, never suppressed without replacement */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Dark bands: coral only reaches 2.57:1 on chocolate */
.section--dark,
.section--darkest,
.splitting,
.page-hero,
.trust-bar,
.site-footer,
.skip-link {
  --color-focus: var(--color-focus-on-dark);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Layout helpers ---------------------------------------------------------- */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

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

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

.section--dark {
  background: var(--color-surface-dark);
  color: var(--color-ink-on-dark);
}

.section--dark h2, .section--dark h3 {
  color: var(--color-ink-on-dark);
}

.section--alt {
  background: var(--color-surface-alt);
}

/* Darkest surface — any section that needs the deepest background
   (e.g. Sniffari Park "On barking"). */
.section--darkest {
  background: var(--color-surface-dark-alt);
  color: var(--color-ink-on-dark);
}

.section--darkest h2, .section--darkest h3 {
  color: var(--color-ink-on-dark);
}

.section--darkest p {
  color: var(--color-ink-on-dark-soft);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
  .section {
    padding-block: var(--space-11);
  }
}

/* Kicker: small rounded pill in a pastel fill */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-micro);
  line-height: var(--leading-lead);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-butter);
  color: var(--color-ink);
  margin-bottom: var(--space-4);
}

.kicker--sage { background: var(--color-sage); }
.kicker--sky { background: var(--color-sky); }
.kicker--pink { background: var(--color-pink); }
.kicker--white { background: var(--color-white); }

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-8);
}

.section-head p {
  font-size: var(--text-body-lg);
  color: var(--color-ink-muted);
}

.section-head--centred {
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.section--dark .section-head p {
  color: var(--color-ink-on-dark-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--color-surface-dark);
  color: var(--color-ink-on-dark);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ---- Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--size-button);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-card);
  line-height: var(--leading-heading);
  text-decoration: none;
  border: var(--border-card) solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-outline.btn-on-light {
  color: var(--color-accent);
}

.btn-outline.btn-on-light:hover,
.btn-outline.btn-on-light:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.btn-dark {
  background: var(--color-ink);
  color: var(--color-ink-on-dark);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-sage {
  background: var(--color-sage);
  color: var(--color-ink);
}

.btn-sage:hover,
.btn-sage:focus-visible {
  background: var(--color-butter);
}

.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.icon {
  flex-shrink: 0;
}

/* ---- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-block: var(--space-3);
  padding-inline: var(--space-5);
}

/* A type treatment, not a logo: the logo redraw is still an open item */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-wordmark-sm);
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  line-height: var(--leading-tight);
  white-space: nowrap;
}

.wordmark span {
  align-self: flex-end;
  font-weight: var(--weight-semibold);
  font-size: var(--text-wordmark-sub-sm);
  text-transform: none;
  color: var(--color-ink);
}

.wordmark-paw {
  width: var(--size-paw-sm);
  height: var(--size-paw-sm);
  transform: rotate(var(--tilt-paw));
  fill: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-actions .btn {
  white-space: nowrap;
  min-height: var(--size-tap);
  padding-inline: var(--space-3);
  font-size: var(--text-small);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size-tap);
  height: var(--size-tap);
  background: transparent;
  border: var(--border-card) solid var(--color-border-input);
  border-radius: var(--radius-circle);
  cursor: pointer;
  color: var(--color-ink);
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-card);
  color: var(--color-accent);
  text-decoration: none;
  padding-block: var(--space-1);
  border-bottom: var(--border-card) solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-accent-hover);
  border-bottom-color: var(--color-accent-hover);
}

.main-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

.nav-panel {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.nav-panel.is-open {
  display: block;
}

.nav-panel ul {
  list-style: none;
  margin: 0;
  padding: var(--space-3) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
}

.nav-panel a {
  display: block;
  padding: var(--space-3) 0;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-body-lg);
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: var(--color-accent-hover);
}

.nav-panel a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}

/* Tablet: links drop to a second row below the logo and button */
@media (min-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-inline: var(--space-6);
  }
  .wordmark {
    gap: var(--space-2);
    font-size: var(--text-wordmark);
  }
  .wordmark span {
    font-size: var(--text-wordmark-sub);
  }
  .wordmark-paw {
    width: var(--size-paw);
    height: var(--size-paw);
  }
  .header-actions .btn {
    min-height: var(--size-button);
    padding-inline: var(--space-6);
    font-size: var(--text-card);
  }
  .main-nav {
    display: block;
    order: 3;
    width: 100%;
    padding-bottom: var(--space-1);
  }
  .nav-toggle {
    display: none;
  }
  .nav-panel {
    display: none !important;
  }
}

/* Desktop: logo left, links centred, button right, all on one line */
@media (min-width: 1024px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-6);
    padding-inline: var(--space-8);
  }
  .main-nav {
    order: 0;
    width: auto;
    padding-bottom: 0;
  }
  .wordmark {
    justify-self: start;
  }
  .header-actions {
    justify-self: end;
  }
}

/* ---- Hero (text, Bandit on blobs) --------------------------------------------- */

/* Holds the hero and trust bar, and clips the blobs so they can never cause
   sideways scroll. The blobs run on behind the trust bar. */
.hero-wrap {
  overflow: hidden;
}

.hero {
  padding-block: var(--space-6) 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-micro);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-sage);
  color: var(--color-ink);
  margin-bottom: var(--space-5);
}

.hero-content h1 {
  margin-bottom: var(--space-6);
}

.headline-accent {
  color: var(--color-accent);
}

.hero-content p {
  color: var(--color-ink-muted);
  line-height: var(--leading-lead);
  max-width: 32em;
}

.hero-content .hero-lead {
  font-size: var(--text-lead);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  max-width: 28em;
  margin-bottom: var(--space-3);
}

.hero-content .btn-group {
  margin-top: var(--space-6);
}

/* The stage takes its height from its width on phones and tablets */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: var(--size-hero-stage-narrow);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.hero-blob {
  position: absolute;
  bottom: calc(-1 * var(--space-8));
}

.hero-blob--pink {
  left: 4%;
  right: -14%;
  top: 8%;
  background: var(--color-pink);
  border-radius: var(--blob-hero-pink);
}

.hero-blob--butter {
  left: 18%;
  right: 0;
  top: 20%;
  background: var(--color-butter);
  border-radius: var(--blob-hero-butter);
  opacity: var(--opacity-blob);
}

.hero-cutout {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: auto;
  transform: translateX(-46%);
}

/* Floating dog photos and the small paw: decorative, hidden on small phones */
.hero-float,
.hero-paw {
  display: none;
}

.hero-float {
  position: absolute;
  border-radius: var(--radius-circle);
  border: var(--border-float) solid var(--color-white);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.hero-float--pool {
  left: 0;
  top: 14%;
  width: var(--size-float-md);
  height: var(--size-float-md);
  object-position: 50% 40%;
}

.hero-float--meadow {
  right: 2%;
  top: 2%;
  width: var(--size-float-lg);
  height: var(--size-float-lg);
}

.hero-float--walk {
  right: -2%;
  bottom: 30%;
  width: var(--size-float-sm);
  height: var(--size-float-sm);
  object-position: 68% 60%;
}

.hero-paw {
  position: absolute;
  left: 30%;
  top: 0;
  width: var(--size-paw-deco);
  height: var(--size-paw-deco);
  fill: var(--color-accent);
  opacity: var(--opacity-paw);
  transform: rotate(var(--tilt-paw-deco));
}

/* Low on the stage, so it sits on his chest and never covers his face */
.hero-badge {
  position: absolute;
  left: 2%;
  bottom: var(--space-3);
  max-width: 96%;
  margin: 0;
  background: var(--color-white);
  border-radius: var(--radius-badge);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  transform: rotate(var(--tilt-badge));
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  line-height: var(--leading-lead);
}

.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-badge-title);
  color: var(--color-accent);
}

@media (min-width: 600px) {
  .hero-float,
  .hero-paw {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-6);
  }
  .hero-content {
    padding-bottom: var(--space-8);
  }
  .hero-stage {
    max-width: none;
    aspect-ratio: auto;
    height: var(--size-hero-stage);
    align-self: end;
  }
  .hero-badge {
    bottom: var(--space-9);
  }
}

/* Page hero — smaller header banner for inner pages */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-dark);
  color: var(--color-ink-on-dark);
  padding-block: var(--space-9);
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  color: var(--color-ink-on-dark);
  max-width: 760px;
}

.page-hero p {
  font-size: var(--text-body-lg);
  color: var(--color-ink-on-dark-soft);
  max-width: 620px;
}

/* Shrink the hero content to its own width and centre that block on the
   page. Text inside stays left-aligned. */
.page-hero .container {
  width: fit-content;
}

/* Soft coral circle in the corner of the chocolate bands */
.page-hero::before,
.splitting::before {
  content: "";
  position: absolute;
  right: calc(-1 * var(--space-9));
  top: calc(-1 * var(--space-9));
  width: var(--size-corner-circle-sm);
  height: var(--size-corner-circle-sm);
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  opacity: var(--opacity-corner);
}

@media (min-width: 768px) {
  .page-hero::before,
  .splitting::before {
    right: calc(-1 * var(--space-12));
    top: calc(-1 * var(--space-12));
    width: var(--size-corner-circle);
    height: var(--size-corner-circle);
  }
}

/* ---- Trust bar ---------------------------------------------------------------- */

.trust-strip {
  position: relative;
  padding-bottom: var(--space-3);
}

.trust-bar {
  list-style: none;
  margin: 0;
  background: var(--color-surface-dark);
  color: var(--color-ink-on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
  text-align: center;
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  line-height: var(--leading-lead);
}

.trust-figure {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-stat);
  line-height: var(--leading-heading);
}

.trust-bar li:nth-child(4n+1) .trust-figure { color: var(--color-butter); }
.trust-bar li:nth-child(4n+2) .trust-figure { color: var(--color-pink); }
.trust-bar li:nth-child(4n+3) .trust-figure { color: var(--color-sky); }
.trust-bar li:nth-child(4n+4) .trust-figure { color: var(--color-sage); }

.trust-more {
  margin: var(--space-3) 0 0;
  text-align: center;
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--color-ink-muted);
}

@media (min-width: 768px) {
  .trust-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: var(--space-7);
  }
}

/* ---- Who we are ---------------------------------------------------------------- */

.who-lead {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-subhead);
  line-height: var(--leading-heading);
  color: var(--color-accent);
}

.who-photo {
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: var(--space-8) auto 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--blob-photo-wide);
}

@media (min-width: 768px) {
  .who-photo {
    aspect-ratio: 21 / 9;
  }
}

/* ---- Cards: services ------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-11) var(--space-6);
  padding-top: var(--space-8);
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-6) var(--space-7);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.service-card:nth-child(3n+1) { background: var(--color-butter); }
.service-card:nth-child(3n+2) { background: var(--color-sage); }
.service-card:nth-child(3n+3) { background: var(--color-pink); }

/* Round photo overlapping the top edge */
.service-card-media {
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--space-9));
  transform: translateX(-50%);
  width: var(--size-photo-card);
  height: var(--size-photo-card);
  overflow: hidden;
  border-radius: var(--radius-circle);
  border: var(--border-photo) solid var(--color-surface);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: var(--text-h3-lg);
  margin-bottom: var(--space-3);
}

.service-card-body p {
  font-size: var(--text-card);
  margin-bottom: var(--space-5);
}

/* Link pinned to the bottom and centred, so all three line up */
.service-card-body .btn {
  margin-top: auto;
  align-self: center;
}

.addon {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-muted);
}

.addon h3 {
  margin-bottom: var(--space-2);
}

/* ---- Reasons (Why Bandits) -------------------------------------------------- */

.reasons-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.reason {
  background: var(--color-white);
  border: var(--border-card) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.reason h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.reason p {
  font-size: var(--text-card);
}

.reason:last-child {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.reason:last-child h3 {
  color: var(--color-white);
}

@media (min-width: 768px) {
  .reasons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reason:last-child {
    grid-column: 1 / -1;
  }
}

/* Three then two, so no gap is left on the second row */
@media (min-width: 1024px) {
  .reasons-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .reason {
    grid-column: span 2;
  }
  .reason:nth-child(n+4),
  .reason:last-child {
    grid-column: span 3;
  }
}

@media (min-width: 1280px) {
  .reasons-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .reason,
  .reason:nth-child(n+4),
  .reason:last-child {
    grid-column: auto;
  }
}

/* Small lift and tilt on hover. Off entirely under reduced motion. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-card,
  .reason {
    transition: transform 0.3s ease;
  }
  .service-card:hover,
  .reason:hover {
    transform: rotate(var(--tilt-card)) translateY(var(--lift-card));
  }
}

/* ---- Meet Bandit (splitting, signature homepage element) ---------------------- */

.splitting {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-dark-alt);
  color: var(--color-ink-on-dark);
}

.splitting-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.splitting-media {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}

.splitting-media::before {
  content: "";
  position: absolute;
  inset: 6% -3% -3% 6%;
  background: var(--color-butter);
  border-radius: var(--blob-portrait-back);
}

.splitting-media img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--blob-portrait);
}

.splitting-copy h2 {
  font-size: var(--text-display);
  color: var(--color-ink-on-dark);
}

.splitting-copy p {
  color: var(--color-ink-on-dark-soft);
  font-size: var(--text-body-lg);
}

.splitting-copy strong {
  color: var(--color-butter);
}

.splitting-steps {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: var(--space-3);
}

.splitting-steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-card);
  font-weight: var(--weight-semibold);
}

.splitting-steps li::before,
.steps-list li::before {
  content: counter(step);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size-step);
  height: var(--size-step);
  border-radius: var(--radius-circle);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-badge-title);
}

.splitting-steps li:nth-child(3n+1)::before,
.steps-list li:nth-child(3n+1)::before { background: var(--color-pink); }
.splitting-steps li:nth-child(3n+2)::before,
.steps-list li:nth-child(3n+2)::before { background: var(--color-butter); }
.splitting-steps li:nth-child(3n+3)::before,
.steps-list li:nth-child(3n+3)::before { background: var(--color-sage); }

@media (min-width: 1024px) {
  .splitting-layout {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: var(--space-9);
  }
}

/* ---- Reviews -------------------------------------------------------------- */

.reviews-band {
  background: var(--color-sky);
  --color-focus: var(--color-ink);
}

/* Heading on the left, carousel arrows on the right */
.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.reviews-head .section-head {
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.carousel-controls[hidden] {
  display: none;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size-carousel-btn);
  height: var(--size-carousel-btn);
  padding: 0;
  background: var(--color-white);
  border: var(--border-card) solid transparent;
  border-radius: var(--radius-circle);
  color: var(--color-ink);
  cursor: pointer;
}

.carousel-btn[data-carousel-next] {
  background: var(--color-ink);
  color: var(--color-white);
}

.carousel-btn:hover:not(:disabled) {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Nothing further that way: outline only, so it clearly reads as switched off */
.carousel-btn:disabled,
.carousel-btn[data-carousel-next]:disabled {
  background: transparent;
  border-color: var(--color-ink-muted);
  color: var(--color-ink-muted);
  cursor: default;
}

/* Carousel: a sideways-scrolling list with scroll snap. Arrow buttons
   (main.js) move it a page at a time; swiping still works on touch.
   Next card peeks in from the right so it's obvious there's more. */
.review-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--color-ink-muted) transparent;
}

/* Once the arrows are working, the scrollbar is redundant */
.review-carousel.has-controls {
  scrollbar-width: none;
}

.review-carousel.has-controls::-webkit-scrollbar {
  display: none;
}

.review-carousel:focus-visible {
  outline-offset: var(--space-1);
  border-radius: var(--radius-md);
}

.review-carousel > li {
  scroll-snap-align: start;
  display: flex;
}

/* position: relative keeps the hidden "Rated 5 out of 5" text inside the
   carousel, otherwise it widens the whole page */
.review-card {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* White speech bubble: square corner points at the person below */
.review-bubble {
  flex-grow: 1;
  background: var(--color-white);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-tail);
  padding: var(--space-6);
}

.review-stars {
  display: flex;
  gap: 2px;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.review-card blockquote {
  margin: 0;
  font-size: var(--text-card);
}

.review-card blockquote p + p {
  margin-top: var(--space-3);
}

.review-card figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-small);
  line-height: var(--leading-lead);
}

.review-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size-avatar);
  height: var(--size-avatar);
  border-radius: var(--radius-circle);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
}

.review-carousel > li:nth-child(3n+1) .review-avatar { background: var(--color-butter); }
.review-carousel > li:nth-child(3n+2) .review-avatar { background: var(--color-pink); }
.review-carousel > li:nth-child(3n+3) .review-avatar { background: var(--color-sage); }

/* Ink, as muted text only reaches 4.46:1 on sky */
.review-dog {
  display: block;
  font-weight: var(--weight-semibold);
  font-size: var(--text-micro);
}

@media (min-width: 768px) {
  .review-carousel {
    grid-auto-columns: calc((100% - var(--space-6)) / 2.15);
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .review-carousel {
    grid-auto-columns: calc((100% - 2 * var(--space-6)) / 3.15);
  }
}

/* ---- Closing (centred on a big butter blob) ------------------------------------ */

.closing {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: var(--space-12);
}

.closing::before {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--space-6);
  bottom: var(--space-6);
  width: 125%;
  max-width: 820px;
  transform: translateX(-50%);
  background: var(--color-butter);
  border-radius: var(--blob-closing);
}

.closing .container {
  position: relative;
}

.closing h2 {
  font-size: var(--text-display-lg);
}

.closing .btn-group {
  justify-content: center;
}

.closing p {
  font-size: var(--text-body-lg);
  font-weight: var(--weight-semibold);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

/* ---- Content blocks (About / Sniffari / static copy) -------------------------- */

.content-block {
  max-width: 720px;
}

.content-block + .content-block {
  margin-top: var(--space-8);
}

/* Centres the block on the page; text inside stays left-aligned */
.content-block--centred {
  margin-inline: auto;
}

/* Wider measure for a section that stands on its own, e.g. Who we are */
.content-block--wide {
  max-width: 880px;
}

.media-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.media-block img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 65%;
}

.media-block--portrait img {
  aspect-ratio: 3 / 4;
  object-position: center;
}

@media (min-width: 1024px) {
  .media-block {
    grid-template-columns: 1fr 1fr;
  }
  /* Smaller image (a third of the width), text lined up with its top */
  .media-block--small-media {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
  .media-block--reverse {
    direction: rtl;
  }
  .media-block--reverse > * {
    direction: ltr;
  }
}

.list-check {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: grid;
  gap: var(--space-3);
}

.list-check li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--color-ink-muted);
}

.list-check svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent);
}

.list-check + p {
  margin-top: var(--space-5);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: var(--space-6);
}

.steps-list li {
  counter-increment: step;
  display: flex;
  gap: var(--space-4);
}

.steps-list h3 {
  margin-bottom: var(--space-1);
}

.steps-list p {
  color: var(--color-ink-muted);
}

/* ---- FAQ accordion ------------------------------------------------------------ */

.faq-list {
  display: grid;
  gap: var(--space-3);
}

.faq-item h2 {
  margin: 0;
  font: inherit;
}

.faq-item {
  background: var(--color-white);
  border: var(--border-card) solid var(--color-border);
  border-radius: var(--radius-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  text-align: left;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-body-lg);
  color: var(--color-ink);
  cursor: pointer;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question .chevron {
  flex-shrink: 0;
  transition: transform 0.15s ease;
  color: var(--color-accent);
}

.faq-question[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  max-width: 680px;
  color: var(--color-ink-muted);
}

.faq-answer[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  .faq-question {
    cursor: default;
  }
  .faq-question:hover {
    color: var(--color-ink);
  }
  .faq-question .chevron {
    display: none;
  }
  .faq-answer[hidden] {
    display: block;
  }
}

/* ---- Form ---------------------------------------------------------------------- */

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-8);
}

.form-fieldset legend {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-h3);
  padding: 0 0 var(--space-5);
  color: var(--color-ink);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .form-grid--2col {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-small);
  color: var(--color-ink);
}

.field input,
.field select,
.field textarea {
  background: var(--color-white);
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-ink);
  min-height: var(--size-tap);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}

/* Spans both columns of a two-column form */
.field--full {
  grid-column: 1 / -1;
}

.field .hint {
  font-size: var(--text-small);
  color: var(--color-ink-soft);
  margin: 0;
}

.field-radios {
  display: flex;
  gap: var(--space-5);
}

.field-radios label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-regular);
}

/* Error styling only after the visitor has actually left a field with an
   invalid value in it — never on first load. None of these inputs carry
   placeholder text, so the common :invalid:not(:placeholder-shown) trick
   would flag every empty required field before anyone's typed anything;
   :user-invalid (widely supported in current browsers) waits for real
   interaction. Browsers without it simply fall back to native validation
   on submit, which is a safe degradation. */
.field input:user-invalid {
  border-color: var(--color-error);
}

/* honeypot — hidden from everyone but bots */
.field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Footer -------------------------------------------------------------------- */

.site-footer {
  background: var(--color-surface-dark-alt);
  color: var(--color-ink-on-dark-muted);
  font-size: var(--text-small);
}

.site-footer .container {
  max-width: var(--container-wide);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  padding-block: var(--space-9) var(--space-6);
}

.footer-brand .wordmark {
  color: var(--color-butter);
  font-size: var(--text-wordmark);
}

.footer-brand .wordmark span {
  color: var(--color-ink-on-dark);
  font-size: var(--text-wordmark-sub);
}

.footer-brand p {
  margin-top: var(--space-3);
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-body-lg);
  color: var(--color-pink);
  margin-bottom: var(--space-3);
}

.footer-grid > div:nth-child(3) .footer-heading {
  color: var(--color-sky);
}

.footer-areas {
  margin: 0;
}

.footer-grid p {
  margin-bottom: 0;
}

.site-footer a:not(.btn):not(.wordmark) {
  color: var(--color-ink-on-dark);
}

.footer-legal {
  padding-block: var(--space-4) var(--space-7);
  font-size: var(--text-micro);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
}

.footer-legal p {
  margin: 0;
}

.site-footer .footer-legal a {
  color: var(--color-ink-on-dark-muted);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-footer .container {
    padding-inline: var(--space-8);
  }
}

/* ---- Land enquiry form (expansion.html) ----------------------------------------- */

.land-form-heading {
  margin-top: var(--space-8);
}

.land-form-submit {
  margin-top: var(--space-6);
}

/* ---- Newsletter (updates.html) ------------------------------------------------ */

.issue-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  gap: var(--space-2);
}

.newsletter h3 {
  margin-top: var(--space-8);
}

.newsletter h4 {
  font-size: var(--text-body-lg);
  margin-top: var(--space-6);
}

.newsletter-photo {
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-4);
}

.holiday-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
}

.holiday-table th,
.holiday-table td {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border-muted);
}

.holiday-table th {
  font-weight: var(--weight-bold);
}

.newsletter-original {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-muted);
  font-size: var(--text-small);
}

/* ---- Utilities ------------------------------------------------------------------ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
