:root {
    --primary: #2d4f3e;
    /* Deep Forest Green */
    --secondary: #e6e0d3;
    /* Organic Cream */
    --accent: #d4a373;
    /* Earthy Gold */
    --text-dark: #1f1f1f;
    --text-light: #f5f5f5;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --chart-bar-bg: #e0e0e0;
    --chart-bar-fill: var(--accent);
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(230, 224, 211, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    min-height: 80vh;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: var(--accent);
    font-style: italic;
}

.hero p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(45, 79, 62, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #233d30;
    box-shadow: 0 6px 20px rgba(45, 79, 62, 0.4);
}

.hero-image-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Featured Section */
.featured-section {
    padding: 5rem 5%;
    background-color: #fff;
    border-radius: 50px 50px 0 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 220px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

/* Placeholders using CSS gradients for now */
.placeholder-1 {
    background-image: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.placeholder-2 {
    background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}

.placeholder-3 {
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}

.card-content {
    padding: 2rem;
}

.tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.8rem;
}


/* Tip Section */
.tip-section {
    padding: 5rem 0;
    /* Remove horizontal padding */
    text-align: center;
    background-color: var(--primary);
    color: var(--text-light);
    overflow: hidden;
    /* Prevent horizontal scrollbar due to carousel */
}

.tip-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    margin-bottom: 3rem;
    /* Spacing for carousel below */
}

.tip-section h2 {
    margin-bottom: 1.5rem;
}



/* Carousel Styles */
.carousel-container {
    height: 250px;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-card {
    position: absolute;
    width: 320px;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: var(--primary);
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    top: 50%;
    transform-origin: center center;
    will-change: transform, opacity;
}

/* FooterStyles */
.footer {
    background-color: #fff;
    padding: 4rem 5% 1rem;
    border-top: 1px solid #eee;
    margin-top: 4rem;
    /* added spacing */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #888;
    font-size: 0.9rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    padding-top: 2rem;
    border-top: 1px solid #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        align-items: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .nav-links {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }


    .footer-links a {
        margin: 0 1rem;
    }
}

/* Legal & Text Pages Wrapper */
.text-page-container {
    background: #fff;
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.text-page-container h1 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.text-page-container h2 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.text-page-container p,
.text-page-container ul {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}

.text-page-container ul {
    margin-left: 2rem;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

.submit-btn {
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: var(--accent);
}

.contact-info-box {
    background: rgba(45, 79, 62, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.contact-email {
    font-weight: 700;
    color: var(--primary);
}

/* --- FRUIT GUIDE SPECIFIC STYLES --- */

.guide-header {
    background: var(--primary);
    color: var(--text-light);
    padding: 8rem 5% 6rem;
    /* Taller header */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guide-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.guide-header .subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    font-style: italic;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.guide-container {
    max-width: 900px;
    /* Reading width */
    margin: -3rem auto 0;
    /* Overlap header */
    padding: 0 5% 4rem;
    position: relative;
    z-index: 10;
}

.guide-intro {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
}

.guide-intro h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.guide-intro p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.guide-section {
    margin-bottom: 5rem;
}

.guide-section h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid rgba(45, 79, 62, 0.1);
    padding-bottom: 1rem;
    position: relative;
}

.guide-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* Steps Timeline Enhanced */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 6px solid var(--accent);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
}

.step-content h3 {
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-size: 1.4rem;
}

.step-content p {
    color: #666;
    line-height: 1.7;
}

/* Chart Styles (Bar Chart) */
.chart-container {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.chart-row {
    margin-bottom: 1.5rem;
}

.chart-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.chart-bar-bg {
    width: 100%;
    height: 12px;
    background-color: #eee;
    border-radius: 6px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 6px;
    width: 0%;
    /* animate or set inline */
    transition: width 1s ease-out;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.benefit-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.benefit-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefit-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Issues Accordion / Cards */
.issue-card {
    background: #fff5f5;
    border-left: 5px solid #e76f51;
    /* Alert Color */
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.issue-card h4 {
    color: #c0392b;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.issue-card p {
    color: #555;
    font-size: 0.95rem;
}

/* Comparison Tool */
#comparison-widget {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

.compare-select {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 400px;
    font-family: inherit;
    cursor: pointer;
    background-color: #f9f9f9;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.compare-table th,
.compare-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.compare-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.compare-table .current-col {
    background: rgba(212, 163, 115, 0.1);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1f1f1f;
    color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 80%;
}

.cookie-banner a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-btn:hover {
    background: #b58b61;
}