/* =============================================================
   Bright Laundrette & Dry Cleaner — design system
   ============================================================= */

:root {
  /* Colour */
  --paper: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F3EFE8;
  --ink: #151619;
  --ink-soft: #5B5E66;
  --ink-mute: #8A8578;
  --line: #E7E1D6;
  --accent: #1E5B46;
  --accent-2: #C08A3A;
  --accent-contrast: #FFFFFF;
  --accent-dark: #173F31;
  --focus-ring: 0 0 0 3px rgba(30, 91, 70, 0.28);

  /* Phase 12 — centralised design tokens.
     These default to the values above so colours are unchanged until the
     Design & Appearance settings override them. */
  --heading: var(--ink);
  --link: var(--accent);
  --card-bg: var(--surface);
  --accent-line: var(--accent-2-ink, var(--accent-2));
  --danger: #B42318;
  --btn-primary-bg: var(--ink);
  --btn-primary-fg: var(--paper);
  --btn-secondary-bg: transparent;
  --btn-secondary-fg: var(--ink);
  --input-bg: var(--surface);
  --input-text: var(--ink);
  --hero-overlay: transparent;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.125rem, 1.6vw, 1.3125rem);

  /* Fluid display sizes */
  --fs-h1: clamp(2.375rem, 4.6vw + 1rem, 4rem);
  --fs-h2: clamp(1.875rem, 3vw + 0.6rem, 2.75rem);
  --fs-h3: clamp(1.375rem, 1.6vw + 0.5rem, 1.625rem);
  --fs-h4: clamp(1.125rem, 1vw + 0.7rem, 1.375rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(4rem, 9vw, 7.5rem);
  --section-space-sm: clamp(2.5rem, 6vw, 4.5rem);

  /* Borders & shadows */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --btn-radius: 999px;
  --border: 1px solid var(--line);
  --shadow-sm: 0 1px 2px rgba(21, 22, 25, 0.05);
  --shadow: 0 1px 2px rgba(21, 22, 25, 0.05), 0 14px 34px -20px rgba(21, 22, 25, 0.18);
  --shadow-lg: 0 2px 4px rgba(21, 22, 25, 0.05), 0 30px 60px -30px rgba(21, 22, 25, 0.28);

  /* Layout extras */
  --header-bg: transparent;
  --footer-bg: transparent;
  --header-ink: var(--ink);
  --header-muted: var(--ink-soft);
  --header-line: var(--line);
  --footer-ink: var(--ink-soft);
  --footer-muted: var(--ink-mute);
  --footer-line: var(--line);
  --heading-weight: 500;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.35s;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--heading-weight, 500);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--sec-ink, var(--heading));
  text-wrap: balance;
}

p { color: var(--sec-muted, var(--ink-soft)); }
strong, b { font-weight: 600; color: var(--sec-ink, var(--ink)); }

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* ----- Layout utilities ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-space); }
.section--sm { padding-block: var(--section-space-sm); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sec-accent, var(--link));
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--sec-accent, var(--accent-line)); }

.section-head { max-width: 660px; }
.section-head h2 { margin: 0.75rem 0 1rem; }
.section-head .lede { font-size: var(--text-lg); line-height: 1.6; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--sec-accent, var(--accent-line)); }

.lede { color: var(--sec-muted, var(--ink-soft)); }

/* ----- Buttons ----- */
.btn {
  --btn-bg: var(--btn-primary-bg, var(--ink));
  --btn-fg: var(--btn-primary-fg, var(--paper));
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.45rem;
  border-radius: var(--btn-radius, var(--radius-pill));
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn--primary { --btn-bg: var(--sec-btn-bg, var(--btn-primary-bg, var(--ink))); --btn-fg: var(--sec-btn-fg, var(--btn-primary-fg, var(--paper))); }
.btn--primary:hover { --btn-bg: var(--sec-accent, var(--accent)); }

.btn--accent { --btn-bg: var(--sec-accent, var(--accent)); --btn-fg: var(--sec-accent-contrast, var(--accent-contrast)); }
.btn--accent:hover { --btn-bg: var(--accent-dark); }

.btn--outline { --btn-bg: var(--btn-secondary-bg, transparent); --btn-fg: var(--sec-ink, var(--btn-secondary-fg, var(--ink))); --btn-bd: var(--sec-line, var(--line)); }
.btn--outline:hover { --btn-bd: var(--sec-ink, var(--ink)); }

.btn--sm { padding: 0.7rem 1.1rem; font-size: var(--text-xs); }
.btn--lg { padding: 1.05rem 1.7rem; font-size: var(--text-base); }

/* Editorial arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--sec-ink, var(--ink));
  padding-bottom: 0.25rem;
  position: relative;
}
.arrow-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--sec-line, var(--line));
  transition: background var(--dur) var(--ease);
}
.arrow-link svg { transition: transform var(--dur) var(--ease); }
.arrow-link:hover::after { background: var(--sec-ink, var(--ink)); }
.arrow-link:hover svg { transform: translateX(3px); }

/* ============ Header / navigation ============ */
.topbar {
  border-bottom: 1px solid var(--header-line, var(--line));
  background: var(--header-bg, var(--paper));
  font-size: var(--text-xs);
  color: var(--header-muted, var(--ink-soft));
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  padding-block: 0.45rem;
}
.topbar__meta { display: flex; align-items: center; gap: 0.875rem; }
.topbar__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--header-line, var(--line)); }
.topbar__note { color: var(--header-ink, var(--ink)); font-weight: 500; }
.topbar__phone { font-variant-numeric: tabular-nums; }
.topbar__phone:hover { color: var(--link); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg, var(--paper));
  border-bottom: 1px solid var(--header-line, var(--line));
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 12px 30px -26px rgba(21, 22, 25, 0.45);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* Brand text inherits the correct foreground for its region. */
.site-header .brand__name { color: var(--header-ink, var(--ink)); }
.site-header .brand__sub { color: var(--header-muted, var(--ink-soft)); }
.footer-brand .brand__name { color: var(--footer-ink, var(--ink)); }
.footer-brand .brand__sub { color: var(--footer-muted, var(--ink-soft)); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.nav__link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--header-muted, var(--ink-soft));
  padding: 0.4rem 0;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--header-ink, var(--ink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--header-ink, var(--ink)); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 10px;
  background: none;
  border: 1px solid var(--header-line, var(--line));
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--header-ink, var(--ink));
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--header-bg, var(--paper));
  padding: 6.5rem var(--gutter) 2rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}
.mobile-menu__link {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  padding: 0.9rem 0;
  color: var(--header-ink, var(--ink));
  border-bottom: 1px solid var(--header-line, var(--line));
}
.mobile-menu__link:hover { color: var(--link); }
.mobile-menu__call { align-self: flex-start; margin-top: 1.5rem; }

body.nav-open { overflow: hidden; }
body.nav-open .mobile-menu { display: flex; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.btn--call-label--short { display: none; }

@media (max-width: 899px) {
  .nav { display: none; }
  .site-header__inner { gap: 1rem; }
  .site-header__actions { gap: 0.5rem; }
  .site-header__actions .btn--call {
    padding: 0.55rem 0.9rem;
    font-size: var(--text-xs);
    gap: 0.4rem;
    flex-shrink: 0;
  }
  .site-header__actions .btn--call .btn--call-label--full { display: none; }
  .site-header__actions .btn--call .btn--call-label--short { display: inline; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .topbar__note,
  .topbar__dot { display: none; }
}
@media (max-width: 380px) {
  .site-header__inner { gap: 0.75rem; }
  .site-header .brand__name { font-size: 1rem; }
}
@media (max-width: 480px) {
  .topbar__address { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--footer-bg, var(--surface));
  border-top: 1px solid var(--footer-line, var(--line));
  margin-top: var(--section-space);
}
.site-footer__main {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-brand p {
  margin-top: 0.9rem;
  max-width: 34ch;
  font-size: var(--text-sm);
  color: var(--footer-muted, var(--ink-soft));
}
.footer-brand .brand__name { font-size: 1.5rem; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-muted, var(--ink-mute));
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: var(--text-sm); color: var(--footer-muted, var(--ink-soft)); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--footer-ink, var(--ink)); }
.footer-col li { font-size: var(--text-sm); color: var(--footer-muted, var(--ink-soft)); }
.footer-col li a[href^="tel"] { color: var(--footer-ink, var(--ink)); }

.site-footer__bottom {
  border-top: 1px solid var(--footer-line, var(--line));
}
.site-footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  font-size: var(--text-xs);
  color: var(--footer-muted, var(--ink-soft));
}
.site-footer__bottom a:hover { color: var(--footer-ink, var(--link)); }

/* ----- Skip link & focus ----- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ----- Reveal on scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   Homepage
   ============================================================= */

