/* Race Magic Pro - Minimalistic Retro Style */

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

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #000;
    background-color: #fefefe;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #000;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: #34495e;
}

a {
    color: #e67e22;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d35400;
}

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

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #e67e22;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 40px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    font-family: 'Arial', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #000;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #f8f9fa;
    color: #e67e22;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.btn-primary {
    background-color: #e67e22;
    color: white;
    border-color: #e67e22;
}

.btn-primary:hover {
    background-color: #d35400;
    border-color: #d35400;
    color: white;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    border-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    border-color: #7f8c8d;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #e67e22;
    border-color: #e67e22;
}

.btn-outline:hover {
    background-color: #e67e22;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    border-bottom: 1px solid #dee2e6;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    color: #000;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #5a6c7d;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.service-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #000;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 400px;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background-color: #fff;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #e67e22;
}

.testimonial-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.testimonial-card cite {
    font-weight: bold;
    color: #000;
}

/* Blog Sections */
.blog-preview {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.blog-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card.featured {
    border-left: 4px solid #e67e22;
}

.blog-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.blog-card h3 {
    margin-bottom: 0.5rem;
}

.blog-card h3 a {
    color: #000;
}

.blog-card h3 a:hover {
    color: #e67e22;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-category {
    background-color: #e67e22;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.blog-date,
.blog-author {
    color: #7f8c8d;
}

.read-more {
    color: #e67e22;
    font-weight: 500;
}

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

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, #000 0%, #34495e 100%);
    color: white;
}

.newsletter-content {
    text-align: center;
}

.newsletter h2 {
    color: white;
    border-bottom: 2px solid #e67e22;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.newsletter p {
    color: #bdc3c7;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-info img {
    width: 80px;
    height: 80px;
}

.contact-details h3 {
    margin-bottom: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.social-media h3 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    padding: 0.5rem;
    background-color: #e67e22;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #d35400;
}

/* Footer */
.footer {
    background-color: #000;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.footer-brand p {
    color: #bdc3c7;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: white;
}

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

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

.footer-links ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #e67e22;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Page Content */
.page-content {
    padding: 2rem 0;
    min-height: 60vh;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.page-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Article Content */
.article-content {
    padding: 2rem 0;
}

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

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-category {
    background-color: #e67e22;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.article-date,
.article-author {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.article-lead {
    font-size: 1.2rem;
    color: #5a6c7d;
    margin-bottom: 2rem;
    text-align: left;
}

.article-image {
    width: 200px;
    height: 200px;
    margin: 2rem auto;
    display: block;
}

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

.article-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #e67e22;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

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

.share-link {
    padding: 0.5rem 1rem;
    background-color: #e67e22;
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

.share-link:hover {
    background-color: #d35400;
    color: white;
}

.related-articles {
    margin-top: 3rem;
}

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

/* About Page Specific */
.company-story,
.mission-section,
.values-section,
.team-section {
    margin-bottom: 4rem;
}

.content-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.content-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.mission-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-3px);
}

.mission-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.values-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

.trust-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
}

.contact-cta {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Thank You Page */
.thank-you-section {
    padding: 2rem 0;
}

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

.thank-you-icon {
    margin-bottom: 2rem;
}

.thank-you-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
}

.thank-you-details {
    margin: 3rem 0;
    text-align: left;
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background-color: #e67e22;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.newsletter-benefits,
.social-follow {
    margin: 3rem 0;
}

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

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.benefit-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.social-follow .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    padding: 0.75rem 1.5rem;
    background-color: #e67e22;
    color: white;
    border-radius: 6px;
    font-weight: 500;
}

.social-link:hover {
    background-color: #d35400;
    color: white;
}

.cta-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-info {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.contact-info ul {
    list-style: none;
    margin: 1rem 0;
}

.contact-info li {
    margin-bottom: 0.5rem;
}

.small-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 1rem;
}

/* Newsletter CTA */
.newsletter-cta {
    background-color: #000;
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
    border-radius: 8px;
}

.newsletter-cta h2 {
    color: white;
    border-bottom: 2px solid #e67e22;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.newsletter-cta p {
    color: #bdc3c7;
    margin-bottom: 2rem;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    border-bottom: 3px solid #e67e22;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    margin-top: 2rem;
    color: #000;
}

.legal-content h3 {
    margin-top: 1.5rem;
    color: #e67e22;
}

.legal-content ul,
.legal-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    color: white;
    padding: 1rem;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-option {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.cookie-option p {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Grids */
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Content sections */
    .content-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mission-grid,
    .values-content,
    .trust-factors {
        grid-template-columns: 1fr;
    }

    /* Forms */
    .newsletter-form {
        width: 100%;
    }

    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Thank you page */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-follow .social-links {
        flex-wrap: wrap;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Article navigation */
    .article-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .services,
    .about,
    .testimonials,
    .blog-preview,
    .newsletter,
    .contact {
        padding: 2rem 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .testimonial-card,
    .blog-card {
        padding: 1.5rem;
    }

    .article-image {
        width: 150px;
        height: 150px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .nav-toggle {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card,
    .testimonial-card,
    .blog-card {
        border: 2px solid #000;
    }

    .btn-outline {
        border-width: 3px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
.nav-link:focus {
    outline: 2px solid #e67e22;
    outline-offset: 2px;
}

/* Ensure proper color contrast */
.bg-dark {
    background-color: #000 !important;
}

.text-light {
    color: #ffffff !important;
}

/* Additional utility classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
