/* ============================================================
   Spotted Fox — Landing page shared primitives
   Built on the bound design-system tokens (_ds/.../styles.css).
   ============================================================ */

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

/* --- Brand value lock: keep deck + site perfectly cohesive --- */
:root {
  /* Accessible accent scale — WCAG AA (>=4.5:1) as text on white/muted
     backgrounds and as a button fill behind white text. The brighter brand
     orange (~3.0:1) stays for decorative use on dark bands via
     --sf-orange-bright. */
  --sf-orange: #B34D17;          /* 5.26:1 on white · 4.71:1 on muted */
  --sf-orange-hover: #9E4214;
  --sf-orange-active: #8A380F;
  --surface-inverse: #1A1A1A;    /* one dark surface everywhere */
  --surface-dark: #1A1A1A;
  --sf-ink: #1A1A1A;             /* footer / dark blocks match deck */
  --shadow-orange: 0 10px 28px rgba(232, 117, 42, 0.28);
  --shadow-focus: 0 0 0 3px rgba(232, 117, 42, 0.30);
}

html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text-body);
  background: var(--surface-page); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }

/* ---- Skip link (keyboard / screen-reader users) ---- */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 300;
  background: var(--sf-orange); color: #fff; font-family: var(--font-display);
  font-weight: 700; padding: 10px 18px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); transition: top var(--dur-base) var(--ease-out); }
.skip-link:focus { top: 12px; color: #fff; outline: none; }

/* ---- Eyebrow ---- */
.eyebrow { font-family: var(--font-display); font-weight: 700;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--sf-orange); font-size: 0.875rem; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 700; letter-spacing: var(--ls-button);
  font-size: 1.0625rem; line-height: 1; padding: 1.05em 1.85em;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-base) var(--ease-standard),
    color var(--dur-base) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--sf-orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--sf-orange-hover); color: #fff; }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary { background: transparent; color: var(--sf-ink); border-color: var(--sf-charcoal); }
.btn-secondary:hover { background: var(--sf-ink); color: #fff; border-color: var(--sf-ink); }
.btn-ghost { background: transparent; color: var(--sf-orange); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--sf-orange-hover); }
.btn-lg { font-size: 1.1875rem; padding: 1.15em 2.1em; }
.btn-ondark.btn-secondary { color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ondark.btn-secondary:hover { background: #fff; color: var(--sf-ink); border-color: #fff; }

/* ---- Sections ---- */
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-8) 0; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.1; letter-spacing: var(--ls-tight);
  color: var(--text-strong); margin: 0; text-wrap: balance; }
.section-head p { font-size: 1.2rem; color: var(--text-body); margin: 18px 0 0;
  line-height: 1.55; text-wrap: pretty; }

/* ---- Cards ---- */
.card { background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }

/* ---- Pills / chips ---- */
.chip { display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.5em 0.95em;
  border-radius: var(--radius-pill); }
.chip-orange { background: var(--sf-orange-wash); color: var(--sf-orange-active); }
.chip-dark { background: var(--sf-ink); color: #fff; }

/* ---- Form fields (mirrors DS Input) ---- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--text-strong); }
.field input, .field textarea, .field select { font-family: var(--font-body);
  font-size: 1.05rem; color: var(--text-strong); background: #fff;
  border: 1.5px solid var(--border-default); border-radius: var(--radius-md);
  padding: 0.85em 1em; transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.field input::placeholder, .field textarea::placeholder { color: var(--sf-gray-500); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none;
  border-color: var(--sf-orange); box-shadow: var(--shadow-focus); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---- Direction switcher (review aid) ---- */
.dir-switch { position: fixed; bottom: 20px; right: 20px; z-index: 200;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md); font-family: var(--font-display); }
.dir-switch .lbl { font-size: 0.8rem; font-weight: 700; color: var(--sf-gray-500);
  letter-spacing: 0.04em; }
.dir-switch a { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  padding: 7px 15px; border-radius: var(--radius-pill); text-decoration: none;
  color: var(--sf-charcoal); transition: background var(--dur-base), color var(--dur-base); }
.dir-switch a.active { background: var(--sf-orange); color: #fff; }
.dir-switch a:not(.active):hover { background: var(--sf-gray-100); }

/* ---- Reveal: content is always visible (no scroll-gated hiding) ---- */
.reveal { opacity: 1 !important; transform: none !important; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .section { padding: var(--space-8) 0; }
  .dir-switch { bottom: 12px; right: 12px; }
}