/* ----- Reveal stagger utilities ----- */
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }

/* ----- Hero ----- */
.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  max-width: 15ch;
  margin-top: 1.35rem;
  font-size: clamp(2.6rem, 5.4vw + 0.75rem, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero__lead {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: var(--text-lg);
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.7rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sec-line, var(--line));
  font-size: var(--text-sm);
  color: var(--sec-muted, var(--ink-soft));
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.hero__points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sec-accent, var(--accent-line));
  flex: none;
}

.hero__media {
  position: relative;
  align-self: stretch;
  min-height: 460px;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--sec-surface, var(--surface-2));
}
.hero__stamp {
  position: absolute;
  left: -1.4rem;
  bottom: 2rem;
  padding: 1rem 1.35rem;
  background: var(--card-bg, var(--sec-surface, var(--surface)));
  border: 1px solid var(--sec-line, var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__stamp-amount {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1;
  color: var(--sec-ink, var(--ink));
}
.hero__stamp-label {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sec-muted, var(--ink-mute));
}

/* ── Hero slider (multi-image carousel) ─────────────────────── */

.hero-slider__stage {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--sec-surface, var(--surface-2));
}

/* Optional hero image overlay (Design & Appearance → Global backgrounds).
   Defaults to fully transparent, so the design is unchanged until set. */
.hero__media::after,
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--hero-overlay, transparent);
  pointer-events: none;
  z-index: 2;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease;
  pointer-events: none;
}

.hero-slider__slide.is-visible {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Gentle Ken Burns on the visible slide */
.hero-slider__slide.is-visible .hero__img {
  animation: hero-ken-burns 14s ease-in-out infinite alternate;
}

@keyframes hero-ken-burns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* Pause animation when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide { transition: none; }
  .hero-slider__slide.is-visible .hero__img { animation: none; }
}

/* Previous / next buttons */
.hero-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 250ms ease, background 250ms ease;
}

.hero__media:hover .hero-slider__btn,
.hero-slider__btn:focus-visible {
  opacity: 1;
}

.hero-slider__btn:hover,
.hero-slider__btn:focus-visible {
  background: rgba(0,0,0,0.55);
}

.hero-slider__btn--prev { left: 12px; }
.hero-slider__btn--next { right: 12px; }

/* Navigation dots */
.hero-slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 250ms ease, transform 250ms ease;
}

.hero-slider__dot.is-active {
  background: rgba(255,255,255,0.9);
  transform: scale(1.25);
}

.hero-slider__dot:hover,
.hero-slider__dot:focus-visible {
  background: rgba(255,255,255,0.75);
}

/* On small screens, keep the slider container tall enough */
@media (max-width: 900px) {
  .hero-slider__btn { width: 34px; height: 34px; }
  .hero-slider__dots { bottom: 10px; gap: 6px; }
  .hero-slider__dot { width: 8px; height: 8px; }
}

.hero__offers {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: auto 1fr;
  border: 1px solid var(--sec-line, var(--line));
  border-radius: var(--radius);
  background: var(--card-bg, var(--sec-surface, var(--surface)));
  overflow: hidden;
}
.hero__offers-lead {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--sec-ink, var(--ink));
  border-right: 1px solid var(--sec-line, var(--line));
}
.hero__offers-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
}
.hero__offers-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sec-muted, var(--ink-soft));
  border-right: 1px solid var(--sec-line, var(--line));
}
.hero__offers-list li:last-child { border-right: 0; }
.hero__offers-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sec-accent, var(--accent-line));
  flex: none;
}

/* ----- Quick links index ----- */
.quicklinks {
  border-top: 1px solid var(--sec-line, var(--line));
  border-bottom: 1px solid var(--sec-line, var(--line));
  background: var(--card-bg, var(--surface));
}
.quicklinks__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
}
.quicklinks__item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.5rem 1rem;
  border-left: 1px solid var(--sec-line, var(--line));
  transition: background var(--dur) var(--ease);
}
.quicklinks__item:hover { background: var(--sec-surface, var(--surface-2)); }
.quicklinks__item:first-child { border-left: 0; padding-left: 0; }
.quicklinks__item:last-child { padding-right: 0; }
.quicklinks__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quicklinks__num {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sec-muted, var(--ink-mute));
}
.quicklinks__arrow {
  display: inline-flex;
  color: var(--sec-ink, var(--ink));
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.quicklinks__item:hover .quicklinks__arrow { transform: translateX(4px); color: var(--sec-accent, var(--link)); }
.quicklinks__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--sec-ink, var(--ink));
  transition: color var(--dur) var(--ease);
}
.quicklinks__item:hover .quicklinks__name { color: var(--sec-accent, var(--link)); }
.quicklinks__tag {
  font-size: var(--text-xs);
  color: var(--sec-muted, var(--ink-mute));
}

@media (max-width: 1023px) {
  .quicklinks__list { grid-template-columns: repeat(2, 1fr); }
  .quicklinks__item { border-left: 0; padding-left: 0; padding-block: 1.1rem; border-bottom: 1px solid var(--sec-line, var(--line)); }
  .quicklinks__item:nth-child(even) { border-left: 1px solid var(--sec-line, var(--line)); padding-left: 1rem; }
}
@media (max-width: 560px) {
  .quicklinks__list { grid-template-columns: 1fr; }
  .quicklinks__item:nth-child(even) { border-left: 0; padding-left: 0; }
}

/* ----- Hero responsive ----- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__title { max-width: 18ch; }
  .hero__media { min-height: 380px; }
  .hero__stamp { left: 1rem; }
  .hero__offers { grid-template-columns: 1fr; }
  .hero__offers-lead { border-right: 0; border-bottom: 1px solid var(--sec-line, var(--line)); }
  .hero__offers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.9rem;
  }
  .hero__offers-list li {
    flex: 1 1 auto;
    justify-content: center;
    white-space: nowrap;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--sec-line, var(--line));
    border-radius: var(--radius-pill);
    background: var(--sec-surface, var(--surface-2));
  }
  .hero__offers-list li:last-child { border-right: 1px solid var(--sec-line, var(--line)); }
}
@media (max-width: 520px) {
  .hero__media { min-height: 300px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ----- What we do (services) ----- */
.services-grid { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--sec-surface, var(--card-bg, var(--surface)));
  border: 1px solid var(--sec-line, var(--line));
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sec-surface, var(--surface-2)); }
.service-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-card__img { transform: scale(1.04); }
.service-card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.6rem 1.5rem 1.75rem; }
.service-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.service-card__price { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sec-accent, var(--link)); }
.service-card__badge { font-size: var(--text-xs); font-weight: 600; color: var(--sec-accent, var(--link)); border: 1px solid var(--sec-accent, var(--link)); border-radius: var(--radius-pill); padding: 0.15rem 0.6rem; }
.service-card__body h3 { font-size: clamp(1.35rem, 1.4vw + 0.6rem, 1.7rem); }
.service-card__desc { font-size: var(--text-sm); }
.service-card__features { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.4rem; }
.service-card__features li { display: flex; align-items: center; gap: 0.6rem; font-size: var(--text-sm); color: var(--sec-muted, var(--ink-soft)); }
.service-card__features li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--sec-accent, var(--accent-line)); flex: none; }
.service-card__link { margin-top: auto; padding-top: 1rem; }

.service-card--featured { display: grid; grid-template-columns: 1.08fr 0.92fr; }
.service-card--featured .service-card__media { aspect-ratio: auto; min-height: 420px; }
.service-card--featured .service-card__body { gap: 0.8rem; padding: clamp(1.75rem, 3vw, 2.5rem); }
.service-card--featured h3 { font-size: clamp(1.6rem, 2vw + 0.75rem, 2.15rem); }
.service-card--featured .service-card__desc { font-size: var(--text-md); }

.service-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.6vw, 1.75rem); margin-top: clamp(1.25rem, 2.6vw, 1.75rem); }

/* ----- Services page ----- */
.services-page__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem); }
.services-page__grid .service-card__media { aspect-ratio: 4 / 3; }

/* ----- Two ways to use us ----- */
.twoways { background: var(--card-bg, var(--surface)); border-top: 1px solid var(--sec-line, var(--line)); border-bottom: 1px solid var(--sec-line, var(--line)); }
.twoways__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2rem, 4vw, 3rem); }
.twoways__col + .twoways__col { padding-left: clamp(1.5rem, 4vw, 3.5rem); border-left: 1px solid var(--sec-line, var(--line)); }
.twoways__col h3 { font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.2rem); }
.twoways__list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.2rem; }
.twoways__list li { display: flex; gap: 0.8rem; font-size: var(--text-md); color: var(--sec-muted, var(--ink-soft)); }
.twoways__list li::before { color: var(--sec-accent, var(--accent-line)); }
.twoways__col .arrow-link { margin-top: 1.5rem; }

