/* ==========================================================================
   UMAMI BRAND DESIGN SYSTEM & GLOBAL STYLES (SHARED)
   ========================================================================== */

:root {
    /* Color Palette */
    --color-primary: #1C352D;          /* Deep Forest Olive */
    --color-primary-light: #2A4B3F;    /* Lighter Olive for accents */
    --color-primary-rgb: 28, 53, 45;
    --color-accent: #D4A373;           /* Warm Ochre / Gold-Sand */
    --color-accent-light: #E9D8A6;     /* Cream Gold */
    --color-accent-dark: #B58455;      /* Darker Gold */
    --color-bg-light: #FDFBF7;         /* Delicate Warm Cream */
    --color-bg-cream: #F5EFEB;         /* Medium Sand-Cream */
    --color-bg-dark: #11201B;          /* Forest Onyx */
    --color-text: #2C3A35;             /* Deep Charcoal Olive */
    --color-text-light: #6B7F77;       /* Soft Sage Grey */
    --color-white: #FFFFFF;
    --color-border: rgba(28, 53, 45, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Outfit', 'Inter', sans-serif;

    /* Shadows */
    --shadow-premium: 0 15px 35px rgba(28, 53, 45, 0.05);
    --shadow-glow: 0 10px 30px rgba(212, 163, 115, 0.2);
    
    /* Layout */
    --header-height: 90px;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
}

/* Reset & General Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-light);
    color: var(--color-text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Typography Defaults */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.15;
}

p {
    line-height: 1.6;
    font-weight: 300;
    color: var(--color-text-light);
}

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

/* Custom Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    opacity: 0;
}

.custom-cursor-follower {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease-out, border-color 0.3s, background-color 0.3s;
    opacity: 0;
}

body.cursor-active .custom-cursor {
    width: 12px;
    height: 12px;
    background-color: var(--color-white);
}

body.cursor-active .custom-cursor-follower {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(212, 163, 115, 0.15);
    border-color: transparent;
}

/* Shared UI Components */
.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-text-light);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

.highlight-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-accent:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-text {
    background: transparent;
    color: var(--color-primary);
    padding: 0.8rem 1rem;
}

.btn-text span {
    position: relative;
}

.btn-text span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60%;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}

.btn-text:hover span::after {
    width: 100%;
}

.btn-text .arrow-icon {
    margin-left: 0.5rem;
    transition: var(--transition-fast);
}

.btn-text:hover .arrow-icon {
    transform: translateX(5px);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   HEADER NAVIGATION (GLASSMORPHIC)
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    height: 75px;
    background-color: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: var(--color-border);
    box-shadow: 0 4px 30px rgba(28, 53, 45, 0.02);
}

.header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--color-primary);
}

.logo-accent {
    color: var(--color-accent);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-light);
    position: relative;
    padding: 0.5rem 0;
}

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

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

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

/* ==========================================================================
   PAGE HEROES & INTROS
   ========================================================================== */

.page-hero {
    padding: 12rem 0 6rem 0;
    background: linear-gradient(180deg, rgba(212, 163, 115, 0.05) 0%, rgba(253, 251, 247, 0) 100%);
    text-align: center;
}

.page-hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-hero .section-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.page-hero .lead-text {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-family: var(--font-serif);
    color: var(--color-primary-light);
    line-height: 1.6;
    font-weight: 400;
}

/* ==========================================================================
   PILLARS INFINITE TICKER (SHARED)
   ========================================================================== */

