/* ============================================================
   Vincent Alves Coaching — Dawn & Dusk Design System
   Palette, typography, components. Production-ready.
   ============================================================ */

:root {
  /* === DAWN (light surfaces) === */
  --paper:   #F5F1EA;
  --sand:    #E8DFD0;
  --dawn:    #F0E4D7;
  --bone:    #E8E5DE;
  --ink:     #1A1814;

  /* === DUSK (dark surfaces) === */
  --slate:   #0F1419;
  --horizon: #2A3947;
  --steel:   #8B95A1;

  /* === ACCENTS === */
  --ember:      #C44B2A;
  --ember-soft: rgba(196, 75, 42, 0.10);
  --mist:       #9FB3C8;
  --mist-soft:  rgba(159, 179, 200, 0.10);

  /* === Type === */
  --serif:        "Merriweather", Georgia, "Times New Roman", serif;
  --serif-italic: "Cormorant Garamond", "Merriweather", Georgia, serif;
  --sans:         "Figtree", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:         "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* === Type scale === */
  --scale: 1;
  --fs-mini:  calc(11px * var(--scale));
  --fs-micro: calc(12px * var(--scale));
  --fs-xs:    calc(13px * var(--scale));
  --fs-sm:    calc(14px * var(--scale));
  --fs-base:  calc(16px * var(--scale));
  --fs-md:    calc(18px * var(--scale));
  --fs-lg:    calc(22px * var(--scale));
  --fs-xl:    calc(28px * var(--scale));
  --fs-2xl:   calc(36px * var(--scale));
  --fs-3xl:   calc(48px * var(--scale));
  --fs-4xl:   calc(64px * var(--scale));
  --fs-5xl:   calc(88px * var(--scale));

  /* === Density === */
  --density: 1;
  --sp-1: calc(4px  * var(--density));
  --sp-2: calc(8px  * var(--density));
  --sp-3: calc(12px * var(--density));
  --sp-4: calc(16px * var(--density));
  --sp-5: calc(20px * var(--density));
  --sp-6: calc(24px * var(--density));
  --sp-8: calc(32px * var(--density));
  --sp-10: calc(40px * var(--density));
  --sp-12: calc(48px * var(--density));
  --sp-16: calc(64px * var(--density));

  /* === Radii — tight, by brand === */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  /* === Section divider === */
  --rule-w: 80px;
  --rule-h: 1px;

  /* === Surface bindings (mode-dependent) === */
  --bg:       var(--paper);
  --bg-2:     var(--sand);
  --fg:       var(--ink);
  --fg-quiet: rgba(26, 24, 20, 0.65);
  --border:   rgba(26, 24, 20, 0.12);
  --card:     var(--bone);
  --on-accent: var(--bone);

  /* === Motion === */
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* === Layout === */
  --section-pad: 128px;
}

[data-mode="dusk"] {
  --bg:       var(--slate);
  --bg-2:     var(--horizon);
  --fg:       var(--bone);
  --fg-quiet: var(--steel);
  --border:   rgba(232, 229, 222, 0.12);
  --card:     var(--horizon);
  --on-accent: var(--bone);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* === Typography helpers === */
.va-serif        { font-family: var(--serif); }
.va-italic       { font-family: var(--serif-italic); font-style: italic; }
.va-sans         { font-family: var(--sans); }
.va-mono         { font-family: var(--mono); }

.va-h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6vw, var(--fs-4xl));
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}
.va-h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.va-h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.va-h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.2;
  margin: 0;
}
.va-italic-display {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, var(--fs-3xl));
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ember);
  margin: 0;
}
.va-body {
  font-family: var(--serif);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--fg);
  margin: 0;
}
.va-body-sans {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--fg);
  margin: 0;
}
.va-eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-mini);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ember);
  margin: 0;
}
.va-caption {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  color: var(--fg-quiet);
  letter-spacing: 0.02em;
  margin: 0;
}
.fine-print {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  color: var(--fg-quiet);
  line-height: 1.5;
  margin: 0;
}

/* === Section divider — Ember rule === */
.va-rule {
  display: block;
  width: var(--rule-w);
  height: var(--rule-h);
  background: var(--ember);
  border: 0;
  margin: 0;
}
.va-rule.center { margin-left: auto; margin-right: auto; }

