/* ==========================================================================
   Falcon Gaming — shared design system
   Implements DESIGN.md (Claude-style warm editorial: cream canvas, coral,
   dark-navy surfaces, serif display + sans body).
   Load this FIRST on every redesigned page, then the page-specific CSS.
   ========================================================================== */

:root {
  /* brand & accent */
  --primary: #cc785c;
  --primary-active: #a9583e;
  --primary-disabled: #e6dfd8;
  --accent-teal: #5db8a6;
  --accent-amber: #e8a55a;

  /* surfaces */
  --canvas: #faf9f5;
  --surface-soft: #f5f0e8;
  --surface-card: #efe9de;
  --surface-strong: #e8e0d2;
  --dark: #181715;
  --dark-elev: #252320;
  --dark-soft: #1f1e1b;
  --hairline: #e6dfd8;
  --hairline-soft: #ebe6df;

  /* text */
  --ink: #141413;
  --body-strong: #252523;
  --body: #3d3d3a;
  --muted: #6c6a64;
  --muted-soft: #8e8b82;
  --on-primary: #ffffff;
  --on-dark: #faf9f5;
  --on-dark-soft: #a09d96;

  /* semantic */
  --ok: #5db872;
  --warn: #d4a017;
  --bad: #c64545;

  /* radius */
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 9999px;

  /* type */
  --font-display: "Cormorant Garamond", "EB Garamond", "Tiempos Headline", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --wrap: 1200px;
  --pad-x: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 96px);
  --shadow: 0 1px 3px rgba(20,20,19,.08);
  --shadow-lift: 0 18px 50px rgba(20,20,19,.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-active); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

::selection { background: rgba(204,120,92,.22); }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(204,120,92,.30); border-radius: 6px; }

/* ------- layout utilities ------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--surface-soft); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 14px;
}
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 6vw, 60px); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head .lead { color: var(--muted); font-size: 1.05rem; margin: 16px auto 0; max-width: 60ch; }
.lead { font-size: 1.05rem; line-height: 1.7; color: var(--body); }
.muted { color: var(--muted); }

/* ------- buttons ------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: transform .12s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn--secondary { background: var(--canvas); color: var(--ink); border-color: var(--hairline); }
.btn--secondary:hover { background: var(--surface-card); color: var(--ink); }
.btn--on-dark { background: var(--dark-elev); color: var(--on-dark); border-color: rgba(255,255,255,.10); }
.btn--on-dark:hover { background: #2f2c28; color: var(--on-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--primary); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 9px 15px; font-size: 14px; }
.btn--block { width: 100%; }

/* ------- pills / badges ------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-card); color: var(--ink);
  font-size: 13px; font-weight: 600; padding: 5px 13px; border-radius: var(--r-pill);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--primary); color: var(--on-primary);
}
.badge--ok { background: rgba(93,184,114,.16); color: #2f7a43; }
.badge--soft { background: var(--surface-card); color: var(--muted); }

/* ------- cards ------- */
.card {
  background: var(--surface-card); border-radius: var(--r-lg); padding: 32px;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--outline { background: var(--canvas); border-color: var(--hairline); }
.card--dark { background: var(--dark); color: var(--on-dark); }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* ------- forms ------- */
.field { display: block; margin-bottom: 18px; }
.field > label { display: block; font-size: 14px; font-weight: 600; color: var(--body-strong); margin-bottom: 8px; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 12px 14px; outline: none; transition: border-color .16s ease, box-shadow .16s ease;
}
.input::placeholder, input::placeholder, textarea::placeholder { color: var(--muted-soft); }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(204,120,92,.16); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field .error { font-size: 13px; color: var(--bad); margin-top: 6px; }

/* ------- navbar ------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,245,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; padding: 8px 12px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; color: var(--muted); }
.nav__link:hover { color: var(--ink); background: var(--surface-card); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__text { font-size: 14px; font-weight: 500; color: var(--ink); }
.nav__text:hover { color: var(--primary); }
.nav__cart { position: relative; display: inline-flex; color: var(--ink); padding: 6px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  display: none; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; border-radius: var(--r-pill);
}
.lang select { padding: 7px 10px; font-size: 13px; border-radius: var(--r-md); background: var(--canvas); border: 1px solid var(--hairline); color: var(--ink); }
.burger { display: none; flex-direction: column; gap: 4px; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 1px solid var(--hairline); border-radius: var(--r-md); cursor: pointer; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* Mobile dropdown menu is hidden by default (all viewports); only shown when
   toggled open below the mobile breakpoint. */
.nav__mobile { display: none; }

/* ------- footer ------- */
.foot { background: var(--dark); color: var(--on-dark-soft); padding-block: clamp(48px, 7vw, 72px) 28px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { color: var(--on-dark); font-size: 16px; margin-bottom: 16px; }
.foot__brand p { max-width: 34ch; font-size: 14px; line-height: 1.7; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot a { color: var(--on-dark-soft); font-size: 14px; }
.foot a:hover { color: var(--on-dark); }
.foot__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: var(--on-dark-soft); }

/* ------- scroll reveal ------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ------- responsive ------- */
@media (max-width: 900px) {
  .nav__links, .nav__actions .nav__text, .lang { display: none; }
  .burger { display: flex; }
  .nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 12px var(--pad-x) 20px; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
  .nav__mobile.open { display: flex; }
  .nav__mobile a { padding: 12px 10px; border-radius: var(--r-md); color: var(--ink); font-weight: 500; }
  .nav__mobile a:hover { background: var(--surface-card); }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .foot__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card { transition: none !important; }
}
