/* ============================================
   BRAND COLOUR SCHEME
   Built from the two logo colours:
     #0E86A3  orange
     #1F2933  charcoal
   ============================================ */

:root {

    /* ── Primary: orange ───────────────────────
       Ramp from the logo orange. 500 is the logo
       colour itself. 700+ are the accessible text
       shades (white text on 500 is only 2.96:1,
       so 500 is a *surface* colour, not a text
       colour). */
    --brand-50:  #EBF8FB;
    --brand-100: #CDEFF5;
    --brand-200: #9FDFEC;
    --brand-300: #63C6DC;
    --brand-400: #2AA5C2;
    --brand-500: #0E86A3;   /* logo orange */
    --brand-600: #0B6D87;
    --brand-700: #0B586E;   /* safe on white: 4.6:1 */
    --brand-800: #0C475A;
    --brand-900: #0B3A4A;

    /* ── Neutral: charcoal ─────────────────────
       Ramp from the logo charcoal. 900 is the logo
       colour. Slightly cool to sit with the orange. */
    --ink-50:  #F5F7F9;
    --ink-100: #EDF1F4;
    --ink-200: #DDE3E9;
    --ink-300: #C4CDD6;
    --ink-400: #98A4B0;
    --ink-500: #75828F;
    --ink-600: #586572;
    --ink-700: #434F5B;
    --ink-800: #303A45;
    --ink-900: #1F2933;   /* logo charcoal */
    --ink-950: #131B23;

    /* ── Semantic roles ───────────────────────── */
    --brand-primary:       var(--brand-500);
    --brand-primary-dark:  var(--brand-700);
    --brand-primary-light: var(--brand-50);
    --brand-accent:        var(--brand-500);

    /* Text */
    --text-primary:   var(--ink-900);
    --text-secondary: var(--ink-700);
    --text-muted:     var(--ink-600);
    --text-onbrand:   #ffffff;
    --text-link:      var(--brand-700);

    /* Surfaces */
    --surface-white:  #ffffff;
    --surface-light:  var(--ink-50);
    --surface-tint:   var(--brand-50);
    --surface-dark:   var(--ink-900);
    --surface-darker: var(--ink-950);

    /* Lines */
    --border-light:  var(--ink-200);
    --border-medium: var(--ink-300);

    /* ── Status ────────────────────────────────
       Kept distinct from the orange so a warning
       never reads as a brand element. */
    --success:     #1E8E4F;
    --success-bg:  #E8F5EE;
    --warning:     #0B6D87;
    --warning-bg:  #FDF6E3;
    --danger:      #C62828;
    --danger-bg:   #FDECEC;
    --info:        #1F6FB2;
    --info-bg:     #EAF3FB;

    /* Price / savings badges */
    --price-colour: var(--brand-700);
    --sale-colour:  #C62828;

    /* ── Depth ─────────────────────────────────
       Shadows tinted with the charcoal rather than
       pure black, so they sit in the same family. */
    --shadow-sm: 0 1px 3px rgba(31, 41, 51, 0.08);
    --shadow-md: 0 4px 16px rgba(31, 41, 51, 0.10);
    --shadow-lg: 0 10px 34px rgba(31, 41, 51, 0.13);
    --shadow-brand: 0 6px 18px rgba(14, 134, 163, 0.28);

    /* ── Gradients ─────────────────────────────── */
    --grad-brand: linear-gradient(135deg, #2AA5C2 0%, #0E86A3 50%, #0B6D87 100%);
    --grad-dark:  linear-gradient(135deg, #1F2933 0%, #303A45 60%, #131B23 100%);
    --grad-hero:  linear-gradient(135deg, #1F2933 0%, #303A45 45%, #0B586E 100%);

    /* ── Shape ─────────────────────────────────── */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Legacy aliases - old variable names used
       around the site, remapped to the new scheme
       so nothing is left un-themed. */
    --header-brand:     var(--brand-500);
    --header-green:     var(--brand-400);
    --header-light-bg:  var(--brand-50);
    --header-text-dark: var(--ink-900);
    --header-border:    var(--ink-200);
}

/* ── Focus ring ─────────────────────────────────
   One visible ring everywhere, in the brand colour. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--brand-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection ─────────────────────────────────── */
::selection {
    background: var(--brand-500);
    color: #fff;
}

/* No photo overflows its box */
img { box-sizing: border-box; }
