/* S. Baker Painting & Decorating
   Mobile-first: base = mobile (390px design), 640px+ = tablet, 1024px+ = desktop (1440px design). */

:root {
  /* Colour */
  --red: #d9131b;
  --red-hover: #b80f16;
  --ink: #2a241d;
  --text: #4a4238;
  --muted: #5a5145;
  --muted-2: #6b6153;
  --bg: #fdf9f1;
  --surface: #fff;
  --border: #eee5d6;
  --border-2: #e3d9c6;
  --footer-text: #cfc5b4;
  --focus: #1b55cf;
  --dot: #d8cdb9;

  /* Rainbow accents, from the logo */
  --r-green: #2aa04f;
  --r-yellow: #f2c200;
  --r-orange: #ef7d00;
  --r-red: #d9131b;
  --r-pink: #d61c7f;
  --r-purple: #6a35c9;
  --r-blue: #1b55cf;
  --r-sky: #1a9ee0;

  /* Type */
  --font-serif: 'Young Serif', Georgia, serif;
  --font-sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-h1: 36px;
  --fs-h2: 26px;

  /* Radius */
  --r-pill: 100px;
  --r-hero: 14px;
  --r-quote: 16px;
  --r-card: 14px;
  --r-gallery: 14px;
  --r-input: 10px;
  --r-drip: 8px;

  /* Layout */
  --content: 1120px;
  --gutter: 20px;
  --section-gap: 48px;   /* space above each section */
  --mobile-bar-h: 74px;
}

@media (min-width: 640px) {
  :root {
    --fs-h1: 52px;
    --fs-h2: 32px;
    --r-hero: 18px;
    --r-quote: 18px;
    --r-gallery: 12px;
    --gutter: 40px;
    --section-gap: 72px;
  }
}

@media (min-width: 1024px) {
  :root {
    --fs-h1: 68px;
    --fs-h2: 40px;
    --r-hero: 22px;
    --r-quote: 22px;
    --section-gap: 96px;
  }
}

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

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

[hidden] { display: none !important; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, p, figure, ul { margin: 0; }

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  text-wrap: pretty;
}

h2 { font-size: var(--fs-h2); line-height: 1.2; }

p { text-wrap: pretty; }

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

a { color: inherit; }

input, textarea, button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

[id] { scroll-margin-top: 16px; }

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

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  border-radius: var(--r-input);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }
.btn--primary:disabled { opacity: 0.7; cursor: progress; }

.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--bg); }

/* Large hero buttons: full width and stacked on mobile */
.btn--lg { min-height: 52px; width: 100%; }

@media (min-width: 640px) {
  .btn--lg { width: auto; }
}

@media (min-width: 1024px) {
  .btn--lg { min-height: 54px; padding: 0 32px; font-size: 17px; }
}

/* Plain text links drop to 0.8 opacity on hover */
.site-header__phone,
.site-nav__link,
.quote__phone,
.quote__inline-phone,
.site-footer a,
.form-error a,
.form-success a {
  transition: opacity 0.15s ease;
}
.site-header__phone:hover,
.site-nav__link:hover,
.quote__phone:hover,
.quote__inline-phone:hover,
.site-footer a:hover,
.form-error a:hover,
.form-success a:hover {
  opacity: 0.8;
}

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.site-header__logo { display: block; flex-shrink: 1; min-width: 0; }
.site-header__logo img { height: 44px; width: auto; }

.site-header__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav { display: none; }

@media (min-width: 640px) {
  .site-header__inner { min-height: 80px; }
  .site-header__logo img { height: 54px; }
  .site-header__phone { display: none; }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .site-nav__link { display: none; }

  .site-nav__call {
    min-height: 44px;
    padding: 0 22px;
    font-size: 15px;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  .site-header__inner { min-height: 88px; }
  .site-header__logo img { height: 60px; }

  .site-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    font-size: 15px;
    color: var(--muted);
    text-decoration: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 36px;
}

.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 17ch;
}

/* Small label above the headline (still part of the H1) */
.hero__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .hero__eyebrow { margin-bottom: 14px; font-size: 14px; }
}

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

