/* ==========================================================================
   Main CSS - Tüm sayfalarda yüklenir
   Global reset, tipografi, layout, header, footer, ortak bileşenler
   ========================================================================== */

/* --- Satoshi Font Face (inline — ayrı CSS zinciri kaldırıldı) --- */
@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/satoshi/Satoshi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/satoshi/Satoshi-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/satoshi/Satoshi-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Base --- */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Header --- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 100;
    background: transparent;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-branding img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

/* --- Navigation --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: #fff;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 0.7;
}

.header-cta {
    display: inline-block;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--accent);
    padding: 10px 24px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.4s ease, color 0.4s ease;
}

.header-cta:hover {
    background: #fff;
    color: var(--accent);
}

/* --- Page Hero --- */
.page-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #fff;
    font-size: 64px;
    line-height: 1.2;
}

/* --- Content --- */
.site-content {
    min-height: 60vh;
}

/* --- Footer --- */
.site-footer {
    padding: 3rem 0 1.5rem;
    background: #1a1a1a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    max-height: 110px;
    width: auto;
    margin-bottom: 0.75rem;
}

.footer-site-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.site-footer .container {
    display: block;
}

.footer-col-title {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav li {
    position: relative;
    padding-left: 1rem;
}

.footer-nav li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 50%, transparent);
}

.footer-nav a {
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.footer-copyright {
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer-bottom-logo {
    max-height: 40px;
    width: auto;
}

.footer-sitemap-btn {
    font-family: 'Satoshi', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.footer-sitemap-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-menu-overlay.is-active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #1a1a1a;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu.is-active {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--accent);
}

.mobile-menu-cta {
    display: block;
    text-align: center;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: var(--accent);
    padding: 14px 24px;
    border-radius: 4px;
    transition: background 0.4s ease;
}

.mobile-menu-cta:hover {
    background: var(--accent-hover);
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-footer-title {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.mobile-menu-footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    transition: color 0.3s ease;
}

.mobile-menu-footer-nav a:hover {
    color: var(--accent);
}

/* --- Anasayfadayken menüden anasayfa linkini gizle --- */
body.home .main-nav .menu-item-home,
body.home .mobile-nav .menu-item-home {
    display: none;
}

/* --- Accessibility --- */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

.screen-reader-text:focus {
    clip: auto;
    display: block;
    height: auto;
    width: auto;
    position: static;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* --- Tablet (768px ve altı) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    /* Header */
    .site-header {
        height: 80px;
    }

    /* Page Hero */
    .page-hero-title {
        font-size: 36px;
    }

    .site-branding img {
        max-height: 50px;
    }

    .header-right {
        gap: 1rem;
    }

    .main-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-logo {
        max-height: 100px;
    }

    .footer-nav ul {
        align-items: center;
    }

    .footer-nav li {
        padding-left: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-logo-link {
        position: static;
        transform: none;
    }
}

/* --- Mobil (480px ve altı) --- */
@media (max-width: 480px) {
    .site-header {
        height: 70px;
    }

    .site-branding img {
        max-height: 40px;
    }

    .footer-logo {
        max-height: 80px;
    }
}
