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

:root {
    --primary-color: #c41e3a;
    --secondary-color: #1a1a1a;
    --accent-color: #ff4444;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

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

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

/* Navigation */
.navbar {
    background: var(--secondary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
}

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2c2c2c 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.bobcat.com/content/dam/bobcat/common/machines/compact-track-loaders/compact-track-loaders-hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(196,30,58,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: var(--text-light);
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196,30,58,0.3);
}

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

.btn-secondary:hover {
    background: #a01729;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196,30,58,0.3);
}

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

.btn-light:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

/* Featured Products */
.featured-products {
    background: var(--light-gray);
}

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

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.product-description {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-specs {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 5px;
}

.spec {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.spec-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.spec-value {
    color: var(--primary-color);
    font-weight: 600;
}

/* Why Choose Us */
.why-choose {
    background: white;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--gray);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a01729 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

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

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-color);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.5);
        padding: 2rem 0;
    }

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

    .burger {
        display: block;
    }

    .hero {
        padding: 2rem 0 !important;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .hero-content > div:first-child > div:first-child {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
        display: block !important;
        margin: 0 auto 1.5rem !important;
        width: fit-content;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .section-title {
        font-size: 2rem;
    }
}

/* Catalog Page Specific */
.catalog-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2c2c2c 100%);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.catalog-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.catalog-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 2rem;
}

.catalog-item-image {
    height: 400px;
}

.catalog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.catalog-item-details h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.specs-list {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.specs-list h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-row:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .catalog-item {
        grid-template-columns: 1fr;
    }
    
    .catalog-item-image {
        height: 250px;
    }
}

/* Contact Page */
.contact-section {
    padding: 3rem 0;
}

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

.contact-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2c2c2c 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.about-text h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Legal Pages */
.legal-page {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.legal-page h1 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.legal-page h2 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-page ul {
    margin-left: 2rem;
    color: var(--gray);
    line-height: 1.8;
}

.last-updated {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 2rem;
}
