/* ============================================
   Merva Tea - Modern & Pro Redesign
   Theme: Luxury Nature (Deep Green / Gold / Cream)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --color-primary: #0F2F24;
    /* Deep Forest Green */
    --color-primary-light: #1A4234;
    --color-accent: #C5A059;
    /* Muted Gold */
    --color-accent-light: #D4B475;
    --color-bg-body: #FAF9F6;
    /* Off-white / Cream */
    --color-bg-surface: #FFFFFF;
    --color-bg-surface-alt: #F2F0EB;

    --color-text-main: #1A1A1A;
    --color-text-muted: #666666;
    --color-text-light: #FFFFFF;
    --color-border: #E5E5E5;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */

    /* UI Elements */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(15, 47, 36, 0.08);
    --shadow-lg: 0 16px 32px rgba(15, 47, 36, 0.12);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --container-max: 1280px;
    --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

.text-light {
    color: var(--color-text-light);
}

.text-accent {
    color: var(--color-accent);
}

/* Layout */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 1rem;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-outline-white {
    border-color: var(--color-text-light);
    color: var(--color-text-light);
}

.btn-outline-white:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
}

/* Navbar */
.navbar {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.navbar .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-main);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Full screen */
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    overflow: hidden;
    padding: 0;
    margin-top: calc(var(--header-height) * -1);
    /* Pull up behind navbar if transparent needed, or just standard */
    padding-top: var(--header-height);
    /* Compensate */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    /* Darken for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-md);
    animation: fadeUp 1s ease-out;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
}

/* Brand/About Section */
.brand-clarification {
    background-color: var(--color-bg-surface);
}

.brand-statement {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.brand-intro {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-text-main);
}

.highlight-points {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.highlight-icon {
    color: var(--color-accent);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--color-bg-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-bg-surface-alt);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* About Preview */
.about-preview {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.about-preview .container {
    position: relative;
    z-index: 2;
}

.about-preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-preview-text h2 {
    color: var(--color-text-light);
}

.about-preview-text p {
    color: rgba(255, 255, 255, 0.8);
}

.about-preview-image {
    position: relative;
}

.about-preview-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.about-preview-image img {
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

/* Products Preview */
.product-card {
    background: var(--color-bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    padding: var(--spacing-md);
    background-color: var(--color-bg-surface);
    /* Keep white background for clean product look */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.product-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    /* Ensure full visibility of product */
    transition: transform var(--transition-smooth);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.product-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(15, 47, 36, 0.9), rgba(15, 47, 36, 0.9)), url('../IMAGES/tea_garden_landscape.png');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    color: var(--color-text-light);
}

.cta-content h2 {
    color: var(--color-text-light);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer h3,
.footer h4 {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pages Specifics */
.page-header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin-top: calc(var(--header-height) * -1);
    padding-top: calc(var(--header-height) + var(--spacing-xl));
}

.page-header h1 {
    color: var(--color-text-light);
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

/* Filter Buttons */
.products-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
    color: var(--color-text-muted);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

/* Products Item (List View/Detailed) */
.product-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background: var(--color-bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.product-item .product-image {
    height: 100%;
    min-height: 400px;
    background-color: #FAFAFA;
}

.product-item .product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-lg);
}

.product-item.hidden {
    display: none;
}

/* Responsive Adjustments usually go in responsive.css, but some base overrides here */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Mobile menu needed */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 500px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .about-preview-content,
    .product-item {
        grid-template-columns: 1fr;
    }

    .about-preview-image::before {
        display: none;
    }

    .product-image {
        height: 250px;
    }

    .page-header {
        padding-top: 100px;
    }
}
.hidden { display: none !important; }

/* Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--spacing-md); }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; height: 300px; }
.gallery-image { height: 100%; width: 100%; }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-smooth); }
.gallery-item:hover .gallery-image img { transform: scale(1.1); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: var(--spacing-md); background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; transform: translateY(100%); transition: transform var(--transition-smooth); }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-filter { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }

/* Form Styles */
.form-group { margin-bottom: 1.5rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-family: var(--font-body); }
input, textarea, select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; transition: var(--transition-fast); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(15, 47, 36, 0.1); }
textarea { resize: vertical; min-height: 120px; }
.checkbox-group label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.checkbox-group input { width: auto; }
.error-message { color: #d32f2f; font-size: 0.85rem; margin-top: 0.25rem; display: block; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); }
@media (max-width: 768px) { .contact-wrapper { grid-template-columns: 1fr; } }
