/* ==========================================================================
   variables.css — Design Tokens & Base
   Load order: variables.css -> style.css -> components.css -> animations.css -> responsive.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (CSS Variables)
   See: brand system — warm white bg, deep ink, cobalt, amber (labels only).
   Legacy aliases (--primary, --secondary, --background, etc.) are mapped to
   the new palette so existing sections and components keep working.
   -------------------------------------------------------------------------- */
:root {
    /* Brand palette */
    --ink: #111827;
    --ink-soft: #242936;
    --cobalt: #3157D5;
    --cobalt-dark: #2646B5;
    --electric: #4C7DFF;
    --amber: #F2B84B;
    --bg: #FAF9F6;
    --bg-alt: #F1F3F5;
    --white: #FFFFFF;
    --text: #171A21;
    --muted: #697386;
    --border: #E1E2E4;

    /* Legacy aliases (kept so existing includes keep working) */
    --primary: var(--cobalt);
    --primary-hover: var(--cobalt-dark);
    --secondary: var(--electric);
    --accent: var(--cobalt);
    --background: var(--bg);
    --card: var(--white);
    --text-secondary: var(--muted);
    --dark: var(--ink);
    --success: #0E9F6E;

    /* Typography */
    --font-heading: "Plus Jakarta Sans", sans-serif;
    --font-body: "Sora", sans-serif;

    /* Spacing & Radii — UI 12–14px, buttons 10px, subtle shadows */
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-soft: 0 2px 12px rgba(36, 41, 54, 0.05);
    --shadow-lift: 0 10px 24px rgba(36, 41, 54, 0.10);

    /* Layout */
    --container-max: 1200px;
    --section-pad: 96px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Base / Reset
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.02em;
}

p { margin-bottom: 0; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; }

.container {
    max-width: var(--container-max);
}

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

/* Custom, accessible focus ring */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Accessible skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 2000;
}
.skip-link:focus {
    left: 0;
    color: var(--white);
}

/* --------------------------------------------------------------------------
   3. Typography Helpers
   -------------------------------------------------------------------------- */
.text-primary { color: var(--primary) !important; }