/* === TÜM CSS KODLARI (Güncel ve Temizlenmiş) === */
:root {
    --primary-color: #d90429;
    --primary-hover-color: #b2001f;
    --secondary-color: #f0f2f5; 
    --dark-color: #2b2d42;
    --light-color: #ffffff;
    --text-color: #495057;
    --border-color: #e9ecef;
    --whatsapp-color: #25D366;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.7;
    color: var(--text-color);
    background-image: url('arkaplan.jpg');
    background-size: cover;
    background-attachment: scroll; /* DÜZELTME: Scroll yaptık (sayfayla beraber kaysın) */
    background-position: center center;
    overflow-x: hidden; /* Sağa sola kaymayı engeller */
}

body.menu-is-open { overflow: hidden; }

.container { max-width: 1200px; margin: auto; padding: 0 20px; }
img { max-width: 100%; height: auto; }

/* === HEADER (Üst Menü) === */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img { height: 70px; width: auto; transition: height 0.3s ease; }

header nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
header nav ul li { margin-left: 30px; }

header nav a {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
    transition: color 0.3s ease, border-color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

header nav a:hover { color: var(--primary-color); border-bottom-color: var(--primary-color); }

.nav-button {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217,4,41,0.3);
}

.nav-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217,4,41,0.4);
}

/* === HERO (Giriş Alanı) === */
.hero {
    position: relative;
    color: var(--light-color);
    min-height: 90vh; /* Mobilde içerik taşarsa uzasın diye min-height yaptık */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 0; /* Mobilde üstten alttan boşluk */
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    z-index: -1;
}

.hero h1 { 
    font-size: 4.5rem; 
    font-weight: 900; 
    margin-bottom: 1rem; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6); 
    line-height: 1.1;
}
.hero p { 
    font-size: 1.6rem; 
    margin-bottom: 2.5rem; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
}

.cta-button {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: inline-block;
}

.cta-button:hover { transform: translateY(-3px) scale(1.05); }

/* === HERO NUMARA KUTUCUKLARI (DÜZELTİLDİ) === */
.hero-call-box {
    margin: 40px auto 0 auto;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 15px 25px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    background: rgba(0,0,0,0.5); 
    /* Esnek yapı: İçerik arttıkça kutu uzar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-numbers-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-call-box .phone-number { 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15); 
    color: var(--light-color); 
    font-size: 1.2rem;
    font-weight: 700; 
    text-decoration: none; 
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-call-box .phone-number:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.hero-call-box .phone-number i { 
    margin-right: 10px; 
    color: var(--primary-color); 
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.hero-call-box .phone-number:hover i { color: var(--light-color); }

/* === GENEL SEKSİYONLAR === */
.content-section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-header p { max-width: 700px; margin: 0 auto; font-size: 1.2rem; color: #6c757d; }

.bg-light {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
}

/* === AMBULANS KARTLARI === */
.ambulances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.ambulance-card {
    background: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.ambulance-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(43,45,66,0.12);
}

.card-image-container { position: relative; overflow: hidden; }

.ambulance-card .ambulance-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ambulance-card:hover .ambulance-img { transform: scale(1.08); }

.card-image-container .status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}

.ambulance-card .ambulance-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }

.ambulance-card h3 { color: var(--dark-color); font-size: 1.6rem; margin-top: 0; margin-bottom: 10px; }
.ambulance-card .price { font-size: 2rem; font-weight: 900; color: var(--primary-color); margin-bottom: 20px; }

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.details-list li { color: var(--text-color); font-size: 0.95rem; display: flex; align-items: center; }
.details-list i { margin-right: 8px; color: var(--primary-color); width: 20px; text-align: center; }

.card-button-container { margin-top: auto; padding-top: 25px; }

.btn-details {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-details:hover { background-color: var(--primary-hover-color); transform: scale(1.03); }

/* === ALT KISIM (Footer & İletişim) === */
footer {
    background: rgba(43, 45, 66, 0.95);
    backdrop-filter: blur(5px);
    color: #adb5bd;
    text-align: center;
    padding: 40px 20px;
}

.footer-signature { margin-top: 20px; font-size: 0.85rem; color: #888; }
.footer-signature a { color: #aaa; text-decoration: none; transition: color 0.3s ease; }
.footer-signature a:hover { color: var(--light-color); }

.floating-call-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.floating-call-button:hover { transform: scale(1.1); animation-play-state: paused; }

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217,4,41,0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(217,4,41,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217,4,41,0); }
}

.floating-whatsapp-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    text-decoration: none;
    animation: pulse-whatsapp 2.5s infinite;
}

.floating-whatsapp-button:hover { transform: scale(1.1); animation-play-state: paused; }