/* ----- How it works ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.steps__step { border-top: 2px solid var(--sec-line, var(--line)); padding-top: 1.5rem; }
.steps__num { font-family: var(--font-display); font-size: clamp(2.75rem, 4vw, 3.5rem); font-weight: 500; line-height: 1; color: var(--sec-accent, var(--accent-line)); }
.steps__step h3 { margin-top: 1rem; }
.steps__step p { margin-top: 0.6rem; font-size: var(--text-sm); }

@media (max-width: 900px) {
  .service-card--featured { grid-template-columns: 1fr; }
  .service-card--featured .service-card__media { aspect-ratio: 16 / 10; min-height: 0; }
  .service-row { grid-template-columns: repeat(2, 1fr); }
  .service-row .service-card__media { aspect-ratio: 16 / 10; }
  .service-row .service-card__body { padding: 1.25rem 1.15rem 1.4rem; }
  .services-page__grid { grid-template-columns: repeat(2, 1fr); }
  .twoways__cols { grid-template-columns: 1fr; }
  .twoways__col + .twoways__col { padding-left: 0; border-left: 0; border-top: 1px solid var(--sec-line, var(--line)); padding-top: 2rem; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 379px) {
  .service-row { grid-template-columns: 1fr; }
  .services-page__grid { grid-template-columns: 1fr; }
}

/* ----- Tailoring ----- */
.tailoring { background: var(--sec-surface, var(--surface-2)); border-top: 1px solid var(--sec-line, var(--line)); border-bottom: 1px solid var(--sec-line, var(--line)); }
.tailoring__inner { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.tailoring__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--card-bg, var(--sec-surface, var(--surface-2))); border: 1px solid var(--sec-line, var(--line)); }
.tailoring__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tailoring__content h2 { margin-top: 0.75rem; }
.tailoring__content .lede { margin-top: 1rem; }
.tailoring__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 2rem; margin-top: 1.5rem; }
.tailoring__list li { display: flex; gap: 0.6rem; font-size: var(--text-sm); color: var(--sec-muted, var(--ink-soft)); }
.tailoring__list li::before { content: "+"; color: var(--sec-accent, var(--link)); font-weight: 600; }
.tailoring__content .btn { margin-top: 2rem; }

/* ----- Dry cleaning ----- */
.dryclean__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.dryclean__head .btn { flex: none; }
.dryclean__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(2rem, 4vw, 3rem); margin-top: clamp(2rem, 4vw, 3rem); }
.dryclean__cat { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sec-muted, var(--ink-mute)); margin-bottom: 1.1rem; }
.dryclean__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px dotted var(--sec-line, var(--line)); font-size: var(--text-sm); color: var(--sec-ink, var(--ink)); }
.dryclean__price { color: var(--sec-muted, var(--ink-mute)); white-space: nowrap; font-size: var(--text-xs); align-self: center; }

/* ----- Embroidery ----- */
.prices__panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); background: var(--card-bg, var(--sec-surface, var(--surface))); border: 1px solid var(--sec-line, var(--line)); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); }
.prices__intro h2 { margin: 0.75rem 0 1rem; }
.prices__intro .btn { margin-top: 1.75rem; }
.price-menu { display: flex; flex-direction: column; }
.price-menu__list { display: flex; flex-direction: column; margin: 0; }
.price-menu__list li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 1.1rem 0; border-bottom: 1px solid var(--sec-line, var(--line)); font-size: var(--text-md); color: var(--sec-ink, var(--ink)); }
.price-menu__list li:last-child { border-bottom: 0; }
/* Decorative emerald dot, drawn in CSS rather than as a text glyph so the list
   never depends on character encoding. `align-items: flex-start` pins the dot
   to the first line when an item wraps, and the `em` offset keeps it centred on
   that line as the type scale changes across breakpoints. */
.price-menu__list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.55em; border-radius: 50%; background: var(--sec-accent, var(--link)); }

/* ----- Coming soon ----- */
.soon { background: var(--sec-surface, var(--surface-2)); border-top: 1px solid var(--sec-line, var(--line)); border-bottom: 1px solid var(--sec-line, var(--line)); }
.soon__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.soon__item { border-left: 1px solid var(--sec-line, var(--line)); padding-left: 1.5rem; }
.soon__tag { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sec-muted, var(--ink-mute)); }
.soon__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sec-accent, var(--accent-line)); }
.soon__item h3 { margin-top: 0.9rem; }
.soon__item p { margin-top: 0.5rem; font-size: var(--text-sm); }

/* ----- Find us ----- */
.findus__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2rem, 4vw, 3rem); }
.findus__block > h3 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sec-muted, var(--ink-mute)); margin-bottom: 1.1rem; }
.findus__address { font-style: normal; font-size: var(--text-lg); line-height: 1.5; color: var(--sec-ink, var(--ink)); }
.findus__contact { margin-top: 0.9rem; font-size: var(--text-base); }
.findus__contact a { color: var(--sec-accent, var(--link)); font-weight: 500; }
.findus__contact a:hover { text-decoration: underline; }
.findus__map { margin-top: 1.75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 2rem 1.5rem; text-align: center; background: var(--sec-surface, var(--surface-2)); border: 1px solid var(--sec-line, var(--line)); border-radius: var(--radius); color: var(--sec-muted, var(--ink-soft)); transition: border-color var(--dur) var(--ease); }
.findus__map:hover { border-color: var(--sec-accent, #d8d1c3); }
.findus__pin { color: var(--sec-accent, var(--link)); }
.findus__map-label { font-size: var(--text-sm); }
.findus__map-cta { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sec-accent, var(--link)); }
.findus__hours-list { display: flex; flex-direction: column; }
.findus__hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.72rem 0; border-bottom: 1px dotted var(--sec-line, var(--line)); font-size: var(--text-sm); }
.findus__hours-row dt { color: var(--sec-ink, var(--ink)); font-weight: 500; }
.findus__hours-row dd { margin: 0; color: var(--sec-muted, var(--ink-soft)); font-variant-numeric: tabular-nums; }
.findus__hours-row.is-today dt { color: var(--sec-accent, var(--link)); font-weight: 600; }
.findus__hours-row.is-today dd { color: var(--sec-accent, var(--link)); }
.findus__note { margin-top: 1.25rem; font-size: var(--text-xs); color: var(--sec-muted, var(--ink-mute)); }

/* ----- Final CTA ----- */
.cta { background: var(--sec-bg, var(--ink)); color: var(--sec-ink, var(--paper)); padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.cta__inner { max-width: 780px; }
.cta h2 { color: var(--sec-ink, var(--paper)); font-size: clamp(2.35rem, 4.2vw + 0.75rem, 3.4rem); }
.cta p { margin-top: 1.25rem; font-size: var(--text-lg); color: var(--sec-muted, rgba(250, 247, 242, 0.78)); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
.btn--light { --btn-bg: var(--sec-surface, var(--paper)); --btn-fg: var(--sec-ink, var(--ink)); }
.btn--light:hover { --btn-bg: var(--surface-2); }
.btn--line-light { --btn-bg: transparent; --btn-fg: var(--sec-ink, var(--paper)); --btn-bd: var(--sec-line, rgba(250, 247, 242, 0.4)); }
.btn--line-light:hover { --btn-bd: var(--sec-ink, var(--paper)); }

/* ----- Homepage responsive ----- */
@media (max-width: 900px) {
  .tailoring__inner { grid-template-columns: 1fr; }
  .tailoring__media { aspect-ratio: 16 / 10; }
  .prices__panel { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dryclean__head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .soon__grid { grid-template-columns: 1fr; }
  .soon__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--sec-line, var(--line)); padding-top: 1.5rem; }
  .findus__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tailoring__list { grid-template-columns: 1fr; }
  .cta__actions .btn { flex: 1 1 auto; }
  .dryclean__grid { gap: 2rem 1.5rem; }
  .dryclean__cat { margin-bottom: 0.75rem; }
  .dryclean__list li { padding: 0.55rem 0; }
}

/* ----- Footer responsive ----- */
@media (max-width: 899px) {
  .site-footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer__main { grid-template-columns: 1fr; }
}

/* =============================================================
   Page hero (About / Contact)
   ============================================================= */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.page-hero__title {
  margin-top: 1.35rem;
  font-size: clamp(2.4rem, 4.6vw + 0.8rem, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.page-hero__lede {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: var(--text-lg);
  line-height: 1.65;
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.page-hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sec-surface, var(--surface-2));
}
.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__note {
  position: absolute;
  left: 1.15rem;
  bottom: 1.15rem;
  max-width: 80%;
  padding: 0.85rem 1.1rem;
  background: var(--card-bg, var(--sec-surface, var(--surface)));
  border: 1px solid var(--sec-line, var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sec-muted, var(--ink-soft));
}

/* ----- About: approach ----- */
.approach__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.approach__statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw + 0.6rem, 2.1rem);
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--sec-ink, var(--ink));
}
.approach__statement strong { color: var(--sec-accent, var(--link)); }
.approach__list {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.approach__list li {
  display: flex;
  gap: 0.85rem;
  font-size: var(--text-md);
  color: var(--sec-muted, var(--ink-soft));
}
.approach__list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--sec-accent, var(--accent-line));
  flex: none;
}

