/* ======= Variables & Reset ======= */
:root {
    --primary: #2B593F;
    --primary-dark: #1A3C2A;
    --primary-light: #3D7A59;
    --secondary: #D9A566;
    --secondary-dark: #C48A4A;
    --secondary-light: #E5B77C;
    --light: #F5F5F0;
    --dark: #333333;
    --accent: #9C6644;
    --gray-light: #f9f9f9;
    --gray: #e0e0e0;
    --text-dark: #333333;
    --text-light: #777777;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* ======= Common Classes ======= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--secondary);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.btn i {
    transition: var(--transition);
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

/* ======= Header ======= */
header {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.7rem 0;
    background-color: rgba(43, 89, 63, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary);
}

.logo-icon {
    margin-right: 12px;
    font-size: 1.6rem;
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary);
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ======= Hero Section ======= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: left;
    overflow: hidden;
}

.hero-shader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 10;
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* ======= Section Titles ======= */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ======= About Section ======= */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image:before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ======= Products Section ======= */
.products {
    background-color: var(--gray-light);
    position: relative;
}

.product-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.category-btn {
    padding: 0.7rem 1.8rem;
    background-color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card.hidden {
    display: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    background-color: var(--gray-light);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--secondary-light);
    color: var(--dark);
}

/* Product "Show More" functionality */
.initially-hidden {
    display: none;
}

.show-more-container {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

#show-more-btn {
    padding: 0.8rem 2rem;
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

#show-more-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

#show-more-btn i {
    transition: var(--transition);
    margin-left: 8px;
}

#show-more-btn.active i {
    transform: rotate(180deg);
}

@keyframes expandProductCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card.expand-in {
    animation: expandProductCard 0.5s ease forwards;
}

.expand-in:nth-child(1) { animation-delay: 0.05s; }
.expand-in:nth-child(2) { animation-delay: 0.1s; }
.expand-in:nth-child(3) { animation-delay: 0.15s; }
.expand-in:nth-child(4) { animation-delay: 0.2s; }
.expand-in:nth-child(5) { animation-delay: 0.25s; }
.expand-in:nth-child(6) { animation-delay: 0.3s; }
.expand-in:nth-child(7) { animation-delay: 0.35s; }
.expand-in:nth-child(8) { animation-delay: 0.4s; }

/* ======= Services Section ======= */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-light);
    opacity: 0.05;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.service-card:hover:before {
    height: 100%;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--secondary);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
}

/* ======= Contact Section ======= */
.contact {
    background-color: var(--gray-light);
    position: relative;
    padding: 4rem 0;
}

.contact-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info {
    background-color: var(--primary);
    color: white;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-header {
    margin-bottom: 2rem;
}

.info-header i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.info-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.info-header p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-details {
    margin-top: auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: white;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-form {
    padding: 2.5rem;
}

.form-header {
    margin-bottom: 1.8rem;
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.8rem;
}

.form-header h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--text-light);
    transition: var(--transition);
}

.textarea-group i {
    top: 15px;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 45px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 89, 63, 0.1);
}

.form-control:focus + i {
    color: var(--primary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-btn:hover {
    background-color: var(--secondary);
}

.form-btn i {
    transition: var(--transition);
}

.form-btn:hover i {
    transform: translateX(3px);
}

.form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-status.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    display: block;
}

.form-status.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    display: block;
}

/* ======= Footer ======= */
footer {
    background-color: var(--primary);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links li {
    position: relative;
    padding-left: 0;
}

.footer-links li a {
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-links li a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ======= Animations ======= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.8s ease forwards;
}

.staggered > * {
    opacity: 0;
}

.staggered > *:nth-child(1) { animation-delay: 0.1s; }
.staggered > *:nth-child(2) { animation-delay: 0.2s; }
.staggered > *:nth-child(3) { animation-delay: 0.3s; }
.staggered > *:nth-child(4) { animation-delay: 0.4s; }
.staggered > *:nth-child(5) { animation-delay: 0.5s; }
.staggered > *:nth-child(6) { animation-delay: 0.6s; }

.fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

/* ======= Responsive Styles ======= */
@media (max-width: 1100px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
    }

    .nav-container {
        position: relative;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        opacity: 0;
        pointer-events: none;
    }

    nav ul.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
        pointer-events: all;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .info-header h3 {
        font-size: 1.5rem;
    }
    
    .contact-info, .contact-form {
        padding: 1.8rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .product-categories {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content {
        padding: 1.5rem;
    }
    
    .contact-info, .contact-form {
        padding: 1.5rem;
    }
    
    .info-header i {
        font-size: 1.5rem;
    }
    
    .info-header h3 {
        font-size: 1.3rem;
    }
    
    .form-header h3 {
        font-size: 1.3rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}