/* GLOBAL RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f6fff4;
    color: #1b4d1b;
    scroll-behavior: smooth;
}

/* PREVENT IMAGE OVERFLOW */
img {
    max-width: 100%;
    height: auto;
}

/* HEADER */
.header {
    text-align: center;
    padding: 15px 10px;
    background: #2e7d32;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header .logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    background: white; /* Added for visibility if logo is transparent */
    border-radius: 50%;
}

.header h1 {
    margin: 0;
}

.header p {
    margin: 5px 0 0;
}

/* HERO SECTION */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1538170989343-ce003278e1a3?w=1200') center/cover no-repeat;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-text {
    position: relative;
    text-align: center;
    max-width: 600px;
    color: white;
    padding: 0 20px;
}
.hero-text h2 {
    font-size: 2.5rem;
}
.hero-text p {
    margin: 10px 0 20px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 22px;
    background: #43a047;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}
.btn:hover {
    background: #2e7d32;
}

/* SECTIONS GENERAL */
.about, .why, .faq, .preview, .categories {
    padding: 50px 20px;
    text-align: center;
}

h2 {
    margin-bottom: 20px;
}

/* CATEGORY GRID */
.cat-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
}
.cat-card i {
    font-size: 40px;
    margin-bottom: 10px;
}
.cat-card:hover {
    transform: translateY(-5px);
}

/* PREVIEW IMAGES */
.preview-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: center;
    justify-items: center;
}
.preview-grid img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    display: block;
    transition: transform 200ms ease, box-shadow 200ms ease;
    cursor: pointer;
}
.preview-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

/* WHY SECTION */
.why-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.why-card {
    background: #d7f3d7;
    padding: 18px;
    border-radius: 10px;
    font-weight: bold;
}

/* FAQ */
.faq-item {
    background: white;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    text-align: left;
}
.faq-item h4 {
    margin: 0;
    cursor: pointer;
    padding: 20px 50px 20px 20px; /* Added right padding to prevent overlap with icon */
    position: relative;
}
.faq-item h4::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    font-weight: normal;
    transition: transform 0.2s ease;
}
.faq-item.active h4::after {
    transform: rotate(45deg);
}
.faq-item p {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-item.active p {
    max-height: 1000px; /* Increased to accommodate taller text on mobile */
    padding: 0 20px 20px;
}

/* CTA BUTTONS */
.cta {
    text-align: center;
    padding: 40px 20px;
}
.cta .whatsapp {
    background: #25D366;
}
.whatsapp:hover {
    background: #1da851;
}
.website {
    background: #1b5e20;
}
.website:hover {
    background: #154a19;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 15px;
    background: #2e7d32;
    color: white;
    margin-top: 30px;
}
footer a {
    color: #d7f3d7;
}
.legal-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}
.cookie-banner p {
    display: inline-block;
    margin: 0 10px 0 0;
    font-size: 0.9rem;
}
.cookie-banner a {
    color: #43a047;
    text-decoration: underline;
}

/* MOBILE */
@media (max-width: 700px) {
    /* On smaller screens, we adjust padding and layout */
    .header { 
        padding: 20px 15px;
        text-align: center;
        flex-direction: column;
    }
    .header .logo {
        width: 40px;
        height: 40px;
    }
    .header h1 {
        font-size: 1.5rem;
        margin: 10px 0 5px 0;
    }
    .header p {
        font-size: 0.9rem;
    }
    .hero {
        height: 300px;
    }
    .hero-text h2 {
        font-size: 1.5rem;
    }
    .cat-grid, .preview-grid, .why-grid {
        grid-template-columns: 1fr;
    }
    .cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.3rem;
    }
    .hero-text h2 {
        font-size: 1.3rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}