/* ----- About: principles ----- */
.principles { background: var(--card-bg, var(--surface)); border-top: 1px solid var(--sec-line, var(--line)); border-bottom: 1px solid var(--sec-line, var(--line)); }
.principles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.principles__item { border-left: 1px solid var(--sec-line, var(--line)); padding-left: 1.5rem; }
.principles__key {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sec-accent, var(--link));
}
.principles__item h3 { margin-top: 0.9rem; font-size: var(--fs-h4); }
.principles__item p { margin-top: 0.55rem; font-size: var(--text-sm); }

/* ----- About: expertise ----- */
.expertise__list {
  display: flex;
  flex-direction: column;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--sec-line, var(--line));
}
.expertise__row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--sec-line, var(--line));
}
.expertise__num {
  flex: none;
  width: 3rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--sec-accent, var(--accent-line));
}
.expertise__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.25rem; }
.expertise__name { font-family: var(--font-display); font-size: 1.4rem; color: var(--sec-ink, var(--ink)); }
.expertise__desc { font-size: var(--text-sm); color: var(--sec-muted, var(--ink-soft)); }
.expertise__link { flex: none; white-space: nowrap; }

/* ----- About: local ----- */
.local { background: var(--sec-surface, var(--surface-2)); border-top: 1px solid var(--sec-line, var(--line)); border-bottom: 1px solid var(--sec-line, var(--line)); }
.local__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.local__address { font-style: normal; font-size: var(--text-lg); line-height: 1.5; color: var(--sec-ink, var(--ink)); }
.local__meta { margin-top: 0.9rem; font-size: var(--text-base); }
.local__meta a { color: var(--sec-accent, var(--link)); font-weight: 500; }
.local__meta a:hover { text-decoration: underline; }

