/* Amai Bliss Foods - Main Stylesheet */

/* LENIS SMOOTH SCROLL RESET */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* --- 1. CORE VARIABLES --- */
:root {
    --color-forest: #1A4D2E;
    --color-gold: #D4A017;
    --color-sand: #F5F1E8;
    --color-charcoal: #1a1a1a;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

body {
    background-color: var(--color-sand);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    overflow-x: hidden; 
}

/* --- 2. TYPOGRAPHY & MASKS --- */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; }

.text-mask { overflow: hidden; display: block; }
.text-mask span { display: block; transform: translateY(110%); transition: transform 1.2s var(--ease-out); }
.text-mask.active span { transform: translateY(0); }

/* --- 3. COMPONENT: NAV & MOBILE MENU --- */
nav {
    position: fixed; top: 0; width: 100%; padding: 2rem 3rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; mix-blend-mode: difference; color: #fff;
}

.logo { font-weight: 700; font-size: 1.5rem; letter-spacing: -1px; position: relative; z-index: 102; }
.menu-btn { 
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; 
    cursor: pointer; position: relative; z-index: 102; 
}

/* Full Screen Menu Overlay */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--color-forest); color: var(--color-sand);
    z-index: 101;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem;
    opacity: 0; pointer-events: none; /* Hidden by default */
    transition: opacity 0.5s ease;
}

.menu-overlay.open { opacity: 1; pointer-events: all; }

.menu-close {
    position: absolute; top: 2rem; right: 3rem;
    font-size: 3rem; color: var(--color-sand);
    cursor: pointer; z-index: 103;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}

.menu-close:hover { color: var(--color-gold); }

.menu-link {
    font-family: var(--font-head); font-size: 3rem; 
    color: var(--color-sand); text-decoration: none;
    opacity: 0; transform: translateY(20px); transition: 0.5s;
}

.menu-overlay.open .menu-link { opacity: 1; transform: translateY(0); }

/* --- 4. SECTION: HERO --- */
.hero {
    height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--color-sand);
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%; 
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1542838132-92c53300491e?q=80&w=2574&auto=format&fit=crop');
    background-size: cover; background-position: center; z-index: 1;
}
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero h1 { font-size: 6vw; color: var(--color-sand); }
.hero p { font-size: 1.2rem; margin-top: 1rem; opacity: 0; animation: fadeIn 1s 1s forwards; }
@keyframes fadeIn { to { opacity: 0.8; } }

/* --- 5. SECTION: BRAND STORY --- */
.brand-story {
    padding: 8rem 2rem; max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start;
}
.story-sticky { position: sticky; top: 20vh; }
.story-sticky h2 { font-size: 3.5rem; color: var(--color-forest); line-height: 1.1; margin-bottom: 2rem; }
.story-sticky .divider { width: 60px; height: 4px; background-color: var(--color-gold); margin-top: 1rem; }
.story-content p { font-size: 1.25rem; line-height: 1.8; color: var(--color-charcoal); margin-bottom: 2.5rem; opacity: 0.9; }
.story-content strong { color: var(--color-forest); font-weight: 600; }

/* --- 6. SECTION: PARTNERS --- */
.partners-section {
    background-color: var(--color-forest);
    color: var(--color-sand);
    padding: 6rem 2rem;
    text-align: center;
}

.partners-content {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-content h2 {
    font-size: 3rem;
    color: var(--color-sand);
    margin-bottom: 1rem;
}

.partners-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    align-items: center;
    justify-items: center;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s var(--ease-out);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 120px;
}

.partner-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.partner-logo {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s var(--ease-out);
}

.partner-item:hover .partner-logo {
    opacity: 1;
    transform: scale(1.05);
}

/* --- 7. SECTION: EVENTS --- */
.events-section {
    background-color: var(--color-sand);
    padding: 8rem 2rem;
    text-align: center;
}

.events-content {
    max-width: 1200px;
    margin: 0 auto;
}

.events-content h2 {
    font-size: 3rem;
    color: var(--color-forest);
    margin-bottom: 1rem;
}

.events-subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-charcoal);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    text-align: left;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s var(--ease-out);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.event-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-out);
}

.event-card:hover .event-img {
    transform: scale(1.05);
}

.event-content {
    padding: 2rem;
}

.event-title {
    font-size: 1.5rem;
    color: var(--color-forest);
    margin-bottom: 0.5rem;
    font-family: var(--font-head);
}

.event-date {
    font-size: 0.9rem;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 1rem;
}

.event-excerpt {
    color: var(--color-charcoal);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.read-more-btn {
    background-color: var(--color-forest);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    font-family: var(--font-body);
}

.read-more-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-charcoal);
}

/* Modal Styles */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.event-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 100vh;
    background-color: white;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    z-index: 201;
    -webkit-overflow-scrolling: touch;
    outline: none;
}

