/* Osmangazi Su Arıtma - Static Site Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1e88a8;
  --primary-dark: #0d6e8e;
  --primary-light: #e0f4fa;
  --accent: #ff6b35;
  --accent-dark: #e85a25;
  --text-dark: #1a2a3a;
  --text-mid: #4a5568;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --border: #e2e8f0;
  --success: #38a169;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 6px;
  --container: 1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--text-dark); background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header-top { background: var(--primary-dark); color: #fff; font-size: 13px; padding: 8px 0; }
.header-top .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.header-top a { color: #fff; }
.header-top span { display: inline-flex; align-items: center; gap: 6px; }
.header-main { padding: 16px 0; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 56px; height: 56px; }
.logo-text { font-weight: 700; font-size: 20px; color: var(--text-dark); line-height: 1.1; }
.logo-text small { display: block; font-size: 12px; color: var(--text-mid); font-weight: 500; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 10px 16px; color: var(--text-dark); font-weight: 500; border-radius: var(--radius-sm); transition: all .2s; }
.nav a:hover, .nav a.active { background: var(--primary-light); color: var(--primary-dark); }
.cta-call { background: var(--accent); color: #fff !important; padding: 12px 22px !important; border-radius: 50px; font-weight: 600; box-shadow: 0 4px 12px rgba(255,107,53,.3); }
.cta-call:hover { background: var(--accent-dark) !important; }

/* === HERO === */
.hero { background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%); padding: 60px 0 50px; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: var(--text-dark); }
.hero p.lead { font-size: 18px; color: var(--text-mid); margin-bottom: 24px; max-width: 720px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 16px; cursor: pointer; transition: all .2s; border: 0; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(255,107,53,.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); color: #fff; }
.btn-secondary { background: #25d366; color: #fff; }
.btn-secondary:hover { background: #128c7e; color: #fff; }
.btn-outline { background: transparent; color: var(--primary-dark); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.badge { display: inline-block; padding: 6px 14px; background: var(--primary-light); color: var(--primary-dark); border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }

/* === SECTIONS === */
section { padding: 50px 0; }
section.alt { background: var(--bg-light); }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.3; margin-bottom: 16px; color: var(--text-dark); }
h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 14px 20px; }
li { margin-bottom: 6px; }

/* === CARD === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: all .2s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary); }
.card .icon { font-size: 36px; margin-bottom: 12px; }
.card h3 { font-size: 18px; }
.card p { color: var(--text-mid); font-size: 14px; }

/* === BREADCRUMB === */
.breadcrumb { background: var(--bg-light); padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li { margin: 0; }
.breadcrumb li::after { content: '›'; margin-left: 8px; color: var(--text-light); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--text-mid); }

/* === CONTENT === */
.entry-content { max-width: 880px; margin: 0 auto; }
.entry-content h2 { margin-top: 32px; padding-top: 8px; border-top: 2px solid var(--primary-light); }
.entry-content h3 { margin-top: 24px; }
.entry-content p { color: var(--text-mid); }
.entry-content a { font-weight: 500; }
.entry-content ul li { padding-left: 4px; }
.entry-content blockquote { border-left: 4px solid var(--primary); padding: 12px 20px; background: var(--bg-light); margin: 20px 0; font-style: italic; color: var(--text-mid); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.entry-content table th, .entry-content table td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.entry-content table th { background: var(--primary-light); font-weight: 600; }

/* === FAQ === */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; color: var(--text-dark); display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--primary); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 20px 18px; color: var(--text-mid); }

/* === CTA BANNER === */
.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 50px 0; text-align: center; border-radius: var(--radius); margin: 40px 0; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 600px; margin: 0 auto 20px; }
.cta-banner .btn-primary { background: #fff; color: var(--accent); }
.cta-banner .btn-primary:hover { background: #f7fafc; }

/* === FOOTER === */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,.85); padding: 50px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,.6); }