.hero__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__trust {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.hero__trust strong { color: var(--ink); font-weight: 800; }

@media (min-width: 640px) {
  .hero { gap: 20px; padding-top: 52px; }
  .hero__lead { font-size: 19px; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .hero__trust { font-size: 15px; }
}

@media (min-width: 1024px) {
  .hero { gap: 24px; padding-top: 80px; }
  .hero h1 { line-height: 1.05; letter-spacing: -0.015em; max-width: 15ch; }
  .hero__lead { font-size: 21px; max-width: 46ch; }
  .hero__trust { font-size: 16px; }
}

/* ---------- Photos & placeholders ---------- */

.photo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: repeating-linear-gradient(45deg, #f2ebdd 0 9px, #eae1cf 9px 18px);
}

.photo__label {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-2);
  background: var(--bg);
  padding: 5px 9px;
  border-radius: 4px;
  text-align: center;
  margin: 10px;
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

/* With JS, images stay invisible until they've actually loaded (missing files keep the placeholder) */
.js .photo img:not(.is-loaded) { opacity: 0; }
.photo.has-photo { background: #eae1cf; }
.photo.has-photo > .photo__label { display: none; }

.photo--hero {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-hero) var(--r-hero) 0 0;
}

/* Keeps the Market Cross (spire to base) in frame in the wide desktop crop. Adjust if the hero photo changes. */
.photo--hero img { object-position: 50% 40%; }

/* Square bottom corners: the drip bars hang off the bottom edge */
.photo--van {
  aspect-ratio: 4 / 3;
  border-radius: 14px 14px 0 0;
}

@media (min-width: 640px) {
  .photo--hero { aspect-ratio: 16 / 8; }
}

@media (min-width: 1024px) {
  .photo--hero { aspect-ratio: 16 / 7; }
  .photo--van { border-radius: 16px 16px 0 0; }
}

/* ---------- Hero image + drips ---------- */

.hero-media { padding-top: 28px; }

.drips {
  display: flex;
  align-items: flex-start;
  height: 22px;
}
.drips span { flex: 1; height: var(--h); background: var(--c); }
.drips span:nth-child(1) { --c: var(--r-green);  --h: 9px; }
.drips span:nth-child(2) { --c: var(--r-yellow); --h: 14px; }
.drips span:nth-child(3) { --c: var(--r-orange); --h: 10px; }
.drips span:nth-child(4) { --c: var(--r-red);    --h: 12px; }
.drips span:nth-child(5) { --c: var(--r-pink);   --h: 9px; }
.drips span:nth-child(6) { --c: var(--r-purple); --h: 13px; }
.drips span:nth-child(7) { --c: var(--r-blue);   --h: 9px; }
.drips span:nth-child(8) { --c: var(--r-sky);    --h: 14px; }
.drips span:nth-child(even) { border-radius: 0 0 var(--r-drip) var(--r-drip); }

@media (min-width: 640px) {
  .hero-media { padding-top: 40px; }
  .drips span:nth-child(1) { --h: 12px; }
  .drips span:nth-child(2) { --h: 20px; }
  .drips span:nth-child(3) { --h: 14px; }
  .drips span:nth-child(4) { --h: 22px; }
  .drips span:nth-child(5) { --h: 12px; }
  .drips span:nth-child(6) { --h: 18px; }
  .drips span:nth-child(7) { --h: 13px; }
  .drips span:nth-child(8) { --h: 20px; }
}

@media (min-width: 1024px) {
  .hero-media { padding-top: 56px; }
}

/* Smaller drips for the van photo (same size on every screen) */
.drips.drips--sm { height: 14px; }
.drips.drips--sm span:nth-child(1) { --h: 9px; }
.drips.drips--sm span:nth-child(2) { --h: 14px; }
.drips.drips--sm span:nth-child(3) { --h: 10px; }
.drips.drips--sm span:nth-child(4) { --h: 12px; }
.drips.drips--sm span:nth-child(5) { --h: 9px; }
.drips.drips--sm span:nth-child(6) { --h: 13px; }
.drips.drips--sm span:nth-child(7) { --h: 9px; }
.drips.drips--sm span:nth-child(8) { --h: 14px; }

/* ---------- About ---------- */

.about {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 44px;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about__text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

@media (min-width: 640px) {
  .about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding-top: 64px;
  }
  .about__text p { font-size: 17px; }
}

@media (min-width: 1024px) {
  .about { gap: 64px; padding-top: 88px; }
  .about__text { gap: 16px; max-width: 52ch; }
}

/* ---------- Services ---------- */

.services,
.work { padding-top: var(--section-gap); }

.services h2,
.work h2 { margin-bottom: 16px; }

@media (min-width: 640px) {
  .services h2,
  .work h2 { margin-bottom: 22px; }
}

@media (min-width: 1024px) {
  .services h2,
  .work h2 { margin-bottom: 28px; }
}

.services__grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
  border-radius: var(--r-card);
  background: var(--card-bg);
}

.service h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  color: var(--card-title);
}