.pillars-ribbon {
    background-color: var(--color-primary);
    color: var(--color-accent-light);
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ribbon-track {
    display: inline-flex;
    animation: tickerAnimation 35s linear infinite;
}

.ribbon-item {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    padding: 0 3rem;
    display: flex;
    align-items: center;
}

.bullet {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    margin-right: 1.5rem;
    display: inline-block;
}

@keyframes tickerAnimation {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   DYNAMIC DRAWER & MODALS
   ========================================================================== */

.nutrition-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 32, 27, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.nutrition-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nutrition-drawer {
    position: fixed;
    top: 0;
    right: -550px;
    width: 100%;
    max-width: 550px;
    height: 100%;
    background-color: var(--color-bg-light);
    z-index: 1050;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.nutrition-drawer.active {
    right: 0;
}

.close-drawer-btn {
    position: absolute;
    top: 2rem;
    left: -3rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--color-bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    border-radius: 12px 0 0 12px;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.05);
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.close-drawer-btn:hover {
    color: var(--color-accent);
}

.drawer-inner {
    padding: 3.5rem 3rem;
    overflow-y: auto;
    height: 100%;
}

.drawer-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.drawer-header .tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.drawer-header h3 {
    font-size: 2.2rem;
    color: var(--color-primary);
}

/* FDA Style Label Design */
.nutrition-label-container {
    border: 1px solid #000;
    background-color: var(--color-white);
    padding: 1.5rem;
    font-family: var(--font-sans);
    margin-bottom: 2.5rem;
    color: #000;
}

.label-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    border-bottom: 10px solid #000;
    padding-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.label-serving {
    font-size: 0.85rem;
    border-bottom: 1px solid #000;
    padding: 0.4rem 0;
}

.label-calories-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 6px solid #000;
    padding: 0.5rem 0;
}

.label-cal-title {
    font-weight: 800;
    font-size: 1.15rem;
}

.label-cal-val {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 0.9;
}

.label-daily-value-header {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
    border-bottom: 1px solid #000;
    padding: 0.25rem 0;
}

.label-nutrient-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

.label-nutrient-row.sub-row {
    padding-left: 1.25rem;
}

.label-nutrient-row.thick-border {
    border-bottom: 4px solid #000;
}

.label-nutrient-row strong {
    font-weight: 700;
}

.label-pct {
    font-weight: 700;
}

.label-disclaimer {
    font-size: 0.7rem;
    line-height: 1.4;
    padding-top: 0.75rem;
    color: #555;
    border-top: 1px solid #000;
    margin-top: 0.5rem;
}

/* Micronutrient progress bars */
.micros-section {
    margin-bottom: 2.5rem;
}

.micros-section h4 {
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.micro-bar-wrapper {
    margin-bottom: 1rem;
}

.micro-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.micro-name {
    font-weight: 500;
    color: var(--color-text);
}

.micro-val {
    color: var(--color-accent-dark);
    font-weight: 600;
}

.micro-track {
    width: 100%;
    height: 6px;
    background-color: var(--color-bg-cream);
    border-radius: 3px;
    overflow: hidden;
}

.micro-fill {
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 3px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

/* Ingredients */
.ingredients-section h4 {
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    margin-bottom: 2.5rem;
}

.ingredient-pill {
    background-color: var(--color-bg-cream);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid var(--color-border);
}

.drawer-action-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */

.main-footer {
    background-color: #0b1512;
    color: rgba(255, 255, 255, 0.7);
    padding: 6rem 0 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-logo {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--color-white);
    display: block;
    margin-bottom: 1rem;
}

.brand-tagline {
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-links-col h4,
.footer-newsletter h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links-col a:hover {
    color: var(--color-accent);
}

.footer-newsletter p {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.newsletter-form:focus-within {
    border-color: var(--color-accent);
}

.newsletter-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    flex-grow: 1;
}

.newsletter-btn {
    background: transparent;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    padding: 0 0.5rem;
}

.newsletter-success {
    display: none;
    font-size: 0.8rem;
    color: var(--color-accent);
    animation: fadeIn 0.4s ease;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.social-links a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   RESPONSIVENESS (SHARED)
   ========================================================================== */

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }

    .footer-newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    /* Mobile Nav Toggle */
    .mobile-nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg-light);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition-smooth);
        pointer-events: none;
        border-top: 1px solid var(--color-border);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .header-cta {
        display: none;
    }

    .mobile-nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-newsletter {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .nutrition-drawer {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .close-drawer-btn {
        left: auto;
        right: 1.5rem;
        top: 1.5rem;
        border-radius: 50%;
        border: 1px solid var(--color-border);
    }

    .drawer-inner {
        padding: 5rem 2rem 2rem 2rem;
    }
}
