/* Variables & Root Elements */
:root {
    --primary: #1b4332;
    --primary-light: #2d6a4f;
    --primary-dark: #081c15;
    --accent: #d4af37; /* Warm Gold */
    --accent-light: #f4e3b1;
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utility */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    display: inline-block;
    margin-bottom: 12px;
}

.section-subtitle.light {
    color: var(--accent);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Header & Navigation */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar-header.scrolled {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}

.logo-accent {
    color: var(--primary-light);
    font-family: var(--font-sans);
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* Scrolled Nav Link Overrides */
.navbar-header.scrolled .nav-link {
    color: var(--text-main);
}

.navbar-header.scrolled .nav-link::after {
    background-color: var(--primary);
}

.navbar-header.scrolled .nav-link:hover,
.navbar-header.scrolled .nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--bg-white);
    margin: 5px 0;
    transition: var(--transition);
}

.navbar-header.scrolled .mobile-menu-toggle .bar {
    background-color: var(--primary-dark);
}

/* Mobile Nav Menu */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-120%);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-link {
    font-size: 18px;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-light);
}

.mobile-btn {
    margin-top: 8px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('hero-cashew.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--bg-white);
    padding-top: 80px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 28, 21, 0.9) 30%, rgba(27, 67, 50, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: inline-block;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 54px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    font-weight: 300;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 1.2s ease;
}

/* Stats Section */
.stats-section {
    background-color: var(--bg-light);
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background-color: var(--bg-white);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.stat-icon {
    font-size: 28px;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    height: 500px;
}

.about-main-img {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.badge-text {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-content {
    padding-left: 20px;
}

.about-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    font-size: 18px;
    color: var(--primary-light);
}

.feature-text {
    font-weight: 500;
    color: var(--text-main);
}

/* Products Section */
.products-section {
    background-color: var(--bg-light);
    padding: 100px 0;
}

/* Tabs Styling */
.products-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.tab-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27, 67, 50, 0.2);
}

.product-img-holder {
    height: 200px;
    position: relative;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cashew Grading Real Images mapping */
.ww180 { background-image: url('images/1.png'); }
.ww210 { background-image: url('images/2.png'); }
.ww240 { background-image: url('images/3.png'); }
.ww320 { background-image: url('images/4.png'); }
.ww450 { background-image: url('images/5.png'); }

.ws-grade { background-image: url('images/6.png'); }
.lwp-grade { background-image: url('images/7.png'); }
.lp-grade { background-image: url('images/8.png'); }
.sp-grade { background-image: url('images/9.png'); }
.bb-grade { background-image: url('images/10.png'); }

.salted-roasted { background-image: url('images/11.png'); }
.wasabi-coated { background-image: url('images/12.png'); }
.cheese-coated { background-image: url('images/13.png'); }
.chocolate-coated { background-image: url('images/14.png'); }
.sesame-coated { background-image: url('images/15.png'); }
.ginger-coated { background-image: url('images/16.png'); }
.garlic-chili-coated { background-image: url('images/17.png'); }

.product-overlay-icon {
    font-size: 36px;
    color: var(--accent-light);
    opacity: 0.8;
}

.product-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-specs {
    list-style: none;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.product-specs li {
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.product-specs li:last-child {
    margin-bottom: 0;
}

.product-specs li span {
    font-weight: 600;
    color: var(--primary-light);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quality Control / Process Section */
.quality-section {
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0 auto;
    padding: 0 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--primary);
    border: 4px solid var(--bg-white);
    border-radius: 50%;
    z-index: 1;
    top: 30px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 24px 30px;
    background-color: var(--bg-light);
    position: relative;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.timeline-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-dark);
    padding: 60px 0 30px 0;
    color: var(--bg-white);
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-icon {
    font-size: 20px;
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail-text span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.contact-detail-text a {
    font-size: 18px;
    font-weight: 600;
}

.contact-detail-text a:hover {
    color: var(--accent);
}

.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 28px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

/* Footer */
.footer {
    background-color: #04100c;
    color: var(--bg-white);
    padding: 50px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    color: var(--bg-white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.footer-links-group a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links-group a:hover {
    color: var(--bg-white);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 28, 21, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.open .modal-box {
    transform: scale(1);
}

.modal-icon {
    font-size: 60px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.modal-message {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .about-grid, .contact-box {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-image-wrapper {
        height: 400px;
    }
    .about-badge {
        right: 0;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 40px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-dot {
        left: 23px;
        right: auto;
    }
    .timeline-item:nth-child(even) .timeline-dot {
        left: 23px;
    }
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form-wrapper {
        padding: 24px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
