/* ========================================
   Nature Life Fusion Global - Main Styles
   Customer-Facing Website
   ======================================== */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f0e8;
    color: #2d2d2d;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0; transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between; height: 80px;
}
@media (max-width: 768px) { .nav-container { padding: 0 20px; height: 70px; } }

.nav-brand { display: flex; align-items: center; gap: 8px; }
.nav-brand-icon { width: 28px; height: 28px; stroke: #f5f0e8; transition: stroke 0.3s; }
.navbar.scrolled .nav-brand-icon { stroke: #1a3c34; }
.nav-brand-text {
    font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600;
    color: #f5f0e8; transition: color 0.3s;
}
.navbar.scrolled .nav-brand-text { color: #1a3c34; }

.nav-links { display: flex; align-items: center; gap: 32px; }
@media (max-width: 1024px) { .nav-links { display: none; } }

.nav-link {
    font-size: 14px; font-weight: 500; color: rgba(245, 240, 232, 0.8);
    transition: color 0.2s; position: relative;
}
.navbar.scrolled .nav-link { color: rgba(45, 45, 45, 0.8); }
.nav-link:hover { color: #f5f0e8; }
.navbar.scrolled .nav-link:hover { color: #4a7c6f; }

.nav-dashboard {
    display: flex; align-items: center; gap: 4px;
    color: #c8a97e !important;
}
.navbar.scrolled .nav-dashboard { color: #4a7c6f !important; }

.nav-cta {
    display: inline-block; padding: 12px 28px;
    background: #4a7c6f; color: #f5f0e8 !important;
    font-size: 14px; font-weight: 600; border-radius: 30px;
    transition: all 0.3s ease;
}
.nav-cta:hover { transform: scale(1.03); filter: brightness(1.1); }

/* Mobile Nav */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1002; }
@media (max-width: 1024px) { .nav-toggle { display: flex; } }
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: #f5f0e8; transition: all 0.3s;
}
.navbar.scrolled .nav-toggle span { background: #1a3c34; }

.nav-overlay {
    position: fixed; inset: 0; background: #1a3c34; z-index: 999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.nav-overlay.active { opacity: 1; visibility: visible; }
.nav-overlay-close {
    position: absolute; top: 20px; right: 20px;
    font-size: 40px; color: #f5f0e8; line-height: 1;
}
.nav-overlay-links { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.nav-overlay-link {
    font-family: 'Playfair Display', serif; font-size: 24px;
    color: #f5f0e8; transition: color 0.2s;
}
.nav-overlay-link:hover { color: #c8a97e; }
.nav-overlay-cta {
    padding: 14px 36px; background: #4a7c6f; color: #f5f0e8;
    font-size: 16px; font-weight: 600; border-radius: 30px; margin-top: 16px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative; min-height: 100vh;
    background: #1a3c34; overflow: hidden;
    display: flex; align-items: center;
}
.hero-canvas {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; opacity: 0.2;
    z-index: 0;
}
.hero-content {
    position: relative; z-index: 10;
    max-width: 1200px; margin: 0 auto; padding: 120px 40px 80px;
}
@media (max-width: 768px) { .hero-content { padding: 100px 20px 60px; } }

.hero-subtitle {
    font-size: 14px; font-weight: 500; color: #c8a97e;
    letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px;
    opacity: 0; animation: fadeInUp 0.5s 0.2s forwards;
}
.hero-title {
    font-size: clamp(40px, 6vw, 72px); color: #f5f0e8;
    line-height: 1.1; margin-bottom: 24px; max-width: 700px;
    opacity: 0; animation: fadeInUp 0.6s 0.4s forwards;
}
.hero-title span { color: #c8a97e; }
.hero-desc {
    font-size: 18px; color: rgba(245, 240, 232, 0.8);
    max-width: 520px; margin-bottom: 36px; line-height: 1.7;
    opacity: 0; animation: fadeInUp 0.5s 0.6s forwards;
}
.hero-buttons {
    display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
    margin-bottom: 48px;
    opacity: 0; animation: fadeInUp 0.5s 0.8s forwards;
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; background: #4a7c6f; color: #f5f0e8;
    font-size: 14px; font-weight: 600; border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-primary:hover { transform: scale(1.03); filter: brightness(1.1); }
.btn-text {
    display: inline-flex; align-items: center; gap: 6px;
    color: #f5f0e8; font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.btn-text:hover { color: #c8a97e; }
.btn-text svg { transition: transform 0.3s; }
.btn-text:hover svg { transform: translateX(4px); }

.hero-badges {
    display: flex; flex-wrap: wrap; gap: 32px;
    opacity: 0; animation: fadeInUp 0.5s 1s forwards;
}
.hero-badge {
    display: flex; align-items: center; gap: 8px;
    color: rgba(245, 240, 232, 0.7); font-size: 14px; font-weight: 500;
}
.hero-badge svg { width: 20px; height: 20px; color: #c8a97e; }

/* ========================================
   Products Section
   ======================================== */
.section-products { padding: 100px 0; background: #f5f0e8; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
    font-size: 14px; font-weight: 500; color: #c8a97e;
    letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px;
    display: block;
}
.section-title { font-size: clamp(32px, 4vw, 40px); color: #1a3c34; }

.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px;
}
.product-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.product-image { position: relative; aspect-ratio: 1; overflow: hidden; }
.product-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.03); }
.product-category {
    position: absolute; top: 12px; right: 12px;
    background: rgba(26, 60, 52, 0.8); color: #f5f0e8;
    font-size: 11px; padding: 4px 12px; border-radius: 20px;
    backdrop-filter: blur(4px);
}
.product-info { padding: 24px; }
.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.product-rating svg { width: 14px; height: 14px; }
.product-rating .star-filled { fill: #c8a97e; color: #c8a97e; }
.product-rating .star-empty { fill: none; color: #ddd; }
.product-rating span { font-size: 12px; color: #999; margin-left: 4px; }
.product-name { font-family: 'Playfair Display', serif; font-size: 20px; color: #1a3c34; margin-bottom: 6px; }
.product-desc { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 20px; font-weight: 700; color: #1a3c34; }
.btn-add-cart {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; background: #4a7c6f; color: #fff;
    font-size: 13px; font-weight: 600; border-radius: 24px;
    transition: all 0.3s;
}
.btn-add-cart:hover { background: #1a3c34; }

/* ========================================
   About Section
   ======================================== */
.section-about { padding: 100px 0; background: #fff; }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 1024px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-image { position: relative; }
.about-image img { border-radius: 16px; width: 100%; height: 500px; object-fit: cover; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.about-stat {
    position: absolute; bottom: -24px; right: -24px;
    background: #1a3c34; color: #f5f0e8; padding: 24px 32px;
    border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
@media (max-width: 768px) { .about-stat { right: 12px; bottom: -12px; padding: 16px 24px; } }
.about-stat-value { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; }
.about-stat-label { font-size: 13px; color: rgba(245, 240, 232, 0.7); }

.about-content { padding-left: 20px; }
@media (max-width: 1024px) { .about-content { padding-left: 0; } }
.about-title { font-size: clamp(28px, 3.5vw, 36px); color: #1a3c34; margin-bottom: 20px; }
.about-text { color: rgba(45, 45, 45, 0.8); line-height: 1.7; margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.about-stat-item-value { font-family: 'Playfair Display', serif; font-size: 32px; color: #4a7c6f; font-weight: 700; }
.about-stat-item-label { font-size: 13px; color: rgba(45, 45, 45, 0.6); }
.btn-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: #4a7c6f; font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.btn-link:hover { color: #1a3c34; }
.btn-link svg { transition: transform 0.3s; }
.btn-link:hover svg { transform: translateX(4px); }

/* ========================================
   Benefits Section
   ======================================== */
.section-benefits { padding: 100px 0; background: #1a3c34; }
.section-benefits .section-title { color: #f5f0e8; }
.benefits-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px;
}
.benefit-card { text-align: center; }
.benefit-icon {
    width: 64px; height: 64px; border-radius: 50%;
    border: 2px solid rgba(245, 240, 232, 0.3);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; transition: border-color 0.3s;
}
.benefit-card:hover .benefit-icon { border-color: #c8a97e; }
.benefit-icon svg { width: 28px; height: 28px; color: #c8a97e; }
.benefit-title { font-family: 'Playfair Display', serif; font-size: 20px; color: #f5f0e8; margin-bottom: 12px; }
.benefit-desc { font-size: 14px; color: rgba(245, 240, 232, 0.6); line-height: 1.6; max-width: 300px; margin: 0 auto; }

/* ========================================
   Testimonials Section
   ======================================== */
.section-testimonials { padding: 100px 0; background: #f5f0e8; }
.testimonial-card {
    background: #fff; border-radius: 16px; padding: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); text-align: center; position: relative;
}
.testimonial-quote-icon {
    position: absolute; top: 24px; left: 24px;
    width: 40px; height: 40px; color: rgba(200, 169, 126, 0.2);
}
.testimonial-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 24px; }
.testimonial-stars svg { width: 20px; height: 20px; fill: #c8a97e; color: #c8a97e; }
.testimonial-text {
    font-family: 'Playfair Display', serif; font-size: clamp(18px, 2.5vw, 24px);
    color: #1a3c34; font-style: italic; line-height: 1.5; margin-bottom: 32px;
}
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 16px; }
.testimonial-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: #4a7c6f; display: flex; align-items: center; justify-content: center;
    color: #f5f0e8; font-weight: 600; font-size: 20px;
}
.testimonial-author-info { text-align: left; }
.testimonial-author-name { font-weight: 600; color: #1a3c34; }
.testimonial-author-location { font-size: 13px; color: #999; }
.testimonial-nav {
    display: flex; justify-content: center; gap: 16px; margin-top: 32px;
}
.testimonial-nav-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(26, 60, 52, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: #1a3c34; transition: all 0.3s;
}
.testimonial-nav-btn:hover { background: #1a3c34; color: #fff; border-color: #1a3c34; }

/* ========================================
   Packages Section
   ======================================== */
.section-packages { padding: 100px 0; background: #fff; }
.packages-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.package-card {
    background: #f5f0e8; border-radius: 16px; padding: 32px 28px;
    transition: all 0.3s ease; position: relative;
}
.package-card.popular {
    background: #1a3c34; color: #f5f0e8;
    transform: scale(1.05); z-index: 2;
}
@media (max-width: 768px) { .package-card.popular { transform: scale(1); } }
.package-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #c8a97e; color: #1a3c34; font-size: 11px; font-weight: 700;
    padding: 6px 16px; border-radius: 20px; display: flex; align-items: center; gap: 4px;
    white-space: nowrap;
}
.package-name { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 4px; }
.package-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 20px; }
.package-price-amount { font-size: 32px; font-weight: 700; }
.package-price-period { font-size: 13px; opacity: 0.6; }
.package-features { margin-bottom: 24px; }
.package-feature {
    display: flex; align-items: flex-start; gap: 8px;
    margin-bottom: 10px; font-size: 13px;
}
.package-feature svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.package-card.popular .package-feature { color: rgba(245, 240, 232, 0.8); }
.package-card.popular .package-feature svg { color: #c8a97e; }
.package-feature { color: rgba(45, 45, 45, 0.7); }
.package-feature svg { color: #4a7c6f; }
.package-btn {
    display: block; width: 100%; padding: 14px; text-align: center;
    font-size: 14px; font-weight: 600; border-radius: 30px;
    transition: all 0.3s;
}
.package-card.popular .package-btn {
    background: #c8a97e; color: #1a3c34;
}
.package-card.popular .package-btn:hover { background: #f5f0e8; }
.package-card:not(.popular) .package-btn {
    background: #1a3c34; color: #f5f0e8;
}
.package-card:not(.popular) .package-btn:hover { background: #4a7c6f; }

/* ========================================
   CTA Section
   ======================================== */
.section-cta {
    padding: 100px 0; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #1a3c34 0%, #2d5a4e 50%, #4a7c6f 100%);
}
.section-cta::before {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.cta-content { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
.cta-title { font-size: clamp(32px, 4vw, 42px); color: #f5f0e8; margin-bottom: 16px; }
.cta-desc { font-size: 16px; color: rgba(245, 240, 232, 0.8); margin-bottom: 36px; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 18px 40px; background: #c8a97e; color: #1a3c34;
    font-size: 16px; font-weight: 600; border-radius: 30px;
    transition: all 0.3s; margin-bottom: 16px;
}
.cta-btn:hover { background: #f5f0e8; }
.cta-link { color: #f5f0e8; font-size: 14px; transition: color 0.2s; }
.cta-link:hover { color: #c8a97e; }

/* ========================================
   Footer
   ======================================== */
.footer { background: #1a3c34; color: #f5f0e8; padding: 80px 0 0; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .footer-container { padding: 0 20px; } }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
    padding-bottom: 48px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-title {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; margin-bottom: 16px;
}
.footer-brand-icon { width: 24px; height: 24px; stroke: #c8a97e; }
.footer-desc { font-size: 14px; color: rgba(245, 240, 232, 0.7); line-height: 1.6; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social-link {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(245, 240, 232, 0.1);
    display: flex; align-items: center; justify-content: center;
    color: #f5f0e8; transition: all 0.2s;
}
.footer-social-link:hover { background: #4a7c6f; }
.footer-heading {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 20px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    font-size: 14px; color: rgba(245, 240, 232, 0.6);
    transition: color 0.2s; display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: #f5f0e8; }
.footer-links svg { flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid rgba(245, 240, 232, 0.1);
    padding: 24px 0;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; color: rgba(245, 240, 232, 0.5); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 13px; color: rgba(245, 240, 232, 0.5); transition: color 0.2s; }
.footer-bottom-links a:hover { color: #f5f0e8; }

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Scroll Animations */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
    opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Toast Notification */
.toast {
    position: fixed; top: 24px; right: 24px; z-index: 9999;
    padding: 16px 24px; border-radius: 12px; font-size: 14px;
    color: #fff; font-weight: 500;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}
.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }
.toast-info { background: #3b82f6; }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast-close {
    margin-left: 12px; font-size: 18px; line-height: 1;
    cursor: pointer; opacity: 0.7;
}
.toast-close:hover { opacity: 1; }

/* Loader */
.loader {
    width: 40px; height: 40px;
    border: 3px solid rgba(74, 124, 111, 0.2);
    border-top-color: #4a7c6f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
