/* ==========================================================================
   Lumina Greens - Premium Diet & Slimming
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --clr-charcoal: #1C1C1C;
    --clr-charcoal-light: #2A2A2A;
    --clr-forest: #163323;
    --clr-forest-light: #1E452E;
    --clr-lime: #A2E01D;
    --clr-pear: #CDE386;
    --clr-sand: #F4EEDC;
    --clr-white: #FAFAFA;
    --clr-border: #3A3A3A;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --nav-height: 80px;
    --container-w: 1200px;
    --section-pad: 100px 0;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset & Globals --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-charcoal);
    color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
    font-weight: 600;
}

p {
    color: #b0b0b0;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-pad);
}

.dark-section {
    background-color: var(--clr-charcoal-light);
}

.text-center {
    text-align: center;
}

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

.section-header h2 {
    font-size: 3rem;
    color: var(--clr-sand);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    letter-spacing: 0.5px;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--clr-lime);
    color: var(--clr-forest);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--clr-pear);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(162, 224, 29, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-sand);
    border-color: var(--clr-sand);
}

.btn-outline:hover {
    background-color: var(--clr-sand);
    color: var(--clr-charcoal);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--clr-forest-light);
    color: var(--clr-white);
    border-color: var(--clr-forest-light);
}

.btn-secondary:hover {
    background-color: var(--clr-lime);
    color: var(--clr-forest);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: rgba(28, 28, 28, 0);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background-color: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-white);
}

.logo .dot {
    color: var(--clr-lime);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--clr-lime);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-split {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-left {
    padding: 0 4rem 0 calc((100% - 1136px) / 2); /* Align with container */
    z-index: 2;
}

.hero-right {
    position: relative;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(162, 224, 29, 0.1);
    color: var(--clr-lime);
    border-radius: 100px;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(162, 224, 29, 0.2);
}

.hero-title {
    font-size: 5rem;
    color: var(--clr-sand);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 450px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 110%;
    height: 120%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent, black 15%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%);
}

/* --- Parallax Background Elements --- */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.parallax-element {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    filter: blur(2px);
}

/* If we had cutouts, we'd use them here. Generating css shapes for now */
.leaf-1 {
    width: 100px; height: 100px;
    background-color: var(--clr-lime);
    border-radius: 0 100px 0 100px;
    top: 20%; left: 10%;
}

.leaf-2 {
    width: 80px; height: 80px;
    background-color: var(--clr-pear);
    border-radius: 100px 0 100px 0;
    bottom: 30%; right: 15%;
}

/* --- Why Us Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1px) /* Wait, let's fix this */ ;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--clr-charcoal-light);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255,255,255,0.03);
    border-color: rgba(162, 224, 29, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--clr-lime);
    margin-bottom: 1.5rem;
}

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

/* --- Dynamic Menu Section --- */
.menu-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    color: #b0b0b0;
    border: 1px solid var(--clr-border);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--clr-forest);
    color: var(--clr-white);
    border-color: var(--clr-lime);
}

.menu-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.menu-card {
    background-color: var(--clr-charcoal);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
    opacity: 1;
    transform: scale(1);
}

.menu-card.hidden {
    display: none;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(162, 224, 29, 0.3);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    color: var(--clr-white);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--clr-sand);
    margin-bottom: 0.5rem;
}

.card-macros {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--clr-border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-lime);
}

.quick-add {
    width: 100%;
}

/* --- Subscription Pricing --- */
.pricing-toggle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.toggle-label {
    font-weight: 500;
    color: var(--clr-sand);
}

.savings {
    font-size: 0.75rem;
    background: rgba(162, 224, 29, 0.1);
    color: var(--clr-lime);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Switch Toggle CSS */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--clr-charcoal-light);
  transition: .4s;
  border: 1px solid var(--clr-border);
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 3px;
  bottom: 3px;
  background-color: var(--clr-sand);
  transition: .4s;
}
input:checked + .slider {
  background-color: var(--clr-forest);
  border-color: var(--clr-lime);
}
input:checked + .slider:before {
  transform: translateX(26px);
  background-color: var(--clr-lime);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
    gap: 2rem;
    justify-content: center;
}

.pricing-card {
    background-color: var(--clr-charcoal-light);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    position: relative;
    border: 1px solid var(--clr-border);
    transition: var(--transition-smooth);
}

.pricing-card.premium {
    background-color: var(--clr-forest);
    border-color: rgba(162, 224, 29, 0.3);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--clr-lime);
    color: var(--clr-forest);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-header {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.plan-header h3 {
    color: var(--clr-sand);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3.5rem;
    font-family: var(--font-serif);
    color: var(--clr-white);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
}

.currency {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.billing-period {
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.plan-features {
    margin-bottom: 3rem;
}

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features i {
    color: var(--clr-lime);
    font-size: 1.25rem;
}

.plan-features .ph-x-circle {
    color: #666;
}

.plan-btn {
    width: 100%;
}

/* --- Footer --- */
.footer {
    background-color: #111111;
    padding-top: 5rem;
    border-top: 1px solid var(--clr-border);
}

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

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer h4 {
    color: var(--clr-sand);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--clr-lime);
    font-size: 1.125rem;
}

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

.footer-links a:hover, .footer-contact a:hover {
    color: var(--clr-lime);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

/* --- Utilities & Interactivity --- */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--clr-forest);
    color: var(--clr-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 999;
    border: 1px solid rgba(162, 224, 29, 0.3);
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    background-color: var(--clr-lime);
    color: var(--clr-forest);
    transform: translateY(-5px);
}

/* Scroll Reveals */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding-top: calc(var(--nav-height) + 2rem);
    }
    .hero-split {
        width: 100%;
        padding: 0 2rem;
        align-items: center;
        text-align: center;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image-wrapper {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        height: 50vh;
        margin-top: 3rem;
    }
    .hero-image {
        mask-image: none;
        -webkit-mask-image: none;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile behavior */
    }
    .section-header h2 {
        font-size: 2.5rem;
    }
    .pricing-card.premium {
        transform: scale(1);
    }
}
