/* GENERATED COPY of 02 Brand/web-tokens.css by tools/build_site.py. Do not edit here; edit the brand file and re-run. */
/* ==========================================================================
   Pamen Laundry: web design tokens ("Fresco")
   Source of truth: 02 Brand/Pamen Brand Guide.md. If this file and the guide
   disagree, the guide wins; tell Iris so the two get reconciled.
   Author: Iris (Design System Architect), 2026-11-16. For Felix's bilingual
   static site on Cloudflare Pages.

   Rules of the road
   - Use the SEMANTIC tokens (--pl-text, --pl-btn-primary-bg, ...) in
     components. The raw palette (--pl-azul-rey, ...) exists so the semantic
     layer has one place to point at; avoid using it directly.
   - Contrast ratios are WCAG 2.x, computed per pair. AA = 4.5:1 normal text,
     AA-large = 3:1 (24px+, or 18.66px+ bold) and non-text UI.
   - Light theme only at launch. Do not auto-generate a dark mode.
   - Fonts: Fredoka (headings) + Inter (body), both Google Fonts with
     Latin + Latin Extended (covers á é í ó ú ü ñ ¿ ¡). Self-hosting the
     woff2 files is preferred (speed, no third-party request); otherwise:
     https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Inter:wght@400;600;700&display=swap
   ========================================================================== */

