@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@700;800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #3d5afe;
    --primary-dark: #2a3eb1;
    --accent: #f50057;
    --bg: #fdfefe;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-400: #94a3b8;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg); 
    color: var(--slate-800); 
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }
a { text-decoration: none; color: inherit; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.site-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
.site-header { 
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03); 
}
.site-header .site-wrap { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    position: relative;
}
.site-logo { 
    color: var(--primary); 
    font-size: 1.5rem; 
    font-weight: 800; 
    letter-spacing: -0.03em; 
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.site-logo span { color: var(--slate-900); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { color: var(--slate-800); font-size: 0.95rem; font-weight: 600; }
.site-nav a:hover { color: var(--primary); }
.site-nav .nav-cta { 
    background: linear-gradient(135deg, var(--primary), #6366f1); 
    color: #fff; 
    padding: 0.6rem 1.25rem; 
    border-radius: 12px; 
    box-shadow: 0 4px 12px rgba(61, 90, 254, 0.25);
}
.site-nav .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(61, 90, 254, 0.35); }

/* ===== HERO ===== */
.hero { 
    background: radial-gradient(circle at top right, #e0e7ff, transparent),
                radial-gradient(circle at bottom left, #fff1f2, transparent);
    padding: 6rem 0 5rem; 
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -10%; right: -5%;
    width: 400px; height: 400px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.1;
    z-index: 0;
}

.hero-inner { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    gap: 4rem; 
    align-items: center; 
    position: relative;
    z-index: 1;
}

.hero-tag { 
    display: inline-block; 
    background: rgba(61, 90, 254, 0.1); 
    color: var(--primary); 
    font-size: 0.8rem; 
    font-weight: 700; 
    letter-spacing: 0.05em; 
    text-transform: uppercase; 
    padding: 0.4rem 1rem; 
    border-radius: 999px; 
    margin-bottom: 1.5rem; 
}

.hero h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    color: var(--slate-900); 
    line-height: 1.1; 
    letter-spacing: -0.04em; 
    margin-bottom: 1.5rem; 
}
.hero h1 em { 
    color: var(--primary); 
    font-style: normal; 
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--slate-800); font-size: 1.15rem; line-height: 1.7; margin-bottom: 2.5rem; opacity: 0.9; }

.hero-image-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}
.hero-image-wrap img { width: 100%; border-radius: 24px; }

/* ===== CARDS & BUTTONS ===== */
.btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.6rem; 
    padding: 0.85rem 1.75rem; 
    border-radius: 14px; 
    font-size: 1rem; 
    font-weight: 700; 
    cursor: pointer; 
    border: none; 
}
.btn-blue { background: var(--primary); color: #fff; box-shadow: 0 10px 20px rgba(61, 90, 254, 0.2); }
.btn-blue:hover { background: var(--primary-dark); transform: scale(1.02); }
.btn-ghost { background: #fff; color: var(--slate-800); border: 1px solid #e2e8f0; }
.btn-ghost:hover { background: #f8fafc; }

/* ===== GLOBAL CTA BAND ===== */
.global-cta {
    padding: 3rem 0;
}
.global-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}
.global-cta-form {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    color: #e2e8f0;
    padding: 2rem 0;
}
.stats-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}
.stat-item strong {
    font-size: 1.5rem;
    font-weight: 800;
}
.stat-item span {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* ===== SERVICES ===== */
.section { padding: 5rem 0; }
.section-title { font-size: 2.25rem; font-weight: 800; color: var(--slate-900); margin-bottom: 0.75rem; letter-spacing: -0.03em; }
.section-sub { color: var(--slate-400); font-size: 1.1rem; margin-bottom: 3rem; }

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
}
.step-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.step-num {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}
.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
.step-card p {
    font-size: 0.9rem;
    color: #64748b;
}

/* ===== FAQ BLOKLARI ===== */
.faq-item {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 3px 10px rgba(15,23,42,0.03);
}
.faq-q {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.faq-a {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.srv-card { 
    background: #fff; 
    border-radius: 20px; 
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); 
    border: 1px solid #f1f5f9;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.srv-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.srv-img-h { height: 200px; overflow: hidden; }
.srv-img-h img { width: 100%; height: 100%; object-fit: cover; }
.srv-content { padding: 1.75rem; }
.srv-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--slate-900); }
.srv-card p { font-size: 0.95rem; color: var(--slate-800); opacity: 0.8; }

/* ===== DISTRICTS ===== */
.district-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.district-link { 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 1rem; 
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.district-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(61, 90, 254, 0.05); }

/* City list on service detail (mobile-first) */
.city-list-responsive {
    display: block;
}
.city-list-mobile {
    display: block;
    margin-bottom: 1.5rem;
}
.city-list-desktop {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* Desktop ve geniş tabletlerde kart listesi göster, mobilde sadece dropdown */
@media(min-width: 1024px) {
    .city-list-mobile { display: none; }
    .city-list-desktop { display: grid; }
}

/* ===== FOOTER ===== */
.site-footer { background: var(--slate-900); color: #cbd5e1; padding: 5rem 0 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer-brand { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.footer-desc { color: #94a3b8; line-height: 1.8; }
.footer-col h4 { color: #fff; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-links a { display: block; margin-bottom: 0.75rem; color: #94a3b8; }
.footer-links a:hover { color: var(--primary); }

/* ===== PAGE HERO (SUBPAGES) ===== */
.page-hero { 
    background: linear-gradient(135deg, var(--slate-900) 0%, #1e3a5f 100%); 
    padding: 4rem 0 3.5rem; 
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px; height: 300px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.15;
}

.page-breadcrumb { 
    display: flex; 
    gap: 0.5rem; 
    align-items: center; 
    font-size: 0.85rem; 
    color: var(--slate-400); 
    margin-bottom: 1.25rem; 
    position: relative; z-index: 1;
}
.page-breadcrumb a:hover { color: #fff; }
.page-hero h1 { 
    font-size: 3rem; 
    font-weight: 800; 
    letter-spacing: -0.03em; 
    margin-bottom: 1rem; 
    position: relative; z-index: 1;
}
.page-hero-sub { 
    font-size: 1.15rem; 
    color: var(--slate-400); 
    max-width: 700px; 
    line-height: 1.7;
    position: relative; z-index: 1;
}

/* ===== GRID SYSTEMS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== PAGE LAYOUT (GENEL İÇERİK SAYFALARI) ===== */
.page-body {
    padding: 3.5rem 0 4.5rem;
}
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: flex-start;
}
.page-main,
.page-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.page-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.aside-card {
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
}

/* ===== BLOG UI ===== */
.blog-cover {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    max-height: 420px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.blog-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.blog-cover.is-favicon {
    max-height: none;
    padding: 2.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}
.blog-cover.is-favicon img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}
.blog-favicon-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}
.blog-favicon-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.blog-article-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 1.6rem;
}
.blog-article-content h2,
.blog-article-content h3 {
    color: #0f172a;
    margin-top: 1.2rem;
    margin-bottom: 0.7rem;
}
.blog-article-content p,
.blog-article-content li {
    color: #334155;
}
.blog-article-content ul,
.blog-article-content ol {
    padding-left: 1.1rem;
    margin: 0.4rem 0 0.9rem;
}
.blog-article-content a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #93c5fd;
}
.blog-article-content a:hover {
    color: #1e40af;
    border-bottom-color: #1d4ed8;
}
.blog-article-content a[href^="il/"] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
    padding: 0.34rem 0.7rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
}
.blog-article-content a[href^="il/"]:hover {
    background: #dbeafe;
}
.blog-toc {
    max-width: 720px;
    margin-bottom: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.9rem 1rem;
}
.blog-toc-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.55rem;
}
.blog-toc-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.blog-toc-link {
    color: #1e40af;
    text-decoration: none;
    font-size: 0.88rem;
}
.blog-toc-link.level-3 {
    padding-left: 0.9rem;
    font-size: 0.84rem;
    color: #334155;
}
.blog-toc-link:hover {
    text-decoration: underline;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--slate-900);
    cursor: pointer;
    padding: 0.5rem;
}