.service p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--card-text);
}

@media (min-width: 640px) {
  .services__grid { gap: 12px; }
  .service { padding: 20px 22px; }
  .service h3 { font-size: 17px; line-height: 1.3; }
  .service p { font-size: 15px; line-height: 1.55; }
}

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

.service--domestic   { --card-bg: #e7eefc; --card-title: #163f96; --card-text: #3a4560; }
.service--airless    { --card-bg: #fdf1cc; --card-title: #8a5a00; --card-text: #5a4a26; }
.service--hvlp       { --card-bg: #e2f2fb; --card-title: #0f6a9c; --card-text: #2f4f60; }
.service--kitchen    { --card-bg: #fde8d4; --card-title: #a24d00; --card-text: #5e4430; }
.service--commercial { --card-bg: #e3f3e8; --card-title: #16703a; --card-text: #34503d; }
.service--fire       { --card-bg: #eee7fb; --card-title: #5626a8; --card-text: #463a5e; }

/* ---------- Before & after ---------- */
/* Every tile is a before/after slider. Mobile: tiles sit in a swipe carousel, one per slide.
   Tablet/desktop: a 3-column grid. */

.pair {
  display: flex;
  flex-direction: column;
}

.pair figcaption {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* The two photos sit on top of each other inside one tile; the slider reveals one or the other */
.pair__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-gallery);
  overflow: hidden;
}

.shot {
  position: absolute;
  inset: 0;
}

/* Placeholder labels sit in the bottom corner of their own half */
.shot > .photo__label {
  position: absolute;
  bottom: 10px;
  max-width: calc(50% - 30px);
  margin: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.shot--before > .photo__label { left: 10px; text-align: left; }
.shot--after > .photo__label { right: 10px; text-align: right; }

/* Stripes run the other way on the "after" placeholder so the two halves are distinguishable */
.shot--after:not(.has-photo) {
  background-image: repeating-linear-gradient(-45deg, #f2ebdd 0 9px, #eae1cf 9px 18px);
}

/* No z-index: each badge stays inside its own photo layer, so the slider covers/reveals it with the photo */
.badge {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.badge--before { left: 12px; background: var(--ink); }
.badge--after { right: 12px; background: var(--red); }

/* Comparison slider (set up by main.js on every tile, photos or not) */
.pair__frame.is-compare {
  user-select: none;
  -webkit-user-select: none;
}

.pair__frame.is-compare .shot--after {
  clip-path: inset(0 0 0 var(--pos, 50%));
}

.ba__handle { display: none; }

.pair__frame.is-compare .ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  z-index: 4;
  width: 44px;
  margin-left: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  /* On mobile only the handle drags (the rest of the photo swipes the carousel) */
  touch-action: none;
}

.ba__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

.ba__knob {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.ba__handle:focus-visible { outline: none; }
.ba__handle:focus-visible .ba__knob {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Mobile carousel: one tile per slide */
.carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__track > .pair {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.carousel__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.carousel__dots span {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--dot);
  transition: width 0.2s ease, background-color 0.2s ease;
}
.carousel__dots span.is-active { width: 22px; background: var(--red); }

.carousel__arrows { display: flex; gap: 8px; }

.carousel__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.carousel__arrow:hover { background: var(--bg); }

@media (min-width: 640px) {
  .carousel__controls { display: none; }

  .carousel__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
  }

  .pair figcaption {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--muted-2);
  }

  /* No carousel here, so the whole photo can be dragged */
  .pair__frame.is-compare {
    cursor: ew-resize;
    touch-action: pan-y;
  }
}

@media (min-width: 1024px) {
  .carousel__track { gap: 20px; }
  .pair figcaption { margin-top: 8px; }
}

/* ---------- Quote ---------- */

.quote-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-quote);
}

.quote__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.quote__intro p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Inline number in the mobile sentence; padding gives it a 44px tap area without moving the text */
.quote__inline-phone {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
  font-weight: 800;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}

.quote__phone {
  display: none;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  font-size: 22px;
  color: var(--red);
  text-decoration: none;
}

@media (min-width: 640px) {
  .quote { gap: 24px; padding: 36px; }
  .quote__intro { gap: 12px; }
  .mobile-only { display: none; }
  .quote__phone { display: inline-flex; margin-top: -6px; }
}

@media (min-width: 1024px) {
  .quote {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    padding: 56px;
  }
  .quote__intro { gap: 14px; }
  .quote__intro p { font-size: 17px; }
  .quote__phone { font-size: 26px; }
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: grid;
  gap: 10px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-input);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

/* 16px on small screens stops iOS zooming into the field */
@media (max-width: 639px) {
  .field input,
  .field textarea { font-size: 16px; }
}

.field textarea { resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); opacity: 1; }

.field input:focus,
.field textarea:focus { border-color: var(--focus); }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--red); }

.field__error,
.form-error {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--red-hover);
}

.form-error { font-size: 15px; }

.form-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-2);
}
.form-note a { color: var(--ink); font-weight: 600; }

