/* --- Reset & Variables --- */
:root {
    --primary-color: #f7f3ed; /* Light Beige background */
    --secondary-color: #a8d5c4; /* Pastel Green Header */
    --text-dark: #333333;
    --text-light: #666666;
    --accent-gold: #c5a065;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Stats Colors */
    --stat-orange: #dd8456;
    --stat-white: #fcfcfc;
    --stat-yellow: #e8c673;
    --stat-beige: #d6cdb2;
    --stat-brown: #a49178;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 2.5rem;
    margin: 60px 0 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

/* --- Header --- */
.header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #5a3e2b;
}

.logo span {
    border: 1px solid #5a3e2b;
    padding: 2px 6px;
    margin-right: 2px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    font-size: 0.85rem;
    text-transform: uppercase;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background-color: #a8d5c4; /* Base pastel green */
    display: flex;
    align-items: stretch;
    min-height: 500px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    width: 100%;
}

.hero-text-box {
    flex: 1;
    background-color: #a8d5c4;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-text-box h1 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 400;
}

.rug-sample img {
    width: 180px;
    height: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-image-box {
    flex: 1.5;
    position: relative;
}

.hero-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    padding: 20px;
}

.prev { left: 20px; }
.next { right: 20px; }

/* --- Certifications --- */
.certifications {
    padding: 60px 0;
    background-color: #fff;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.cert-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.cert-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Stats Section --- */
.stats-section {
    background-color: #e6e6e6;
    padding: 60px 0;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    width: 180px;
    height: 240px;
    border-radius: 100px; /* Pill shape */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    line-height: 1.4;
    color: #4a4a4a;
}

.small-text {
    font-size: 0.7rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.color-1 { background-color: var(--stat-orange); }
.color-2 { background-color: var(--stat-white); }
.color-3 { background-color: var(--stat-yellow); }
.color-4 { background-color: var(--stat-beige); }
.color-5 { background-color: var(--stat-brown); }

/* --- Categories Grid --- */
.categories {
    padding-bottom: 80px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cat-card {
    text-align: center;
    cursor: pointer;
}

.cat-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: opacity 0.3s;
}

.cat-card:hover img {
    opacity: 0.9;
}

.cat-card h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

/* --- Process Section --- */
.process-section {
    padding: 0;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.process-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* --- Featured Collections --- */
.featured-collections {
    padding: 60px 0 100px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.featured-card {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.featured-content h5 {
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 400;
    text-transform: uppercase;
}

.featured-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.shop-btn {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 10px 25px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    transition: 0.3s;
}

.shop-btn:hover {
    background-color: #333;
    color: #fff;
}

/* --- Footer --- */
.footer {
    background-color: #f2f2f2;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #666;
    font-size: 0.85rem;
}

.footer-col ul li a:hover {
    color: #333;
    text-decoration: underline;
}

.footer-cert-logos {
    display: flex;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #666;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    color: #888;
    font-size: 0.8rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-text-box h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        flex-direction: column;
    }

    .hero-text-box, .hero-image-box {
        flex: auto;
        width: 100%;
        padding: 40px 20px;
    }

    .hero-image-box {
        height: 300px;
    }

    .process-grid, .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .cat-card img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}