/*
  Emre Otomotiv - Castrol Yetkili Bayi
  Stil Dosyası
*/

:root {
    /* Renk Paleti (Color Palette) */
    --clr-carbon-grey: #1E2328;
    --clr-matte-black: #111417;
    --clr-castrol-green: #00994C;
    --clr-castrol-green-hover: #007A3D;
    --clr-castrol-red: #D22730;
    --clr-white: #FFFFFF;
    --clr-off-white: #F8F9FA;
    --clr-text-main: #333333;
    --clr-text-muted: #6B7280;

    /* Tipografi (Typography) */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Boyutlandırma (Spacing & Sizing) */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;

    /* Gölgeler (Shadows) */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Geçişler (Transitions) */
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-off-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--clr-carbon-grey);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout & Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
    color: var(--clr-castrol-green);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--clr-castrol-green);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.btn-primary {
    background-color: var(--clr-castrol-green);
    color: var(--clr-white);
    box-shadow: 0 4px 14px 0 rgba(0, 153, 76, 0.39);
}

.btn-primary:hover {
    background-color: var(--clr-castrol-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 153, 76, 0.23);
}

.btn-secondary {
    background-color: var(--clr-matte-black);
    color: var(--clr-white);
}

.btn-secondary:hover {
    background-color: var(--clr-carbon-grey);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: padding var(--transition-base);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--clr-carbon-grey);
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--clr-castrol-green);
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--clr-carbon-grey);
    position: relative;
}

.nav-link:hover {
    color: var(--clr-castrol-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--clr-castrol-green);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-carbon-grey);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 153, 76, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(0, 153, 76, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 153, 76, 0);
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--clr-white);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: left var(--transition-base);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .nav-list.show-menu {
        left: 0;
    }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
        /* Ensure on top */
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
    /* Offset for fixed navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 153, 76, 0.85) 0%, rgba(30, 35, 40, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    color: var(--clr-white);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease backwards;
}

.hero-subtitle {
    color: var(--clr-off-white);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--clr-white);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--clr-white);
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge i {
    color: var(--clr-castrol-green);
    font-size: 1.2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-trust-badges {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--clr-white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all var(--transition-base);
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0) 0%, rgba(248, 249, 250, 0.5) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--clr-castrol-green);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card>* {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--clr-off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--clr-castrol-green);
    font-size: 2rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background-color: var(--clr-castrol-green);
    color: var(--clr-white);
    transform: scale(1.1);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--clr-carbon-grey);
}

.service-desc {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Why Us Section */
.why-us {
    background-color: var(--clr-white);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.why-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.why-us-image:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 4px solid var(--clr-castrol-green);
}

.image-badge .highlight {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-castrol-green);
    line-height: 1;
}

.image-badge .text {
    font-weight: 600;
    color: var(--clr-carbon-grey);
    margin-top: 5px;
}

.why-us-text {
    padding-right: 20px;
}

.text-left {
    text-align: left;
}

.text-left::after {
    left: 0;
    transform: none;
}

.why-us-desc {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.features-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.features-list i {
    color: var(--clr-castrol-green);
    font-size: 1.5rem;
    margin-top: 2px;
}

.features-list strong {
    display: block;
    color: var(--clr-carbon-grey);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.features-list p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .why-us-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-us-image {
        order: 2;
    }

    .why-us-text {
        order: 1;
        padding-right: 0;
    }

    .section-title.text-left {
        text-align: center;
    }

    .section-title.text-left::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .why-us-desc {
        text-align: center;
    }
}

/* Testimonials Section */
.testimonials {
    background-color: var(--clr-off-white);
    overflow: hidden;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.testimonials-desc {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--clr-white);
    padding: 15px 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.rating-score {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-carbon-grey);
    line-height: 1;
}

.rating-stars {
    color: #FFB800;
    /* Gold for stars */
    font-size: 1.2rem;
    display: flex;
    gap: 2px;
}

.rating-count {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.testimonials-slider {
    position: relative;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding-bottom: 20px;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.review-card {
    min-width: 350px;
    background: var(--clr-white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    scroll-snap-align: start;
    flex: 0 0 auto;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--clr-off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-castrol-green);
    font-size: 1.5rem;
}

.reviewer-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.review-stars {
    color: #FFB800;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.review-date {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.review-text {
    color: var(--clr-text-main);
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

.slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--clr-white);
    color: var(--clr-carbon-grey);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--clr-castrol-green);
    color: var(--clr-white);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .review-card {
        min-width: 300px;
    }

    .rating-summary {
        width: 100%;
        justify-content: center;
    }
}

/* Location Section */
.location {
    background: var(--clr-white);
}

.location-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--clr-off-white);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-fast);
}

.contact-card:hover {
    transform: translateX(10px);
    background: var(--clr-white);
    box-shadow: var(--shadow-soft);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 153, 76, 0.1);
    color: var(--clr-castrol-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--clr-carbon-grey);
}

.contact-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hover-link {
    transition: color var(--transition-fast);
}

.hover-link:hover {
    color: var(--clr-castrol-green);
}

.route-btn {
    margin-top: 10px;
    width: 100%;
}

@media (max-width: 992px) {
    .location-content {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 400px;
    }
}

/* Footer */
.footer {
    background-color: var(--clr-castrol-green);
    color: var(--clr-white);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.9);
    margin: 20px 0;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--clr-white);
    color: var(--clr-castrol-green);
    transform: translateY(-3px);
}

.footer h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--clr-white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--clr-white);
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
    display: inline-block;
}

.footer ul a:hover {
    color: var(--clr-white);
    transform: translateX(5px);
}

.footer-bottom {
    background-color: var(--clr-castrol-green-hover);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Floating Action Button (FAB) */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: transform var(--transition-fast);
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    animation: none;
}

@media (max-width: 576px) {
    .fab-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}