/* Base Styles and Variables */
:root {
    --primary-orange: #ff7b00;
    --secondary-orange: #ff9100;
    --light-orange: #ffb347;
    --primary-yellow: #ffc107;
    --light-yellow: #ffe082;
    --dark-text: #333333;
    --light-text: #ffffff;
    --light-bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation - Updated for better mobile support */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--light-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    margin: 5px 10px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-text);
}

/* Hero Section - Updated with theme colors */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 123, 0, 0.8), rgba(255, 193, 7, 0.8)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    padding: 120px 20px 40px;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-orange);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: 2px solid var(--light-text);
}

.cta-button:hover {
    background-color: var(--secondary-orange);
}

/* Single Column Section Styles */
.single-column {
    padding: 60px 5%;
    text-align: center;
}

.single-column h2 {
    color: var(--primary-orange);
    margin-bottom: 40px;  /* Increased gap between heading and content */
    font-size: 2rem;
}

/* Project Overview Section */
.project-overview {
    background-color: var(--light-bg);
    padding: 60px 20px;
}

.overview-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overview-text {
    margin-bottom: 30px;
    max-width: 900px;
    width: 100%;
}

.justified-text {
    text-align: justify;
    font-size: 1rem;
    line-height: 1.8;
}

/* 🔥 Apply Orange Gradient to ALL Headlines */
.overview-text h1,
.overview-text h2,
.overview-text h3, 
.overview-text h4 {
    text-align: center;
    font-weight: bold;
    background: linear-gradient(45deg, #ff7b00, #ffb400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff7b00; /* Fallback for browsers that don't support gradient text */
}

/* 🔹 Force Apply to the Specific Main Headline */
.project-overview h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff7b00, #ffb400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff7b00; /* Fallback */
}

/* Other Styling */
.overview-text ul {
    list-style-position: outside;
    margin-left: 20px;
    text-align: justify;
}

.overview-text li {
    margin-bottom: 15px;
    text-align: justify;
}

/* Specific Styling for Emoji Headers */
.overview-text h4 {
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
}


/* Manufacturers Section */
.manufacturers {
    background-color: var(--light-orange);
    padding: 60px 20px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo {
    background-color: var(--light-text);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-decoration: none;
    height: 100%;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.partner-logo img {
    max-width: 100%;
    max-height: 70px;
    margin-bottom: 15px;
    object-fit: contain;
}

.partner-name {
    color: var(--dark-text);
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #eaeaea;
    padding-top: 12px;
    width: 100%;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 576px) {
    .partner-grid {
        grid-template-columns: 1fr; /* 1 column on very small screens */
    }
}

/* Distributors Section */
.distributors {
    background-color: var(--light-yellow);
    padding: 60px 20px;
}

.distributor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.distributor-logo {
    background-color: var(--light-text);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-decoration: none;
    height: 100%;
}

.distributor-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.distributor-logo img {
    max-width: 100%;
    max-height: 70px;
    margin-bottom: 15px;
    object-fit: contain;
}

.distributor-name {
    color: var(--dark-text);
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #eaeaea;
    padding-top: 12px;
    width: 100%;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .distributor-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 576px) {
    .distributor-grid {
        grid-template-columns: 1fr; /* 1 column on very small screens */
    }
}

/* Contact Section */
.contact {
    padding: 60px 20px;
    background-color: var(--light-bg);
    text-align: center;
}

.contact h2 {
    color: var(--primary-orange);
    margin-bottom: 30px;
    font-size: 2rem;
}

.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info, .contact-form {
    flex: 1 1 300px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-align: left;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-orange);
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-image img {
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: var(--primary-orange);
    color: var(--light-text);
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--secondary-orange);
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--primary-orange), var(--primary-yellow));
    color: var(--light-text);
    padding: 40px 20px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 50px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--light-yellow);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* Responsive Design - Enhanced for all screen sizes */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        margin-top: 15px;
    }
    
    .nav-links.active {
        max-height: 300px;
    }
    
    nav {
        padding: 10px 5%;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .overview-text h4 {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .single-column h2, .contact h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .overview-text h4 {
        text-align: left;
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .single-column {
        padding: 40px 15px;
    }
    
    .single-column h2, .contact h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .justified-text {
        font-size: 0.95rem;
    }
    
    .overview-text h3 {
        font-size: 1.4rem;
        margin-top: 25px;
        margin-bottom: 20px;
        color: var(--primary-orange);
    }
    
    .overview-text h4 {
        font-size: 1.2rem;
        margin-top: 25px;
        margin-bottom: 15px;
        color: var(--primary-orange);
        text-align: left;
    }
    
    section, div.overview-content, .overview-text, .partner-grid, .distributor-grid, .contact-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
    }
}