/* ==========================================
   YAĞIZ ELEKTRİK - GENEL STİL DOSYASI
   ========================================== */

/* ==========================================
   GENEL YAPILANDIRMA
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2c5282;
    --accent-color: #f59e0b;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* ==========================================
   TİPOGRAFİ
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--bg-light);
}

/* ==========================================
   ÜST BAR
   ========================================== */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    text-align: center;
}

.top-bar a {
    color: white;
}

/* ==========================================
   HEADER & NAVİGASYON
   ========================================== */
.header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* ==========================================
   BUTONLAR
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ==========================================
   KARTLAR
   ========================================== */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ==========================================
   AVANTAJLAR LİSTESİ
   ========================================== */
.features-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.feature-content p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* ==========================================
   SSS (FAQ)
   ========================================== */
.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

details {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

summary {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.0625rem;
    cursor: pointer;
    user-select: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.5rem;
    transition: var(--transition);
}

details[open] summary::before {
    transform: rotate(90deg);
}

details p {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

/* ==========================================
   FORM YAPILARI
   ========================================== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* ==========================================
   İLETİŞİM BİLGİLERİ
   ========================================== */
.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-content h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-content p {
    margin-bottom: 0;
}

/* ==========================================
   HİZMET BÖLGE
   ========================================== */
.service-area {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.service-area h3 {
    margin-bottom: 1rem;
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.area-badge {
    background-color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer p,
.footer a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* ==========================================
   HİZMET DETAY SAYFALARI
   ========================================== */
.service-detail {
    max-width: 900px;
    margin: 0 auto;
}

.service-intro {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.service-section {
    margin-bottom: 3rem;
}

.service-section h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
}

.service-list {
    list-style: none;
    margin-top: 1rem;
}

.service-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--text-light);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.related-services {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.related-services h3 {
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    gap: 1rem;
}

.related-link {
    display: block;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.related-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

/* ==========================================
   CTA SEKSİYONU
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-list li::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumb-list li:last-child::after {
    content: '';
}

/* ==========================================
   RESPONSİVE TASARIM
   ========================================== */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.875rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.5rem;
        display: none;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.floating-actions {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 6px 15px rgba(0,0,0,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.action-btn i {
    font-size: 18px;
}

/* Telefon */
.action-btn.call {
    background: #0d6efd;
}

/* WhatsApp */
.action-btn.whatsapp {
    background: #25D366;
}

/* Hover */
.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

/* Mobilde sadece ikon kalsın */
@media (max-width: 576px) {
    .action-btn span {
        display: none;
    }
    .action-btn {
        padding: 14px;
        border-radius: 50%;
    }
}
