/* =========================================================
   CTDD - Ortak Stil Dosyası (tüm sayfalarda kullanılır)
   Ana renk: #001eff
   ========================================================= */

:root {
    /* Marka renkleri */
    --primary: #001eff;
    --primary-dark: #0016c4;
    --primary-light: #a9b6ff;      /* koyu zeminlerde metin/çizgi için açık ton */
    --primary-soft: rgba(0, 30, 255, 0.08);

    /* Nötr renkler */
    --dark: #0a0f2e;               /* koyu lacivert (footer, koyu bölümler) */
    --white: #ffffff;
    --gray: #f5f6fb;
    --text-dark: #1d2142;
    --text-muted: #5d6280;

    /* Düzen */
    --header-h: 108px;
    --logo-h: 92px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 30, 255, 0.10);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10, 15, 46, 0.10); }

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-mini { height: var(--logo-h); display: flex; align-items: center; }
.logo-mini img { height: 100%; width: auto; max-width: 340px; object-fit: contain; display: block; }

.site-header nav { display: flex; align-items: center; gap: 24px; }

.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 0;
    transition: color 0.25s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.mobile-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 992px) {
    :root { --header-h: 88px; --logo-h: 70px; }

    .mobile-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(0, 30, 255, 0.10);
        box-shadow: 0 16px 30px rgba(10, 15, 46, 0.12);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-links li { width: 100%; border-bottom: 1px solid rgba(0, 30, 255, 0.07); }
    .nav-links a { display: block; padding: 16px 24px; }
    .nav-links a::after { display: none; }
    .nav-links a.active { background: var(--primary-soft); }
}

@media (max-width: 480px) {
    .header-container { padding: 0 16px; }
    .logo-mini img { max-width: 240px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 70px 20px 28px;
    border-top: 4px solid var(--primary);
}
.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* Footer logosu: sabit yükseklik, beyaz zemin üzerinde */
.footer-logo {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 22px;
    text-decoration: none;
}
.footer-logo img {
    display: block;
    height: 76px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-section h3 {
    position: relative;
    color: var(--white);
    font-size: 17px;
    margin-bottom: 26px;
    padding-bottom: 12px;
}
.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 36px; height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}
.footer-section h3.footer-brand {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 16px;
    padding-bottom: 0;
}
.footer-section h3.footer-brand::after { display: none; }

.footer-section p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-links a i { font-size: 10px; color: var(--primary-light); }
.footer-links a:hover { color: var(--white); padding-left: 5px; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}
.footer-contact-item i { color: var(--primary-light); font-size: 16px; width: 20px; margin-top: 4px; text-align: center; }
.footer-contact-item a { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color 0.25s ease; }
.footer-contact-item a:hover { color: var(--white); }

.social-links { display: flex; gap: 12px; margin-top: 22px; }
.social-links a {
    width: 40px; height: 40px;
    border: 1px solid rgba(169, 182, 255, 0.35);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.6); font-size: 13px; margin: 0; }

@media (max-width: 992px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
    .site-footer { padding: 50px 20px 22px; }
    .footer-content { grid-template-columns: 1fr; gap: 34px; }
}

/* =========================================================
   ORTAK SAYFA BAŞLIĞI (iç sayfalardaki .page-hero)
   Sabit header'ın altında kalmaması için üst boşluk header
   yüksekliğine göre hesaplanır.
   ========================================================= */
.page-hero { padding: calc(var(--header-h) + 70px) 20px 90px; margin-top: 0; }
@media (max-width: 768px) {
    .page-hero { padding: calc(var(--header-h) + 40px) 20px 60px; }
}

/* =========================================================
   ERİŞİLEBİLİRLİK, WHATSAPP, YUKARI ÇIK
   ========================================================= */
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 2000; background: var(--primary); color: var(--white); padding: 10px 18px; border-radius: 4px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.site-footer a:focus-visible { outline-color: var(--primary-light); }

.whatsapp-float, .back-to-top { position: fixed; right: 22px; z-index: 900; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(10,15,46,.28); transition: transform .25s, opacity .25s, visibility .25s; }
.whatsapp-float { bottom: 22px; background: #25d366; color: #fff; font-size: 30px; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.08); }
.back-to-top { bottom: 90px; background: var(--primary); color: var(--white); border: none; cursor: pointer; font-size: 18px; opacity: 0; visibility: hidden; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
@media (max-width: 480px) { .whatsapp-float, .back-to-top { right: 14px; width: 48px; height: 48px; } .back-to-top { bottom: 78px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
