/* CSS Reset & Variables */
:root {
    --primary-color: #1E4620;
    --primary-light: #3D6A40;
    --primary-dark: #122C14;
    --secondary-color: #F4B41A;
    --secondary-light: #FCD667;
    --secondary-dark: #C68E07;
    --accent-color: #D32F2F;
    --accent-light: #EF5350;
    --bg-cream: #FAF9F6;
    --bg-sage: #F0F4F1;
    --text-dark: #2C3E2E;
    --text-muted: #627264;
    --border-color: #E2E8E3;
    --white: #ffffff;
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --container-width: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--primary-dark);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-headings);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 15px 36px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Common Section Layouts */
section {
    padding: 100px 0;
    position: relative;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    margin-bottom: 60px;
}

.subtitle {
    display: inline-block;
    color: var(--primary-light);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 16px auto 0;
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

.text-danger {
    color: var(--accent-color);
}

.text-muted {
    color: var(--text-muted);
}

.font-bold {
    font-weight: 700;
}

.text-accent {
    color: var(--accent-color);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 180, 26, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(244, 180, 26, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 180, 26, 0);
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Scroll Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* 1. Top Promo Banner */
.top-banner {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.badge-live {
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

.banner-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-headings);
    color: var(--secondary-color);
    font-weight: 700;
}

.time-block {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 28px;
    text-align: center;
    display: inline-block;
}

/* 2. Header & Navigation */
.main-header {
    background-color: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-leaf {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.logo-text strong {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-header-cta {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
}

.btn-header-cta::after {
    display: none;
}

.btn-header-cta:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary-dark);
    transition: var(--transition-smooth);
}

/* 3. Hero Section */
.hero-section {
    background-color: var(--bg-sage);
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

/* Interactive Gallery */
.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    background-color: var(--white);
}

.main-gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.main-gallery-image.active {
    display: block;
}

/* Queen Badge Bubble from wireframe */
.queen-badge-bubble {
    position: absolute;
    bottom: 22%;
    left: 6%;
    background-color: var(--white);
    border: 2px dashed var(--primary-color);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 5;
    animation: pulse 2s infinite;
}

.queen-badge-bubble span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.queen-badge-bubble strong {
    font-family: var(--font-headings);
    font-size: 1rem;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.1;
}

/* Image text overlay: "TIÊN PHONG CANH TÁC..." */
.image-text-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
    z-index: 4;
}

.image-text-overlay h2 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

.image-text-overlay h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

/* Image badges row at the bottom of the image */
.image-badges-row {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(30, 70, 32, 0.9);
    padding: 10px 5px;
    z-index: 4;
}

.img-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-headings);
}

.img-badge i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.thumb-item {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    opacity: 0.7;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover, .thumb-item.active {
    border-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.05);
}

/* Spec info */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tagline {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.product-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
}

.rating-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 1rem;
}

.stars {
    color: var(--secondary-color);
    display: flex;
    gap: 2px;
}

.rating-value {
    font-weight: 700;
    color: var(--text-dark);
}

.divider {
    color: var(--border-color);
}

