/* 
  CHANDRAPRABHA TRADERS - Modern Wood Theme
  Primary: #3d1f14 (Dark Wood)
  Secondary: #d48c45 (Warm Oak)
  Accent: #fdf8f1 (Cream/Beige)
  Text: #1a0f0a (Dark Brown)
*/

:root {
    --primary: #3d1f14;
    --secondary: #d48c45;
    --accent: #fdf8f1;
    --text: #1a0f0a;
    --text-muted: #666;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 140, 69, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

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

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

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

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

header.scrolled .logo-text {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.mobile-menu-header {
    display: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    position: relative;
}

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

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

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

.nav-link:hover, .nav-link.active {
    color: var(--secondary);
}

.mobile-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

header.scrolled .mobile-toggle {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.4s;
    color: rgba(255,255,255,0.8);
}

.hero-btns {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.6s;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}

.about-image::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--secondary);
    border-left: 5px solid var(--secondary);
    z-index: -1;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Category Preview */
.bg-accent {
    background-color: var(--accent);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header .divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.cat-img {
    height: 280px;
    overflow: hidden;
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .cat-img img {
    transform: scale(1.1);
}

.cat-info {
    padding: 30px;
    text-align: center;
}

.cat-info h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--secondary);
    font-size: 1.8rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background-color: var(--secondary);
    color: var(--white);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Manufacturing Excellence */
.mfg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.mfg-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--accent);
    transition: var(--transition);
    text-align: left;
}

.mfg-card:hover {
    border-color: var(--secondary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.mfg-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.mfg-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.mfg-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("/images/contactBackground.jpeg") center/cover no-repeat;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    background-color: var(--secondary);
    color: var(--white);
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 5px;
}

.w-full {
    width: 100%;
}

/* Footer */
footer {
    background-color: #111;
    color: rgba(255,255,255,0.6);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about h3 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Products Page Specific */
.page-header {
    padding: 150px 0 150px;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 15px;
}

.category-section {
    margin-bottom: 80px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.category-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    white-space: nowrap;
}

.category-title .line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--accent);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--accent);
}

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

.prod-img {
    height: 200px;
    overflow: hidden;
}

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

.prod-info {
    padding: 20px;
}

.prod-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.prod-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 20px;
        transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }

    /* Backdrop overlay when menu is active */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.6);
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        pointer-events: none;
    }

    .nav-menu.active::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: none;
        margin-bottom: 5px;
    }

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

    .nav-menu .nav-link {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 1rem;
        padding: 15px 0;
        display: block;
        width: 100%;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        font-weight: 500;
        transition: all 0.3s ease;
        background: transparent !important;
        box-shadow: none !important;
    }

    .nav-menu .nav-link:hover, .nav-menu .nav-link.active {
        color: var(--secondary) !important;
        padding-left: 10px;
    }

    .nav-menu .nav-link.active {
        font-weight: 700;
    }

    /* Add a small label or business info at the top of mobile menu */
    .nav-menu::after {
        content: 'CHANDRAPRABHA';
        position: absolute;
        top: 40px;
        left: 40px;
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 3px;
        color: var(--secondary);
        opacity: 0.9;
    }

    .nav-link::after {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header p {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 40px 20px;
    }
}
