/* 
 * Columbia Plastics Inc.
 * Main CSS File
 */

/* ======== Base Styles ======== */
:root {
    --primary-color: #CC0000; /* Red from your logo */
    --primary-color-dark: #A30000; /* Darker shade for hover states */
    --secondary-color: #FFCC00; /* Yellow from your logo */
    --secondary-color-dark: #DDAA00; /* Darker shade for hover states */
    --text-color: #777777; /* Gray from your logo text */
    --light-neutral: #F8F9FA;
    --mid-neutral: #E9ECEF;
    --dark-neutral: #343A40;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-light: #FFFFFF;
    --success-color: #28A745;
    --alert-color: #DC3545;
    
    --header-height: 90px; /* Adjusted for your logo size */
    --footer-height: 300px;
    --container-max-width: 1200px;
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--light-neutral);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 0;
    color: var(--text-primary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color-dark);
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ======== Buttons ======== */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

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

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-neutral);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color-dark);
    border-color: var(--secondary-color-dark);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* ======== Header ======== */
.header {
    height: var(--header-height);
    background-color: var(--text-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 60px;
}

.logo img {
    height: 100%;
    width: auto;
}

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

.nav-link {
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

/* Search bar */
.search-container {
    position: relative;
    margin-right: 15px;
}

.search-container input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--mid-neutral);
    width: 200px;
}

.search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ======== Page Banner ======== */
.page-banner {
    height: 200px; /* Reduced from 300px */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    color: #fff;
}

/* ======== Hero Section ======== */
.hero {
    height: calc(100vh - var(--header-height));
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.current {
    opacity: 1;
}

.slide .content {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    padding: 3rem;
    max-width: 600px;
    border-left: 5px solid var(--secondary-color);
    margin-left: 10%;
}

.slide .content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ======== Section Title ======== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* ======== Category Cards ======== */
.categories {
    padding: 5rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

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

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 1.5rem;
}

.category-name {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

/* ======== Features Section ======== */
.features {
    background-color: var(--mid-neutral);
    padding: 5rem 0;
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-title {
    margin-bottom: 1rem;
}

/* ======== Featured Products ======== */
.featured-products {
    padding: 5rem 0;
}

.product-carousel {
    margin: 0 -15px;
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--mid-neutral) transparent;
}

.product-carousel::-webkit-scrollbar {
    height: 8px;
}

.product-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.product-carousel::-webkit-scrollbar-thumb {
    background-color: var(--mid-neutral);
    border-radius: 20px;
}

.product-card {
    flex: 0 0 300px;
    margin: 0 15px;
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

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

.product-content {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* ======== Contact Section ======== */
.contact-section {
    padding: 5rem 0;
    background-color: var(--text-light);
}

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

.contact-info {
    padding-right: 2rem;
}

.contact-method {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}

.contact-form-container {
    background-color: var(--light-neutral);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1rem;
}

/* ======== Footer ======== */
.footer {
    background-color: var(--dark-neutral);
    color: var(--text-light);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    width: auto;
    height: 50px;
    margin-bottom: 1rem;
    /* If you need the logo to be white in the footer: */
    /* filter: brightness(0) invert(1); */
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ======== Responsive Styles ======== */
@media (max-width: 1200px) {
    .search-container input {
        width: 160px;
    }
}

@media (max-width: 991px) {
    .header-actions {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        height: 500px;
    }
}

@media (max-width: 767px) {
    .slide .content {
        margin-left: 0;
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .product-carousel {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .product-card {
        flex: 0 0 80%;
    }
    
    .header {
        height: 70px;
    }
    
    .logo {
        height: 40px;
    }
}

/* Mobile menu styles - these will be activated by JavaScript */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--text-light);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--mid-neutral);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
}

.mobile-menu a.active {
    color: var(--primary-color);
}
