/* ==========================================================================
   01 — TEMEL
   Tasarım değişkenleri, sıfırlama, tipografi, erişilebilirlik temelleri
   ========================================================================== */

:root {
    /* Marka renkleri */
    --navy: #102f49;
    --dark: #081f32;
    --teal: #18b9b0;
    --teal-light: #46d9d0;
    --teal-deep: #098e87;
    --coral: #ff7869;
    --gold: #f4b942;

    /* Metin ve yüzeyler */
    --ink: #183447;
    --muted: #6b7f8d;
    --line: #dce9ed;
    --soft: #f5fafb;

    /* Efektler */
    --shadow: 0 24px 65px rgba(16, 47, 73, .15);
    --shadow-sm: 0 10px 30px rgba(11, 49, 85, .05);
    --ring: 0 0 0 3px rgba(24, 185, 176, .35);

    /* Ölçü */
    --c: min(1200px, calc(100% - 40px));
    --radius: 24px;
    --radius-sm: 15px;

    /* Katmanlar */
    --z-header: 40;
    --z-drawer: 60;
    --z-skip: 90;
}

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

html {
    scroll-behavior: smooth;
    /* Sabit header'ın çapa linklerinde başlığı kesmemesi için */
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
}

p {
    margin: 0;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.12;
}

h1 {
    font-size: clamp(46px, 7vw, 84px);
    letter-spacing: -.055em;
    color: #fff;
    max-width: 850px;
}

h2 {
    font-size: clamp(34px, 4.5vw, 55px);
    letter-spacing: -.04em;
    color: var(--navy);
}

h3 {
    font-size: 21px;
    color: var(--navy);
}

/* --------------------------------------------------------------------------
   Erişilebilirlik
   -------------------------------------------------------------------------- */

/* Klavye kullanıcıları için görünür odak halkası — tüm etkileşimli öğelerde */
:where(a, button, input, select, textarea, summary):focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 8px;
}

/* Ekran okuyucuya özel metin */
.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;
}

/* "İçeriğe atla" — klavyeyle Tab'a basıldığında belirir */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: var(--z-skip);
    padding: 12px 20px;
    border-radius: 0 0 12px 12px;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Hareket azaltma tercihi olan kullanıcılar için animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* --------------------------------------------------------------------------
   İkon sistemi — emoji yerine SVG sprite
   -------------------------------------------------------------------------- */

.i {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -.125em;
}

.i--fill {
    fill: currentColor;
    stroke: none;
}
