/* ============================================================
   SHARED BASE — reset, tokens, primitives for all demo sites.
   Each site overrides the tokens below in its own <style> block.
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body, "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: var(--fs-body, 1.0625rem);
  line-height: 1.6;
  color: var(--ink, #1b1b1b);
  background: var(--bg, #ffffff);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent, #c4552d);
  color: var(--accent-ink, #fff);
}

:focus-visible {
  outline: 3px solid var(--accent, #c4552d);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout primitives ---------- */

.wrap {
  width: min(var(--maxw, 1180px), 100% - 2 * var(--gutter, clamp(1.25rem, 4vw, 3rem)));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section, clamp(3.5rem, 8vw, 7rem));
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- typography primitives ---------- */

.display {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-weight: var(--display-weight, 700);
  line-height: var(--display-lh, 0.98);
  letter-spacing: var(--display-ls, -0.02em);
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, #c4552d);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.62;
  color: var(--ink-soft, #4a4a4a);
  text-wrap: pretty;
}

.muted {
  color: var(--ink-muted, #7c7c7c);
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--accent, #c4552d);
  --btn-ink: var(--accent-ink, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius-btn, 999px);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.25s, background-color 0.25s, color 0.25s;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgb(0 0 0 / 0.45);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--ink, #1b1b1b);
  border-color: var(--line, rgb(0 0 0 / 0.18));
}

.btn--ghost:hover {
  background: var(--ink, #1b1b1b);
  color: var(--bg, #fff);
  border-color: var(--ink, #1b1b1b);
}

.btn--wide {
  width: 100%;
}

/* ---------- cards ---------- */

.card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgb(0 0 0 / 0.1));
  border-radius: var(--radius-card, 22px);
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* screenshot / print mode: no entrance animation */
html.shot .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media print {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

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

.phone-link {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--ink, #1b1b1b);
  color: var(--bg, #fff);
  border-radius: 10px;
  font-weight: 700;
  transition: top 0.2s;
}

.skip:focus {
  top: 1rem;
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
