/* =============================================================
   My Eagle Coach — brand tokens
   Built on Delta Systems foundations, recolored for Eagle audience.
   Navy + Gold heritage palette, modernized.
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=JetBrains+Mono:wght@400;500;700&family=Silkscreen:wght@400;700&display=swap");

:root {
  /* === BRAND — matches real app tokens ===================== */
  --navy-900: #07315a;     /* hover/deep */
  --navy-800: #0a3a6b;
  --navy-700: #0c447c;     /* eagle-navy (PRIMARY) */
  --navy-600: #0c447c;
  --navy-500: #2c66a8;
  --navy-400: #5b9bd5;
  --navy-300: #85b7eb;     /* eagle-focus-ring */
  --navy-200: #c0d4e8;
  --navy-100: #e6f1fb;     /* eagle-navy-light */
  --navy-050: #f4f8fd;

  /* Amber — eagle-amber */
  --gold-700: #7a5a10;     /* eagle-amber-dark */
  --gold-600: #9c7415;
  --gold-500: #f5a623;     /* eagle-amber (PRIMARY) */
  --gold-400: #f7b649;
  --gold-300: #fac775;     /* eagle-amber-border */
  --gold-200: #fde0a0;
  --gold-100: #ffe8c0;
  --gold-050: #fff8eb;     /* eagle-amber-bg */

  /* Paper — eagle-bg */
  --paper-100: #faf6f0;    /* eagle-bg */
  --paper-200: #f5efe5;    /* eagle-hover-bg */
  --paper-300: #ede7dd;    /* eagle-track-bg */

  /* Green — eagle-green */
  --green-700: #085041;    /* eagle-green-text */
  --green-600: #0f6e56;    /* eagle-green-dark */
  --green-500: #1d9e75;    /* eagle-green */
  --green-100: #e8f5ee;    /* eagle-green-bg */

  /* Red */
  --red-600: #e24b4a;      /* eagle-red */
  --red-100: #fde8e8;      /* eagle-red-bg */

  /* Surfaces */
  --surface-canvas:  #fafbfc;
  --surface-raised:  #ffffff;
  --surface-sunken:  #f2f4f7;
  --border-subtle:   #e1e5eb;
  --border-strong:   #c5cdd8;

  /* Ink — matches real app */
  --ink-primary:   #1a1a1a;     /* eagle-text */
  --ink-secondary: #706858;     /* eagle-text-secondary */
  --ink-tertiary:  #797063;     /* eagle-text-muted */
  --ink-inverse:   #ffffff;
  --border-eagle:  #998d72;     /* eagle-border */

  /* Brand semantic aliases */
  --brand:        var(--navy-600);
  --brand-deep:   var(--navy-900);
  --brand-hover:  var(--navy-700);
  --accent:       var(--gold-500);
  --accent-bright:var(--gold-300);
  --accent-soft:  var(--gold-050);

  /* Typography — system stack like real app */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --font-pixel: "Silkscreen", monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-1: 0 2px 8px rgba(11, 29, 51, 0.06);
  --shadow-2: 0 8px 24px rgba(11, 29, 51, 0.10);
  --shadow-3: 0 24px 48px rgba(11, 29, 51, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-primary);
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink-primary);
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--brand); text-decoration: none; }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--gold { color: var(--gold-600); }
.eyebrow--white { color: rgba(255,255,255,0.75); }

/* Pill chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  color: var(--ink-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 180ms var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 1px 2px rgba(11,29,51,0.2);
}
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn--gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 1px 2px rgba(184,119,30,0.4);
}
.btn--gold:hover { background: var(--gold-400); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink-primary);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-sunken); }
.btn--ghost-dark {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* Section helpers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 960px; }
.container--wide { max-width: 1320px; }

/* Pixel display */
.pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
}

/* Serif accent */
.serif { font-family: var(--font-serif); font-weight: 500; }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

/* Dotted background motif */
.dotted-bg {
  background-image: radial-gradient(circle, rgba(29, 77, 133, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Topo / contour line motif */
.topo-bg {
  background-color: var(--navy-900);
  background-image:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(216,145,40,0.06), transparent 60%),
    radial-gradient(ellipse 800px 500px at 80% 70%, rgba(45,102,168,0.18), transparent 60%);
}

/* Star field */
.star-field {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(250,166,41,0.5), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(250,166,41,0.4), transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}

/* Utility */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Mock scroller — horizontally scrollable product shots on mobile */
.mock-scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}
.mock-scroller::-webkit-scrollbar { display: none; }

/* =============================================================
   Mobile responsive overrides
   ============================================================= */

/* Button sizes — shrink slightly on small screens */
@media (max-width: 640px) {
  .btn--lg {
    height: 48px;
    padding: 0 20px;
    font-size: 15px;
  }
  .btn--primary,
  .btn--gold,
  .btn--ghost,
  .btn--ghost-dark {
    white-space: nowrap;
  }
}

/* Mobile nav toggle */
.mobile-nav-open {
  display: flex !important;
}

/* Hide nav link underline on mobile */
@media (max-width: 768px) {
  .nav-active-indicator { display: none; }
}
