/* 
   BRS Nakliyat - Reset & Variables 
   v1.0
*/

:root {
    /* Renk Paleti */
    --primary-color: #0F2A44;
    /* Lacivert - Güven */
    --accent-color: #F58220;
    /* Turuncu - Hareket */
    --bg-light: #F4F6F8;
    /* Açık Gri - Arka Plan */
    --text-dark: #333333;
    /* Koyu Gri - Metin */
    --text-light: #ffffff;
    /* Beyaz - Metin */
    --border-color: #e0e0e0;

    /* Fontlar */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Global Değerler */
    --container-width: 1200px;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* Temel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    /* Yatay kaydırmayı engelle */
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 24px;
    margin: 0;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-dark);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a.active {
    color: var(--accent-color);
}

.nav-links li a.active::after {
    width: 100%;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 130, 32, 0.3);
}

.btn-primary:hover {
    background-color: #e07010;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 130, 32, 0.4);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #0a1f33;
    transform: translateY(-2px);
}

.btn-text {
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 15px;
    text-align: center;
}

.btn-light {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #f0f0f0;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* Hero Section */
.hero {
    /* Placeholder fallback */
    background: #0F2A44;
    padding: 100px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Slaytların dışarı taşmasını önle */
}

/* Background Slider Styles */
.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* En altta */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 42, 68, 0.85), rgba(15, 42, 68, 0.75));
    /* Overlay */
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Slaytın üstünde */
}

.hero-content h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Hero Quote Form */
.hero-quote-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.hero-quote-form h3 {
    color: #fff;
    margin-bottom: 20px;
}

.quote-flex-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.quote-flex-form input,
.quote-flex-form select {
    padding: 12px 15px;
    border-radius: 4px;
    border: none;
    flex: 1;
    min-width: 200px;
}

/* Sections General */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-color);
}

.service-card .icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card .comment {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 15px;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer */
.main-footer {
    background-color: #0b1e31;
    color: #ccc;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3,
.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* --- Sub-Page Styles --- */

/* Page Header */
.page-header {
    background: linear-gradient(rgba(15, 42, 68, 0.9), rgba(15, 42, 68, 0.9)), url('../img/page_header_bg.png');
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Service Detail & Sidebar */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.featured-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-detail h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.process-list {
    margin: 20px 0;
}

.process-list li {
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--accent-color);
}

.alert-box {
    background-color: #e8f4fd;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.alert-box i {
    font-size: 24px;
    color: var(--primary-color);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.service-links li {
    border-bottom: 1px solid #f0f0f0;
}

.service-links li:last-child {
    border-bottom: none;
}

.service-links li a {
    display: block;
    padding: 12px 0;
    font-weight: 500;
    color: var(--text-dark);
}

.service-links li a:hover,
.service-links li a.active {
    color: var(--accent-color);
    padding-left: 5px;
}

.quote-widget {
    background-color: var(--primary-color);
    color: #fff;
}

.quote-widget h3 {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* About Page Features */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-box {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature-box h4 {
    margin-bottom: 10px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 20px;
    color: var(--accent-color);
    width: 30px;
    text-align: center;
    margin-top: 5px;
}

.social-media {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s;
}

.social-media a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.contact-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.map-container {
    margin-top: 50px;
    border-radius: 8px;
    overflow: hidden;
}

/* Mobile Menu Toggle (Default Hidden) */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Responsive Design Improvements */

/* Tablet & Smaller Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-width: 90%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 5px 0;
        width: 100%;
        /* Taşmayı önle */
    }

    /* 1. Hamburger Menü (Sol) */
    .menu-toggle {
        display: block;
        order: 1;
        font-size: 1.5rem;
    }

    /* 2. Logo (Orta) */
    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        z-index: 1001;
        /* Menünün üstünde veya hizasında */
    }

    .logo h2 {
        font-size: 1.2rem;
        /* Mobilde logo fontunu biraz küçült */
    }

    /* 3. Hemen Ara Butonu (Sağ) */
    .navbar .btn {
        order: 3;
        padding: 8px 10px;
        font-size: 0;
        /* Yazıyı gizle */
        width: auto;
        /* Genişliği içeriğe göre ayarla */
        border-radius: 4px;
        /* Yuvarlak veya hafif köşeli */
        background-color: var(--accent-color);
        /* Emin olalım */
    }

    .navbar .btn i {
        font-size: 1.2rem;
        /* İkonu görünür yap */
        margin: 0;
    }

    /* Menü açıldığında */

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        border-top: 1px solid #eee;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .quote-flex-form {
        flex-direction: column;
    }

    .quote-flex-form input,
    .quote-flex-form select,
    .quote-flex-form button {
        width: 100%;
        min-width: unset;
    }

    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 50px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* JS ve Observer ile kontrol ediliyor */
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* WhatsApp Button Animation */
.whatsapp-float {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Stats Section --- */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/hero_bg.png');
    /* hero_bg var olduğu için onu kullandım */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-item .counter {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1rem;
    color: #ddd;
}

/* --- FAQ Section --- */
.faq-section {
    background-color: #f9f9f9;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    transition: background 0.3s;
}

.faq-question:hover {
    background-color: #f1f1f1;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    line-height: 1.6;
    color: #555;
}

.faq-answer p {
    padding: 20px 0;
}

/* Footer SEO Links */
.footer-seo-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-seo-links h5 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-seo-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.footer-seo-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-seo-links a:hover {
    color: var(--accent-color);
}