﻿:root {
    --bg: #0a0a0a; /* ana arka plan */
    --card: #121212; /* kart arka planı */
    --muted: #a3a3a3; /* metin ikincil */
    --text: #e5e5e5; /* metin */
    --line: #262626; /* sınır çizgisi */
    --red: #ef4444; /* vurgu kırmızı */
    --red-deep: #7f1d1d; /* koyu kırmızı */
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--bg);
    color: var(--text);
}
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: hsl(0, 69%, 39%);
}
img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}
    a:hover {
        color: var(--red);
    }
/* Arka plan alev ışıması */
.flame-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(600px 200px at 20% 10%, rgba(239,68,68,.15) 0%, transparent 60%), radial-gradient(800px 280px at 80% 90%, rgba(127,29,29,.12) 0%, transparent 65%);
    animation: glow 12s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: blur(0px);
    }

    to {
        filter: blur(2px) brightness(1.05);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =================== Header =================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,.5);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding-inline: 12px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 44px; /* header yüksekliği: 64px → iyi oran */
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
    transition: transform .2s ease, filter .2s ease;
}

.brand:hover .brand-logo {
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.55));
}

/* Eski flame ikonunu kaldır */
.flame {
    display: none;
}

.nav-links {
    display: none;
    gap: 24px;
    font-size: 14px;
}

    .nav-links a {
        color: #fff;
        margin: 0 8px;
        text-decoration: none;
        font-size: 14px;
    }

        .nav-links a.phone {
            font-weight: 600;
        }

    .nav-links i {
        font-size: 16px;
    }

.cta {
    background: rgba(239,68,68,.9);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(127,29,29,.3);
}

    .cta:hover {
        background: #ef4444;
    }

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        height: 36px;
    }
    /* mobilde biraz küçülsün */
}

/* =================== Footer =================== */
footer {
    border-top: 1px solid var(--line);
    background: rgba(0,0,0,.35);
}

.footer-grid {
    display: grid;
    gap: 20px;
    padding: 36px 0;
}

@media (min-width:1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

.subtle {
    color: #a3a3a3;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

/* =================== Scroll reveal =================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease;
}

    .reveal-on-scroll.reveal {
        opacity: 1;
        transform: none;
    }

/* =================== Sticky header offset =================== */
:target {
    scroll-margin-top: 84px;
}
.social-icon {
    margin-left: 12px;
    font-size: 16px; /* ikon boyutu */
    color: #fff;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

    .social-icon:hover {
        color: var(--red);
    }

/* Varsayılan: linkler gizli */
.nav-links {
    display: none;
}

/* Masaüstü: 768+ genişlikte normal göster */
@media (min-width:768px) {
    .nav-links {
        display: flex !important;
        position: static;
    }
}

/* Mobil: menü açıkken panel olarak göster */
@media (max-width:767.98px) {
    .site-header.open #siteNav {
        display: flex !important; /* <<< kritik */
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10,10,10,.98);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 14px;
        padding: 16px 20px 24px;
        z-index: 999; /* her şeyin üstünde */
        max-height: calc(100dvh - 64px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Arka plan scrim */
    .mobile-backdrop {
        display: none;
    }

    .site-header.open .mobile-backdrop {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,.45);
        z-index: 998;
    }
}

/* Hamburger: alt alta 3 çizgi + X animasyonu */
.nav-toggle {
    display: none;
    appearance: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 0;
}

    .nav-toggle span {
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform .25s ease, opacity .2s ease;
    }

@media (max-width:767.98px) {
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
}

.site-header.open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
