/*
 * Theme Name: Europatrans
 * Theme URI: https://www.europatrans.com.tr
 * Description: Profesyonel Ev Taşıma ve Nakliyat Hizmetleri - Kurumsal WordPress Teması
 * Version: 1.0.0
 * Author: Europatrans
 * Author URI: https://www.europatrans.com.tr
 * Text Domain: europatrans
 * Tags: nakliye, taşımacılık, kurumsal, responsive
 */

/* =============================================
   CSS DEĞİŞKENLERİ
============================================= */
:root {
    --color-primary: #1e40af;
    --color-primary-dark: #1e3a8a;
    --color-primary-light: #3b82f6;
    --color-secondary: #f59e0b;
    --color-secondary-dark: #d97706;
    --color-secondary-light: #fbbf24;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-400: #9ca3af;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-2xl: 20px;
}

/* =============================================
   TEMEL / RESET
============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobilde dock barı için alt boşluk */
@media (max-width: 1023px) {
    body {
        padding-bottom: 72px;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* =============================================
   ERİŞİLEBİLİRLİK - İÇERİĞE ATLA LİNKİ
============================================= */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    transition: top var(--transition-fast);
    border-radius: 0 0 var(--border-radius) 0;
}

.skip-link:focus {
    top: 0;
}

/* =============================================
   ODAK STİLLERİ (ERİŞİLEBİLİRLİK)
============================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* =============================================
   REMIXICON DÜZELTMESİ
============================================= */
:where([class^="ri-"])::before {
    content: "\f3c2";
}

/* =============================================
   CAM (GLASS) EFEKTLER
============================================= */
.video-overlay {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.7), rgba(0, 0, 0, 0.4));
}

.glass-effect {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* =============================================
   MOBİL DOCK BAR
============================================= */
.mobile-dock {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
    min-height: 58px;
    padding: 0 0 calc(env(safe-area-inset-bottom) + 2px) 0;
    overflow: hidden;
}

.mobile-dock-inner {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 4px;
    padding: 2px 10px 0;
}

.dock-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #64748b;
}

.dock-icon.is-active {
    background: transparent;
    border: none;
    color: var(--color-primary);
}

.dock-icon.is-muted {
    color: #64748b;
}

.dock-icon.is-blue {
    background: transparent;
    border: none;
    color: var(--color-primary);
}

.dock-icon.is-green {
    background: transparent;
    border: none;
    color: #16a34a;
}

.dock-icon.is-orange {
    background: transparent;
    border: none;
    color: var(--color-secondary);
}

.dock-icon.is-gray {
    background: transparent;
    border: none;
    color: #4b5563;
}

.dock-button {
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    min-width: 0;
    padding-top: 0;
    padding-bottom: 0;
    gap: 1px;
}

.dock-button:active {
    transform: scale(0.92);
}

.dock-button span {
    font-size: 11px;
    line-height: 1.05;
}

/* =============================================
   ANA SAYFA KURUMSAL BİLGİ TABLOSU
============================================= */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.info-table tbody tr + tr td {
    border-top: 1px solid #edf2f7;
}

.info-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.info-table td:first-child {
    width: 48%;
    font-weight: 600;
    color: #334155;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.info-table td:last-child {
    font-weight: 700;
    color: var(--color-primary);
}

.info-table a {
    color: inherit;
}

.info-table a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table td:first-child {
        padding-bottom: 6px;
        border-bottom: none;
    }

    .info-table td:last-child {
        padding-top: 0;
        padding-bottom: 16px;
    }

    .info-table tbody tr + tr td:first-child {
        border-top: 1px solid #edf2f7;
    }
}

/* =============================================
   İLÇE PİLİ
============================================= */
.district-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1e3a8a;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.district-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 64, 175, 0.18);
    background: #f8fbff;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

/* =============================================
   MÜŞTERİ YORUM KARTI
============================================= */
.testimonial-link {
    display: block;
    border-radius: 20px;
    color: inherit;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.testimonial-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.testimonial-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

@media (max-width: 1023px) {
    .mobile-dock {
        border-radius: 16px 16px 0 0;
    }
}

/* =============================================
   HEADER
============================================= */
#header {
    transition: box-shadow var(--transition-normal), background var(--transition-normal);
    border-radius: 0 0 18px 18px;
    overflow: visible; /* Dropdown menünün görünmesi için visible yapıldı */
}

#header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1023px) {
    #header {
        border-radius: 0 0 14px 14px;
    }
}

/* Nav ayraçları */
.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.12);
}

/* =============================================
   HERO BÖLÜMÜ
============================================= */
.hero-section {
    position: relative;
    height: 100svh; /* Small viewport height desteği */
    min-height: 560px;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    margin-bottom: 18px;
}