/* =============================================================
   Contact
   ============================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.contact__block h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sec-muted, var(--ink-mute));
  margin-bottom: 1.1rem;
}
.contact__brand { font-family: var(--font-display); font-size: 1.6rem; color: var(--sec-ink, var(--ink)); }
.contact__address { font-style: normal; font-size: var(--text-lg); line-height: 1.5; color: var(--sec-ink, var(--ink)); margin-top: 0.5rem; }
.contact__list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.25rem; }
.contact__list li { display: flex; align-items: baseline; gap: 0.75rem; font-size: var(--text-base); color: var(--sec-muted, var(--ink-soft)); }
.contact__label { flex: none; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sec-muted, var(--ink-mute)); }
.contact__list a { color: var(--sec-accent, var(--link)); font-weight: 500; }
.contact__list a:hover { text-decoration: underline; }

.contact__map-embed { margin-top: clamp(2rem, 4vw, 3rem); border: 1px solid var(--sec-line, var(--line)); border-radius: var(--radius-lg); overflow: hidden; background: var(--sec-surface, var(--surface-2)); }
.contact__map-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* ----- Contact form ----- */
.contact-form { margin-top: clamp(2rem, 4vw, 3rem); }
.form { display: grid; gap: 1.25rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form__field { display: flex; flex-direction: column; gap: 0.45rem; }
.form__label { font-size: var(--text-sm); font-weight: 500; color: var(--sec-ink, var(--ink)); }
.form__label span { color: var(--link); }
.form__label .form__optional { color: var(--sec-muted, var(--ink-mute)); font-weight: 400; }
.form__input,
.form__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: var(--text-base);
  line-height: 1.4;
  color: var(--input-text, var(--ink));
  background: var(--input-bg, var(--surface));
  border: 1px solid var(--sec-line, var(--line));
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form__textarea { min-height: 150px; resize: vertical; }
.form__input:focus,
.form__textarea:focus { outline: none; border-color: var(--sec-accent, var(--accent)); box-shadow: var(--focus-ring); }
.form__input.is-invalid,
.form__textarea.is-invalid { border-color: var(--danger); }
.form__error { min-height: 1em; font-size: var(--text-xs); color: var(--danger); }
.form__status {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.form__status.is-success { display: block; background: var(--input-bg, var(--surface)); border: 1px solid var(--sec-accent, var(--accent)); color: var(--sec-accent, var(--accent)); }
.form__status.is-error { display: block; background: var(--input-bg, var(--surface)); border: 1px solid var(--danger); color: var(--danger); }
.form__actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.hp-field { display: none; }

/* ----- About / Contact responsive ----- */
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { aspect-ratio: 16 / 9; }
  .approach__grid { grid-template-columns: 1fr; }
  .principles__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .expertise__row { flex-wrap: wrap; row-gap: 0.75rem; }
  .expertise__link { margin-left: 4.25rem; }
  .principles__grid { grid-template-columns: 1fr; }
  .page-hero__note { max-width: 86%; }
}
@media (max-width: 380px) {
  .page-hero__actions .btn { flex: 1 1 auto; }
}

/* =============================================================
   Mobile pass — 320 to 768px
   Purpose-built mobile compositions layered on top of the
   desktop system. Desktop rules above stay untouched; these
   come last so equal-specificity overrides resolve to mobile.
   Breakpoints used here: 768 / 639 / 560 / 480 / 420 / 389 / 380.
   ============================================================= */

/* In-page anchors (#what-we-do, service slugs, …) land clear of the
   sticky header instead of hiding underneath it. Applies at all widths. */
#main [id] { scroll-margin-top: 5.75rem; }

/* Scroll lock for the open mobile menu. body alone is not honoured by
   iOS Safari; locking html as well makes it reliable. */
html.nav-open { overflow: hidden; }

@media (max-width: 768px) {
  /* ----- Layout rhythm ----- */
  :root {
    --section-space: 3.5rem;
    --section-space-sm: 2.5rem;
  }
  .section-head h2 { margin: 0.6rem 0 0.85rem; }
  .section-head .lede { font-size: var(--text-md); }
  .btn { min-height: 44px; } /* comfortable touch target for every control */

  /* ----- Header: compact bar, comfortable touch targets ----- */
  .site-header__inner { height: 64px; }
  .site-header__actions { gap: 0.5rem; }
  .site-header__actions .btn--call {
    padding: 0.75rem 1.05rem;
    font-size: var(--text-sm);
    gap: 0.45rem;
    min-height: 44px;
  }

  /* ----- Mobile menu ----- */
  .mobile-menu {
    padding: 5.75rem var(--gutter) calc(1.75rem + env(safe-area-inset-bottom, 0px));
  }
  .mobile-menu__link { font-size: 1.625rem; padding: 1.05rem 0; }
  .mobile-menu__call {
    align-self: stretch;
    display: flex;
    margin-top: 1.25rem;
  }

  /* ----- Hero: single-column editorial composition ----- */
  .hero { padding-top: 2.25rem; padding-bottom: 2.75rem; }
  .hero__grid { gap: 1.75rem; }
  .hero__title {
    margin-top: 1.1rem;
    font-size: clamp(2rem, 8.5vw + 0.25rem, 2.875rem);
    line-height: 1.06;
  }
  .hero__lead { margin-top: 1.15rem; font-size: var(--text-md); line-height: 1.6; }
  .hero__actions { margin-top: 1.6rem; gap: 0.6rem; }
  .hero__points { margin-top: 1.6rem; padding-top: 1.15rem; gap: 0.5rem 1.25rem; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 3; }
  .hero__stamp { left: 0.9rem; bottom: 1.25rem; padding: 0.85rem 1.1rem; }
  .hero__stamp-amount { font-size: 1.5rem; }
  .hero__offers { margin-top: 2rem; }
  .hero__offers-lead { padding: 1rem 1.15rem; font-size: 1rem; }
  .hero__offers-list { gap: 0.5rem; padding: 0.75rem; }
  .hero__offers-list li { padding: 0.55rem 0.95rem; }

  /* ----- What we do: service cards ----- */
  .service-card--featured .service-card__media { aspect-ratio: 16 / 10; min-height: 0; }
  .service-card--featured .service-card__body { gap: 0.7rem; padding: 1.35rem 1.25rem 1.5rem; }
  .service-card--featured h3 { font-size: 1.5rem; }
  .service-row { gap: 0.85rem; }
  .service-row .service-card__media { aspect-ratio: 4 / 3; }
  .service-row .service-card__body { gap: 0.5rem; padding: 1.05rem 1rem 1.2rem; }
  .service-row .service-card__body h3 { font-size: 1.125rem; }

  /* ----- Services & prices page: full-width cards, roomy CTAs ----- */
  .services-page__grid { gap: 1.25rem; }
  .services-page__grid .service-card__body { padding: 1.35rem 1.25rem 1.5rem; }

  /* ----- Two ways / How it works ----- */
  .twoways__cols { margin-top: 1.75rem; }
  .twoways__col h3 { font-size: 1.375rem; }
  .twoways__col + .twoways__col { padding-top: 1.75rem; }
  .steps { margin-top: 1.75rem; gap: 1.5rem; }
  .steps__step { padding-top: 1.25rem; }
  .steps__num { font-size: 2.25rem; }
  .steps__step h3 { margin-top: 0.75rem; }

  /* ----- Tailoring ----- */
  .tailoring__inner { gap: 1.75rem; }
  .tailoring__media { aspect-ratio: 4 / 3; }
  .tailoring__list { gap: 0.55rem 1.25rem; }
  .tailoring__content .btn { margin-top: 1.5rem; }

  /* ----- Dry cleaning / embroidery ----- */
  .dryclean__head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .dryclean__grid { gap: 1.75rem; }
  .prices__panel { gap: 1.75rem; }
  .price-menu__list li { padding: 0.95rem 0; }

  /* ----- Coming soon / Find us ----- */
  .soon__grid { gap: 1.5rem; }
  .findus__grid { gap: 1.75rem; margin-top: 1.75rem; }
  .findus__address { font-size: var(--text-md); }

  /* ----- Final CTA ----- */
  .cta { padding-block: 3.5rem; }
  .cta p { margin-top: 1rem; font-size: var(--text-md); }
  .cta__actions { margin-top: 1.75rem; }

  /* ----- Page hero (About / Contact) ----- */
  .page-hero { padding-block: 2rem 2.25rem; }
  .page-hero__grid { gap: 2rem; }
  .page-hero__title {
    margin-top: 1.1rem;
    font-size: clamp(1.9rem, 6.5vw + 0.5rem, 2.5rem);
    line-height: 1.08;
  }
  .page-hero__lede { margin-top: 1.15rem; font-size: var(--text-md); line-height: 1.6; }
  .page-hero__actions { margin-top: 1.6rem; }
  .page-hero__actions .btn { flex: 1 1 auto; }
  .page-hero__media { aspect-ratio: 4 / 3; }
  .page-hero__note { left: 0.9rem; bottom: 0.9rem; }
}

/* Services & prices below 640px: one comfortable column with a
   full-width CTA. The "Ask about this service" button is wider than
   a half-width column, so a 2-up grid here clipped it inside the
   card's overflow:hidden — now it can never clip. */
@media (max-width: 639px) {
  .services-page__grid { grid-template-columns: 1fr; gap: 1.1rem; margin-top: 1.75rem; }
  .services-page__grid .service-card__media { aspect-ratio: 16 / 10; }
  .service-card__link { padding-top: 1rem; }
  .service-card__link .btn { width: 100%; }
}

@media (max-width: 560px) {
  :root { --section-space: 3.25rem; --section-space-sm: 2.25rem; }

  /* Type scale — deliberate mobile sizes, not shrunken desktop ones */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6875rem; }
  h3 { font-size: 1.25rem; }
  .cta h2 { font-size: 1.75rem; }
  .eyebrow { gap: 0.6rem; }

  /* Hero media becomes a portrait crop on phones (matches the 4:5 source) */
  .hero__media { aspect-ratio: 4 / 5; }

  /* Quick links: single-column editorial index with tall tap rows */
  .quicklinks__item { padding-block: 1.15rem; }
  .quicklinks__name { font-size: 1.15rem; }

  /* Compact service cards (2-up grid) */
  .service-card__desc { font-size: 0.8125rem; line-height: 1.55; }
  .service-card__features li { font-size: 0.8125rem; gap: 0.5rem; }
  .service-card__link { padding-top: 0.75rem; }
  .arrow-link { font-size: 0.8125rem; }

  /* Editorial lists tighten up */
  .twoways__list li { font-size: var(--text-sm); }
  .steps__step p { font-size: var(--text-sm); }
  .tailoring__list { grid-template-columns: 1fr; gap: 0.55rem; }
  .tailoring__list li { font-size: 0.8125rem; }
  .dryclean__list li { padding: 0.55rem 0; }
  .price-menu__list li { font-size: 1rem; }
  .prices__panel { padding: 1.35rem; }
  .prices__intro .btn { margin-top: 1.25rem; }

  /* Find us */
  .findus__map { margin-top: 1.35rem; padding: 1.75rem 1.25rem; }

  /* About page */
  .approach__statement { font-size: 1.375rem; }
  .approach__list { gap: 0.85rem; }
  .approach__list li { font-size: var(--text-sm); }
  .principles__item { padding-left: 1.25rem; }
  .expertise__row { padding: 1.15rem 0; }
  .expertise__name { font-size: 1.1875rem; }
  .local__panel { gap: 1.1rem; }
  .local__address { font-size: var(--text-md); }

  /* Contact page */
  .contact__brand { font-size: 1.3rem; }
  .contact__address { font-size: var(--text-md); }
  .form { gap: 1.1rem; }
  .form__textarea { min-height: 132px; }
  .form__actions { gap: 0.85rem; }
  .form__actions .btn { width: 100%; }
  .contact__map-embed iframe { aspect-ratio: 4 / 3; }

  /* Footer */
  .site-footer__main { padding-block: 2.5rem; gap: 1.75rem; }
  .footer-brand .brand__name { font-size: 1.375rem; }
  .footer-brand p { margin-top: 0.75rem; }
  .footer-col ul { gap: 0.55rem; }
  .footer-col a { display: inline-block; padding: 0.18rem 0; } /* taller tap rows */
  .site-footer__bottom .container { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .site-header__inner { gap: 0.75rem; }
  .site-header .brand__name { font-size: 1.0625rem; }
  .tailoring__media { aspect-ratio: 4 / 5; }
  .hero__stamp-amount { font-size: 1.375rem; }
  .dryclean__head .btn { width: 100%; }
}

/* Service cards: 2-up grid only from 390px up; single column below. */
@media (max-width: 389px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row .service-card__body { padding: 1.25rem 1.15rem 1.4rem; }
  .service-row .service-card__body h3 { font-size: 1.25rem; }
  .service-row .service-card__desc { font-size: var(--text-sm); }
}

@media (max-width: 380px) {
  /* Everything fits comfortably at 320px: slim brand, compact call button. */
  .site-header__inner { gap: 0.5rem; }
  .site-header .brand__name { font-size: 0.9375rem; }
  .site-header .brand__sub { font-size: 0.625rem; letter-spacing: 0.14em; }
  .site-header__actions .btn--call { padding: 0.65rem 0.85rem; }
}

/* =============================================================
   Instagram Social Media Section
   ============================================================= */

.instagram-section {
  background: var(--card-bg, var(--surface));
  border-top: 1px solid var(--sec-line, var(--line));
}

.instagram-handle a {
  font-weight: 600;
  color: var(--sec-accent, var(--link));
}

.instagram-handle a:hover {
  color: var(--accent-dark);
}

/* --- Grid --- */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.6vw, 1.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* --- Card --- */
.instagram-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}

.instagram-card:hover {
  box-shadow: var(--shadow);
}

.instagram-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--sec-surface, var(--surface-2));
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.instagram-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sec-muted, var(--ink-mute));
}

