/**
 * Global CSS Variables and Base Styles
 */

:root {
    /* Colors */
   /* Colors */
    --color-primary: #0c914b;     /* primary-green */
    --color-primary-light: #8dcf4f; /* light-green */
    --color-primary-dark: #006837;  /* dark-green */
    --color-footer-header:  #868686 ; /* footer-header */
    --color-text: #333333;         /* text-dark */
    --color-text-light: #666666;   /* text-light */
    --color-white: #ffffff;        /* white */
    --color-shop-wrapper: #E7F5D9 ; /* shop-wrapper */

    /* Typography */
    --font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-family-heading: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

     /* Base font sizes */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-md: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-xxl: 1.5rem;    /* 24px */
    --font-size-xxxl: 1.75rem;  /* 28px */
    --font-size-xxxxl: 2rem;    /* 32px */
    --font-size-xxxxxl: 2.25rem; /* 36px */
    --font-size-xxxxxxl: 2.5rem; /* 40px */
    --font-size-hero: 3rem;     /* 48px */

    --line-height-text: 1.5;
    --line-height-heading: 1.2;
    --line-height-tight: 1.1;
    /* Spacing */
    --spacing-xxs: 0.25rem;  /* 4px */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 0.75rem;   /* 12px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-xxl: 3rem;     /* 48px */
    --spacing-xxxl: 4rem;    /* 64px */

    /* Borders */
    --border-radius-sm: 0.25rem;  /* 4px */
    --border-radius-md: 0.5rem;   /* 8px */
    --border-radius-lg: 1rem;     /* 16px */
    --border-radius-xl: 1.5rem;   /* 24px */
    --border-radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;

    /* Z-index layers */
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


/* Typography color updates */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    line-height: var(--line-height-tight);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-xxxxl);
}

h2 {
    font-size: var(--font-size-xxxl);
}

h3 {
    font-size: var(--font-size-xxl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-md);
}

p {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover, a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Animations */
/* Animation base class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}

/* Fade in */
.fade-in {
    opacity: 1 !important;
    transform: none !important;
}

/* Slide up */
.slide-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Zoom in */
.zoom-in {
    opacity: 1 !important;
    transform: scale(1) !important;
}
.animate-on-scroll.zoom-in {
    transform: scale(0.95);
}

/* Parallax background (for hero sections) */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    will-change: background-position;
}

/* Sticky navbar effect */
.navbar.scrolled {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: background 0.3s, box-shadow 0.3s, height 0.3s;
    height: 60px;
}