/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;500&display=swap');

/* Variables */
:root {
    --primary-color: #D9232D; /* Red from logo */
    --secondary-color: #333333;
    --background-color: #FFFFFF;
    --light-gray-bg: #f8f9fa;
    --text-color: #555555;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 150px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--secondary-color);
    font-family: var(--heading-font);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-background.png');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    padding-top: 80px; /* Offset for navbar */
}

#hero h1 {
    color: white;
    font-size: 3.5rem;
}

#hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto 30px;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--heading-font);
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #b01c25;
}

/* Sections */
section {
    padding: 80px 0;
}

#about {
    background-color: var(--light-gray-bg);
}

#about .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

#about .about-content {
    flex: 1;
}

#about .about-image {
    flex: 1;
    text-align: center;
}

#about .about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#services {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.service-card {
    background: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card i {
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

/* Products Section */
#products {
    background-color: var(--light-gray-bg);
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.product-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-card h3 {
    margin-bottom: 10px;
}

.product-card .tagline {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 15px;
    margin-top: 0;
    flex-grow: 1;
}

.product-card p {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
    flex-grow: 2;
}

.product-card .cta-button {
    margin-top: 20px;
    display: inline-block;
}

/* Contact Section */
#contact {
    background-color: var(--background-color);
}

#contact h2 {
    text-align: center;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-info {
    flex: 1;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info ul li i {
    color: var(--primary-color);
    margin-right: 15px;
}

.social-links {
    margin-top: 25px;
}

.social-links a {
    color: var(--secondary-color);
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 1.5;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: var(--body-font);
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
}


/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #f1f1f1;
    padding: 20px 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}


/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    #hero h1 { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--background-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 0;
    }

    .hamburger {
        display: block;
    }
    
    #about .container, .contact-wrapper {
        flex-direction: column;
    }

    .contact-form button {
        align-self: stretch;
    }

    footer .container {
        flex-direction: column;
        gap: 10px;
    }
}