/* ============================================================================
 * RUTUBET KURUTMA - www.atilimdijital.com
============================================================================
*/

/* --- 1. VARIABLES & THEME --- */
:root {
    /* Corporate Green Palette */
    --color-primary-900: #064e3b; /* Deepest Green (Text/Headings) */
    --color-primary-800: #065f46;
    --color-primary-700: #047857;
    --color-primary-600: #059669;
    --color-primary-500: #10b981; /* Main Brand Color */
    --color-primary-400: #34d399;
    --color-primary-100: #d1fae5; /* Light Backgrounds */
    --color-primary-50:  #f0fdf4; /* Section Backgrounds */

    /* Neutrals */
    --color-surface: #ffffff;
    --color-background: #f8fafc;
    --color-text-main: #334155;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;

    /* Status & Accents */
    --color-accent: #0f766e; /* Dark Teal for contrast */
    --color-warning: #f59e0b;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Typography */
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
    color: var(--color-primary-900);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* --- 3. UTILITIES & LAYOUT --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.grid { display: grid; gap: 24px; }
.flex { display: flex; gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.section-padding { padding: 80px 0; }
.bg-white { background-color: var(--color-surface); }
.bg-light { background-color: var(--color-primary-50); }

/* --- 4. BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    gap: 10px;
}

.btn-primary {
    background-color: var(--color-primary-900);
    color: white;
    border: 1px solid var(--color-primary-900);
}

.btn-primary:hover {
    background-color: var(--color-primary-800);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary-900);
    border: 1px solid var(--color-primary-900);
}

.btn-outline:hover {
    background-color: var(--color-primary-50);
}

.btn-block { width: 100%; }

/* --- 5. HEADER (New Minimal Structure) --- */
.site-header {
    background: var(--color-surface);
    height: var(--header-height);
    border-bottom: 2px solid var(--color-primary-100);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 22px;
    color: var(--color-primary-900);
    letter-spacing: -0.5px;
}

.brand-logo i {
    color: var(--color-primary-500);
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    font-size: 15px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary-600);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -29px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary-500);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.phone-badge span {
    font-size: 12px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phone-badge strong {
    font-size: 18px;
    color: var(--color-primary-900);
    font-weight: 700;
}

/* Mobile Menu Trigger */
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--color-primary-900);
    z-index: 1002; /* YENİ GÜNCELLEME: Z-Index artırıldı */
    padding: 5px; /* Tıklama alanı genişletildi */
}

/* --- 6. HERO SECTIONS --- */
/* Homepage Hero */
.hero-home {
    background: linear-gradient(to right, var(--color-primary-900), var(--color-primary-800));
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    opacity: 0.3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 56px;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-content .highlight {
    color: var(--color-primary-400);
}

.hero-content p {
    font-size: 18px;
    color: var(--color-primary-100);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.stat h4 { font-size: 32px; color: var(--color-primary-400); margin-bottom: 5px; }
.stat span { font-size: 14px; color: var(--color-primary-100); }

/* Service Hero (Slim) */
.hero-service {
    background-color: var(--color-primary-50);
    padding: 60px 0;
    border-bottom: 1px solid var(--color-primary-100);
}

.breadcrumb {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.breadcrumb i { margin: 0 8px; font-size: 10px; }

/* --- 7. CARDS & GRID SYSTEMS --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Service Card */
.service-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--color-primary-500);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.card-icon {
    width: 60px; height: 60px;
    background-color: var(--color-primary-50);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    color: var(--color-primary-600);
    margin-bottom: 20px;
}

.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--color-text-light); font-size: 15px; margin-bottom: 20px; flex-grow: 1; }
.service-link { font-weight: 600; color: var(--color-primary-600); font-size: 14px; display: flex; align-items: center; gap: 5px; }

/* Region Card (Chips) */
.region-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.region-chip {
    background: white;
    border: 1px solid var(--color-border);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.region-chip i { color: var(--color-primary-500); }

.region-chip:hover {
    border-color: var(--color-primary-500);
    color: var(--color-primary-900);
    background-color: var(--color-primary-50);
}

/* --- 8. SERVICE DETAIL LAYOUT (SIDEBAR) --- */
.service-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding-bottom: 80px;
}

