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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

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

/* Header Styles */
.header {
    background-color: white;
    position: relative;
    margin-bottom: 0;
    border: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.company-name {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.header-contact {
    display: flex;
    gap: 40px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 500;
}

.contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Navigation */
.navigation {
    background-color: #333;
    padding: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 10px;
    margin-bottom: 0;
}

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

.nav-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 18px 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
}

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

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('KC Skyline/kc_skyline.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    margin-top: 0;
    padding-top: 0;
}

.hero-overlay {
    width: 100%;
}

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

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

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Manufacturers Section */
.manufacturers-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.manufacturers-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: bold;
    color: #333;
}

.manufacturers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Try to center items when there are incomplete rows */
.manufacturers-grid {
    justify-content: center;
}

.manufacturer-logo {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.manufacturer-logo:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.manufacturer-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.logo-placeholder {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.learn-more {
    text-align: center;
}

.learn-more-link {
    display: inline-block;
    color: #d32f2f;
    text-decoration: underline;
    font-size: 1.2rem;
    font-weight: bold;
}

.learn-more-link:hover {
    color: #b71c1c;
}

/* Main Content (Manufacturers & Contact Pages) */
.main-content {
    padding: 40px 0;
    min-height: 60vh;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: bold;
    color: #333;
}

/* Manufacturer Categories */
.manufacturer-category {
    margin-bottom: 50px;
}

.category-title {
    color: #d32f2f;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-decoration: underline;
}

.manufacturer-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    scroll-margin-top: 100px;
    border: 2px solid transparent;
    transition: border 0.3s ease;
}

/* Highlight animation for targeted sections */
.manufacturer-item.highlighted {
    animation: highlightBorder 3s ease-in-out;
}

@keyframes highlightBorder {
    0% {
        border-color: transparent;
    }
    15% {
        border-color: #d32f2f;
        box-shadow: 0 0 10px rgba(211, 47, 47, 0.3);
    }
    85% {
        border-color: #d32f2f;
        box-shadow: 0 0 10px rgba(211, 47, 47, 0.3);
    }
    100% {
        border-color: transparent;
        box-shadow: none;
    }
}

.manufacturer-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.manufacturer-logo-small {
    width: 160px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Dual logo container for companies with two logos */
.manufacturer-logo-dual {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.manufacturer-logo-dual .manufacturer-logo-small {
    width: 140px;
    height: 100px;
}

.manufacturer-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.manufacturer-details ul {
    list-style-type: disc;
    margin-left: 20px;
}

.manufacturer-details li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Contact Page Specific Styles */
.contact-center-logo {
    text-align: center;
    margin: 40px 0 60px 0;
}

.contact-logo-large {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.contact-center-logo h2 {
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.person-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.person-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.person-details p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: #e0e0e0;
    padding: 40px 0;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-company-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.footer-links h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.footer-links a {
    display: block;
    color: #d32f2f;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-top: 2px;
}

.footer-contact-item span,
.footer-contact-item div {
    font-size: 0.9rem;
    color: #333;
}

.footer-contact-item div span {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header Mobile */
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 15px 0;
    }

    .header-contact {
        flex-direction: column;
        gap: 15px;
    }

    .company-name {
        font-size: 16px;
    }

    .contact-item {
        font-size: 16px;
    }

    .contact-icon {
        width: 24px;
        height: 24px;
    }

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

    /* Navigation Mobile */
    .navigation {
        text-align: center;
    }

    .navigation .container {
        text-align: center;
    }

    .nav-link {
        display: inline-block;
        padding: 15px 18px;
        font-size: 14px;
    }

    /* Hero Mobile */
    .hero {
        min-height: 300px;
        padding: 20px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

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

    /* Manufacturers Grid Mobile */
    .manufacturers-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        justify-content: center;
    }

    .manufacturer-logo {
        min-height: 100px;
        padding: 15px;
    }

    /* Manufacturer Items Mobile */
    .manufacturer-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .manufacturer-logo-small {
        align-self: center;
        width: 140px;
        height: 105px;
    }

    .manufacturer-details {
        text-align: left;
    }

    .manufacturer-details ul {
        list-style-type: disc;
        margin-left: 20px;
        padding-left: 0;
    }

    .manufacturer-details li {
        margin-bottom: 8px;
        line-height: 1.5;
        text-align: left;
    }

    /* Contact Grid Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-person {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .manufacturers-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .manufacturer-logo {
        min-height: 80px;
        padding: 10px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .contact-logo-large {
        width: 80px;
        height: 80px;
    }
}

/* Placeholder for missing images */
img[src*="placeholder"] {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

img[src*="placeholder"]:after {
    content: "Image Placeholder";
    color: #999;
    font-size: 12px;
}
