:root {
    --primary-dark: #212529;
    --text-muted: #6c757d;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

main {
    min-height: 50vh;
    overflow-x: hidden;
}

.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    color: var(--primary-dark);
}

.hero-brand-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(720px, 94vw);
    line-height: 0;
}

.hero-brand-logo {
    width: 100%;
    max-width: min(680px, 92vw);
    height: auto;
    max-height: clamp(130px, 24vw, 210px);
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: contrast(1.05) saturate(0.9) brightness(0.98);
}

.hero-lead {
    color: var(--text-muted);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    color: var(--primary-dark);
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card {
    border-radius: 0.5rem;
}

.lazy-img {
    object-fit: cover;
    background: #e9ecef;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.avatar-placeholder-lg {
    width: 150px;
    height: 150px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #adb5bd;
    border-radius: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #495057;
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.15);
}

.btn-dark {
    background: var(--primary-dark);
}

.btn-dark:hover {
    background: #343a40;
}

/* Üst menü — beyaz zemin, logo menü yüksekliğini doldurur */
.site-navbar {
    --nav-bar-height: 100px;
    background: #fff !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    min-height: var(--nav-bar-height);
    padding: 0.35rem 0;
}

.site-navbar > .container {
    min-height: calc(var(--nav-bar-height) - 0.7rem);
    align-items: center;
}

.site-navbar .navbar-brand {
    padding: 0;
    margin-right: 1.25rem;
    height: calc(var(--nav-bar-height) - 0.7rem);
    display: inline-flex;
    align-items: center;
}

.site-navbar .nav-link {
    color: #343a40 !important;
    font-weight: 500;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: #000 !important;
}

.site-navbar .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.12);
    padding: 0.4rem 0.55rem;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    height: 100%;
    line-height: 0;
}

.brand-logo-main {
    height: calc(var(--nav-bar-height) - 1rem);
    max-height: 92px;
    width: auto;
    max-width: min(520px, 58vw);
    object-fit: contain;
    display: block;
}

.site-navbar .nav-cta-link {
    background: var(--primary-dark) !important;
    color: #fff !important;
    border-radius: 0.375rem !important;
    padding: 0.45rem 1.15rem !important;
    margin-left: 0.25rem;
    border: none !important;
}

.site-navbar .nav-cta-link:hover,
.site-navbar .nav-cta-link:focus {
    background: #343a40 !important;
    color: #fff !important;
}

.site-navbar .nav-admin-link {
    color: #6c757d !important;
    font-size: 0.95rem;
}

.site-navbar .nav-admin-link:hover {
    color: #212529 !important;
}

/* Alt menü / footer — logo footer bandını doldurur */
.site-footer {
    background: #fff !important;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
    padding: 0.5rem 0;
}

.site-footer-bar {
    --footer-bar-height: 96px;
    display: flex;
    align-items: center;
    min-height: var(--footer-bar-height);
    gap: 1rem 1.5rem;
}

.site-footer-copy {
    flex: 1;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 0 0.5rem;
}

.footer-brand-logo {
    flex-shrink: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    height: calc(var(--footer-bar-height) - 0.5rem);
    padding: 0;
    background: transparent;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-brand-logo:hover {
    transform: translateY(-1px);
    opacity: 0.88;
}

.footer-brand-img {
    height: 100%;
    max-height: 90px;
    width: auto;
    max-width: min(360px, 42vw);
    object-fit: contain;
    display: block;
}

@media (min-width: 992px) {
    .site-navbar {
        --nav-bar-height: 112px;
    }

    .brand-logo-main {
        max-height: 104px;
        max-width: min(580px, 50vw);
    }

    .site-footer-bar {
        --footer-bar-height: 108px;
    }

    .footer-brand-img {
        max-height: 100px;
        max-width: min(400px, 36vw);
    }
}

/* Sayfa yükleyici */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-loader.is-active {
    opacity: 1;
    visibility: visible;
}

.page-loader-inner {
    text-align: center;
}

.page-loader-icon {
    display: block;
    margin: 0 auto 0.85rem;
    width: 96px;
    height: 96px;
    object-fit: contain;
    mix-blend-mode: screen;
    animation: brandIconPulse 1.1s ease-in-out infinite;
}

.page-loader-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

@keyframes brandIconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.75;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 320px;
    }

    .hero-brand-logo {
        max-height: clamp(100px, 28vw, 150px);
        max-width: min(520px, 94vw);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .application-section .application-title {
        font-size: 1.15rem;
    }

    .application-card {
        border-radius: 0.35rem;
    }

    .application-card .card-body {
        padding: 1rem !important;
    }

    .application-section .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .application-section .form-control,
    .application-section .form-select {
        font-size: 16px; /* iOS zoom engelleme */
        min-height: 44px;
    }

    .application-section textarea.form-control {
        min-height: auto;
    }

    .application-section .form-control-mobile {
        padding: 0.5rem;
    }

    .application-section .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .site-navbar .nav-cta-link {
        display: inline-block;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .site-navbar .nav-admin-link {
        font-size: 0.95rem;
    }

    .site-navbar .navbar-nav {
        padding-bottom: 0.75rem;
        padding-top: 0.5rem;
    }

    .site-navbar {
        --nav-bar-height: 80px;
    }

    .brand-logo-main {
        max-height: 72px;
        max-width: min(320px, 72vw);
    }

    .site-footer-bar {
        --footer-bar-height: 80px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.75rem 0;
    }

    .footer-brand-logo {
        height: calc(var(--footer-bar-height) - 0.25rem);
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .footer-brand-img {
        max-height: 72px;
        max-width: min(300px, 85vw);
    }

    .site-footer-copy {
        order: 2;
        width: 100%;
        font-size: 0.85rem;
    }
}

@media (min-width: 992px) {
    .site-navbar .nav-cta-link {
        margin-left: 0.5rem;
    }
}