@media(max-width: 992px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-2, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .srv-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .page-layout { grid-template-columns: 1fr; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero { padding: 4rem 0 3rem; }
    .steps { grid-template-columns: 1fr 1fr; }
    .global-cta-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    
    /* MOBILE NAV */
    .mobile-menu-toggle { display: block; }
    .site-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        background: #ffffff;
        padding: 1.5rem;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 0.5rem;
        text-align: center;
        border: 1px solid var(--glass-border);
    }
    .site-nav.active { display: flex; animation: slideDown 0.3s ease forwards; }
    .site-nav a { font-size: 1.1rem; }
    .site-nav .nav-cta { width: 100%; justify-content: center; display: inline-flex; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 640px) {
    .site-wrap { padding: 0 1.25rem; }
    
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
    .srv-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 1.25rem; }
    
    /* Typographic tightening */
    .page-hero h1 { font-size: 2rem; }
    .page-hero { padding: 3rem 0; text-align: center; }
    
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2.2rem; margin-bottom: 1rem; }
    .hero-sub { font-size: 1rem; margin-bottom: 2rem; }
    
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 1.75rem; margin-bottom: 1.5rem; }
    
    /* City list on service detail: already mobile-first, no override */

    /* Header & Nav */
    .site-header { padding: 0.6rem 0; }
    .site-header .site-wrap { flex-direction: row; justify-content: space-between; gap: 0.25rem; }
    .site-logo { font-size: 1.25rem; gap: 0.4rem; }
    .site-logo svg { width: 26px; height: 26px; }
    
    .site-nav { 
        padding: 1.25rem; 
        border-radius: 18px;
    }
    .site-nav a { 
        font-size: 1.05rem; 
        padding: 0.4rem 0; 
        font-weight: 600;
    }
    .site-nav .nav-cta { 
        padding: 0.85rem 1rem; 
        margin-top: 0.25rem; 
        font-size: 0.95rem;
    }

    /* Cards & Paddings */
    .card-premium { padding: 1.5rem 1.25rem; }
    .icon-box { padding: 1.5rem 1.25rem; }
    .steps-section { padding: 3.25rem 0; }
    .step-card { 
        padding: 1.25rem 1.1rem; 
        flex-direction: row; 
        align-items: flex-start;
        gap: 0.9rem;
    }
    .step-num {
        min-width: 2.4rem;
        margin-top: 0.2rem;
    }
    
    /* Search Box in Hero */
    .search-wrap { padding: 1.25rem !important; }
    .search-wrap .grid-2 { gap: 1rem !important; margin-bottom: 0.75rem !important; }
    
    /* Stats */
    .stats-inner { flex-direction: column; gap: 2rem; }
    .stat-item { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1.5rem; }
    .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
    
    /* Forms & Touch Targets */
    .form-input, select.form-input { 
        font-size: 16px !important; 
        padding: 0.75rem 1rem;
        height: 3rem;
    }
    .form-label { font-size: 0.9rem; margin-bottom: 0.4rem; }
    .btn { padding: 0.75rem 1rem; font-size: 0.95rem; height: 3rem; }
    
    /* Document Base Font */
    body { font-size: 0.95rem; }
    
    /* Page layout & hero */
    .page-body { padding: 2.5rem 0 3.5rem; }
    .page-hero { padding: 3rem 0 2.5rem; text-align: center; }
    .page-hero-sub { font-size: 1rem; max-width: 100%; }
    
    /* WhatsApp FAB – hide on mobile (sticky bar replaces it) */
    .wa-fab {
        display: none !important;
    }

    /* Miscellaneous */
    .page-breadcrumb { flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
    .footer-grid { gap: 2.5rem; }

    /* Extra bottom padding for sticky bar */
    body { padding-bottom: 90px; }
}

/* ===== MOBILE STICKY CTA BAR ===== */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0.35rem;
    height: 64px;
    gap: 0.35rem;
}
.mobile-cta-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    height: 100%;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mobile-cta-call {
    color: #fff;
    background: linear-gradient(135deg, #3d5afe, #6366f1);
    box-shadow: 0 4px 15px rgba(61, 90, 254, 0.3);
}
.mobile-cta-call:hover, .mobile-cta-call:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(61, 90, 254, 0.4);
    background: linear-gradient(135deg, #324df0, #4f46e5);
}
.mobile-cta-wa {
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.mobile-cta-wa:hover, .mobile-cta-wa:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: flex;
    }
}
