/* --- 1. CSS Variables --- */
:root {
    --primary-color: #6B8E23; /* Muted Olive Green */
    --secondary-color: #D8BFD8; /* Thistle, soft floral purple */
    --accent-color: #B8860B; /* Dark Goldenrod, premium touch */
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --background-light: #F8F8F8;
    --background-dark: #2C3E50; /* Deep blue-grey for footer/contrast */
    --soft-gradient: linear-gradient(135deg, #F8F8F8 0%, #E0F2F7 100%); /* Light blue-grey gradient */
    --card-gradient: linear-gradient(145deg, #ffffff, #f0f0f0);
    --button-gradient: linear-gradient(45deg, var(--primary-color), #8DC132);
    --button-hover-gradient: linear-gradient(45deg, #8DC132, var(--primary-color));

    --font-heading: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;

    --max-width: 1200px;
    --padding-section: 80px 0;
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* --- 2. Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

/* Accessibility: No scroll when mobile nav is open */
body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
p { margin-bottom: 1em; }

/* --- 3. Utility Classes --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--padding-section);
}

.background-secondary {
    background-color: var(--secondary-color);
    background-image: linear-gradient(180deg, var(--background-light), var(--secondary-color));
}

.background-dark {
    background-color: var(--background-dark);
    color: var(--light-text-color);
}

.background-dark .section-title,
.background-dark .section-subtitle,
.background-dark h3 {
    color: var(--light-text-color);
}

.background-gradient {
    background: var(--soft-gradient);
}

.text-center {
    text-align: center;
}

.light-text {
    color: var(--light-text-color);
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 0.5em;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3em;
}

.background-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Grid Layouts */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- 4. Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: var(--shadow-light);
}

.btn-primary {
    background: var(--button-gradient);
    color: var(--light-text-color);
}

.btn-primary:hover {
    background: var(--button-hover-gradient);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.btn-card {
    padding: 10px 20px;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 5px;
    box-shadow: none;
}

.btn-card:hover {
    background-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.large-btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    margin-top: 2.5em;
}

.animate-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.animate-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out;
    z-index: -1;
}

.animate-btn:hover::before {
    width: 200%;
    height: 200%;
}


/* --- 5. Header & Navigation --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-medium);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure it's above other content when open */
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Toggle active state */
.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* --- 6. Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    overflow: hidden;
    background: url('images/image_17.jpg') no-repeat center center/cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 0.3em;
    color: var(--light-text-color);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- 7. About Section --- */
.about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius-lg);
}

/* --- 8. Shop Section --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 3em;
}

.product-card {
    background: var(--card-gradient);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card .card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

.product-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1em;
    flex-grow: 1;
}

.product-card .price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1em;
    display: block;
}

/* --- 9. Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background: var(--card-gradient);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-item img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 5px rgba(107, 142, 35, 0.1); /* Soft glow */
}

.service-item h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.5em;
}

.service-item p {
    font-size: 0.95rem;
    color: #555;
}

/* --- 10. Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--light-text-color);
    padding: 15px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    opacity: 1;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* Adjust height for specific gallery items for a masonry-like feel */
.gallery-item:nth-child(2) img,
.gallery-item:nth-child(4) img,
.gallery-item:nth-child(6) img {
    height: 400px; /* Taller images */
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(min-content, max-content); /* Allow rows to size naturally */
    }
}

/* --- 11. Testimonials Section --- */
.testimonials-section {
    background-color: var(--background-dark);
    color: var(--light-text-color);
}

.testimonials-section .section-title::after {
    background-color: var(--accent-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(3px); /* Glassmorphism effect */
    transition: transform 0.3s ease, background 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-card .quote {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 1.5em;
    color: var(--light-text-color);
}

.testimonial-card cite {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-color);
}

/* --- 12. Contact Section --- */
.contact-info {
    padding-right: 20px;
}

.contact-info h2 {
    color: var(--primary-color);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.8em;
    display: flex;
    align-items: center;
}

.contact-info p a {
    color: var(--text-color);
}
.contact-info p a:hover {
    color: var(--primary-color);
}

.contact-info .icon-small {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.address-details {
    margin-bottom: 2em;
}

.opening-hours li {
    margin-bottom: 0.5em;
    font-size: 1.05rem;
    color: #555;
}

.map-placeholder {
    background-color: #e0e0e0;
    border-radius: var(--border-radius-md);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2em;
    color: #777;
    font-style: italic;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}
.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-form {
    background: var(--card-gradient);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5em;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--background-light);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- 13. Footer --- */
.main-footer {
    background-color: var(--background-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 20px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--light-text-color);
    margin-bottom: 1.2em;
    font-size: 1.2rem;
}

.footer-links ul li,
.footer-contact p {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-contact .icon-tiny {
    margin-right: 8px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--light-text-color);
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: var(--light-text-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom .fas.fa-heart {
    color: #e74c3c; /* Red heart */
    margin: 0 5px;
}

/* --- 14. Animations (Fade-in on scroll) --- */
.fade-in {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for sequential animations */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }
.fade-in:nth-child(7) { transition-delay: 0.6s; }


/* --- 15. Responsive Design (Media Queries) --- */
@media (max-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.6rem; }

    .main-header {
        padding: 10px 0;
    }

    .nav-list {
        display: none; /* Hide on smaller screens */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-medium);
        padding: 20px 0;
        border-top: 1px solid #eee;
        transition: transform 0.3s ease-out;
        transform: translateY(-100%);
        opacity: 1;
        pointer-events: none;
        max-height: calc(100vh - 70px); /* Adjust based on header height */
        overflow-y: auto;
    }

    .nav-list.nav-open {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list li {
        text-align: center;
        margin: 10px 0;
    }

    .nav-list a {
        font-size: 1.3rem;
        padding: 10px 0;
        display: block;
        color: var(--text-color);
    }

    .nav-toggle {
        display: block; /* Show hamburger on smaller screens */
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }

    .about-section .grid-2-col {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1; /* Image first on mobile */
    }
    .about-content {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .main-header {
        padding: 10px 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .product-grid, .services-grid, .gallery-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .contact-section .grid-2-col {
        grid-template-columns: 1fr;
    }
    .contact-info {
        padding-right: 0;
        text-align: center;
    }
    .contact-info p {
        justify-content: center;
    }
    .opening-hours {
        padding: 0;
    }
    .map-placeholder {
        height: 200px;
    }
    .contact-form {
        padding: 30px 20px;
    }
}


/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