@keyframes pulse-whatsapp {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37,211,102,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.call-us-box {
    background: linear-gradient(45deg, rgba(217, 28, 41, 0.9), rgba(43, 45, 66, 0.9));
    backdrop-filter: blur(5px);
    color: var(--light-color);
    padding: 60px 20px;
    text-align: center;
}

.call-us-box h2 { font-size: 2.5rem; font-weight: 900; margin-top: 0; margin-bottom: 15px; }
.call-us-box p { font-size: 1.2rem; color: rgba(255,255,255,0.8); margin-bottom: 30px; }

.call-us-box .phone-number {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 15px 30px;
    font-size: 2rem;
    font-weight: 900;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    margin: 5px;
}

.call-us-box .phone-number:hover { transform: scale(1.05); }
.call-us-box .phone-number i { margin-right: 15px; }

.contact-info-box {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.contact-info-box h2 { font-size: 2.5rem; font-weight: 900; color: var(--dark-color); margin-bottom: 20px; }
.contact-info-box p { font-size: 1.2rem; color: var(--text-color); margin-bottom: 15px; }
.contact-info-box .icon { color: var(--primary-color); margin-right: 10px; font-size: 1.4rem; vertical-align: middle; }
.contact-info-box a { color: var(--primary-color); text-decoration: none; font-weight: 700; transition: color 0.3s ease; }
.contact-info-box a:hover { color: var(--primary-hover-color); }

.seo-article {
    text-align: left;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.seo-article h2, .seo-article h3 { color: var(--light-color); text-align: center; margin-bottom: 20px; font-size: 1.5rem; }
.seo-article p { font-size: 0.95rem; line-height: 1.8; color: #adb5bd; margin-bottom: 15px; }

/* SEO Accordion */
.seo-accordion-container { max-width: 900px; margin: 40px auto 0 auto; }
.seo-accordion-item { background-color: rgba(255,255,255,0.05); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.seo-accordion-header { background-color: rgba(255,255,255,0.1); padding: 15px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--light-color); }
.seo-accordion-header i { transition: transform 0.3s ease; }
.seo-accordion-header.active i { transform: rotate(180deg); }
.seo-accordion-content { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.seo-accordion-content ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.seo-accordion-content li { color: #adb5bd; font-size: 0.9rem; }

.hamburger-menu { display: none; font-size: 1.8rem; background: none; border: none; color: var(--dark-color); cursor: pointer; z-index: 1200; }
#menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
#menu-overlay.overlay-active { opacity: 1; visibility: visible; }

.animate-on-scroll { opacity: 0; transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-up { transform: translateY(40px); }
.animate-on-scroll.visible { opacity: 1; transform: none; }

/* =========================================================
   MEDYA SORGULARI (RESPONSIVE / MOBİL UYUMLULUK)
   ========================================================= */

@media (max-width: 992px) {
    .ambulances-grid { grid-template-columns: 1fr 1fr; }
    .hamburger-menu { display: block; }
    .nav-button { display: none; }
    
    header nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: var(--light-color);
        z-index: 1150;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding-top: 80px;
    }
    header nav.nav-active { right: 0; }
    header nav ul { flex-direction: column; align-items: stretch; }
    header nav ul li { margin: 0; }
    header nav a {
        display: block;
        padding: 15px 30px;
        font-size: 1.1rem;
        text-transform: none;
        letter-spacing: 0;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    /* Logo Ayarı */
    .logo img { height: 50px; }

    /* Başlık Boyutlarını Küçült (Sorunu Çözer) */
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; margin-bottom: 1.5rem; }

    .section-header h2 { font-size: 2rem; }
    .ambulances-grid { grid-template-columns: 1fr; }

    /* Hero Buton Kutusu (Siyah Kutu Sorunu Çözümü) */
    .hero-call-box {
        width: 90%;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }
    .phone-numbers-container {
        flex-direction: column; /* Mobilde alt alta */
        width: 100%;
    }
    .hero-call-box .phone-number {
        width: 100%; /* Butonlar kutuyu doldursun */
        box-sizing: border-box;
        font-size: 1.1rem;
        padding: 12px;
        margin-bottom: 10px;
    }
    .hero-call-box .phone-number:last-child { margin-bottom: 0; }

    /* Diğer Mobil Ayarlar */
    .call-us-box h2 { font-size: 1.8rem; }
    .call-us-box .phone-number { font-size: 1.4rem; padding: 12px 20px; width: 100%; box-sizing: border-box; }
    
    .seo-accordion-content ul { grid-template-columns: 1fr; } 
    /* DONANIM HIZLANDIRMA (Kasmayı Önler) */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform; /* SİHİRLİ KOD: Ekran kartını kullanır */
    backface-visibility: hidden; /* Titremeyi önler */
}

.fade-in-up { 
    transform: translateY(30px); /* 40px yerine 30px yaptık, daha az yol kat etsin */
}

.animate-on-scroll.visible { 
    opacity: 1; 
    transform: none; 
}
}