/* Main Styles for OmertEffem Autoservis */

/* Global Styles */
:root {
    --primary-color: #3b5998;
    --secondary-color: #e9712b;
    --tertiary-color: #2c3e50;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-color: #212529;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

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

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

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--tertiary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--dark-gray);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #324c80;
    color: var(--white);
}

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

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

.btn-tertiary {
    background-color: var(--white);
    color: var(--tertiary-color);
    border: 1px solid var(--tertiary-color);
}

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 60px;
}

.main-menu {
    display: flex;
}

.main-menu li {
    margin-left: 20px;
}

.main-menu a {
    color: var(--tertiary-color);
    font-weight: 500;
    padding: 8px 12px;
    position: relative;
}

.main-menu a:hover, .main-menu a.active {
    color: var(--primary-color);
}

.main-menu a.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: var(--tertiary-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.hero-content {
    display: flex;
    align-items: center;
}

.hero-text {
    flex: 1;
    padding-right: 30px;
}

.hero-text h1 {
    margin-bottom: 20px;
    color: var(--tertiary-color);
}

.hero-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
}

/* Services Section */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 30px;
    text-align: center;
}

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

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    height: 60px;
    margin: 0 auto;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--tertiary-color);
}

.services-cta {
    text-align: center;
}

/* About Us Section */
.about-us {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
}

.about-image {
    flex: 1;
    padding-right: 30px;
}

.about-text {
    flex: 1;
}

.about-stats {
    display: flex;
    margin: 30px 0;
}

.stat {
    flex: 1;
    text-align: center;
    border-right: 1px solid var(--medium-gray);
    padding: 0 10px;
}

.stat:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Parts Section */
.parts {
    padding: 80px 0;
}

.parts-content {
    display: flex;
    align-items: center;
}

.parts-text {
    flex: 1;
    padding-right: 30px;
}

.parts-image {
    flex: 1;
}

.parts-list {
    margin-bottom: 30px;
}

.parts-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.parts-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}

.testimonial {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 0 15px;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--tertiary-color);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background-color: var(--secondary-color);
}

/* Blog Preview */
.blog-preview {
    padding: 80px 0;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: var(--tertiary-color);
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-date {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.read-more:hover {
    color: var(--secondary-color);
}

.blog-cta {
    text-align: center;
}

/* Contact Form */
.contact-form {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-content {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

/* Footer */
footer {
    background-color: var(--tertiary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.opening-hours li, .footer-links li {
    margin-bottom: 10px;
}

.opening-hours li span {
    font-weight: 500;
    margin-right: 5px;
}

.footer-links a {
    color: var(--white);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

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

.copyright {
    margin-bottom: 15px;
}

.legal-links {
    margin-bottom: 15px;
}

.legal-links a {
    color: var(--white);
    margin-right: 15px;
}

.legal-links a:hover, .legal-links a.active {
    color: var(--secondary-color);
}

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

.social-links a {
    color: var(--white);
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Page Title */
.page-title {
    background-color: var(--light-gray);
    padding: 40px 0;
}

.breadcrumb {
    display: flex;
    margin-top: 10px;
}

.breadcrumb li {
    margin-right: 5px;
}

.breadcrumb li:after {
    content: '/';
    margin-left: 5px;
    color: var(--dark-gray);
}

.breadcrumb li:last-child:after {
    display: none;
}

.breadcrumb li[aria-current="page"] {
    color: var(--dark-gray);
}

/* Legal Content */
.legal-content {
    padding: 60px 0;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
}

.legal-document h2, .legal-document h3, .legal-document h4 {
    margin-top: 30px;
}

.legal-document ul, .legal-document ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-document ul li, .legal-document ol li {
    margin-bottom: 5px;
}

.legal-date {
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 30px;
}

/* Blog Articles */
.blog-articles {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-article {
    padding: 60px 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-meta {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.article-header {
    margin-bottom: 30px;
}

.article-image img {
    width: 100%;
    border-radius: 10px;
}

.article-body h2, .article-body h3 {
    margin-top: 40px;
}

.article-body ul, .article-body ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-body ul li, .article-body ol li {
    margin-bottom: 5px;
}

.article-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.article-tags {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    background-color: var(--light-gray);
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.article-share {
    display: flex;
    align-items: center;
}

.article-share span {
    margin-right: 15px;
}

.article-share a {
    margin-right: 10px;
}

.article-cta {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
}

.related-articles {
    margin-top: 60px;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.related-article {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--tertiary-color);
    color: var(--white);
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cookie-option {
    margin: 20px 0;
}

/* Contact Info */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hours-list li {
    margin-bottom: 5px;
}

/* Map */
.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    background-color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.toggle-icon {
    font-size: 1.5rem;
}

.faq-answer {
    padding: 15px;
    background-color: var(--white);
    display: none;
}

.faq-answer.show {
    display: block;
}

/* Category Cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
}

.category-icon {
    margin-bottom: 20px;
}

.category-icon img {
    height: 60px;
    margin: 0 auto;
}

.category-card ul {
    text-align: left;
    margin-top: 20px;
    list-style: disc;
    padding-left: 20px;
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.brand-item {
    background-color: var(--white);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: var(--shadow);
    font-weight: 500;
}

/* Service Items */
.service-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-item {
    display: flex;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.service-icon {
    padding: 30px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-info {
    padding: 30px;
    flex: 1;
}

.service-info h3 {
    margin-bottom: 10px;
}

.service-info p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--primary-color);
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.process-step {
    flex: 1;
    min-width: 200px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

/* Price Table */
.price-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--medium-gray);
}

.price-table th, .price-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.price-table th {
    background-color: var(--light-gray);
    font-weight: 600;
}

.price-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.price-note {
    font-style: italic;
    color: var(--dark-gray);
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    height: 100%;
}

.advantage-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Order Steps */
.order-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.order-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.order-cta {
    text-align: center;
}

/* Thanks Section */
.thanks-section {
    padding: 80px 0;
}

.thanks-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.thanks-icon {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.thanks-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.thanks-info {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin-bottom: 30px;
}

.thanks-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content, .parts-content, .hero-content {
        flex-direction: column;
    }
    
    .hero-text, .about-text, .parts-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .service-item {
        flex-direction: column;
    }
    
    .service-icon {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-menu.show {
        display: flex;
    }
    
    .main-menu li {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .stat {
        border-right: none;
        border-bottom: 1px solid var(--medium-gray);
        padding: 15px 0;
    }
    
    .stat:last-child {
        border-bottom: none;
    }
}