.instagram-card__icon {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  color: #fff;
  opacity: 0.85;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.instagram-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.instagram-card__caption {
  font-size: var(--text-sm);
  color: var(--sec-muted, var(--ink-soft));
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- CTA --- */
.instagram-cta {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
}

.instagram-empty {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* --- Section head --- */
.instagram-section .section-head {
  margin-bottom: 0;
}

/* --- Responsive --- */

/* Tablet: 2 columns */
@media (max-width: 768px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: still 2 columns, no single-column fallback (images stay tappable) */
@media (max-width: 480px) {
  .instagram-grid {
    gap: clamp(0.75rem, 2vw, 1rem);
  }
}

@media (max-width: 360px) {
  .instagram-grid {
    gap: 0.65rem;
  }
  .instagram-card__caption {
    font-size: 0.75rem;
  }
}

/* =============================================================
   Washing-machine loading indicator
   -------------------------------------------------------------
   Implementation source: the supplied washing-machine CSS, used
   verbatim — same 6 background layers at the same positions and
   sizes, same drum (:after) and feet (:before) geometry, same
   `animation: shake 3s …` with the same 60px/180px floor pivot,
   and the same `@keyframes spin` / `@keyframes shake` steps.
   Only two things were adapted:
     1. the selector `.loader` -> `.laundry-loader`, so the class
        cannot collide with generic `.loader` utilities;
     2. the `--color-1 … --color-11` palette, remapped onto the
        Bright Laundrette design tokens so the machine follows the
        Design & Appearance settings and the per-section colours.
   `--size` is the original's own scale knob (1px = 120 x 150).
   ============================================================= */

.laundry-loader {
  /* ---- Brand palette (original value in brackets) ---- */
  --color-1: var(--sec-surface, var(--surface));  /* cabinet body            [was #fff]    */
  --color-2: var(--sec-line, var(--line));        /* chrome trim + drum rim  [was #ddd]    */
  --color-3: var(--ink-mute);                     /* lid-groove shading      [was #bbb]    */
  --color-4: var(--ink-soft);                     /* dials + feet            [was #aaa]    */
  --color-5: var(--surface-2);                    /* dial halo               [was #eee]    */
  --color-6: #0000;                               /* transparent mask        [unchanged]   */
  --color-7: var(--surface-2);                    /* drum glass              [was #bbdefb] */
  --color-8: rgba(32, 42, 48, 0.28);              /* ink wash / inner shadow [was #0004]   */
  --color-9: var(--accent-2, #b8e2c8);            /* suds water, light half  [was #64b5f6] */
  --color-10: var(--accent, #1e5b46);             /* water depth, dark half  [was #607d8b] */
  --color-11: var(--accent-2-ink, var(--ink-soft)); /* inner drum ring       [was #999]    */
  --size: 1.05px;

  display: block; /* the source relied on a <div>; as a class this must be explicit */
  width: calc(120 * var(--size));
  height: calc(150 * var(--size));
  background-color: var(--color-1);
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--color-2) 50%, var(--color-3) 51%),
    linear-gradient(var(--color-2), var(--color-2)),
    linear-gradient(var(--color-2), var(--color-2)),
    radial-gradient(ellipse at center, var(--color-4) 25%, var(--color-5) 26%, var(--color-5) 50%, var(--color-6) 55%),
    radial-gradient(ellipse at center, var(--color-4) 25%, var(--color-5) 26%, var(--color-5) 50%, var(--color-6) 55%),
    radial-gradient(ellipse at center, var(--color-4) 25%, var(--color-5) 26%, var(--color-5) 50%, var(--color-6) 55%);
  background-position:
    0 calc(20 * var(--size)),
    calc(45 * var(--size)) 0,
    calc(8 * var(--size)) calc(6 * var(--size)),
    calc(55 * var(--size)) calc(3 * var(--size)),
    calc(75 * var(--size)) calc(3 * var(--size)),
    calc(95 * var(--size)) calc(3 * var(--size));
  background-size:
    100% calc(4 * var(--size)),
    calc(1 * var(--size)) calc(23 * var(--size)),
    calc(30 * var(--size)) calc(8 * var(--size)),
    calc(15 * var(--size)) calc(15 * var(--size)),
    calc(15 * var(--size)) calc(15 * var(--size)),
    calc(15 * var(--size)) calc(15 * var(--size));
  position: relative;
  border-radius: 6%;
  animation: shake 3s ease-in-out infinite;
  transform-origin: calc(60 * var(--size)) calc(180 * var(--size));
}

/* Feet (single rule that draws both, via the box-shadow offset) */
.laundry-loader:before {
  content: '';
  position: absolute;
  left: calc(5 * var(--size));
  top: 100%;
  width: calc(7 * var(--size));
  height: calc(5 * var(--size));
  background: var(--color-4);
  border-radius: 0 0 calc(4 * var(--size)) calc(4 * var(--size));
  box-shadow: calc(102 * var(--size)) 0 var(--color-4);
}

/* Drum door: glass + diagonal water + repeating suds stripes */
.laundry-loader:after {
  content: '';
  position: absolute;
  width: calc(95 * var(--size));
  height: calc(95 * var(--size));
  left: 0;
  right: 0;
  margin: auto;
  bottom: calc(20 * var(--size));
  background-color: var(--color-7);
  background-image:
    linear-gradient(to right, var(--color-8) 0%, var(--color-8) 49%, var(--color-6) 50%, var(--color-6) 100%),
    linear-gradient(135deg, var(--color-9) 50%, var(--color-10) 51%);
  background-size:
    calc(30 * var(--size)) 100%,
    calc(90 * var(--size)) calc(80 * var(--size));
  border-radius: 50%;
  background-repeat: repeat, no-repeat;
  background-position: 0 0;
  box-sizing: border-box;
  border: calc(10 * var(--size)) solid var(--color-2);
  box-shadow:
    0 0 0 calc(4 * var(--size)) var(--color-11) inset,
    0 0 calc(6 * var(--size)) calc(6 * var(--size)) var(--color-8) inset;
  animation: spin 3s ease-in-out infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(360deg); }
  75% { transform: rotate(750deg); }
  100% { transform: rotate(1800deg); }
}

@keyframes shake {
  65%, 80%, 88%, 96% { transform: rotate(0.5deg); }
  50%, 75%, 84%, 92% { transform: rotate(-0.5deg); }
  0%, 50%, 100% { transform: rotate(0); }
}

/* ----- Usage: real loading operations (contact form submission) -----
   `[data-form-loader]` holds the machine plus a live-region caption.
   main.js unhides the machine and fills the caption while the request
   is in flight, and clears both the moment it settles (success or
   failure). The machine is decorative, the caption is the announcement. */
.form__loader {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.form__loader .laundry-loader { --size: 0.55px; } /* 66 x 82.5 – reads cleanly beside a 49px button */
.form__loader-text {
  font-size: var(--text-sm);
  color: var(--sec-muted, var(--ink-soft));
}
.form__loader-text:empty { display: none; }

.laundry-loader[hidden] { display: none; }

/* The existing submit button already disables itself and swaps its label;
   the machine owns the visual feedback, so this only adds the affordance. */
.btn.is-loading { cursor: progress; }

@media (max-width: 480px) {
  .form__loader { gap: 0.7rem; }
  .form__loader .laundry-loader { --size: 0.48px; }
}

/* Respect the user's reduced-motion setting: the machine still appears and
   still says "sending", but the drum and the shake are held at their resting
   pose (the 0% keyframes) rather than animated. */
@media (prefers-reduced-motion: reduce) {
  .laundry-loader,
  .laundry-loader:before,
  .laundry-loader:after {
    animation: none;
  }
}

/* =============================================================
   Page transition (washing machine)
   -------------------------------------------------------------
   Moving between public pages covers the switch with the same
   machine that reports a contact request: the page being left
   steps back, the brand wash arrives and the machine materialises
   into it, the drum turns while the machine holds the hand-over,
   and the destination is dissolved back in. The centre of the
   screen is one composition — the machine, the destination page
   title directly under it and, beneath that, the caption — and the
   site's identity (the logo, or the brand title / site name) is an
   independent footer at the bottom of the layer.

   - markup + pre-paint script: includes/page-transition.php
   - "is this click a transition?": initPageTransition() in
     assets/js/main.js
   - Design & Appearance → Page transition & loader: every toggle,
     duration, size, colour and preset (resolved and clamped by
     page_transition_config() in includes/functions.php, which
     emits the `--page-transition`, `--pt-*` and `--pt-glow` tokens
     through appearance_css()). The values in the :root block below
     are the fallbacks for an install with no saved settings.

   State lives on <html> so it is in place before the first paint:
     .pt-leaving   the visitor followed a link (wash + page exit)
     .pt-active    this page arrived from a link (hold + reveal)

   The whole choreography is timed from the click, so it is the
   same movement whatever the response does. With the default
   Premium settings:

     0ms        click: the wash starts rising, the drum starts
                turning, the page being left steps back (--pt-out)
     400ms      the wash has arrived and the machine has
                materialised (--pt-enter); the drum keeps turning
     1250ms     the machine's beat ends (--pt-focus) and the
                destination is revealed (--pt-in)
     1810ms     the layer is gone and the page is usable

   The two halves of the switch share that choreography: the
   arriving page carries on the *same* entrance, the *same* drum
   rotation and the *same* branding entrance with a negative delay
   set from the click (see includes/page-transition.php), so the
   machine never restarts and the drum never jumps back to its
   first angle.

   Everything is CSS-only, so the layer always finishes on its
   own: with no JavaScript at all it is either never shown (no
   class is added) or shown and then revealed by its keyframes. An
   "Animation: Off" Design & Appearance setting, or a visitor's
   reduced-motion preference, only shortens or removes the
   movement - navigation itself is never affected.
   ============================================================= */

:root {
  /* Fallback timings and sizes. Every one of them is re-emitted from the
     validated Design & Appearance settings by appearance_css() in
     includes/functions.php (via page_transition_config()), so the pre-paint
     script, these defaults and the admin panel can never disagree: what is
     below is what an install with no saved settings gets. */
  --pt-out: 340ms;        /* outgoing: the page steps back, the wash rises    */
  --pt-enter: 400ms;      /* the wash arrives, the machine materialises       */
  --pt-drum: 420ms;       /* one full turn of the drum (2.4 turns a second)   */
  --pt-focus: 1250ms;     /* click -> the reveal may start (the machine's beat)*/
  --pt-in: 560ms;         /* incoming reveal                                  */

  /* Carried across the hand-over by includes/page-transition.php. The
     defaults are the "the response took no time at all" case. */
  --pt-hold: 1250ms;      /* the rest of the beat: the reveal waits this long */
  --pt-enter-back: 0ms;   /* how far into the entrance the last page had got  */
  --pt-drum-back: 0ms;    /* the drum's angle, as a negative delay            */
  --pt-from: 0;           /* opacity the outgoing wash starts from (set by JS)*/

  /* Two curves. The wash arrives decisively and then settles - by the time the
     destination's first paint replaces the page being left, the wash already
     reads as the screen, so the hand-over is never a hard cut into the dark -
     while the reveal is a slower, even dissolve. */
  --pt-ease-enter: cubic-bezier(0.05, 1, 0.1, 1);
  --pt-ease-in: cubic-bezier(0.4, 0, 0.2, 1);

  /* The layer's background + ink, shared by both groups: the centred
     composition (the destination page title and the caption) and the footer
     (the logo, the brand title / site name). A very light custom background
     also gets a soft plate behind the machine, so its white cabinet cannot
     disappear into the layer; the glow is the soft radial light behind the
     machine and can be switched off. */
  --pt-bg: var(--accent-dark, #124735);
  --pt-ink: rgba(255, 255, 255, 0.82);
  --pt-plate: none;
  --pt-glow: radial-gradient(120% 90% at 50% 26%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 62%);

  /* Loader branding: one set of knobs for the whole composition.
     --pt-scale is a unitless ratio applied to the machine's own size unit. */
  --pt-scale: 1;
  --pt-gap: 1.1rem;
  --pt-caption-size: 0.875rem;
  --pt-title-size: 1.25rem;
  --pt-brand-size: 1.375rem;
  --pt-logo-w: 180px;
  --pt-logo-h: 64px;
  --pt-shake: 0.5deg;

  /* Phase 15.4 — where the branding footer sits: the distance from the bottom
     edge of the transition to the logo / site title. Responsive (it grows a
     little on a tall screen and tightens on a short one) but always the same
     value top-to-bottom on screen, and `env()` adds the phone's own home
     indicator / rounded-corner safe area on top of it so the mark is never
     under a system bar. */
  --pt-brand-bottom: clamp(1.25rem, 4vh, 2.25rem);
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 900;          /* above the skip link (100), header and mobile menu */
  display: grid;
  place-items: center;
  overflow: hidden;      /* the shake can never add a scrollbar */
  background-color: var(--pt-bg);
  background-image: var(--pt-glow, none);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;  /* never blocks a click, never traps keyboard focus */
}

/* Two pieces, two jobs (Phase 15.5). The centre of the screen is one
   composition: the machine, the destination page title directly underneath it
   and, beneath that, the caption — centred on both axes with the configured
   spacing between the parts. `justify-content: center` is what centres the
   group in the layer: the footer is a separate, absolutely positioned element
   (see `.page-transition__brand` below), so it can never push this block up or
   down and the destination title always stays immediately under the machine.
   The width is capped and the padding is fluid, so the composition can never
   overflow a phone. */
.page-transition__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--pt-gap, 1.1rem);
  padding: clamp(1rem, 4vw, 1.9rem);
  max-width: min(92vw, 34rem);
  text-align: center;
  /* Soft halo behind the machine: emitted for a light custom background
     (see appearance_css()), where a white cabinet would otherwise vanish. */
  background-image: var(--pt-plate, none);
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 28px;
}

/* ---- Loader branding (the bottom footer) ----------------------------- */
/* Phase 15.4/15.5 — the site's identity is a footer, not a third line under
   the machine. It holds the configured logo, or the brand title / site name as
   its text fallback — never the destination page title, which is part of the
   centred composition above. It is anchored to the bottom of the layer and
   centred horizontally, an independent distance (`--pt-brand-bottom` plus the
   phone's own safe area) above the bottom edge, so the machine, the destination
   title and the caption keep the whole centre of the screen to themselves at
   every viewport size.

   The containing block is the layer itself — `.page-transition` is
   `position: fixed`, and this element is its *sibling* (the machine's entrance
   animation transforms `__inner`, and a transformed ancestor would otherwise
   become the containing block) — so the footer follows the layer for the whole
   transition and goes away with it.

   Centring uses `left: 50%` plus the *independent* `translate` property rather
   than `left` + `transform`, because `transform` already belongs to the
   branding's entrance animation (`pt-brand-in`): the two compose instead of one
   cancelling the other, so the mark stays centred while it lifts in. */
.page-transition__brand {
  position: absolute;
  left: 50%;
  bottom: calc(var(--pt-brand-bottom, 1.75rem) + env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--pt-gap, 1.1rem) * 0.55);
  width: max-content;
  max-width: min(92vw, 34rem);
  min-width: 0;
  padding-inline: clamp(0.5rem, 3vw, 1rem);
}

.page-transition__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(var(--pt-logo-w), 74vw);
  max-height: var(--pt-logo-h);
  object-fit: contain;
}

/* "Logo fit: Cover" (Design & Appearance → Loader Branding) gives the logo an
   explicit box and crops to it. "Contain" — the default — keeps the rules
   above, so the mark is always shown whole and never stretched: the image
   keeps its own proportions inside its width and height caps. */
.page-transition--logo-cover .page-transition__logo {
  width: min(var(--pt-logo-w), 74vw);
  height: var(--pt-logo-h);
  object-fit: cover;
}

.page-transition__title {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-weight: var(--heading-weight, 500);
  font-size: var(--pt-title-size);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--pt-ink);
  overflow-wrap: anywhere;
}

