/* 
   OlaAuto.com - Main Stylesheet
   Brazilian Automotive Website with SEO Optimizations
*/

:root {
    /* Color scheme - automotive themed */
    --primary-color: #e9512c;       /* Vibrant orange-red */
    --secondary-color: #2c3e50;     /* Dark blue-gray */
    --accent-color: #f39c12;        /* Amber */
    --light-color: #ecf0f1;         /* Off white */
    --dark-color: #1a1a1a;          /* Near black */
    --text-color: #333333;          /* Dark gray for text */
    --background-color: #ffffff;    /* White background */
    --grid-gap: 2rem;               /* Standard gap for grids */
    --border-radius: 8px;           /* Standard border radius */
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Standard shadow */
    --transition: all 0.3s ease;    /* Standard transition */
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header styles */
.site-header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo svg {
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 1.5rem;
    display: inline-block;
}

.nav-menu a {
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(120deg, var(--secondary-color) 0%, #34495e 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 0 0 50%;
    max-width: 50%;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    justify-content: flex-end;
}

.car-illustration {
    color: white;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap);
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Vehicle Showcase */
.vehicles-section {
    padding: 5rem 0;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--grid-gap);
}

.vehicle-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.vehicle-image {
    background-color: var(--secondary-color);
    padding: 2rem 1rem;
    text-align: center;
}

.vehicle-image svg {
    color: var(--light-color);
}

.vehicle-card h3,
.vehicle-card p {
    padding: 0 1.5rem;
}

.vehicle-card h3 {
    margin-top: 1.5rem;
}

.vehicle-specs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.vehicle-specs span {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Entertainment Section */
.entertainment-section {
    padding: 5rem 0;
    background-color: var(--secondary-color);
    color: white;
}

.entertainment-section h2,
.entertainment-section h3 {
    color: white;
}

.entertainment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap);
    margin-top: 2rem;
}

.entertainment-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.entertainment-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.entertainment-icon {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.entertainment-card a {
    color: var(--accent-color);
    font-weight: 600;
}

.entertainment-card a:hover {
    color: var(--light-color);
}

/* News Section */
.news-section {
    padding: 5rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap);
}

.news-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
}

.footer-logo p {
    margin-top: 1rem;
    opacity: 0.7;
}

.footer-links {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-nav,
.footer-partners,
.footer-contact {
    flex: 0 0 30%;
    max-width: 30%;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--light-color);
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.7;
    margin-bottom: 0;
}

.social-links {
    display: flex;
}

.social-links a {
    margin-left: 1rem;
    color: var(--light-color);
    opacity: 0.7;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content,
    .hero-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-image {
        justify-content: center;
    }
    
    .footer-nav,
    .footer-partners,
    .footer-contact {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        background-color: var(--light-color);
        width: 100%;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0 0 1rem 0;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .social-links {
        margin-top: 1rem;
    }
    
    .social-links a:first-child {
        margin-left: 0;
    }
    
    .footer-nav,
    .footer-partners,
    .footer-contact {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    :root {
        --grid-gap: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .features-grid,
    .vehicles-grid,
    .entertainment-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card,
    .vehicle-card,
    .entertainment-card,
    .news-card {
        margin-bottom: 1.5rem;
    }
}
