/* ==========================================================================
   common.css — site-wide tokens only (colors, type, spacing, resets)
   Page and section styles never live here.
   ========================================================================== */

:root {
  /* --- Color ---------------------------------------------------------- */
  /* The family red, carried through as an accent thread — never wallpaper.
     Starting point measured off the sales site + the building signage. */
  --red: #c8202a;
  --red-deep: #a4161f;   /* hover / red text on light grounds */
  --red-ink: #8c1219;    /* small red text that still needs contrast */

  /* Warm, light ground: "clean specialist" brightness with hometown warmth */
  --paper: #fbf8f5;
  --paper-tint: #f3eee8;
  --paper-edge: #e6ded4;

  --ink: #1c1b19;        /* warm near-black */
  --ink-soft: #55504a;
  --ink-mute: #7d766e;
  --white: #ffffff;

  /* --- Type ----------------------------------------------------------- */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 0.4vw + 1.05rem, 1.3125rem);
  --step-2: clamp(1.5rem, 1vw + 1.25rem, 2rem);
  --step-3: clamp(2rem, 2vw + 1.5rem, 2.75rem);
  --step-4: clamp(2.5rem, 4.2vw + 1rem, 4.25rem);

  /* --- Space ---------------------------------------------------------- */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4.5rem;
  --sp-8: 6rem;

  --page-max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  /* The three-column rhythm every section aligns to */
  --grid-gap: clamp(1.25rem, 2.5vw, 2rem);

  --radius: 4px;
  --radius-lg: 14px;

  --shadow-soft: 0 18px 40px -24px rgba(28, 27, 25, 0.45);
  --ease: cubic-bezier(0.32, 0.72, 0.3, 1);
}

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

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

/* Menu jumps stop below the pinned header rather than under it */
[id] { scroll-margin-top: 92px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0; }

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

a { color: inherit; }

button { font: inherit; }

/* --- Shared helpers --------------------------------------------------- */
.page-width {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small red eyebrow used above section headings.
   Site rule: never put a dash, rule or line before an eyebrow. */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-ink);
  margin: 0;
}

/* Shared section heading block. The small red label takes the first of three
   columns; the heading and copy start where the second column does and run to
   the right edge of the layout, so every section lines up with the cards. */
.section-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: start;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head > .eyebrow { grid-column: 1; }

.section-head > :not(.eyebrow) { grid-column: 2 / -1; }

.section-head h2 {
  font-size: var(--step-3);
  text-wrap: pretty;
}

.section-head__intro {
  margin-top: var(--sp-3);
  color: var(--ink-soft);
}

/* When the heading block is the section's only content, its trailing margin
   would make the space below look bigger than the space above. Drop it so the
   section padding reads as equal top and bottom. */
.section-head:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .section-head > .eyebrow,
  .section-head > :not(.eyebrow) { grid-column: 1; }
}

/* Optional hard line break inside a heading; collapses on narrow screens so it
   never leaves an awkward orphan line on a phone. */
@media (max-width: 640px) {
  br.h-break { display: none; }
}

/* Red circular step number, shared by the services and the how-we-work steps */
.num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: var(--sp-3);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.3s var(--ease);
}

/* The number swells and picks up a soft red halo when its block is hovered */
.num-badge-host:hover .num-badge {
  transform: scale(1.14);
  background: var(--red-deep);
  box-shadow: 0 0 0 7px rgba(200, 32, 42, 0.12);
}

/* Slots for photography and quotes the client hasn't supplied yet.
   Deliberately look unfinished so nothing fake ships. */
.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  text-align: center;
  padding: var(--sp-5);
  border: 1.5px dashed var(--paper-edge);
  border-radius: var(--radius-lg);
  background: var(--paper-tint);
  color: var(--ink-mute);
}

.slot__label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.slot__note {
  font-size: var(--step--1);
  max-width: 34ch;
  line-height: 1.5;
}

/* Book online (Podium) slot: keep it clearly separated from the block above.
   In every closing band it sits below the call actions; on the contact page it
   sits below the request form and needs a touch more air so they don't merge. */
.closing .book-slot { margin-top: 20px; }
.book-slot--contact { margin-top: 40px; }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn {
  box-shadow: 0 0 0 0 rgba(200, 32, 42, 0);
}

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

.btn--primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -12px rgba(164, 22, 31, 0.75);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 27, 25, 0.28);
}

.btn--outline:hover {
  color: var(--red);
  border-color: var(--red);
  background: transparent;
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); box-shadow: none; }

/* The phone icon leans in slightly as you hover the call button */
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: rotate(-12deg) scale(1.06); }

/* --- Reveal on scroll --------------------------------------------------
   Calm and purposeful: content lifts a little as it comes into view, once.
   The `.js` guard means everything stays visible if scripts don't run. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease) var(--d, 0s),
              transform 0.7s var(--ease) var(--d, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --- A second paragraph in a copy slot --------------------------------- */
/* Prose fields that can hold more than one paragraph repeat their own wrapper
   (inc/prose.php, trsp_paragraphs()), so a pair needs a gap: the site default
   is `p { margin: 0 }` and would run them together. Every one of these is inert
   on the 18 approved pages, which each carry a single paragraph; the pattern is
   .service-card p + p in sections/services.css, which shipped with the build.
   Each selector repeats its own class so it cannot reach an unrelated sibling
   paragraph (.intro__statement + .intro__support, .review-card__text +
   .review-card__note) and so it outranks the single-class rule in the section
   sheet that loads after this one. */
.section-head__intro + .section-head__intro,
.hero__lede + .hero__lede,
.intro__support + .intro__support,
.pickup__body + .pickup__body,
.cross__body + .cross__body,
.cost__body + .cost__body,
.getting-here__lede + .getting-here__lede,
.type-group__intro + .type-group__intro,
.review-card__text + .review-card__text { margin-top: var(--sp-3); }

.how__step p + p,
.audience-card p + p,
.handle__item p + p,
.type-card__body p + p,
.loc-card p + p,
.faq__a-inner p + p { margin-top: var(--sp-2); }
