/* ═══════════════════════════════════════════════════════════════════════
   EFBA UK — Design Tokens
   Layout/typography: Gloseria-esque (restraint, hairlines, pill buttons,
   typographic hero, large numbered pillars).
   Colour: EFBA navy + red — brand-consistent with efba-nl / efba-tr.
   LIGHT THEME ONLY.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    /* Brand — EFBA navy ailesi */
    --navy-950: #0b1e4a;
    --navy-900: #14245c;
    --navy-800: #1e3a8a;
    --navy-700: #1d4ed8;
    --navy-600: #2563eb;
    --navy-500: #3b82f6;
    --navy-100: #dbeafe;
    --navy-50:  #eff6ff;

    /* Accent — EFBA red (logo accent) */
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --red-100: #fee2e2;

    /* Neutrals — Gloseria-esque warm off-white */
    --paper:      #fafaf7;
    --paper-soft: #f4f1ea;
    --card:       #ffffff;
    --line:       #e8e4dd;
    --line-soft:  #f0ece4;
    --ink:        #14245c;
    --ink-strong: #0b1e4a;
    --ink-body:   #334155;
    --ink-muted:  #64748b;

    /* Semantic */
    --bg-page:        var(--paper);
    --bg-card:        var(--card);
    --bg-soft:        var(--paper-soft);
    --bg-dark:        var(--navy-950);
    --bg-dark-soft:   var(--navy-900);
    --text:           var(--ink-body);
    --text-strong:    var(--navy-800);
    --text-heading:   var(--ink);
    --text-muted:     var(--ink-muted);
    --text-on-dark:   #ffffff;
    --text-on-dark-muted: #cbd5e1;
    --text-accent:    var(--red-700);    /* WCAG AA contrast on light bg */
    --border:         var(--line);
    --border-strong:  #cbd5e1;
    --accent:         var(--red-600);     /* non-text brand accent */
    --accent-text:    var(--red-700);     /* text-on-light, ≥ 4.5:1 contrast */
    --accent-hover:   var(--red-700);
    --accent-soft:    var(--red-100);

    /* Shadows — soft, low contrast (Gloseria restraint) */
    --shadow-xs: 0 1px 2px rgba(11, 30, 74, 0.04);
    --shadow-sm: 0 2px 6px rgba(11, 30, 74, 0.05);
    --shadow-md: 0 10px 28px rgba(11, 30, 74, 0.07);
    --shadow-lg: 0 24px 56px rgba(11, 30, 74, 0.10);

    /* Typography — Cormorant Garamond (display) + Inter (body) */
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --text-xs:   0.8125rem;
    --text-sm:   0.9375rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --text-2xl:  clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
    --h4-size:   clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
    --h3-size:   clamp(1.6rem, 1.3rem + 1.1vw, 2.25rem);
    --h2-size:   clamp(2rem, 1.6rem + 1.8vw, 3.25rem);
    --h1-size:   clamp(2.75rem, 2rem + 3.5vw, 5.25rem);
    --pillar-number: clamp(3rem, 2.4rem + 2.5vw, 5.25rem);

    --leading-tight:   1.15;
    --leading-snug:    1.35;
    --leading-normal:  1.6;
    --leading-relaxed: 1.75;

    --tracking-tight:  -0.02em;
    --tracking-normal: 0;
    --tracking-wide:   0.05em;
    --tracking-wider:  0.18em;

    /* Spacing */
    --space-2xs: 0.25rem;
    --space-xs:  0.5rem;
    --space-sm:  0.75rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Radius — Gloseria pill buttons */
    --radius-sm:   0.5rem;
    --radius-md:   0.875rem;
    --radius-lg:   1.25rem;
    --radius-xl:   2rem;
    --radius-pill: 12rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast:   0.18s var(--ease-out);
    --transition-smooth: 0.3s var(--ease-out);
    --transition-slow:   0.5s var(--ease-out);

    /* Layout — Gloseria geniş whitespace */
    --container-max: 1240px;
    --container-narrow: 960px;
    --nav-height: 76px;
    --section-pad-y: clamp(5rem, 7vw, 8rem);

    /* Hairline divider — Gloseria signature */
    --hairline: 1px solid var(--line);
    --divider-w: 56px;

    /* z-index */
    --z-base: 1;
    --z-nav: 100;
    --z-overlay: 200;
    --z-modal: 300;

    color-scheme: only light;
}

/* ═══════════════════════════════════════════════════════════════════════
   Reset + Base
   ═══════════════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    /* Reserve scrollbar gutter so toggling body overflow doesn't shift layout */
    scrollbar-gutter: stable;
    forced-color-adjust: none;
    -webkit-forced-color-adjust: none;
    color-scheme: only light;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-heading);
    line-height: var(--leading-tight);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
}

p { line-height: var(--leading-relaxed); }

em {
    font-style: italic;
    font-family: var(--font-display);
}

::selection {
    background: var(--navy-100);
    color: var(--navy-900);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    background: var(--ink);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Persistent brand colours — never invert under Samsung Internet dark mode,
   Chrome Android forced dark, Windows High Contrast or similar UA overrides. */
@media (forced-colors: active) {
    *, *::before, *::after { forced-color-adjust: none !important; }
}