.product-description {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.badges-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.badge-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.badge-logo {
    width: 20px;
    height: auto;
}

.badge-icon-eu {
    color: #003399; /* EU Blue */
    font-size: 1.1rem;
}

.badge-icon-clean {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 10px;
}

.price-amount {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.price-unit {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.promo-box-red {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.promo-box-title {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.promo-box-desc {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.promo-box-red-link {
    display: block;
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-top: 15px;
    animation: pulse-red 2s infinite ease-in-out;
}

.promo-box-red-link:hover .promo-box-red {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background-color: var(--accent-light);
}

/* 4. Philosophy Section */
.philosophy-section {
    background-color: var(--white);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.philosophy-card {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.philosophy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.philosophy-card:hover::before {
    transform: scaleX(1);
}

.card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background-color: rgba(30, 70, 32, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.philosophy-card:hover .card-icon-box {
    background-color: var(--primary-color);
    color: var(--white);
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 14px;
    font-weight: 700;
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 5. Timeline Journey */
.journey-section {
    background-color: var(--bg-sage);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px;
    margin-bottom: 60px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.timeline-item.left .timeline-dot {
    right: -10px;
}

.timeline-item.right .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--white);
    padding: 24px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 6. Certificates Section */
.certificates-section {
    background-color: var(--white);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.cert-card {
    background: var(--bg-cream);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.cert-image-box {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin-bottom: 24px;
    background-color: var(--white);
    border: 8px solid #d4c5b3; /* Wood outline effect */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 70, 32, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.overlay-btn {
    background: var(--white);
    color: var(--primary-dark);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.cert-image-box:hover .cert-overlay {
    opacity: 1;
}

.cert-image-box:hover .overlay-btn {
    transform: translateY(0);
}

.cert-image-box:hover .cert-img {
    transform: scale(1.05);
}

.cert-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.cert-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 44, 20, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-content-box {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.lightbox-img {
    max-height: 80vh;
    max-width: 100%;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
    color: var(--white);
    font-family: var(--font-headings);
    font-weight: 600;
    text-align: center;
}

/* 6b. Farm Care Section (New Section) */
.farm-care-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.farm-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-card.vertical {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

.video-card.vertical .video-container {
    aspect-ratio: 9 / 16;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.anbio-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* 3 small cards */
.care-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.care-step-card {
    background: var(--bg-cream);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: var(--transition-smooth);
}

.care-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.care-step-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: var(--white);
}

.care-step-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.care-step-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Staggered detailed tasks */
.task-details-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.task-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.task-row.reverse .task-image-box {
    grid-column: 2;
}

.task-row.reverse .task-text-box {
    grid-column: 1;
    grid-row: 1;
}

.task-image-box {
    aspect-ratio: 4 / 3;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.task-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-text-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 12px;
}

.task-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.task-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Green Philosophy Banner Box */
.anbio-philosophy-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.6;
    margin-top: 80px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.anbio-philosophy-banner::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
}

.anbio-philosophy-banner p {
    position: relative;
    z-index: 1;
}

/* 7. Features Circular Section */
.features-section {
    background-color: var(--bg-cream);
}

.features-circular-layout {
    display: grid;
    grid-template-columns: 1fr 280px 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    align-items: start; /* Align tops of items in each row horizontally */
    margin-top: 60px;
}

.features-side {
    display: contents; /* Flattens the DOM inside the grid layout to allow side-by-side alignment */
}

.left-side .feature-item {
    flex-direction: row-reverse;
    text-align: right;
}

.right-side .feature-item {
    flex-direction: row;
    text-align: left;
}

/* Explicit placements for features to align horizontally row by row */
.left-side .feature-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.left-side .feature-item:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.right-side .feature-item:nth-child(1) {
    grid-column: 3;
    grid-row: 1;
}

.right-side .feature-item:nth-child(2) {
    grid-column: 3;
    grid-row: 2;
}

.features-center {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    justify-content: center;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.feature-text h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1rem;
}

.features-center {
    display: flex;
    justify-content: center;
}

.center-circle {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 3px dashed var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateDashed 60s linear infinite;
    padding: 20px;
}

@keyframes rotateDashed {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.center-img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    animation: rotateDashedReverse 60s linear infinite; /* Keeps image static while dashed circle rotates */
}

@keyframes rotateDashedReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* 8. Order Section & Form */
.order-section {
    background-color: var(--primary-dark);
    color: var(--white);
    position: relative;
}

.order-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(30, 70, 32, 0.4) 0%, rgba(18, 44, 20, 0.9) 90%);
    z-index: 0;
}

.order-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge-promo-tag {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--accent-color);
    color: var(--white);
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.order-info-title {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.order-info-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
}

.pricing-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.price-val {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--secondary-color);
}

.trust-indicators {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.trust-item i {
    color: var(--secondary-color);
}

/* Order Form Card */
.order-form-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    color: var(--text-dark);
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.6rem;
    margin-bottom: 6px;
    font-weight: 800;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

#pineapple-order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1rem;
}

.input-wrapper input, .input-wrapper textarea {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-cream);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    outline: none;
}

.input-wrapper textarea {
    padding-left: 42px;
    resize: none;
}

.input-wrapper input:focus, .input-wrapper textarea:focus {
    border-color: var(--primary-light);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(30, 70, 32, 0.1);
}

/* Validation styles */
.form-group.invalid input {
    border-color: var(--accent-color);
    background-color: rgba(211, 47, 47, 0.02);
}

.error-message {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    display: none;
    margin-top: 4px;
}

.form-group.invalid .error-message {
    display: block;
}

#btn-submit-order .btn-spinner {
    display: none;
}

#btn-submit-order.loading .btn-text {
    display: none;
}

#btn-submit-order.loading .btn-spinner {
    display: inline-block;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 44, 20, 0.85);
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.success-modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon-box {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.success-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.success-message {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
}

/* 9. Footer */
.main-footer {
    background-color: #FAF9F6;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-intro-text {
    color: var(--text-muted);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-sage);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links-list, .footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 1rem;
}

.footer-links-list a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-links-list a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-contact-list li {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
}

.footer-contact-list li i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 1rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet Layout (max-width: 1024px) */
@media (max-width: 1024px) {
    html {
        font-size: 16px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .philosophy-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .features-circular-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 30px;
    }

    .features-side {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .features-center {
        grid-column: 1;
        grid-row: 1; /* Puts center image at the top of grid in vertical layout */
    }

    .left-side {
        text-align: left;
    }

    .left-side .feature-item {
        flex-direction: row;
        text-align: left;
    }

    .right-side .feature-item {
        flex-direction: row;
        text-align: left;
    }

    .order-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Responsive Farm Care Section */
    .farm-video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .care-steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .task-row, .task-row.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .task-row.reverse .task-image-box {
        grid-column: unset;
    }

    .task-row.reverse .task-text-box {
        grid-column: unset;
        grid-row: unset;
    }

    .anbio-philosophy-banner {
        font-size: 1.15rem;
        padding: 30px 20px;
        margin-top: 50px;
    }
}

/* Small Tablet / Large Mobile (max-width: 768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Mobile Header Navigation */
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px;
        gap: 24px;
        transition: var(--transition-smooth);
        z-index: 1000;
    }

    .nav-menu.open {
        right: 0;
    }

    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Gallery thumbnail adjust */
    .thumbnail-list {
        gap: 8px;
    }

    /* Philosophy cards vertical */
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Timeline single column */
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 45px;
        padding-right: 0;
    }

    .timeline-item.left {
        text-align: left;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 10px;
        right: auto;
    }

    /* Certificates single column */
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Form group stack */
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer vertical stack */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .top-banner {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
}

/* Extra small mobile (max-width: 480px) */
@media (max-width: 480px) {

    .product-title {
        font-size: 1.8rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .order-form-card {
        padding: 24px;
    }
}

/* --- Partners Ticker Section --- */
.partners-section {
    padding: 60px 0;
    background-color: #f9fbf9;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.partners-ticker-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

/* Gradient overlays to fade out the edges */
.partners-ticker-wrapper::before,
.partners-ticker-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f9fbf9 0%, transparent 100%);
}

.partners-ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f9fbf9 0%, transparent 100%);
}

.partners-ticker {
    display: flex;
    width: max-content;
    animation: ticker-slide 25s linear infinite;
}



.partner-item {
    flex: 0 0 auto;
    width: 280px;
    margin: 0 15px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.partner-item span {
    display: block;
    padding: 12px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@keyframes ticker-slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-310px * 4)); /* Width (280) + Margin (30) * 4 items = 1240px */
    }
}

/* Adjustments for responsive */
@media (max-width: 768px) {
    .partners-section {
        padding: 40px 0;
    }
    .partner-item {
        width: 220px;
    }
    @keyframes ticker-slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-250px * 4)); /* Width (220) + Margin (30) * 4 items = 1000px */
        }
    }
}