/* === FLOATING CTA === */
.float-cta { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 99; }
.float-cta a { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; font-size: 24px; box-shadow: var(--shadow-lg); transition: transform .2s; }
.float-cta a:hover { transform: scale(1.1); color: #fff; }
.float-cta .phone { background: var(--accent); }
.float-cta .whatsapp { background: #25d366; }

/* === MAHALLE GRID === */
.mahalle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.mahalle-grid a { background: #fff; border: 1px solid var(--border); padding: 12px 14px; border-radius: var(--radius-sm); color: var(--text-dark); font-size: 14px; transition: all .2s; }
.mahalle-grid a:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }

/* === MOBILE === */
@media (max-width: 768px) {
  .header-main .container { flex-wrap: wrap; }
  .nav { display: none; width: 100%; margin-top: 12px; }
  .nav.open { display: flex; flex-direction: column; }
  .hamburger { display: block; cursor: pointer; font-size: 24px; background: none; border: 0; color: var(--text-dark); }
  .hero { padding: 40px 0 30px; }
  section { padding: 40px 0; }
  .float-cta { bottom: 12px; right: 12px; }
}
@media (min-width: 769px) { .hamburger { display: none; } }

/* ============================================================ */
/* === WP-KAYNAKLI KARTLAR — KONTRAST GARANTİSİ OVERRIDE === */
/* WP içerikten gelen scoped tasarımlardaki düşük kontrastlı     */
/* yazıları okunabilir hale getirir (WCAG AA min 4.5:1)          */
/* ============================================================ */

/* Açık arkaplanlı kartlar → koyu metin */
.osa-feature-card, .osa-feature-card p, .osa-feature-card li, .osa-feature-card span:not(.osa-feature-icon),
.osa-product-card, .osa-product-card p, .osa-product-card li, .osa-product-info, .osa-product-info p,
.osa-service-item, .osa-service-item p, .osa-service-item li,
.osa-faq-item p, .osa-faq-answer, .osa-faq-answer p,
.osa-contact-item, .osa-contact-item p,
.osa-neighborhoods, .osa-neighborhoods p,
.bsa-feature-card, .bsa-feature-card p, .bsa-feature-card li,
.bsa-product-card, .bsa-product-card p, .bsa-product-card li,
.bsa-faq-item, .bsa-faq-item p, .bsa-faq-a,
.bsa-snippet-box, .bsa-snippet-box p, .bsa-snippet-box li,
.bsa-card, .bsa-card p, .bsa-card li,
.bsa-section, .bsa-section p, .bsa-section li,
.bsa-brands, .bsa-intro, .bsa-intro p,
.brand-item, .brand-grid .brand-item,
.problem-list li, .problem-list li *,
.depth-section, .depth-section p, .depth-section li,
.analysis-box, .analysis-box p, .analysis-item, .analysis-item p,
.iletisim-kart, .iletisim-kart p, .iletisim-kart h3 + p,
.status-panel {
    color: #1a2a3a !important;
}

/* Bu kartlardaki başlıklar primary mavi */
.osa-feature-card h3, .osa-feature-card h4,
.osa-product-card h3, .osa-product-info h3,
.osa-service-item h3, .osa-service-item h4,
.osa-faq-question h3,
.osa-contact-item h3,
.osa-section-title,
.bsa-feature-card h3, .bsa-feature-card h4,
.bsa-product-card h3, .bsa-product-card h4,
.bsa-faq-question, .bsa-faq-q,
.bsa-snippet-box h3, .bsa-snippet-box h4,
.bsa-card h3, .bsa-card h4,
.bsa-section h2, .bsa-section h3,
.bsa-text-center,
.brand-item strong,
.depth-section h2, .depth-section h3,
.analysis-item h4,
.iletisim-kart h3,
.seo-hero-header h2 {
    color: #0d6e8e !important;
}

/* Stat sayıları, fiyat ve vurgular */
.osa-stat-number, .osa-floating-badge,
.bsa-price, .bsa-product-badge,
.osa-badge.osa-badge-1, .osa-badge.osa-badge-2, .osa-badge.osa-badge-3, .osa-badge.osa-badge-4 {
    color: #0d6e8e !important;
}

/* Mahalle tag bulutu — okunabilir */
.osa-neighborhood-tag, .bsa-tag {
    color: #1a2a3a !important;
    background: #f7fafc !important;
    border: 1px solid #e2e8f0 !important;
}

/* Koyu arkaplanlı hero/CTA bölümleri → beyaz metin (kalsın) */
.osa-hero, .osa-hero *,
.bsa-hero, .bsa-hero *,
.hizmet-pro-hero, .hizmet-pro-hero *,
.osa-why-us-item, .osa-why-us-item *,
.urgent-cta, .urgent-cta *,
.fixed-cta, .fixed-cta *,
.seo-hero-header, .seo-hero-header *,
.bsa-mobile-sticky, .bsa-mobile-sticky *,
.bsa-disclaimer, .bsa-disclaimer p {
    color: #ffffff !important;
}

/* Hero içindeki badge ve linkler */
.osa-hero .osa-badge,
.bsa-hero .bsa-btn {
    color: #ffffff !important;
}

/* Disclaimer / yasal not — gri kalsın ama yeterli kontrast */
.legal-note, .legal-note *,
.bsa-alert {
    color: #4a5568 !important;
}
.bsa-alert {
    background: #fff8e1 !important;
    border: 1px solid #fbe09a !important;
}

/* WP gradient kartlar — yazı görünmüyorsa arka plan açık tonda kalsın */
.osa-feature-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f4fa 100%) !important;
}
.osa-service-item {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%) !important;
    border-left: 4px solid #1e88a8 !important;
}
.bsa-feature-card {
    background: #eef6fa !important;
    border-left: 4px solid #1e88a8 !important;
}
.bsa-snippet-box {
    background: #eef6fa !important;
}

/* SSS açılır okun rengi */
.osa-faq-toggle {
    color: #1e88a8 !important;
}
