/* =============================================================
   Pronto Motos — Colors & Type Tokens
   Source of truth for the design system.
   ============================================================= */

/* ---------- Webfonts -----------------------------------------
   Display face: Rethink Sans ExtraBold Italic (800i) — confirmed
   by the client. Local WOFF2 loaded below. Remaining weights for
   body copy load from Google Fonts as fallbacks.
----------------------------------------------------------------- */
@font-face {
  font-family: 'Rethink Sans';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/RethinkSans-ExtraBoldItalic.woff2') format('woff2');
}
@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,700&display=swap');

:root {
  /* ---------- Brand colors (from PRONTO manual de identidad visual) ---- */
  /* Pantone 1505 C — the only brand orange. Pantone spec RGB 255/102/0.   */
  --pronto-orange:        #FF6600;
  --pronto-orange-ink:    #E55C00;   /* darker interaction state (press)   */
  --pronto-orange-hover:  #FF7A1F;   /* slightly lighter hover             */
  --pronto-orange-soft:   #FFE3CE;   /* tinted surfaces, chips             */

  /* Pantone Black 6C — brand-specified black (slight blue-green cast).    */
  --pronto-black:         #101820;
  --pronto-black-soft:    #1C2630;

  /* White is brand-specified. */
  --pronto-white:         #FFFFFF;

  /* Pantone Cool Gray 3C — added by client instruction (2026).            */
  --pronto-cool-gray:     #C8C9C7;
  --pronto-cool-gray-50:  #F4F4F2;
  --pronto-cool-gray-100: #E8E9E7;
  --pronto-cool-gray-200: #D6D7D5;
  --pronto-cool-gray-300: #C8C9C7;   /* === Cool Gray 3C base === */
  --pronto-cool-gray-400: #A8AAA8;
  --pronto-cool-gray-500: #858885;
  --pronto-cool-gray-600: #63665F;
  --pronto-cool-gray-700: #43463F;
  --pronto-cool-gray-800: #292C27;

  /* ---------- Semantic surface + text -------------------------------- */
  --bg:             var(--pronto-white);
  --bg-alt:         var(--pronto-cool-gray-50);
  --bg-ink:         var(--pronto-black);        /* dark hero / footer    */
  --bg-brand:       var(--pronto-orange);       /* brand spotlight       */

  --fg:             var(--pronto-black);
  --fg-muted:       var(--pronto-cool-gray-600);
  --fg-subtle:      var(--pronto-cool-gray-500);
  --fg-on-brand:    var(--pronto-white);
  --fg-on-dark:     var(--pronto-white);

  --border:         var(--pronto-cool-gray-200);
  --border-strong:  var(--pronto-cool-gray-400);
  --divider:        var(--pronto-cool-gray-100);

  /* ---------- Support / status colors --------------------------------
     The manual does not prescribe status colors — these are
     derived to sit harmoniously alongside the orange without
     competing for attention.                                        */
  --status-success: #1F8F4C;
  --status-warning: #F2B705;
  --status-danger:  #C5312B;
  --status-info:    #2E5CB8;

  /* ---------- Type families ------------------------------------------ */
  --font-display: 'Rethink Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Rethink Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Display weight is EXTRABOLD ITALIC (800i) — matches the logotype.  */
  --display-weight: 800;
  --display-style:  italic;

  /* ---------- Type scale (desktop) ----------------------------------- */
  --fs-display:   clamp(3.25rem, 6vw + 1rem, 6rem);    /*  52 – 96  */
  --fs-h1:        clamp(2.25rem, 3.5vw + 1rem, 3.5rem); /*  36 – 56 */
  --fs-h2:        clamp(1.75rem, 2vw + 1rem, 2.5rem);  /*  28 – 40  */
  --fs-h3:        1.5rem;    /* 24 */
  --fs-h4:        1.25rem;   /* 20 */
  --fs-body-lg:   1.125rem;  /* 18 */
  --fs-body:      1rem;      /* 16 */
  --fs-sm:        0.875rem;  /* 14 */
  --fs-xs:        0.75rem;   /* 12 */

  /* ---------- Type rhythm -------------------------------------------- */
  --lh-tight:     1.05;
  --lh-snug:      1.2;
  --lh-normal:    1.5;
  --lh-relaxed:   1.65;

  --tracking-tight:   -0.02em;
  --tracking-normal:   0;
  --tracking-wide:     0.02em;
  --tracking-uppercase: 0.08em;  /* for Motos-style tag labels */

  /* ---------- Spacing (4-px grid) ------------------------------------ */
  --space-0:  0;
  --space-1:  0.25rem;  /*  4 */
  --space-2:  0.5rem;   /*  8 */
  --space-3:  0.75rem;  /* 12 */
  --space-4:  1rem;     /* 16 */
  --space-5:  1.5rem;   /* 24 */
  --space-6:  2rem;     /* 32 */
  --space-7:  3rem;     /* 48 */
  --space-8:  4rem;     /* 64 */
  --space-9:  6rem;     /* 96 */

  /* ---------- Radii -------------------------------------------------- */
  /* The logo's smile suggests generous, confident curves.              */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ---------- Shadows ------------------------------------------------ */
  --shadow-1: 0 1px 2px rgba(16,24,32,.06), 0 1px 1px rgba(16,24,32,.04);
  --shadow-2: 0 2px 4px rgba(16,24,32,.06), 0 4px 8px rgba(16,24,32,.06);
  --shadow-3: 0 6px 12px rgba(16,24,32,.08), 0 12px 24px rgba(16,24,32,.08);
  --shadow-brand: 0 8px 24px rgba(255,102,0,.28);

  /* ---------- Motion ------------------------------------------------- */
  --ease-out:    cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.76,0,.24,1);
  --dur-fast:    120ms;
  --dur-base:    180ms;
  --dur-slow:    320ms;
}

/* =============================================================
   Semantic element styles — apply directly to bare HTML.
   ============================================================= */
html { font-family: var(--font-body); color: var(--fg); background: var(--bg); }
body { font-size: var(--fs-body); line-height: var(--lh-normal); margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  margin: 0 0 var(--space-4) 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: 0; }
h4 { font-size: var(--fs-h4); letter-spacing: 0; font-weight: 700; }

.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: lowercase;
}

.eyebrow, .tag-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: var(--fs-sm);
  letter-spacing: var(--tracking-uppercase);
  text-transform: uppercase;
  color: var(--pronto-orange);
}

p { margin: 0 0 var(--space-4) 0; text-wrap: pretty; max-width: 62ch; }
small, .caption { font-size: var(--fs-sm); color: var(--fg-muted); }
code, kbd, samp { font-family: var(--font-mono); font-size: .92em; }

a { color: var(--pronto-orange-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pronto-orange); }

hr { border: 0; border-top: 1px solid var(--divider); margin: var(--space-6) 0; }

::selection { background: var(--pronto-orange); color: var(--pronto-white); }