:root {
  /* ---------- 1. Raw brand palette (the only five brand colors) ---------- */
  --pl-azul-rey: #1D5FBF; /* Primary. Washer body, headings, buttons, links. White on it 6.10 AA */
  --pl-cielo:    #4FB3F0; /* Secondary. Bubbles, offset shadow, big color fields. NOT text-safe on white (2.32); white text on it fails */
  --pl-marino:   #0F2A5C; /* Outlines, body text, dark sections. On white 13.94 AA */
  --pl-guante:   #FFD23F; /* Accent. The glove, badges, promo chips, accent CTA. Never text on white (1.44) */
  --pl-espuma:   #EAF6FD; /* Light "foam" background */
  --pl-white:    #FFFFFF;

  /* ---------- 2. Derived support colors (functional, not new brand colors) ---------- */
  --pl-azul-rey-dark: #174C99; /* Hover/pressed for Azul Rey buttons and links. White on it 8.30 AA; on white 8.30 AA */
  --pl-marino-soft:   #4A5B7A; /* Muted/secondary text. On white 6.84 AA; on Espuma 6.22 AA */
  --pl-line:          #CFE3F2; /* Hairline borders and dividers on white/Espuma (decorative, not text) */
  --pl-error:         #B42318; /* Form errors only. On white 6.57 AA. Not a decorative red (red is not part of Fresco) */
  --pl-success:       #18794E; /* Form success only. On white 5.41 AA */

  /* ---------- 3. Semantic color tokens ---------- */
  /* Surfaces */
  --pl-bg:              var(--pl-white);    /* Default page background */
  --pl-bg-soft:         var(--pl-espuma);   /* Alternating sections, cards, price tables */
  --pl-bg-strong:       var(--pl-azul-rey); /* Hero band, primary CTA band */
  --pl-bg-inverse:      var(--pl-marino);   /* Footer, dark sections */
  --pl-bg-gradient:     linear-gradient(180deg, var(--pl-cielo) 0%, var(--pl-azul-rey) 100%); /* Decorative band (window-graphics echo). Text goes on a solid panel inside it, never directly on the Cielo end */

  /* Text on light (white or Espuma) */
  --pl-text:            var(--pl-marino);      /* Body text. 13.94 on white, 12.68 on Espuma */
  --pl-text-muted:      var(--pl-marino-soft); /* Captions, meta, fine print. 6.84 / 6.22 */
  --pl-heading:         var(--pl-azul-rey);    /* Headings. 6.10 on white, 5.55 on Espuma (AA at any size) */
  --pl-link:            var(--pl-azul-rey);    /* Links, always underlined in body copy */
  --pl-link-hover:      var(--pl-azul-rey-dark);

  /* Text on dark (Marino or Azul Rey) */
  --pl-text-inverse:        var(--pl-white);  /* White on Marino 13.94, on Azul Rey 6.10 */
  --pl-heading-inverse:     var(--pl-white);
  --pl-link-inverse:        var(--pl-guante); /* On Marino 9.65 AA. On Azul Rey 4.22: large text / bold 18.66px+ only */
  --pl-link-inverse-alt:    var(--pl-cielo);  /* On Marino only, 6.00 AA. Never on Azul Rey */

  /* Buttons */
  --pl-btn-primary-bg:         var(--pl-azul-rey);      /* "Ver precios", "Cómo llegar" */
  --pl-btn-primary-text:       var(--pl-white);         /* 6.10 AA */
  --pl-btn-primary-bg-hover:   var(--pl-azul-rey-dark); /* 8.30 AA */
  --pl-btn-secondary-bg:       var(--pl-white);
  --pl-btn-secondary-text:     var(--pl-azul-rey);      /* 6.10 AA; 2px border in same color */
  --pl-btn-secondary-border:   var(--pl-azul-rey);
  --pl-btn-secondary-bg-hover: var(--pl-espuma);        /* text stays Azul Rey, 5.55 AA */
  --pl-btn-accent-bg:          var(--pl-guante);        /* Accent CTA: Call / WhatsApp. Max one per view */
  --pl-btn-accent-text:        var(--pl-marino);        /* 9.65 AA */
  --pl-btn-accent-border:      var(--pl-marino);        /* 2px, echoes the logo outline */
  --pl-btn-accent-bg-hover:    #FFE07A;                 /* Lighter Guante; Marino on it 10.75 AA */

  /* Focus (WCAG 2.4.7 / 1.4.11: visible, 3:1 against adjacent colors) */
  --pl-focus-ring:         var(--pl-azul-rey); /* On white/Espuma: 6.10 / 5.55 */
  --pl-focus-ring-inverse: var(--pl-guante);   /* On Marino 9.65, on Azul Rey 4.22 */
  --pl-focus-width:        3px;
  --pl-focus-offset:       2px;

  /* Badge and chips */
  --pl-badge-bg:     var(--pl-guante);
  --pl-badge-text:   var(--pl-marino);
  --pl-badge-border: var(--pl-marino);

  /* ---------- 4. Typography ---------- */
  --pl-font-heading: "Fredoka", "Arial Rounded MT Bold", "Segoe UI", Arial, sans-serif;
  --pl-font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --pl-weight-regular:  400; /* Inter body */
  --pl-weight-semibold: 600; /* Inter emphasis, labels, buttons; Fredoka H3-H4 */
  --pl-weight-bold:     700; /* Fredoka H1-H2; Inter prices */

  /* Scale: 18px body (generous for an all-ages, bilingual clientele), ratio 1.25 */
  --pl-text-xs:   0.8125rem; /* 13px, legal/fine print only */
  --pl-text-sm:   0.9375rem; /* 15px, captions, meta */
  --pl-text-base: 1.125rem;  /* 18px, body */
  --pl-text-lg:   1.375rem;  /* 22px, lead paragraph, H4 */
  --pl-text-xl:   1.75rem;   /* 28px, H3 */
  --pl-text-2xl:  2.25rem;   /* 36px, H2 */
  --pl-text-3xl:  clamp(2.25rem, 1.6rem + 3vw, 3.5rem); /* 36-56px, H1 / hero */

  --pl-leading-tight: 1.15; /* Fredoka headings */
  --pl-leading-body:  1.6;  /* Inter body; Spanish runs ~20% longer than English, give it room */
  --pl-measure:       68ch; /* Max line length for body copy */

  /* ---------- 5. Spacing (4px base) ---------- */
  --pl-space-1:  0.25rem; /* 4px  xs  */
  --pl-space-2:  0.5rem;  /* 8px  sm  */
  --pl-space-3:  0.75rem; /* 12px     */
  --pl-space-4:  1rem;    /* 16px md  */
  --pl-space-6:  1.5rem;  /* 24px lg  */
  --pl-space-8:  2rem;    /* 32px xl  */
  --pl-space-12: 3rem;    /* 48px 2xl */
  --pl-space-16: 4rem;    /* 64px 3xl, section padding mobile */
  --pl-space-24: 6rem;    /* 96px 4xl, section padding desktop */

  --pl-container: 72rem;  /* 1152px max content width */
  --pl-gutter:    var(--pl-space-6);

  /* ---------- 6. Radii (rounded, like the washer body) ---------- */
  --pl-radius-sm:   6px;   /* inputs, small chips */
  --pl-radius-md:   12px;  /* cards, price tables, images */
  --pl-radius-lg:   20px;  /* hero panels, large cards */
  --pl-radius-pill: 999px; /* buttons, badges, language toggle */

  /* ---------- 7. Shadows (Marino-tinted, soft) ---------- */
  --pl-shadow-sm:  0 1px 2px rgba(15, 42, 92, 0.08);
  --pl-shadow-md:  0 4px 12px rgba(15, 42, 92, 0.10);
  --pl-shadow-lg:  0 12px 32px rgba(15, 42, 92, 0.14);
  /* Signature offset shadow: the logo's sky-blue drop, for ONE featured card or the hero panel per page */
  --pl-shadow-pop: 4px 5px 0 var(--pl-cielo);

  /* ---------- 8. Logo sizing ---------- */
  --pl-logo-min-width:  140px; /* Below this, use pamen-icon.svg + "Pamen Laundry" set in Fredoka 700 */
  --pl-logo-header-h:   56px;  /* Desktop header height for the full lockup (about 142px wide) */
  --pl-icon-min:        24px;  /* Below this, use pamen-favicon.svg */
  --pl-badge-min-width: 160px;

  /* ---------- 9. Motion ---------- */
  --pl-ease:     cubic-bezier(0.2, 0.8, 0.2, 1);
  --pl-duration: 160ms; /* hover/focus transitions; disable under prefers-reduced-motion */
}

@media (prefers-reduced-motion: reduce) {
  :root { --pl-duration: 0ms; }
}

/* --------------------------------------------------------------------------
   Text-safe pairs (foreground on background), all AA for normal text unless
   marked. Anything NOT listed here is not approved for text.

   Marino     on White      13.94   Marino      on Espuma    12.68
   Azul Rey   on White       6.10   Azul Rey    on Espuma     5.55
   Marino-soft on White      6.84   Marino-soft on Espuma     6.22
   Azul-dark  on White       8.30   Marino      on Cielo      6.00
   Marino     on Guante      9.65   White       on Azul Rey   6.10
   White      on Marino     13.94   White       on Azul-dark  8.30
   Guante     on Marino      9.65   Cielo       on Marino     6.00
   Guante     on Azul Rey    4.22  (AA-large only: 24px+, or 18.66px+ bold)

   NEVER: white on Cielo (2.32), Cielo on white (2.32), Guante on white (1.44),
   Cielo on Azul Rey (2.63), any text directly on --pl-bg-gradient.
   -------------------------------------------------------------------------- */
