/* =============================================================
 * Padel Core — brand tokens
 * Generated from Manual de Identidad (Manual de Marca).
 * Import this file first, then use the CSS variables throughout
 * the e-commerce.
 * ============================================================= */

/* -- Typography --------------------------------------------------
 * Primary (display / headers): "It Tenoviana Demo" Italic
 *   ↳ Commercial font. Ask the designer for the licensed file and
 *     self-host it via @font-face; do NOT load from an unknown CDN.
 *
 * Secondary (body, UI): Satoshi — free via Fontshare.
 *   <link rel="preconnect" href="https://api.fontshare.com">
 *   <link href="https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap" rel="stylesheet">
 * -------------------------------------------------------------- */

/* @font-face for Tenoviana is disabled until the designer provides the licensed .woff2 file.
   Place it at /public/fonts/tenoviana-demo-italic.woff2 and uncomment the block below.

@font-face {
  font-family: "Tenoviana";
  src: url("/fonts/tenoviana-demo-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
*/

:root {
  /* -- Brand palette (hex from manual) -- */
  --pc-navy:        #132d46;   /* primary — text, dark surfaces, CTAs on light bg */
  --pc-purple:      #80539c;   /* accent personality — badges, secondary highlights */
  --pc-teal:        #76a4ae;   /* supporting blue — decorative surfaces */
  --pc-mist:        #d4ebf0;   /* light background — cards, sections */
  --pc-lime:        #96c236;   /* performance accent — primary CTA, "sale" tags */

  /* -- Neutrals -- */
  --pc-white:       #ffffff;
  --pc-black:       #000000;
  --pc-gray-50:     #f7f9fa;
  --pc-gray-100:    #eef2f5;
  --pc-gray-200:    #dbe3e9;
  --pc-gray-500:    #6b7a87;
  --pc-gray-700:    #3d4b57;

  /* -- Semantic aliases (use these in component CSS) -- */
  --color-bg:          var(--pc-white);
  --color-bg-subtle:   var(--pc-mist);
  --color-bg-inverse:  var(--pc-navy);
  --color-text:        var(--pc-navy);
  --color-text-muted:  var(--pc-gray-500);
  --color-text-inverse:var(--pc-white);
  --color-primary:     var(--pc-navy);
  --color-accent:      var(--pc-lime);      /* main CTA */
  --color-accent-alt:  var(--pc-purple);    /* secondary CTA / badges */
  --color-border:      var(--pc-gray-200);

  /* -- Typography scale -- */
  --font-display: "Tenoviana", "Satoshi", system-ui, sans-serif;
  --font-body:    "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-xs:   0.75rem;     /* 12px */
  --text-sm:   0.875rem;    /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg:   1.125rem;    /* 18px */
  --text-xl:   1.25rem;     /* 20px */
  --text-2xl:  1.5rem;      /* 24px */
  --text-3xl:  2rem;        /* 32px */
  --text-4xl:  2.5rem;      /* 40px */
  --text-5xl:  3.25rem;     /* 52px */

  /* -- Spacing / radius / shadow -- */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(19 45 70 / 6%);
  --shadow-md: 0 4px 12px rgb(19 45 70 / 10%);
  --shadow-lg: 0 12px 32px rgb(19 45 70 / 14%);
}

/* -- Base styles -- */
html {
  color-scheme: light;
}
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* -- Helper: brand-colored logo via currentColor ----------------
 * The shipped logo SVGs use fill="currentColor", so you can tint
 * them with `color` in CSS:
 *
 *   <img src="/logo/logo-horizontal.svg" class="logo"/>   (doesn't work — img can't be recolored)
 *   <svg>…paths with fill="currentColor"…</svg>           (inline SVG → recolorable)
 *
 * Recommended pattern: inline the SVG in your template OR ship a
 * pre-colored variant (we include white and black PNGs too).
 * -------------------------------------------------------------- */

/* -- Example: primary CTA button (lime with navy text) -- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--pc-navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* -- Example: secondary CTA (navy outline) -- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--pc-navy);
  font-weight: 700;
  border: 2px solid var(--pc-navy);
  border-radius: var(--radius-md);
  cursor: pointer;
}
