/* 
    Oto Experim İzmir - Main Stylesheet
    Colors: Orange (#f58220), Dark Grey (#1f1f1f), White (#ffffff)
    Font: Poppins
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #f58220;
    --primary-dark: #d96e16;
    --secondary-color: #1f1f1f;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Header Aggressive Fix */
header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap !important;
    /* Force single line */
}

/* Logo Sizing Fix */
.logo {
    flex: 0 0 auto;
    /* Don't grow or shrink */
    height: 50px;
    /* Force container height */
    display: flex;
    align-items: center;
    margin-right: 30px;
    overflow: hidden;
    /* Cut off anything huge */
}

.logo img {
    height: 100% !important;
    /* Fill container */
    width: auto !important;
    max-height: 50px !important;
    object-fit: contain;
    display: block;
}

/* Nav Fix */
.nav-links {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    /* No wrapping */
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    padding: 10px 0;
    line-height: 1;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-cta {
    flex: 0 0 auto;
}

.btn-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    /* Slightly more square as per image */
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(245, 130, 32, 0.3);
}

.btn-header:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://www.otoexperim.com/Upload/bayi_n.jpg') no-repeat center bottom/cover;
    /* Updated: Aligned to bottom to show building, lighter overlay for clarity */
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: left;
}

/* If no image yet, use a fallback color */
.hero.no-bg {
    background: var(--secondary-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Services Preview */
.services-section {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(245, 130, 32, 0.2);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--white);
    padding-top: 80px;
    border-top: 1px solid #eee;
}

.testimonials-section .section-title {
    color: var(--secondary-color);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
    text-align: left;
    transition: transform 0.3s;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 80px;
    color: rgba(245, 130, 32, 0.1);
    font-family: serif;
    line-height: 1;
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.client-name {
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-name::before {
    content: '';
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #ddd;
    background-image: url('https://ui-avatars.com/api/?name=User&background=f58220&color=fff');
    background-size: cover;
    border-radius: 50%;
}

/* Footer */
footer {
    background-color: #111;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
/* Responsive */
@media (max-width: 900px) {
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links a {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        display: block;
    }

    .mobile-menu-btn {
        display: block;
        margin-right: 15px;
        /* Add space between menu and button */
        margin-left: auto;
        /* Push to right, near button */
        padding: 10px;
    }

    /* Make logo smaller on mobile */
    .logo img {
        height: 40px !important;
        max-height: 40px !important;
    }

    .logo {
        margin-right: 10px;
        height: 40px;
    }

    /* Adjust Button for Mobile */
    .btn-header {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    header {
        padding: 0 10px;
        /* Reduce side padding of header */
        height: 80px;
    }

    .navbar {
        justify-content: space-between;
        /* Ensure distribution */
    }

    /* Order: Logo - Space - Menu - Button */
    /* We want Logo left, and Menu + Button right. */
    /* Since Nav is hidden, we have Logo, MenuBtn, CTA */

    .header-cta {
        order: 3;
    }

    .mobile-menu-btn {
        order: 2;
        font-size: 1.6rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .btn {
        margin-bottom: 15px;
        /* Add space between stacked buttons */
        display: block;
        /* Make full width or block to stack nicely */
        width: 100%;
        /* Optional: make buttons full width on mobile for better touch */
        max-width: 300px;
        /* Prevent them from being too wide */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 400px) {

    /* Tight screens: Hide phone number text, only icon? Or make very small */
    .btn-header {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .logo img {
        height: 35px !important;
        max-height: 35px !important;
    }
}