/* === Buttons / CTAs === */
.va-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--ember);
  border: 1px solid var(--slate);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, box-shadow 200ms ease;
}
.va-cta:hover { background: #A53D21; }
.va-cta:active { transform: translateY(1px); }
.va-cta:disabled,
.va-cta.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.va-cta--mist {
  background: var(--mist);
  color: var(--slate);
  border-color: var(--slate);
}
.va-cta--mist:hover { background: #8DA4BC; }
.va-cta--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}
.va-cta--ghost:hover { background: rgba(26, 24, 20, 0.08); }
[data-mode="dusk"] .va-cta--ghost:hover { background: rgba(232, 229, 222, 0.08); }
.va-cta--text {
  background: transparent;
  color: var(--ember);
  border: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--ember);
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0;
}
.va-cta--lg { padding: 18px 28px; font-size: var(--fs-sm); }
.va-cta--sm { padding: 10px 16px; font-size: var(--fs-mini); }

/* === Em-dash list === */
.va-list { list-style: none; padding: 0; margin: 0; }
.va-list li {
  font-family: var(--serif);
  font-size: var(--fs-base);
  line-height: 1.6;
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
  color: var(--fg);
}
.va-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ember);
  font-weight: 700;
}

/* === Cards === */
.va-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
}

/* === Inputs === */
.va-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.va-input:focus {
  outline: 0;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(196, 75, 42, 0.18);
}
.va-input::placeholder { color: var(--fg-quiet); }
.va-label {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-mini);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-quiet);
  margin: 0 0 6px;
}

/* === Surface utilities === */
.va-surface {
  background: var(--bg);
  color: var(--fg);
  transition: background 250ms ease, color 250ms ease;
}

/* ============================================================
   Layout & sections
   ============================================================ */
.va-inner       { max-width: 1040px; margin: 0 auto; padding: 0 40px; }
.va-inner-wide  { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.va-inner-narrow{ max-width: 880px;  margin: 0 auto; padding: 0 40px; }

.va-section {
  padding: var(--section-pad) 0;
  background: var(--bg);
  color: var(--fg);
  position: relative;
}

/* ============================================================
   Nav (shared) — dawn + dusk surfaces
   Used on every non-homepage page. Homepage uses its own
   sticky-adaptive nav inline.
   ============================================================ */
.va-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.va-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.va-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}
.va-brand img { width: 32px; height: 32px; object-fit: contain; }
.va-brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fg);
}
.va-brand-name em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
}
.va-nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.va-nav-links a {
  color: var(--fg);
  opacity: 0.78;
  transition: opacity 150ms ease;
}
.va-nav-links a:hover { opacity: 1; }
.va-nav-actions { display: flex; align-items: center; gap: 16px; }
.va-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  transition: color 200ms ease;
}
.va-social:hover { color: var(--ember); }
.va-social:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 760px) {
  .va-nav-links { display: none; }
}

/* ============================================================
   Footer (always Dusk)
   ============================================================ */
.va-footer {
  background: var(--slate);
  color: var(--bone);
  padding: 80px 0 40px;
}
.va-footer .va-inner-wide,
.va-footer .va-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.va-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.va-footer-mark {
  font-family: var(--serif-italic);
  font-style: italic;
  color: var(--ember);
  font-size: 32px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.va-footer-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.08em;
  margin-top: 8px;
  text-transform: uppercase;
}
.va-footer-blurb {
  font-size: 14px;
  color: var(--steel);
  max-width: 46ch;
  margin-top: 24px;
  line-height: 1.6;
}
.va-footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}
.va-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 14px;
}
.va-footer-links a {
  color: var(--steel);
  position: relative;
  padding-bottom: 2px;
}
.va-footer-links a:hover { color: var(--bone); }
.va-footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--bone);
}
.va-footer-meta {
  font-size: 13px;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--horizon);
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .va-footer-side { align-items: flex-start; }
  .va-footer-links { justify-content: flex-start; }
}

/* ============================================================
   Hero — homepage only
   ============================================================ */
@keyframes va-kenburns {
  0%   { transform: scale(1.00); }
  100% { transform: scale(1.04); }
}
.va-kenburns {
  animation: va-kenburns 20s var(--ease) infinite alternate;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.va-hero { position: relative; overflow: hidden; }
.va-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,20,25,0.35) 0%, rgba(15,20,25,0.05) 28%, rgba(15,20,25,0) 55%, rgba(15,20,25,0.6) 100%);
}

/* ============================================================
   Reveal animation (fade-up on scroll)
   ============================================================ */
.va-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.va-reveal.in,
.no-js .va-reveal { opacity: 1; transform: none; }

/* ============================================================
   Mobile responsive helpers
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-pad: 88px; }
}
@media (max-width: 640px) {
  :root { --section-pad: 64px; }
  .va-inner, .va-inner-wide, .va-inner-narrow { padding: 0 24px; }
}