/* Partners Directory & Table */
.partners-directory {
    max-width: 900px;
    margin: 50px auto 0 auto;
    padding: 0 15px;
}

.directory-search-box {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.directory-search-box .search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

.directory-search-box input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-dark);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.directory-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 70, 32, 0.1);
}

#partner-search-clear {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 2;
}

#partner-search-clear:hover {
    color: var(--accent-color);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    background-color: var(--white);
}

.partners-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: var(--font-body);
}

.partners-table th, 
.partners-table td {
    padding: 18px 24px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.partners-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.partners-table td {
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.partners-table tr:last-child td {
    border-bottom: none;
}

.partners-table tr:nth-child(even) td {
    background-color: rgba(240, 244, 241, 0.4);
}

.partners-table tr:hover td {
    background-color: rgba(244, 180, 26, 0.05);
}

.partner-name {
    font-weight: 700;
    color: var(--primary-dark);
    width: 30%;
}

.partner-address {
    color: var(--text-muted);
    width: 70%;
}

.no-results-row td {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 30px !important;
}

@media (max-width: 768px) {
    .partners-directory {
        margin-top: 35px;
    }
    .partners-table th, 
    .partners-table td {
        padding: 14px 16px;
    }
    .partner-name {
        width: 35%;
    }
    .partner-address {
        width: 65%;
    }
}

/* ==========================================
   Floating CTA Button Style
   ========================================== */
.floating-cta-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--primary-dark);
    padding: 16px 28px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 10px 25px rgba(244, 180, 26, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s, box-shadow 0.3s;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
}

.floating-cta-btn:hover {
    transform: translateY(-5px) scale(1.03);
    color: var(--primary-dark);
    box-shadow: 0 15px 30px rgba(244, 180, 26, 0.6);
}

.floating-cta-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.floating-cta-btn.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
}

/* Floating CTA Responsive styling */
@media (max-width: 768px) {
    .floating-cta-btn {
        bottom: 20px;
        right: 20px;
        left: 20px;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
        box-shadow: 0 8px 20px rgba(244, 180, 26, 0.3);
    }
}

