/* ═══════════════════════════════════════════════════════════════════════
   EFBA KZ — Design Tokens
   Layout: efba-ae/efba-uk iskeleti (hairline, numaralı pillar, geniş boşluk).
   Renk: "Көк аспан" — koyu petrol + bozkır göğü turkuazı + güneş sarısı.
   Yazı: PT Serif + PT Sans (ParaType; Kazak Kiril harflerinin tamamı).
   LIGHT THEME ONLY.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    /* Brand — deep petrol */
    --petrol-950: #0a2a33;
    --petrol-900: #0f3540;
    --petrol-800: #164a58;
    --petrol-700: #1e6070;
    --petrol-600: #2a7a8c;
    --petrol-500: #3d93a5;
    --petrol-100: #d6eaee;
    --petrol-50:  #eef5f7;

    /* Sky turquoise — decorative lines, ornaments, active states */
    --sky-600: #12808f;   /* text-safe on white */
    --sky-500: #2bb3c4;
    --sky-100: #d3f0f4;

    /* Accent — steppe sun */
    --sun-800: #8a5f0c;   /* text-on-light, >= 4.5:1 */
    --sun-700: #b37c10;
    --sun-600: #e0a526;   /* primary accent (buttons, petrol text on top) */
    --sun-500: #ebbb52;
    --sun-100: #f8ebc8;
    --sun-50:  #fcf6e6;

    /* Legacy aliases — keep inherited emerald/gold/navy/red calls working */
    --emerald-950: var(--petrol-950);
    --emerald-900: var(--petrol-900);
    --emerald-800: var(--petrol-800);
    --emerald-700: var(--petrol-700);
    --emerald-600: var(--petrol-600);
    --emerald-500: var(--petrol-500);
    --emerald-100: var(--petrol-100);
    --emerald-50:  var(--petrol-50);
    --gold-800: var(--sun-800);
    --gold-700: var(--sun-700);
    --gold-600: var(--sun-600);
    --gold-500: var(--sun-500);
    --gold-100: var(--sun-100);
    --gold-50:  var(--sun-50);
    --navy-950: var(--petrol-950);
    --navy-900: var(--petrol-900);
    --navy-800: var(--petrol-800);
    --navy-700: var(--petrol-700);
    --navy-600: var(--petrol-600);
    --navy-500: var(--petrol-500);
    --navy-100: var(--petrol-100);
    --navy-50:  var(--petrol-50);
    --red-700: var(--sun-700);
    --red-600: var(--sun-600);
    --red-500: var(--sun-500);
    --red-100: var(--sun-100);

    /* Neutrals — cool white, no cream */
    --paper:      #ffffff;
    --paper-soft: #f1f5f6;
    --card:       #ffffff;
    --line:       #dfe6e8;
    --line-soft:  #edf1f2;
    --ink:        #0f3540;
    --ink-strong: #0a2a33;
    --ink-body:   #2f3d44;
    --ink-muted:  #5d6b72;

    /* Semantic */
    --bg-page:        var(--paper);
    --bg-card:        var(--card);
    --bg-soft:        var(--paper-soft);
    --bg-dark:        var(--petrol-900);
    --bg-dark-soft:   var(--petrol-800);
    --text:           var(--ink-body);
    --text-strong:    var(--petrol-800);
    --text-heading:   var(--ink);
    --text-muted:     var(--ink-muted);
    --text-on-dark:   #ffffff;
    --text-on-dark-muted: #c3d5da;
    --text-accent:    var(--sun-800);
    --border:         var(--line);
    --border-strong:  #b9c7cb;
    --accent:         var(--sun-700);
    --accent-text:    var(--sun-800);
    --accent-hover:   var(--sun-800);
    --accent-soft:    var(--sun-100);
    --error:          #b3261e;   /* form hataları — CTA sarısından ayrı */

    /* Shadows — restrained, petrol base */
    --shadow-xs: 0 1px 2px rgba(15, 53, 64, 0.05);
    --shadow-sm: 0 2px 6px rgba(15, 53, 64, 0.06);
    --shadow-md: 0 10px 28px rgba(15, 53, 64, 0.08);
    --shadow-lg: 0 24px 56px rgba(15, 53, 64, 0.11);

    /* Typography — PT Serif (display) + PT Sans (body) */
    --font-display: 'PT Serif', Georgia, 'Times New Roman', serif;
    --font-body:    'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-arabic:  var(--font-body);
    --font-arabic-display: var(--font-display);

    --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(1.65rem, 1.2rem + 2vw, 3.1rem);   /* KZ: Kiril kelimeler uzun */
    --h1-size:   clamp(1.9rem, 1.1rem + 4vw, 5rem);
    --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: 0.375rem;   /* KZ: no pill buttons */

    /* 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: normal;
    font-family: var(--font-display);
}

::selection {
    background: var(--emerald-100);
    color: var(--emerald-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; }
}