.quote-form__submit { min-height: 52px; width: 100%; }

@media (min-width: 640px) {
  .quote-form__submit { min-height: 48px; width: auto; align-self: flex-start; }
}

.form-success {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  padding: 18px 20px;
  background: #e3f3e8;
  border-radius: var(--r-card);
}
.form-success a { font-weight: 800; color: var(--ink); }
.form-success:focus { outline: none; }

/* Honeypot: hidden from people, visible to bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.site-footer {
  background: var(--ink);
  color: var(--footer-text);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer__inner {
  display: grid;
  gap: 16px;
  padding-top: 24px;
  /* room for the sticky mobile bar */
  padding-bottom: calc(24px + var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 640px) {
  .site-footer__inner {
    gap: 24px;
    padding-top: 26px;
    padding-bottom: 28px;
  }
}

@media (min-width: 1024px) {
  .site-footer__inner { gap: 32px; padding-top: 30px; padding-bottom: 32px; }
}

.site-footer h2 { margin-bottom: 4px; color: #fff; }

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.4;
}

.site-footer__heading {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 32px rows keep the two links close while staying well above the 24px minimum target size */
.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  text-decoration: none;
}

.site-footer__contact svg { flex-shrink: 0; }

.site-footer__email { overflow-wrap: break-word; min-width: 0; }

/* Small print row: trading name, privacy link, photo credit */
.site-footer__small {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
}

.site-footer__legal,
.site-footer__credit {
  font-size: 12px;
  line-height: 1.5;
  color: #a99f8e;
}
.site-footer__legal a,
.site-footer__credit a { text-decoration: underline; }

/* Pages without the sticky mobile bar (privacy notice) */
.site-footer__inner--simple { padding-bottom: 28px; }

/* ---------- Privacy notice ---------- */

.legal {
  max-width: calc(70ch + 2 * var(--gutter));
  padding-top: 40px;
  padding-bottom: 56px;
}

.legal h1 {
  font-size: var(--fs-h2);
  line-height: 1.2;
}

.legal h2 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 18px;
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.legal p + p { margin-top: 12px; }
.legal ul { margin: 8px 0 12px; padding-left: 22px; }
.legal a:not(.btn) { color: var(--ink); font-weight: 600; }

.legal__updated { margin-top: 6px; font-size: 14px !important; color: var(--muted-2) !important; }
.legal__back { margin-top: 36px; }

@media (min-width: 640px) {
  .legal { padding-top: 56px; padding-bottom: 72px; }
}

/* ---------- Mobile sticky bar ---------- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(253, 249, 241, 0.96);
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, visibility 0.2s;
}

.mobile-bar .btn { min-height: 50px; padding: 0; }

.mobile-bar.is-hidden {
  transform: translateY(110%);
  visibility: hidden;
}

@media (min-width: 640px) {
  .mobile-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
