/* Main Styles for MacDon Website */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header Styles */
header {
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #b01a2e;
    color: white;
}

.logo img {
    height: 50px;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px;
}

.main-nav a:hover, .main-nav a.active {
    text-decoration: underline;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-buttons button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.secondary-nav {
    display: flex;
    justify-content: flex-end;
    padding: 10px 5%;
    background-color: #000;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #b01a2e;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #8a1424;
}

.cta-button.secondary {
    background-color: #333;
}

.cta-button.secondary:hover {
    background-color: #555;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Product Categories */
.product-categories {
    padding: 50px 5%;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.category-item {
    flex: 1;
    min-width: 250px;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
}

.category-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.category-item h2 {
    margin-bottom: 10px;
    color: #b01a2e;
}

.category-item p {
    margin-bottom: 15px;
}

/* About Summary */
.about-summary {
    padding: 50px 5%;
    text-align: center;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: #b01a2e;
    margin: 0 auto 30px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Dealer Finder */
.contact-finder {
    padding: 50px 5%;
    background-color: #f0f0f0;
    background-image: url('../images/map_background.jpg');
    background-size: cover;
    background-position: center;
}

.map-background {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.search-container p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Request Demo */
.request-demo {
    position: relative;
    padding: 50px 5%;
    overflow: hidden;
}

.demo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.demo-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 5px;
}

.demo-content .divider {
    background-color: white;
}

/* Info Sections */
.info-sections {
    padding: 50px 5%;
}

.info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.info-item {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.info-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.info-content h2 {
    margin-bottom: 10px;
}

.info-content p {
    margin-bottom: 15px;
}

/* Product Showcase */
.product-showcase {
    padding: 50px 5%;
    background-color: #f9f9f9;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: white;
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
}

.product-item h3 {
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 50px 5% 30px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    width: 100%;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.footer-contact {
    margin: 15px 0;
    font-size: 1.1rem;
}

.footer-contact a {
    color: #fff;
    text-decoration: underline;
}

.footer-contact a:hover {
    color: #b01a2e;
}

.social-links {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: #444;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    transition: background-color 0.3s;
}

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

.partner-logo img {
    height: 40px;
}

/* About Page Specific Styles */
.about-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.about-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.about-content {
    padding: 50px 5%;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.about-text-container {
    max-width: 800px;
    margin: 0 auto 50px;
}

.about-paragraph {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    flex: 1;
    min-width: 300px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

.about-history, .about-values {
    max-width: 1000px;
    margin: 0 auto 50px;
}

.history-timeline {
    margin-top: 30px;
}

.timeline-item {
    padding: 20px;
    border-left: 4px solid #b01a2e;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.timeline-item h3 {
    color: #b01a2e;
    margin-bottom: 10px;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.value-item h3 {
    color: #b01a2e;
    margin-bottom: 10px;
}

/* Contact Page Specific Styles */
.contact-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.contact-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.contact-content {
    padding: 50px 5%;
}

.contact-text-container {
    max-width: 800px;
    margin: 0 auto 50px;
}

.contact-paragraph {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    color: #b01a2e;
    margin-bottom: 10px;
}

.contact-item a {
    color: #333;
    text-decoration: underline;
}

.contact-form {
    flex: 2;
    min-width: 400px;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

.contact-form h3 {
    margin-bottom: 20px;
    color: #b01a2e;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    resize: vertical;
}

.global-locations {
    max-width: 1000px;
    margin: 0 auto;
}

.locations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.location-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

.location-item h3 {
    color: #b01a2e;
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-buttons {
        margin-top: 10px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .search-container {
        flex-direction: column;
        align-items: center;
    }
    
    .search-input, .product-select {
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-text {
        left: 5%;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .contact-form {
        min-width: 100%;
    }
}