.hero-section video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-section video,
.hero-fallback-bg,
.video-overlay {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

/* Video yüklenemezse yedek arka plan */
.hero-fallback-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #1d4ed8 100%);
}

/* =============================================
   SERVİS KARTLARI
============================================= */
.service-card {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.service-icon-wrapper {
    transition: transform var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(-3deg);
}

/* Servis kart özellikleri liste animasyonu */
.service-feature-item {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-feature-item {
    transform: translateX(6px);
}

/* =============================================
   SÜREÇ ADIM KARTLARI
============================================= */
.process-step {
    position: relative;
}

/* Masaüstünde adımlar arası bağlantı çizgisi */
@media (min-width: 1024px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 32px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary), transparent);
        pointer-events: none;
    }
}

.process-number {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.process-step:hover .process-number {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.4);
}

/* =============================================
   REFERANS / YORUM KARTLARI
============================================= */
.testimonial-card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* =============================================
   İLETİŞİM FORMU
============================================= */
.contact-form input,
.contact-form textarea,
.contact-form select {
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
    outline: none;
}

/* Form submit butonu yükleme durumu */
.contact-form button[type="submit"].loading {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

.contact-form button[type="submit"].loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   FOOTER
============================================= */
footer a {
    transition: color var(--transition-fast);
}

footer .social-link {
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

footer .social-link:hover {
    transform: translateY(-2px);
}

/* =============================================
   HİZMET DETAY SAYFASI (template-hizmet-detay.php)
============================================= */

/* Hero gradient overlay */
.service-hero-overlay {
    background: linear-gradient(135deg, rgba(30,64,175,0.88) 0%, rgba(30,64,175,0.60) 50%, rgba(0,0,0,0.3) 100%);
}

/* Breadcrumb ayraç (özel fallback liste) */
.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumb-list .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin: 0 8px;
    color: rgba(255,255,255,0.5);
}

/* Rank Math breadcrumb stillendirme */
.rm-breadcrumb .rank-math-breadcrumb {
    color: rgba(255,255,255,0.8);
    font-size: .875rem;
}
.rm-breadcrumb .rank-math-breadcrumb a {
    color: rgba(255,255,255,0.8);
}
.rm-breadcrumb .rank-math-breadcrumb a:hover {
    color: #fff;
}
.rm-breadcrumb .rank-math-breadcrumb .separator {
    margin: 0 8px;
    color: rgba(255,255,255,0.5);
}

/* Yapışkan teklif sidebar */
.sticky-sidebar {
    position: sticky;
    top: 96px;
}

/* İçerik başlıklarına renk çizgisi */
.section-rule {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    border-radius: 9999px;
    margin-bottom: 20px;
}

/* Özellik listesi ikon renkleri */
.feature-icon-blue  { background: rgba(30,64,175,.1);  color: #1e40af; }
.feature-icon-green { background: rgba(16,185,129,.1); color: #059669; }

/* Adım numarası */
.step-dot {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30,64,175,.3);
}

/* İstatistik kutusu */
.stat-card {
    border-left: 4px solid #1e40af;
    transition: transform 0.2s ease;
}
.stat-card:hover { transform: translateY(-2px); }

/* Fiyat kutusu sidebar */
.price-badge {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 16px 16px 0 0;
}

/* SSS akordeon */
.faq-item details summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faq-item details summary::-webkit-details-marker { display: none; }

.faq-item details .faq-icon-close { display: none; }
.faq-item details[open] .faq-icon-open  { display: none; }
.faq-item details[open] .faq-icon-close { display: block; }

.faq-item details .faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.2s ease;
}
.faq-item details[open] .faq-answer {
    max-height: 500px;
}

/* Diğer hizmetler kart hover */
.other-service-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.other-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ==============================================
   Hizmet detay sayfa içerik alanı (the_content())
   Tüm WP editör HTML elemanlarını kapsar
   ============================================== */
.service-page-content { color: #374151; font-size: 1rem; line-height: 1.75; }

/* Başlıklar */
.service-page-content h1,
.service-page-content h2,
.service-page-content h3,
.service-page-content h4,
.service-page-content h5,
.service-page-content h6 {
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.service-page-content h1 { font-size: 1.875rem; }
.service-page-content h2 { font-size: 1.5rem; border-bottom: 2px solid #e5e7eb; padding-bottom: .4rem; }
.service-page-content h3 { font-size: 1.25rem; }
.service-page-content h4 { font-size: 1.1rem; color: #1e40af; }
.service-page-content h2:first-child,
.service-page-content h3:first-child { margin-top: 0; }

/* Paragraf */
.service-page-content p { margin-bottom: 1.1rem; }

/* Linkler */
.service-page-content a { color: #1e40af; text-decoration: underline; text-decoration-color: #bfdbfe; text-underline-offset: 3px; }
.service-page-content a:hover { color: #1d4ed8; text-decoration-color: #1d4ed8; }

/* Kalın / italic */
.service-page-content strong { color: #1f2937; font-weight: 700; }
.service-page-content em { font-style: italic; }

/* Listeler */
.service-page-content ul { list-style: disc; padding-left: 1.6rem; margin-bottom: 1.1rem; }
.service-page-content ol { list-style: decimal; padding-left: 1.6rem; margin-bottom: 1.1rem; }
.service-page-content li { margin-bottom: .45rem; }
.service-page-content li::marker { color: #1e40af; }
.service-page-content ul ul,
.service-page-content ol ol { margin-top: .3rem; margin-bottom: .3rem; }

/* Tablolar */
.service-page-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .94rem; }
.service-page-content thead { background: #1e40af; color: #fff; }
.service-page-content th { padding: .65rem 1rem; text-align: left; font-weight: 600; font-size: .875rem; }
.service-page-content td { padding: .6rem 1rem; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.service-page-content tbody tr:nth-child(even) { background: #f8fafc; }
.service-page-content tbody tr:hover { background: #eff6ff; }

/* İçindekiler nav */
.service-page-content nav[aria-label] { background: #f0f7ff; border-left: 4px solid #1e40af; border-radius: 0 .5rem .5rem 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.service-page-content nav[aria-label] p { margin-bottom: .4rem; font-weight: 700; color: #1e40af; font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; }
.service-page-content nav[aria-label] ul { margin-bottom: 0; padding-left: 1.1rem; }
.service-page-content nav[aria-label] li { margin-bottom: .2rem; }
.service-page-content nav[aria-label] a { text-decoration: none; color: #1e40af; font-size: .9rem; }
.service-page-content nav[aria-label] a:hover { text-decoration: underline; }

/* Section blokları arası boşluk */
.service-page-content section { margin-top: 2rem; }
.service-page-content section:first-child { margin-top: 0; }

/* details / summary (inline SSS) */
.service-page-content details {
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    margin-bottom: .6rem;
    overflow: hidden;
}
.service-page-content summary {
    padding: .85rem 1.1rem;
    font-weight: 600;
    font-size: .95rem;
    color: #111827;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    transition: background .15s;
}
.service-page-content summary::-webkit-details-marker { display: none; }
.service-page-content summary::after {
    content: '+';
    font-size: 1.25rem;
    line-height: 1;
    color: #1e40af;
    transition: transform .2s;
    flex-shrink: 0;
}
.service-page-content details[open] summary { background: #eff6ff; }
.service-page-content details[open] summary::after { content: '−'; }
.service-page-content details > p,
.service-page-content details > div { padding: .85rem 1.1rem; color: #4b5563; font-size: .94rem; line-height: 1.7; margin: 0; }

/* Alıntı */
.service-page-content blockquote { border-left: 4px solid #1e40af; padding: .75rem 1.25rem; background: #f0f7ff; border-radius: 0 .5rem .5rem 0; margin: 1.25rem 0; font-style: italic; color: #374151; }

/* Yatay çizgi */
.service-page-content hr { border: none; border-top: 1px solid #e5e7eb; margin: 2rem 0; }

/* Görsel */
.service-page-content img { max-width: 100%; height: auto; border-radius: .5rem; margin: 1rem 0; }

/* Inline JSON-LD script blokları görünmez kalır */
.service-page-content script { display: none; }

/* =============================================
   SAYAÇ ANİMASYONU (İstatistikler)
============================================= */
.stat-number {
    display: inline-block;
    min-width: 2ch;
}

/* =============================================
   SCROLL ANİMASYONLARI
============================================= */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-up.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .fade-up:nth-child(2) { transition-delay: 0.1s; }
    .fade-up:nth-child(3) { transition-delay: 0.2s; }
    .fade-up:nth-child(4) { transition-delay: 0.3s; }
}

/* =============================================
   YÜKLEME GÖSTERGESİ (Page loader)
============================================= */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* =============================================
   GECE MODU DESTEĞİ (İleride kullanım için)
============================================= */
@media (prefers-color-scheme: dark) {
    /* WordPress tema admin'den kontrol edilecek */
}

/* =============================================
   YAZICI STILLER
============================================= */
@media print {
    .mobile-dock,
    #header,
    video,
    .video-overlay,
    .skip-link {
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }

    section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* =============================================
   RESPONSIVE DÜZENLEMELER
============================================= */

/* Küçük mobil ekranlar */
@media (max-width: 374px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
}

/* Orta ekranlar */
@media (min-width: 768px) and (max-width: 1023px) {
    .service-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* =============================================
   HAKKIMIZDA ŞABLON STİLLERİ
============================================= */
/* Timeline ve istatistik kartları Tailwind utility class'larıyla render ediliyor. */
