/**
 * @file style.css
 * @description Sancaktepe Çilingir 7/24 - Saf CSS3, BEM Metodolojisi, Mobil Öncelikli
 * @author Kıdemli Full-Stack & SecOps Lideri
 */

/* ==========================================
   1. CSS DEĞİŞKENLERİ (TEMA & MİMARİ)
   ========================================== */
:root {
    --color-navy: #0F172A;     
    --color-blue: #2563EB;     
    --color-amber: #F59E0B;    
    --color-white: #FFFFFF;
    --color-bg: #F8FAFC;       
    --color-text: #334155;     
    
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    --z-sticky-bottom: 9999;
    --z-header: 9998;
}

/* ==========================================
   2. CSS RESET & TEMEL AYARLAR
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    padding-bottom: 80px; 
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ==========================================
   3. BUTON BİLEŞENLERİ (BEM: Block)
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn__icon { margin-right: 0.5rem; font-size: 1.2rem; }
.btn--primary { background-color: var(--color-amber); color: var(--color-navy); box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3); }
.btn--primary:hover { background-color: #d97706; }
.btn--whatsapp { background-color: #25D366; color: var(--color-white); box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3); }
.btn--whatsapp:hover { background-color: #16a34a; }
.btn--pulse { animation: pulse-animation 2s infinite; }

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ==========================================
   4. HEADER & NAVİGASYON 
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    transition: all 0.3s ease;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-navy);
    color: var(--color-white);
}

.header--glass {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-amber);
}

.header__toggle {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9999;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* DROPDOWN (AÇILIR MENÜ) ORTAK STİLLERİ */
.nav__item--dropdown {
    position: relative;
}
.dropdown-icon {
    display: inline-block;
    font-size: 0.8rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

/* ==========================================
   5. LAYOUT & SECTIONS 
   ========================================== */
.main-content { margin-top: 70px; }
.hero { background-color: var(--color-navy); color: var(--color-white); padding: var(--spacing-xl) var(--spacing-sm); text-align: center; }
.hero__container { max-width: 800px; margin: 0 auto; }
.hero__title { font-size: 2.2rem; line-height: 1.2; margin-bottom: var(--spacing-sm); }
.hero__title-highlight { color: var(--color-amber); }
.hero__description { font-size: 1.1rem; margin-bottom: var(--spacing-lg); opacity: 0.9; }
.hero__actions { display: flex; flex-direction: column; gap: var(--spacing-sm); }

.trust-signals { padding: var(--spacing-lg) var(--spacing-sm); background-color: var(--color-white); }
.trust-signals__container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: var(--spacing-md); }
.trust-card { text-align: center; padding: var(--spacing-md); border-radius: 8px; background: var(--color-bg); border: 1px solid #e2e8f0; }
.trust-card__icon { font-size: 2.5rem; margin-bottom: var(--spacing-xs); }
.trust-card__title { color: var(--color-navy); margin-bottom: var(--spacing-xs); }

.services { padding: var(--spacing-xl) var(--spacing-sm); }
.services__container { max-width: 1200px; margin: 0 auto; }
.services__heading { text-align: center; color: var(--color-navy); margin-bottom: var(--spacing-lg); font-size: 2rem; }
.services__grid { display: grid; grid-template-columns: 1fr; gap: var(--spacing-md); }
.service-card { background-color: var(--color-white); padding: var(--spacing-lg); border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); border-top: 4px solid var(--color-blue); }
.service-card__title { color: var(--color-navy); margin-bottom: var(--spacing-xs); }

.geo-seo { padding: var(--spacing-lg) var(--spacing-sm); background-color: var(--color-navy); color: var(--color-white); text-align: center; }
.geo-seo__container { max-width: 1000px; margin: 0 auto; }
.geo-seo__heading { color: var(--color-amber); margin-bottom: var(--spacing-sm); }
.geo-seo__text { margin-bottom: var(--spacing-lg); opacity: 0.9; }
.geo-seo__neighborhoods { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; list-style: none; }
.geo-seo__item { background-color: rgba(255, 255, 255, 0.1); padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.9rem; }

/* ==========================================
   6. LOKASYON KARTLARI (Hizmet Bölgeleri)
   ========================================== */
.locations__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.locations__grid--small {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.location-card {
    background-color: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-sm);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-bottom: 4px solid var(--color-amber);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: var(--color-navy);
    border-bottom: 4px solid var(--color-blue);
}

.location-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    transition: transform 0.3s ease;
}

.location-card:hover .location-card__icon {
    transform: scale(1.1);
}