/* The loader brand title (the configured text, or the site name). It shares the
   destination title's colour and wrap behaviour, but has its own size so the
   two can be tuned independently. */
.page-transition__title--brand {
  font-size: var(--pt-brand-size);
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.page-transition__caption {
  margin: 0;
  font-size: var(--pt-caption-size);
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--pt-ink);
  overflow-wrap: anywhere;
}

/* The reusable washing machine, simply run larger (1px = 120 x 150). It is the
   focus of the transition, so it is given room: 156 x 195 here, 192 x 240 on a
   desktop. --pt-scale (Machine size in Design & Appearance) multiplies the
   machine's own unit, so every layer of the drawing scales together. */
.page-transition .laundry-loader {
  --size: calc(1.3px * var(--pt-scale, 1));  /* 156 x 195 at 100% */
  animation-play-state: paused; /* the drum only turns during a transition */
}
/* The drum (:after) and the feet (:before) are their own animation hosts, so
   they need the same pause - animation-play-state is not inherited. */
.page-transition .laundry-loader::after,
.page-transition .laundry-loader::before {
  animation-play-state: paused;
}

/* The live region is the only accessible part of the layer: the machine and
   the decorative caption above are hidden from assistive technology. It is
   filled in only when a transition starts, so it is announced at most once
   per navigation and never on an ordinary page view. */
.page-transition__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- Outgoing: the visitor followed an internal link ---------------- */
.pt-leaving .page-transition,
.pt-active .page-transition {
  visibility: visible;
}

.pt-leaving .page-transition {
  animation: pt-cover var(--pt-enter) var(--pt-ease-enter) forwards;
}

/* The machine runs from the instant the wash starts. The drum gets its own
   rotation, on purpose: the loader's idle `spin` is an eased 3s cycle that is
   barely a single turn in the time a transition lasts, whereas this is a
   steady linear 420ms turn - a drum being watched, not an animation being
   played - and it runs for as long as the layer is up, on the page being left
   and (carried on, at the same angle) on the page that arrives. */
.pt-leaving .page-transition .laundry-loader,
.pt-leaving .page-transition .laundry-loader::before,
.pt-active .page-transition .laundry-loader,
.pt-active .page-transition .laundry-loader::before {
  animation-play-state: running;
}

.pt-leaving .page-transition .laundry-loader::after,
.pt-active .page-transition .laundry-loader::after {
  animation: pt-drum var(--pt-drum) linear var(--pt-drum-back, 0ms) infinite;
  animation-play-state: running;
}

/* ---- Machine movement (optional) ------------------------------------- */
/* The subtle rocking is the loader's own idle `shake` animation, kept running
   while a transition is up. Two overrides give the administrator control:
   movement off, or a stronger swing. They are scoped to a transition, so an
   idle page's machine is never touched (its animation stays paused). */