.main-content {
    font-size: 17px;
    color: var(--color-text-main);
}

/* Content Styling (Inside generateServiceContent) */
.content-box {
    margin-bottom: 40px;
}

.content-intro {
    font-size: 19px;
    line-height: 1.8;
    color: var(--color-primary-900);
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--color-primary-500);
}

.benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.benefit-item {
    background: var(--color-primary-50);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit-item i { color: var(--color-primary-600); font-size: 20px; }
.benefit-item span { font-weight: 600; color: var(--color-primary-900); }

/* Sidebar Styling */
.sidebar-widget {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    border-bottom: 2px solid var(--color-primary-100);
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: var(--color-primary-900);
}

.widget-list li { margin-bottom: 12px; }

.widget-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    background: var(--color-background);
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 500;
}

.widget-link:hover, .widget-link.active {
    background: var(--color-primary-900);
    color: white;
}

/* --- 9. SEO KEYWORD CLOUD (New Feature) --- */
.keyword-cloud {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-top: 40px;
}
.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.k-tag {
    font-size: 12px;
    background: var(--color-background);
    color: var(--color-text-light);
    padding: 5px 12px;
    border-radius: 4px;
}

/* --- 10. FOOTER --- */
.site-footer {
    background: var(--color-primary-900);
    color: white;
    padding-top: 80px;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p { color: var(--color-primary-100); margin-top: 20px; }
.footer-title { color: white; font-size: 18px; margin-bottom: 25px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--color-primary-100); }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-bottom { padding: 30px 0; text-align: center; color: rgba(255,255,255,0.4); font-size: 14px; }

/* --- 11. RESPONSIVE --- */
@media (max-width: 1024px) {
    .nav-menu, .header-cta { display: none; }
    .mobile-toggle { display: block; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-stats { justify-content: center; }
    .service-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
    position: fixed; top: 0; right: -100%; width: 85%; height: 100%;
    background: white; 
    z-index: 99999; /* YENİ GÜNCELLEME: En üste alındı (Whatsapp'ın bile üstüne) */
    padding: 30px;
    transition: 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}
.mobile-menu-drawer.active { right: 0; }
.drawer-links li { margin-bottom: 20px; border-bottom: 1px solid var(--color-border); padding-bottom: 10px; }
.drawer-links a { font-size: 18px; font-weight: 600; color: var(--color-primary-900); }

/* Yeni Close Butonu Stili */
.mobile-close-btn {
    font-size: 24px;
    color: var(--color-primary-900);
    padding: 5px;
}

/* --- 12. WHATSAPP BUTTON --- */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-icon {
    font-size: 24px;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 15px;
}

/* === WHATSAPP + ARAMA BUTONLARI BAŞLANGIÇ === */
/* Yeni Arama Butonu - WhatsApp'ın Üstünde */
.call-float-btn {
    position: fixed;
    bottom: 95px; /* WhatsApp'ın üzerinde (30px + yaklaşık 50px yükseklik + 15px boşluk) */
    right: 30px;
    background-color: var(--color-primary-900);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    font-size: 20px;
}

.call-float-btn:hover {
    background-color: var(--color-primary-600);
    transform: translateY(-3px);
}
/* === WHATSAPP + ARAMA BUTONLARI BİTİŞ === */

@media (max-width: 768px) {
    .whatsapp-float-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }
    .whatsapp-text {
        display: none;
    }
    
    .call-float-btn {
        right: 20px;
        bottom: 75px; /* Mobilde boşluğu ayarla */
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* === GÖRSEL VE MOBİL İYİLEŞTİRMELER BAŞLANGIÇ === */
    /* Mobilde görseller tam ekran (padding'i yok sayar) */
    .main-content img, 
    .service-card img,
    .content-box img {
        width: 100vw !important;
        margin-left: -24px !important; /* Container padding'i kadar sola çek */
        max-width: none !important;
        height: auto;
        object-fit: cover;
    }
    /* === GÖRSEL VE MOBİL İYİLEŞTİRMELER BİTİŞ === */
}