.location-card__title {
    color: var(--color-navy);
    font-size: 1.3rem;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.location-card:hover .location-card__title {
    color: var(--color-white);
}

.location-card--small {
    padding: var(--spacing-md) var(--spacing-xs);
}

/* ==========================================
   7. MOBİL STICKY BOTTOM 
   ========================================== */
.sticky-bottom { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--color-white); box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15); z-index: var(--z-sticky-bottom); display: flex; padding: var(--spacing-xs); gap: var(--spacing-xs); }
.sticky-bottom .btn { flex: 1; padding: 1rem 0; font-size: 1rem; border-radius: 4px; }

/* ==========================================
   8. MOBİL MENÜ ÖZEL KURALLARI (Mobil Görünüm)
   ========================================== */
@media (max-width: 767px) {
    .header__toggle { display: flex; }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-navy);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .nav.is-active { max-height: 600px; }
    
    .nav__list {
        display: flex;
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        text-align: center;
        list-style: none;
    }
    .nav__link { display: block; padding: 0.5rem; font-size: 1.1rem; }

    /* MOBİL DROPDOWN (AKORDEON ANİMASYONU) */
    .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        opacity: 0;
        list-style: none;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin-top: 0;
    }
    .nav__item--dropdown.is-active .dropdown-menu {
        max-height: 250px;
        opacity: 1;
        margin-top: 0.5rem;
    }
    .nav__item--dropdown.is-active .dropdown-icon {
        transform: rotate(180deg);
    }
    .dropdown-link {
        display: block;
        padding: 0.6rem;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.8);
        transition: color 0.3s;
    }
    .dropdown-link:hover { color: var(--color-amber); }

    /* HAMBURGER -> X ANİMASYONU */
    .header__toggle.is-active .hamburger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .header__toggle.is-active .hamburger-line:nth-child(2) { opacity: 0; }
    .header__toggle.is-active .hamburger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ==========================================
   9. MEDIA QUERIES (Masaüstü Optimizasyonları)
   ========================================== */
@media (min-width: 768px) {
    body { padding-bottom: 0; } 
    .header__container { padding: 0; }
    .nav { max-height: none; overflow: visible; }
    .nav__list { display: flex; flex-direction: row; list-style: none; gap: var(--spacing-lg); } 
    .hero__actions { flex-direction: row; justify-content: center; }
    .trust-signals__container { grid-template-columns: repeat(3, 1fr); }
    .services__grid { grid-template-columns: repeat(3, 1fr); }
    .sticky-bottom { display: none; }

    /* MASAÜSTÜ DROPDOWN (HOVER ANİMASYONU) */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(15px);
        min-width: 260px;
        background-color: var(--color-white);
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        list-style: none;
        padding: 0.8rem 0;
        text-align: left;
    }
    
    .nav__item--dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .nav__item--dropdown:hover .dropdown-icon {
        transform: rotate(180deg);
    }

    .dropdown-link {
        display: block;
        padding: 0.6rem 1.2rem;
        color: var(--color-navy);
        font-size: 0.95rem;
        font-weight: 500;
        transition: background-color 0.2s, color 0.2s;
    }
    .dropdown-link:hover {
        background-color: var(--color-bg);
        color: var(--color-blue);
    }
}

/* ==========================================
   10. SECOPS & UX: INTERSECTION OBSERVER SINIFI
   ========================================== */
.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ==========================================================================
   GENEL KULLANIMLI ASİMETRİK (ZEBRA) KART BİLEŞENİ 
   (Tüm sayfalarda ortak kullanılabilir)
   ========================================================================== */
.feature-row-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feature-row-card {
    display: flex;
    flex-direction: row; /* Varsayılan: Sol Görsel, Sağ Yazı */
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

/* Kartların üzerine gelindiğinde tüm sitede çalışacak hafif büyüme efekti */
.feature-row-card:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 15px rgba(0,0,0,0.06);
}

/* Görseli Sağ Tarafa, Yazıyı Sol Tarafa Almak İçin Kullanılacak Genel Sınıf */
.feature-row-card--reverse {
    flex-direction: row-reverse;
}

.feature-row-card__img-box {
    flex: 1;
    min-height: 320px;
}

.feature-row-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-row-card__content-box {
    flex: 1.2;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-row-card__title {
    color: var(--color-navy);
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.feature-row-card__text {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1rem;
}

/* Mobil Cihazlar İçin Kusursuz Responsive Düzen */
@media (max-width: 768px) {
    .feature-row-card, 
    .feature-row-card--reverse {
        flex-direction: column !important; /* Mobilde her zaman görsel üstte, yazı altta olur */
    }
    .feature-row-card__img-box {
        min-height: 250px;
        height: 250px;
    }
    .feature-row-container {
        padding: var(--spacing-lg) var(--spacing-sm);
        gap: var(--spacing-md);
    }
}