/* ============================================================
   DESIGN SYSTEM — BIOLUGA
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --brand-navy: #003366;
    --brand-slate: #415A77;
    --bg-warm-white: #FDFBF7;
    --bg-card: #FFFFFF;

    --zone-a-accent: #7B9E87;
    --zone-a-bg: #FFF8F0;
    --zone-a-bg-alt: #FDFBF7;
    --zone-a-card-bg: #FFFFFF;
    --zone-a-warning: #FFF8E7;

    --zone-b-accent: #1B4F72;
    --zone-b-bg: #F8FAFC;
    --zone-b-bg-alt: #F8FAFC;
    --zone-b-card-bg: #FFFFFF;
    --zone-b-warning: #FFF8E7;
    --zone-b-teal: #2E86C1;

    --zone-c-accent: #C47B2E;
    --zone-c-bg: #FDF6EE;
    --zone-c-bg-alt: #FDFBF7;
    --zone-c-card-bg: #FFFFFF;
    --zone-c-text: #2D1B12;
    --zone-c-brown: #5C3D2E;

    --zone-d-accent: #003366;
    --zone-d-bg: #F8FAFC;
    --zone-d-bg-alt: #FDFBF7;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-brand: 'Comfortaa', 'Segoe UI', sans-serif;

    --container-max: 1280px;
    --section-padding: 80px 0;
    --card-padding: 32px;
    --card-gap: 32px;

    --radius-card: 16px;
    --radius-btn: 50px;
    --radius-input: 8px;

    --shadow-sm: 0 2px 8px rgba(0, 51, 102, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 51, 102, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 51, 102, 0.08);

    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    --text-h1: 56px;
    --text-h2: 36px;
    --text-h3: 24px;
    --text-body: 16px;
    --text-small: 14px;
    --text-tiny: 12px;
}

/* ============================================================
   2. ZONE THEMING
   ============================================================ */
body.zone-a {
    --zone-accent: var(--zone-a-accent);
    --zone-bg: var(--zone-a-bg);
    --zone-text: var(--brand-navy);
}
body.zone-b {
    --zone-accent: var(--zone-b-accent);
    --zone-bg: var(--zone-b-bg);
    --zone-text: var(--brand-navy);
}
body.zone-c {
    --zone-accent: var(--zone-c-accent);
    --zone-bg: var(--zone-c-bg);
    --zone-text: var(--zone-c-text);
}
body.zone-d {
    --zone-accent: var(--zone-d-accent);
    --zone-bg: var(--zone-d-bg);
    --zone-text: var(--brand-navy);
}

/* ============================================================
   3. FONT IMPORTS
   ============================================================ */
@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/playfair-display-v30-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/playfair-display-v30-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-v12-latin-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-v12-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-v12-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Comfortaa';
    src: url('/assets/fonts/comfortaa-v30-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Comfortaa';
    src: url('/assets/fonts/comfortaa-v30-latin-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Comfortaa';
    src: url('/assets/fonts/comfortaa-v30-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Comfortaa';
    src: url('/assets/fonts/comfortaa-v30-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* ============================================================
   4. RESET & BASE TYPOGRAPHY
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    color: var(--brand-navy);
    background-color: var(--bg-warm-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   5. HEADINGS
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-navy);
    font-weight: 600;
    line-height: 1.2;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

/* ============================================================
   6. PARAGRAPHS & BODY TEXT
   ============================================================ */
p {
    font-size: var(--text-body);
    color: var(--brand-slate);
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: var(--zone-accent);
    transition: var(--transition-fast);
}
a:hover { opacity: 0.8; }
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   7. BRAND NAMES
   ============================================================ */
/* CRENA — ALL CAPITALS */
.brand-name-crena {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--zone-a-accent);
}
/* mealuga — all lowercase */
.brand-name-mealuga {
    font-family: var(--font-brand);
    font-weight: 600;
    color: var(--zone-b-accent);
}
.brand-name-mealuga .mealuga-l {
    color: #006633;
}
/* Mindful Snacking */
.brand-name-snacking {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--zone-c-accent);
    letter-spacing: 0.5px;
}

/* ============================================================
   8. CONTAINER & LAYOUT
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============================================================
   9. UTILITY CLASSES
   ============================================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ============================================================
   10. PROFESSIONAL PORTAL BADGE & TOOLTIP
   ============================================================ */
.professional-badge {
    display: inline-block;
    background: rgba(27, 79, 114, 0.12);
    color: #1B4F72;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}
.professional-badge:hover {
    background: rgba(27, 79, 114, 0.2);
}
.professional-tooltip {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
    cursor: help;
}
.professional-tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 280px;
    background: var(--brand-navy);
    color: #FFFFFF;
    text-align: left;
    padding: 12px 16px;
    border-radius: var(--radius-card);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    font-family: var(--font-body);
    position: absolute;
    z-index: 10;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}
.professional-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--brand-navy);
}
.professional-tooltip:hover .professional-tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   11. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --text-h1: 42px;
        --text-h2: 28px;
        --text-h3: 20px;
        --section-padding: 60px 0;
        --card-padding: 24px;
        --card-gap: 24px;
    }
}
@media (max-width: 768px) {
    :root {
        --text-h1: 32px;
        --text-h2: 24px;
        --text-h3: 18px;
        --section-padding: 40px 0;
        --card-padding: 20px;
        --card-gap: 16px;
    }
    .professional-tooltip-text {
        width: 220px;
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    :root {
        --text-h1: 28px;
        --text-h2: 20px;
        --text-h3: 16px;
    }
}