/*
========================================
   ON GREENS™ - Global Stylesheet (v1.0)
   Shared Visual Environment
========================================
*/

/* 1. Definitions & Palette (image_0.png references) */
:root {
    --color-green: #2B4E38; /* Forest Green, image_0.png */
    --color-beige: #F9F7EF; /* Soft, Warm Beige, image_0.png */
    --color-white: #FFFFFF;
    --color-text: #333333;

    /* Humanist, Elegant Typographic Rules */
    --font-header: 'Libre Baskerville', serif; /* Sophisticated Script, image_0.png feel */
    --font-body: 'Lora', serif; /* Clean, Readable Sans-Serif/Serif Hybrid */

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --max-width: 1200px;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05); /* Soft diffused light shadow */
}

/* 2. Base Reset & Structure */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-beige);
    line-height: 1.8; /* Breathable, consistent with Memos */
    overflow-x: hidden;
}

/* 3. Global Typography */
h1, h2, h3, h4 {
    font-family: var(--font-header);
    color: var(--color-green);
    font-weight: normal; /* Elegant, not bulky */
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.8rem; line-height: 1.2; } /* Major headers like image_8.png */
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem; /* Highly readable, image_8.png */
    color: var(--color-text);
}

/* 4. Utility Layout Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

.section {
    padding: var(--spacing-lg) 0;
}

/* 5. Sticky Global Header (Minimalist Menu) */
.global-header {
    background-color: var(--color-white); /* image_19.png header */
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
    color: var(--color-green);
    font-family: var(--font-header);
    font-size: 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
}

.global-nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.global-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.global-nav a:hover {
    color: var(--color-green);
}

/* 6. Button / Call to Action */
.btn-on-greens {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--color-green);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: 2px solid var(--color-green);
}

.btn-on-greens:hover {
    background-color: transparent;
    color: var(--color-green);
}

/* 7. Bottom-of-Page Sequential Linking */
.sequential-link {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-top: 1px solid #EAEAEA;
    text-align: center;
}

.sequential-link a {
    color: var(--color-green);
    font-family: var(--font-header);
    font-size: 1.3rem;
    text-decoration: none;
    font-style: italic; /* Consistency with script feel */
    transition: color 0.3s ease;
}

.sequential-link a:hover {
    color: #4A6E53; /* Subtle Lighter Green Hover */
}

/* ========================================
   8. Universal Mobile Responsiveness Patch
========================================
*/
@media screen and (max-width: 900px) {
    /* Reset Containers & Padding */
    .container, .section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Force Single Column Layouts */
    .functional-series,
    .standards-grid,
    .lifestyle-panels,
    .nutrition-panels,
    .expressions-container,
    .action-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 2.5rem !important;
    }

    /* Constrain Panel & Card Widths */
    .functional-product,
    .standard-card,
    .nutrition-panel,
    .expression-item,
    .product-image-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Fluid Typography for Smaller Screens */
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.2rem !important; }
    
    .product-hero h1 { font-size: 1.6rem !important; }
    .product-hero h2 { font-size: 1.1rem !important; }
    .collection-title { font-size: 0.95rem !important; }

    /* Adjust Hero & Intro Margins */
    .product-hero,
    .functional-intro,
    .nutrition-intro,
    .science-intro,
    .lifestyle-intro {
        margin-bottom: 3rem !important;
    }
    
    .category-divider {
        margin-top: 3rem !important;
        padding-top: 2rem !important;
    }

    /* Ensure Images Scale */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}