html.pt-leaving .page-transition--no-move .laundry-loader,
html.pt-active .page-transition--no-move .laundry-loader {
  animation: none;
}

html.pt-leaving .page-transition--shake-medium .laundry-loader,
html.pt-leaving .page-transition--shake-high .laundry-loader,
html.pt-active .page-transition--shake-medium .laundry-loader,
html.pt-active .page-transition--shake-high .laundry-loader {
  animation: pt-shake 3s ease-in-out infinite;
}

/* The same four-beat rock as the loader's own, at the configured amplitude
   (0.5deg / 1.0deg / 1.8deg). */
@keyframes pt-shake {
  65%, 80%, 88%, 96% { transform: rotate(var(--pt-shake, 0.5deg)); }
  50%, 75%, 84%, 92% { transform: rotate(calc(var(--pt-shake, 0.5deg) * -1)); }
  0%, 50%, 100%     { transform: rotate(0deg); }
}

/* The page itself steps back behind the wash. Opacity and transform only:
   no layout is recalculated, so nothing shifts or reflows. */
.pt-leaving body > *:not(.page-transition) {
  opacity: 0;
  transform: translateY(-12px) scale(0.992);
  transition: opacity var(--pt-out) ease, transform var(--pt-out) var(--ease);
}

@keyframes pt-cover {
  from { opacity: var(--pt-from); }
  to   { opacity: 1; }
}

/* ---- Arrival: this page came from an internal link ------------------ */
/* The layer is already over the page before its first paint (the pre-paint
   script in includes/page-transition.php adds the class from <head>), so all
   that is left is to hold the machine and then reveal the page. Both are
   animations on purpose: they complete on their own even if main.js never
   runs, and the reveal's last 1% hands the element back to the idle state
   (hidden, out of the accessibility tree). */
.pt-active .page-transition {
  opacity: 1;
  /* Longhands, each with its own fallback, rather than one shorthand: if a
     custom property were ever missing or invalid, a shorthand would drop the
     whole declaration (including the animation name) and leave the layer with
     nothing to end it. Split like this, the worst case is a zero duration -
     the reveal is then instant, and the layer still takes itself away. */
  animation-name: pt-reveal;
  animation-duration: var(--pt-in, 560ms);
  animation-timing-function: var(--pt-ease-in, cubic-bezier(0.4, 0, 0.2, 1));
  animation-delay: var(--pt-hold, 0ms);
  animation-fill-mode: forwards;
}

/* The machine materialises on exactly the curve the wash arrived on, carried
   on from the page being left (--pt-enter-back), and then drifts gently larger
   as the layer dissolves. */
.pt-active .page-transition__inner {
  animation:
    pt-machine-in var(--pt-enter) var(--pt-ease-enter) var(--pt-enter-back, 0ms) both,
    pt-machine-out var(--pt-in) var(--pt-ease-in) var(--pt-hold) forwards;
}

/* The footer's identity and the caption lift in on that same curve and are
   carried across the hand-over exactly like the machine. The destination title
   needs no rule of its own: it is inside `__inner`, which animates as a whole,
   so the machine and its label always arrive as one piece. With "Branding
   entrance animation" switched off the elements are simply there, with no
   movement at all. */
.pt-active .page-transition__brand,
.pt-active .page-transition__caption {
  animation: pt-brand-in var(--pt-enter) var(--pt-ease-enter) var(--pt-enter-back, 0ms) both;
}

.page-transition--no-brand-anim .page-transition__brand,
.page-transition--no-brand-anim .page-transition__caption {
  animation: none;
}

@keyframes pt-drum {
  to { transform: rotate(360deg); }
}

@keyframes pt-machine-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@keyframes pt-machine-out {
  from { transform: none; }
  to   { transform: scale(1.06); }
}

@keyframes pt-brand-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pt-reveal {
  99%  { opacity: 0; }
  100% { opacity: 0; visibility: hidden; }
}

/* ---- Responsive sizing ---------------------------------------------- */
/* --pt-scale stays in every rule, so "Machine size" means the same thing at
   every width; the base unit is what changes. The centre keeps its centring and
   never overflows (the composition is capped by the layer's own max-width, and
   the title and caption wrap); the footer is capped the same way and the logo by
   74vw / the viewport height. Both groups are checked at every width and height
   in _qa/phase154-browser-test.cjs. */
@media (max-width: 480px) {
  .page-transition .laundry-loader { --size: calc(1.2px * var(--pt-scale, 1)); }  /* 144 x 180 */
  .page-transition__inner { padding: 1rem; gap: calc(var(--pt-gap, 1.1rem) * 0.85); }
  .page-transition__title { font-size: min(var(--pt-title-size), 1.4rem); }
  .page-transition__title--brand { font-size: min(var(--pt-brand-size), 1.5rem); }
}

@media (min-width: 1024px) {
  .page-transition .laundry-loader { --size: calc(1.6px * var(--pt-scale, 1)); }  /* 192 x 240 */
}

/* ---- Short screens --------------------------------------------------- */
/* Landscape phones, phones with the browser chrome showing and small laptop or
   split-view windows: here the machine, its caption and the footer would
   otherwise meet in the middle of the screen. The machine loses a little size,
   the spacing tightens, and the footer's own height is capped by the viewport
   height — so the composition and the footer stay apart and nothing is clipped,
   while the machine keeps the centre of the screen.
   The two tiers are sized from the arithmetic, not by eye: the composition is
   centred, so its bottom edge sits at (H + inner) / 2, while the footer's top
   edge sits at H - brand-bottom - footer. With the tallest footer the panel
   allows (logo + brand title + destination title + caption) the full-size
   composition needs about 553px of height, the 620px tier needs about 433px and
   the 480px tier needs about 286px — so the tiers cover every height down to a
   320px landscape phone with room to spare, and neither the caption nor the
   machine can ever reach the footer.
   These blocks are placed after the width-based rules on purpose: on a phone
   held sideways it is the *height*, not the width, that decides how much room
   the machine and the branding each get. */
@media (max-height: 620px) {
  .page-transition .laundry-loader { --size: calc(1.15px * var(--pt-scale, 1)); }  /* 138 x 172 */
  .page-transition__inner { padding: 0.75rem; gap: calc(var(--pt-gap, 1.1rem) * 0.6); }
  .page-transition__brand { --pt-brand-bottom: clamp(0.5rem, 2vh, 1rem); }
  .page-transition__logo { max-height: min(var(--pt-logo-h), 12vh); }
  .page-transition__title { font-size: min(var(--pt-title-size), 1.05rem); }
  .page-transition__title--brand { font-size: min(var(--pt-brand-size), 1.15rem); }
  .page-transition__caption { font-size: min(var(--pt-caption-size), 0.8125rem); }
}

@media (max-height: 480px) {
  .page-transition .laundry-loader { --size: calc(0.7px * var(--pt-scale, 1)); }  /* 84 x 105 */
  .page-transition__inner { padding: 0.6rem; gap: calc(var(--pt-gap, 1.1rem) * 0.5); }
  .page-transition__brand { --pt-brand-bottom: clamp(0.4rem, 1.5vh, 0.75rem); gap: calc(var(--pt-gap, 1.1rem) * 0.4); }
  .page-transition__logo { max-height: min(var(--pt-logo-h), 8vh); }
  .page-transition__title { font-size: min(var(--pt-title-size), 0.95rem); }
  .page-transition__title--brand { font-size: min(var(--pt-brand-size), 1rem); }
}

/* ---- Reduced motion -------------------------------------------------- */
/* The transition is still offered, but as a plain, brief cover: the drum, the
   shake, the machine's entrance and the branding's entrance are all switched
   off, the page does not fade or move, the layer is revealed in one short step,
   and the long beat the full transition uses is ignored entirely (the reveal
   below names its own delay, so the --pt-hold carried over from the click never
   applies). Both groups — the machine with its destination title and caption,
   and the site's identity in the footer — are still rendered; they simply do not
   move. */
@media (prefers-reduced-motion: reduce) {
  .pt-leaving .page-transition .laundry-loader,
  .pt-leaving .page-transition .laundry-loader::after,
  .pt-active .page-transition .laundry-loader,
  .pt-active .page-transition .laundry-loader::after,
  .pt-active .page-transition__inner,
  .pt-active .page-transition__brand,
  .pt-active .page-transition__caption {
    animation: none;
  }

  .pt-leaving body > *:not(.page-transition) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pt-leaving .page-transition {
    animation: pt-cover 1ms linear forwards;
  }

  .pt-active .page-transition {
    opacity: 1;
    animation: pt-reveal-lite 120ms linear 120ms forwards;
  }

  @keyframes pt-reveal-lite {
    99%  { opacity: 0; }
    100% { opacity: 0; visibility: hidden; }
  }

}

