/* General Styling */
:root {
    --primary-color: #6B4F4F; /* Brown */
    --secondary-color: #EED6C4; /* Light Cream */
    --accent-color: #A4BE7B; /* Green */
    --text-color: #483434;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding-top: 95px; /* Adjusted for the fixed header's height */
    background-color: #FFF8EA;
    color: var(--text-color);
}

h1, h2, h3 {
    color: var(--primary-color);
}

/* 1. Header Section */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    height: 95px;
}
.main-header .logo img {
    height: 60px;
    width: auto;
}
.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 25px;
}
.main-header nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s;
    margin-right: 25px;
}
.main-header nav a:hover {
    color: var(--accent-color);
}
/* Hamburger menu button - hidden by default */
.hamburger-menu {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* 2. Slider Section */
.slider-section {
    width: 100%;
    height: calc(100vh - 95px);
    position: relative;
    overflow: hidden;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slide.active {
    opacity: 1;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}
.slide-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
}
.slide-content p {
    font-size: 1rem;
}
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.btn:hover {
    background-color: #8db060;
}

/* 3. About Us Section */
.about-section {
    display: flex;
    align-items: center;
    padding: 50px;
    gap: 30px;
    background-color: var(--secondary-color);
    background-image: url('images/aboutusbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--primary-color);
}
.about-content {
    flex: 1;
}
.about-images {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.about-main-img {
    width: 60%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}
.coconut-svg {
    width: 100px;
    height: 100px;
    fill: var(--primary-color);
}

/* 4. Product List Section */
.products-section,
.product-section {
    padding: 50px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.product-section h2, .products-section h2 {
    text-align: center;
}
.category-nav {
    text-align: center;
    margin-bottom: 2rem;
}
.category-nav a {
    font-size: 1.2rem;
    color: #555;
    padding: 10px 20px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.category-nav a.active,
.category-nav a:hover {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}
.product-category-section {
    margin-bottom: 3rem;
}
.product-category-section h2 {
    font-size: 2rem;
    color: #333;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}
.product-card h3 {
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem;
    color: #333;
}
.product-card p {
    font-size: 0.9rem;
    color: #666;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

/* 5. Get In Touch Section */
.contact-section {
    padding: 50px;
    background-color: var(--secondary-color);
    background-image: url('images/bgwall.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--primary-color);
}
@keyframes fadeInDialog {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.contact-dialog {
    max-width: 500px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    animation: fadeInDialog 1s ease-out;
}
.contact-dialog form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.contact-dialog input, .contact-dialog textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.contact-dialog button {
    border: none;
    cursor: pointer;
}

/* 6. Testimonials Section */
.testimonials-section {
    padding: 50px;
    text-align: center;
    padding-bottom: 70px;
}
.testimonial-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}
.testimonial-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 400px;
}
.testimonial-card p {
    font-style: italic;
}
.testimonial-card span {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
    display: block;
}
.divider-coconut {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: -50px;
    margin-bottom: -50px;
    z-index: 10;
}
.divider-coconut img {
    max-width: 300px;
    height: auto;
    display: block;
    opacity: 5.8;
    margin-right: 80%;
    margin-bottom: -3%;
}

/* 7. Footer Section */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 20px 10px 20px;
    padding-top: 70px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #8e6a6a;
}
.main-footer h3 {
    color: var(--secondary-color);
}
.main-footer a {
    color: #eee;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
}
.footer-social .social-icons {
    display: flex;
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .footer-social .social-icons {
        justify-content: center;
        margin-left: 0;
    }
}

/* 8. Floating Social Media Icons */
.social-links-fixed {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 999;
}
.social-links-fixed a {
    display: block;
    padding: 12px 15px;
    color: white;
    font-size: 1.2rem;
    transition: padding-right 0.3s;
}
.social-links-fixed a:hover {
    padding-right: 25px;
}
.social-links-fixed .whatsapp { background-color: #25D366; }
.social-links-fixed .instagram { background-color: #E4405F; }
.social-links-fixed .facebook { background-color: #1877F2; }

/* General Mobile and Tablet Adaptations */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }

    /* 1. Header Section - Hamburger Menu Logic */
    .main-header {
        height: 60px;
        padding: 0 1rem;
        position: fixed;
        flex-direction: row;
        justify-content: space-between;
    }
    .main-header .logo img {
        height: 40px;
        margin-bottom: 0;
    }
    .main-header nav {
        display: none; /* Hide the full nav menu by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Position below the header */
        left: 0;
        background-color: #f9f9f9;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        border-top: 1px solid #ddd;
        margin-right: 0;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%); /* Initially hide the menu above the viewport */
    }
    .main-header nav.active {
        display: flex; /* Show the menu when the .active class is added */
        transform: translateY(0); /* Slide the menu down into view */
    }
    .main-header nav a {
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    /* Hamburger button becomes visible on mobile */
    .hamburger-menu {
        display: block;
    }

    /* 2. Slider Section */
    .slider-section {
        height: 60vh;
    }
    .slide-content h1 {
        font-size: 2rem;
    }
    .slide-content p {
        font-size: 0.9rem;
    }

    /* 3. About Us Section */
    .about-section {
        flex-direction: column;
        padding: 30px 20px;
    }
    .about-images {
        flex-direction: column;
        gap: 15px;
    }
    .about-main-img {
        width: 100%;
        height: auto;
    }

    /* 4. Product List Section */
    .products-section {
        padding: 30px 20px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* 5. Contact Section */
    .contact-section {
        padding: 30px 20px;
    }
    .contact-dialog {
        width: 90%;
        margin: 0 auto;
        padding: 20px;
    }

    /* 6. Testimonials Section */
    .testimonials-section {
        padding: 30px 20px;
    }
    .testimonial-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    /* 7. Footer Section */
    .main-footer {
        padding: 20px 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .divider-coconut {
        display: none;
    }
}