/* ==========================================================================
   GAAB Website — Design System Variables
   Single source of truth for all visual tokens.
   ========================================================================== */

:root {
  /* ----------------------------------------------------------------------
     COLOR PALETTE — Monochrome + GAAB Blue
     ---------------------------------------------------------------------- */

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-off-white: #FAFAF7;
  --color-light-gray: #F5F5F5;
  --color-medium-gray: #888888;
  --color-dark-gray: #2A2A2A;
  --color-black: #0A0A0A;

  /* Brand accent (use sparingly — CTAs, links, hover states only) */
  --color-blue-gaab: #1B3A6B;
  --color-blue-gaab-dark: #152D52;  /* hover state for primary CTA */
  --color-blue-gaab-light: #3A5A9F; /* lighter accent — for use on dark backgrounds (e.g. the black accordion), where the navy reads too muddy */

  /* Sky blue — taken from the roof of the GAAB logo. Used for accent CTAs that
     sit over dark/photographic backgrounds, where the navy disappears. */
  --color-gaab-sky: #1C82C9;
  --color-gaab-sky-dark: #146399;   /* hover */

  /* Amarillo GAAB — el mismo del texto del hero corporativo. Se usa como
     fondo de los header rows de las ordering-chart / accessories tables del
     popup de producto (reemplaza el negro que teníamos). Texto: negro. */
  --color-gaab-yellow: #E8D45F;

  /* Functional */
  --color-text-primary: var(--color-black);
  --color-text-secondary: var(--color-medium-gray);
  --color-text-inverse: var(--color-white);
  --color-border-light: rgba(10, 10, 10, 0.08);
  --color-border-dark: rgba(255, 255, 255, 0.15);


  /* ----------------------------------------------------------------------
     TYPOGRAPHY
     ---------------------------------------------------------------------- */

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, Helvetica, Arial, sans-serif;

  /* Display / headlines only (titles). Reverted to Inter — headlines now share
     --font-sans again. The .*-title override blocks (components/about/contact/
     products-page) stay in place but harmlessly resolve to Inter through this.
     To bring Archivo back, set this to 'Archivo', 'Inter', -apple-system, sans-serif
     and re-add Archivo to the Google Fonts <link> tags. */
  --font-display: var(--font-sans);

  /* Font weights — ONLY 400 and 500. Never use heavier weights. */
  --weight-regular: 400;
  --weight-medium: 500;

  /* Type scale (desktop values; mobile overrides below) */
  --text-hero: 72px;
  --text-h2: 48px;
  --text-h3: 28px;
  --text-body-lg: 18px;
  --text-body: 16px;
  --text-small: 14px;
  --text-micro: 13px;

  /* Line-height */
  --leading-tight: 1.05;
  --leading-normal: 1.5;
  --leading-button: 1;

  /* Letter-spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-loose: 0.02em;
  --tracking-label: 0.1em;


  /* ----------------------------------------------------------------------
     SPACING
     ---------------------------------------------------------------------- */

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 144px;


  /* ----------------------------------------------------------------------
     BORDER RADIUS
     ---------------------------------------------------------------------- */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;   /* large soft cards — FAQ pills */
  --radius-pill: 999px;


  /* ----------------------------------------------------------------------
     LAYOUT
     ---------------------------------------------------------------------- */

  --container-max: 1280px;
  --container-padding: 24px;


  /* ----------------------------------------------------------------------
     TRANSITIONS
     ---------------------------------------------------------------------- */

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-slow: 400ms;


  /* ----------------------------------------------------------------------
     Z-INDEX SCALE
     ---------------------------------------------------------------------- */

  --z-base: 1;
  --z-overlay: 10;
  --z-navbar: 100;
  --z-modal: 1000;
}


/* ==========================================================================
   MOBILE OVERRIDES — type scale shrinks
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --text-hero: 56px;
    --text-h2: 36px;
    --text-h3: 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --text-hero: 40px;
    --text-h2: 28px;
    --text-h3: 22px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --container-padding: 16px;
  }
}


/* ==========================================================================
   GLOBAL RESET — Minimal & Modern
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background: var(--color-white);
  overflow-x: clip; /* clip (no hidden): hidden convertía al body en caja de anclaje y rompía position:sticky (sostén del modo compatible) */
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Focus states — accessible but minimal */
:focus-visible {
  outline: 2px solid var(--color-blue-gaab);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
