/* ============================================
   SİTE ÖNYÜZÜ CSS - SADE & MODERN KURUMSAL TASARIM
   (Tema rengi :root içine header.php tarafından enjekte edilir)
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --dark: #0f172a;
    --text-main: #1f2937;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e5e7eb;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 2px 14px rgba(15,23,42,0.06);
    --shadow-lg: 0 14px 40px rgba(15,23,42,0.12);
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 16px;
    background: #fff;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-tag {
    display: inline-block;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}
.section-header h2 { font-size: 34px; font-weight: 700; color: var(--dark); margin-bottom: 14px; letter-spacing: -0.5px; }
.section-header p { color: var(--text-muted); font-size: 16px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-outline-dark { border-color: var(--border-color); color: var(--text-main); }
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }

/* ===== HEADER / NAVBAR ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--dark); }
.nav-logo img { height: 42px; width: auto; }
.nav-logo .logo-fallback {
    width: 42px; height: 42px; border-radius: 10px; background: var(--primary);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
}

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu li a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.2s;
}
.nav-menu li a:hover, .nav-menu li a.active { color: var(--primary); background: var(--primary-light); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--dark); }

@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 20px;
        box-shadow: var(--shadow);
        gap: 2px;
    }
    .nav-menu.show { display: flex; }
    .nav-menu li a { padding: 12px 14px; }
    .nav-toggle { display: block; }
    .nav-actions .btn-primary { display: none; }
}

/* ===== HERO / SLIDER ===== */
.hero-slider { position: relative; overflow: hidden; height: 580px; background: var(--dark); }
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0; transition: opacity 0.8s ease;
    background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.45) 60%, rgba(15,23,42,0.25) 100%); }
.hero-content { position: relative; z-index: 3; color: #fff; max-width: 620px; padding: 0 24px; margin: 0 auto; width: 100%; }
.hero-content .hero-subtitle { display: inline-block; background: rgba(255,255,255,0.15); padding: 6px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.hero-content h1 { font-size: 44px; font-weight: 800; line-height: 1.2; margin-bottom: 18px; letter-spacing: -1px; }
.hero-content p { font-size: 17px; opacity: 0.92; margin-bottom: 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 8px; }
.hero-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.2s; }
.hero-dots .dot.active { background: #fff; width: 26px; border-radius: 6px; }

.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; background: rgba(255,255,255,0.15); border: none; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; transition: 0.2s; }
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
@media (max-width: 768px) { .hero-arrow { display: none; } .hero-content h1 { font-size: 30px; } .hero-slider { height: 480px; } }

/* ===== PAGE HERO (alt sayfalar için) ===== */
.page-hero {
    background: var(--dark);
    background-size: cover;
    background-position: center;
    padding: 70px 0;
    text-align: center;
    color: #fff;
    position: relative;
}
.page-hero::before { content:''; position:absolute; inset:0; background: rgba(15,23,42,0.6); }
.page-hero .content { position: relative; z-index: 2; }
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.page-hero .breadcrumb { opacity: 0.85; font-size: 14px; }
.page-hero .breadcrumb a { text-decoration: underline; }

/* ===== SERVICES GRID ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 34px 28px;
    transition: all 0.25s ease;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.service-card .service-icon {
    width: 60px; height: 60px; border-radius: var(--radius-sm);
    background: var(--primary-light); display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 20px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--dark); }
.service-card p { color: var(--text-muted); font-size: 14.5px; }

/* ===== ABOUT / FEATURE SPLIT ===== */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-section img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
@media (max-width: 900px) { .split-section { grid-template-columns: 1fr; gap: 36px; } }

.feature-list { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item .check {
    width: 28px; height: 28px; border-radius: 50%; background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; font-weight: 700;
}

/* ===== BLOG CARDS ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.blog-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; transition: all 0.25s ease; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card .blog-img { height: 200px; background: var(--bg-light); overflow: hidden; }
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .blog-body { padding: 24px; }
.blog-card .blog-cat { color: var(--primary); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.blog-card h3 { font-size: 18px; margin: 10px 0; color: var(--dark); }
.blog-card .blog-excerpt { color: var(--text-muted); font-size: 14.5px; margin-bottom: 14px; }
.blog-card .blog-meta { font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 14px; }

/* ===== CLIENTS / LOGOS ===== */
.clients-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 50px; }
.clients-strip img { height: 44px; width: auto; object-fit: contain; opacity: 0.6; transition: 0.2s; filter: grayscale(1); }
.clients-strip a:hover img { opacity: 1; filter: grayscale(0); }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 60px;
    text-align: center;
    color: #fff;
}
.cta-banner h2 { font-size: 28px; margin-bottom: 14px; }
.cta-banner p { opacity: 0.9; margin-bottom: 26px; }
@media (max-width: 768px) { .cta-banner { padding: 40px 24px; } }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact-info-item .icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-item p { color: var(--text-muted); font-size: 14.5px; }

.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; color: var(--text-main); transition: 0.2s; font-size: 16px; }
.social-links a:hover { background: var(--primary); color: #fff; }
.social-links a.social-whatsapp:hover { background: #25D366; }

.contact-form-box { background: var(--bg-light); border-radius: var(--radius); padding: 36px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-control {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 15px; font-family: var(--font-main); background: #fff; transition: 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 16px; }
.footer-logo img { height: 38px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { font-size: 14.5px; transition: 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-col p { font-size: 14.5px; line-height: 1.7; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; text-align: center; font-size: 13.5px; }
.footer-bottom a { color: rgba(255,255,255,0.9); }

/* ===== ALERT (iletişim formu mesajları) ===== */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14.5px; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.alert-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ===== GENERIC PAGE CONTENT (WYSIWYG) ===== */
.page-content-body { max-width: 800px; margin: 0 auto; }
.page-content-body h2 { font-size: 26px; margin: 30px 0 14px; color: var(--dark); }
.page-content-body h3 { font-size: 20px; margin: 24px 0 12px; color: var(--dark); }
.page-content-body p { margin-bottom: 16px; color: var(--text-main); }
.page-content-body ul, .page-content-body ol { margin: 0 0 16px 24px; }
.page-content-body img { border-radius: var(--radius-sm); margin: 20px 0; }

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 998;
    width: 58px; height: 58px; border-radius: 50%; background: #25D366;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2); transition: 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
