/* =========================================================
   DESIGN SYSTEM BASE
   Minimal, semantic, and UX-friendly defaults
   ========================================================= */

/* =========================================================
   TOKENS
   ========================================================= */

:root {
    /* BREAKPOINTS */
    --bp-xs: 30em; /* 480px */
    --bp-s: 40em; /* 640px */
    --bp-m: 48em; /* 768px */
    --bp-l: 64em; /* 1024px */
    --bp-xl: 80em; /* 1280px */
/* To be used like: @custom-media --viewport-md (max-width: 48em); */

/* COLORS */
    --brand-color-dark: #0d253f;
    --brand-color-light: #286dce;

    --color-primary: var(--brand-color-light);
    --color-primary-hover: #0041cc;
    --color-primary-text: #ffffff;
    --color-secondary: #f07e26;
    --color-accent: var(--color-secondary);
    --color-focus: #ffbf47;
    --color-error: #d32f2f;
    --color-success: #2e7d32;


    --color-bg: #ffffff;
    --color-border: var(--brand-color-dark);
    --color-text: #1a1a1a;
    --color-text-muted: #555555;

    /* Additional semantic tokens */
    --text-primary: var(--color-text);
    --surface-primary: var(--color-bg);
    --surface-secondary: #f2f2f2;
    --logo-color-icon: var(--brand-color-light);
    --logo-color-text: var(--brand-color-dark);

    /* SPACING (t-shirt scale) */
    --space-2xs: 0.25rem; /* 4.5px @ 1rem=18px*/
    --space-xs: 0.5rem;
    --space-s: 0.75rem;
    --space-m: 1rem;
    --space-l: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* RADIUS */
    --radius-s: 0.125rem;
    --radius-m: 0.25rem;
    --radius-l: 0.5rem;

    /* TYPOGRAPHY */
    --font-body: 'Inter', system-ui, sans-serif;
    --font-heading: 'WixMadeforDisplay', system-ui, sans-serif;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    /* Type scale (base: 18px) */
    --text-xs: 0.75rem;   /* 13.5px */
    --text-s: 0.875rem;   /* 15.75px */
    --text-m: 1rem;       /* 18px */
    --text-l: 1.25rem;    /* 22.5px */
    --text-xl: 1.5rem;    /* 27px */
    --text-2xl: 1.875rem; /* 33.75px */
    --text-3xl: 2.25rem;  /* 40.5px */
    --text-4xl: 3rem;     /* 54px */

    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --lh-loose: 1.75;
}

/* =========================================================
   FONT FACE DEFINITIONS
   ========================================================= */

/* Headings font: Wix Madefor Text */
@font-face {
    font-family: "WixMadeforDisplay";
    src: url("/assets/fonts/Wix_Madefor_Display/WixMadeforDisplay-VariableFont_wght.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

/* Body font: Inter */
@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/Inter/Inter-VariableFont_opsz,wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* =========================================================
   RESET & BASELINE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 112.5%; /* 18px base */
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
    margin: 0;
}

body {
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-size: var(--text-m);
    line-height: var(--lh-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Images responsive by default */
img, picture {
    max-width: 100%;
    display: block;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
}
a:hover,
a:focus-visible {
    text-decoration: underline;
    outline: none;
}

/* Focus states */
:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--brand-color-dark);
    margin-top: 0;
    margin-bottom: var(--space-m);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-l); }
h6 { font-size: var(--text-m); }

p {
    margin-top: 0;
    margin-bottom: var(--space-m);
}

/* Emphasis and italics */
em, i {
    font-style: italic;
}

/* =========================================================
   ACCESSIBILITY UTILITIES
   ========================================================= */

.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}