/* ==========================================================================
   base.css — design tokens, reset, and base typography
   Family & Christian Wellness Center
   ========================================================================== */

:root {
  /* Surfaces — warm white / soft sand */
  --warm-white: #fbf8f3;
  --sand: #f3ece0;
  --sand-deep: #e7dcc9;
  --surface: #fffdf9;

  /* Greens — muted sage / deep olive */
  --sage: #a9b39a;
  --sage-soft: #dfe3d6;
  --olive: #465041;
  --olive-deep: #333c30;

  /* Ink — deep charcoal */
  --ink: #24231f;
  --ink-soft: #4c4a43;
  --ink-muted: #6b6860;

  /* Accent drawn from the existing logo */
  --claret: #8e2b41;
  --claret-deep: #6f2033;
  --gold: #e5ab1c;

  --line: #ded5c6;
  --line-soft: #ebe3d6;

  /* Semantic roles */
  --color-bg: var(--warm-white);
  --color-surface: var(--surface);
  --color-text: var(--ink);
  --color-text-soft: var(--ink-soft);
  --color-text-muted: var(--ink-muted);
  --color-border: var(--line);
  --color-primary: var(--olive);
  --color-primary-hover: var(--olive-deep);
  --color-accent: var(--claret);

  /* Type */
  --font-display: "Gambetta", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Switzer", "Segoe UI", system-ui, -apple-system, sans-serif;

  --text-xs: 0.875rem;   /* 14px */
  --text-sm: 0.9375rem;  /* 15px */
  --text-base: 1.0625rem;/* 17px */
  --text-lg: 1.1875rem;  /* 19px */
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --text-2xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --text-hero: clamp(2.25rem, 1.5rem + 4.2vw, 4rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;

  --shell: 74rem;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(36, 35, 31, 0.06), 0 1px 8px rgba(36, 35, 31, 0.04);
  --shadow-md: 0 2px 4px rgba(36, 35, 31, 0.05), 0 12px 32px -12px rgba(36, 35, 31, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--olive-deep);
  text-wrap: balance;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }

p { margin: 0 0 var(--space-4); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--claret); }

strong { font-weight: 600; }

/* ---------- Focus & skip link ---------- */
:focus-visible {
  outline: 3px solid var(--claret);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--olive-deep);
  color: var(--warm-white);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--warm-white);
}

/* ---------- Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 60rem) {
  .shell { padding-inline: var(--space-8); }
}

.eyebrow {
  margin: 0 0 var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--claret);
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-soft);
}

.link {
  color: var(--claret);
  font-weight: 500;
  text-decoration: underline;
}
.link:hover { color: var(--claret-deep); }

/* ---------- Buttons (44px minimum touch target) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--lg { min-height: 52px; padding: 0.9rem 1.75rem; font-size: var(--text-base); }

.btn--primary {
  background: var(--olive);
  color: #fdfbf7;
  border-color: var(--olive);
}
.btn--primary:hover { background: var(--olive-deep); border-color: var(--olive-deep); color: #fdfbf7; }

.btn--outline {
  background: transparent;
  color: var(--claret);
  border-color: var(--claret);
}
.btn--outline:hover { background: var(--claret); color: #fdfbf7; }

.btn--ghost {
  background: transparent;
  color: var(--olive-deep);
  border-color: var(--color-border);
}
.btn--ghost:hover { background: var(--sand); color: var(--olive-deep); border-color: var(--sage); }

.btn:active { transform: translateY(1px); }

@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;
  }
}