.event-modal.active .modal-content {
    transform: translateX(0);
}

.modal-header {
    position: sticky;
    top: 0;
    background-color: white;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    z-index: 202;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-charcoal);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-gold);
}

.modal-body {
    padding: 2rem;
}

.modal-body h3 {
    font-size: 2rem;
    color: var(--color-forest);
    margin-bottom: 1rem;
    font-family: var(--font-head);
}

.modal-body .modal-date {
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 2rem;
}

.modal-body p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--color-charcoal);
}

.modal-body img {
    width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
}

/* --- 9. FOOTER SECTION --- */
.footer-section {
    background-color: var(--color-charcoal);
    color: var(--color-sand);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-family: var(--font-head);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-badge {
    height: 50px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-badge:hover {
    opacity: 1;
}

.footer-links h4,
.footer-contact h4,
.footer-partners h4 {
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-sand);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-gold);
}

.footer-contact p {
    margin-bottom: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-partner-logos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.footer-partner-logo {
    max-height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-partner-logo:hover {
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-credits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.nexus-link {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nexus-link:hover {
    color: var(--color-sand);
}

/* Logo hover effect */
.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
    position: relative;
    z-index: 102;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

/* --- 8. SECTION: HORIZONTAL SCROLL --- */
.horizontal-scroll-section { height: 400vh; position: relative; }
.sticky-wrapper { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; background-color: var(--color-forest); color: var(--color-sand); }
.horizontal-strip { display: flex; gap: 5vw; padding-left: 10vw; width: max-content; will-change: transform; height: 100%; align-items: center; }
.card { width: 70vw; min-width: 600px; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; opacity: 0.4; transition: opacity 0.5s; }
.card.active { opacity: 1; }
.card-img-wrapper { width: 100%; height: 60vh; background-color: rgba(0,0,0,0.2); border-radius: 8px; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-text h3 { font-size: 4rem; color: var(--color-gold); margin-bottom: 1rem; }
.card-text p { font-size: 1.1rem; opacity: 0.8; max-width: 400px; }

/* --- 7. SECTION: CONTACT & TRUST --- */
.contact-section {
    background-color: var(--color-sand);
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-info h2 { font-size: 3rem; color: var(--color-forest); margin-bottom: 2rem; }
.contact-info p { margin-bottom: 2rem; font-size: 1.1rem; }

.contact-brand { margin-bottom: 2rem; }
.contact-logo { height: 4rem; width: auto; opacity: 0.9; }

.trust-badge-area {
    margin-top: 4rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}
.trust-badge-label { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 1rem; display: block; color: var(--color-charcoal); }
.badges { display: flex; gap: 2rem; align-items: center; }
/* TODO: Replace with actual brand assets */
.badge-img { height: 80px; opacity: 1; transition: 0.3s; }
.badge-img:hover { opacity: 1; }

/* Form Styles */
.contact-form { background: white; padding: 3rem; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; }
.form-input, .form-select { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 4px; font-family: var(--font-body); font-size: 1rem; }
.form-input:focus, .form-select:focus { border-color: var(--color-forest); outline: none; }
textarea.form-input { resize: vertical; min-height: 120px; }
.btn-submit { width: 100%; background-color: var(--color-forest); color: white; padding: 1rem; border: none; font-weight: 600; cursor: pointer; transition: 0.3s; border-radius: 4px; }
.btn-submit:hover { background-color: var(--color-gold); color: var(--color-charcoal); }

/* --- 8. MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 15vw; }
    .brand-story { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 2rem; }
    .story-sticky { position: relative; top: 0; }
    .story-sticky h2 { font-size: 2.5rem; }

    .horizontal-scroll-section { height: auto; }
    .sticky-wrapper { position: relative; height: auto; display: block; }
    .horizontal-strip { display: block; padding: 4rem 1.5rem; width: 100%; transform: none !important; }
    .card { width: 100%; min-width: 0; display: flex; flex-direction: column-reverse; gap: 2rem; margin-bottom: 6rem; opacity: 1; }
    .card-img-wrapper { height: 40vh; }
    .card-text h3 { font-size: 2.5rem; }

    .contact-section { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }
    .contact-logo { height: 3rem; }
    .menu-link { font-size: 2rem; }
    .menu-close { top: 1.5rem; right: 1.5rem; font-size: 2.5rem; }
    
    .partners-content h2 { font-size: 2.5rem; }
    .partners-grid { grid-template-columns: 1fr; gap: 2rem; }
    .partner-item { min-height: 100px; padding: 1.5rem; }
    .partner-logo { max-width: 100px; max-height: 60px; }
    
    .events-content h2 { font-size: 2.5rem; }
    .events-grid { grid-template-columns: 1fr; gap: 2rem; }
    .event-image { height: 200px; }
    .modal-content { width: 100%; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-credits { flex-direction: column; gap: 1rem; text-align: center; }
}