/* Global Styles for Forever Dental and Skin */
/* CSS Variables, Resets, and Base Styles */

/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #D4AF37;
    --color-primary-light: #F4C542;
    --color-gold: #C5A046;
    --color-gold-on-light: #7a6520;
    --color-sage: #D1E4D6;
    --color-white: #FFFFFF;
    --color-bg-dark: #1A1A1C;
    --color-bg-medium: #242426;
    --color-bg-darker: #0A0A0C;
    --color-text-light: #FFFFFF;
    --color-text-medium: #E0E0E0;
    --color-text-muted: #B0B0B0;
    --color-text-dark: #808080;
    --color-text-body: #4a4a4a;

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Typography - Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Typography Scale - Consistent rem-based sizes
       Base: 16px (browser default)
       Scale ratio: ~1.25 (Major Third) */
    --text-hero: 4rem;        /* 64px - Hero headlines */
    --text-display: 3.125rem; /* 50px - Section titles (H2) */
    --text-h1: 2.5rem;        /* 40px - Page titles */
    --text-h2: 1.875rem;      /* 30px - Section subtitles (H3) */
    --text-h3: 1.5rem;        /* 24px - Card titles (H4) */
    --text-h4: 1.25rem;       /* 20px - Small headings */
    --text-xl: 1.125rem;      /* 18px - Large body, step titles */
    --text-lg: 1rem;          /* 16px - Body text */
    --text-base: 0.875rem;    /* 14px - Default small text */
    --text-sm: 0.8125rem;     /* 13px - Secondary text */
    --text-xs: 0.75rem;       /* 12px - Labels, captions */
    --text-2xs: 0.6875rem;    /* 11px - Fine print */
    --text-3xs: 0.625rem;     /* 10px - Micro text */

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50px;

    /* Shadows */
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 15px 40px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Section Spacing */
    --section-padding-y: 50px;
    --section-padding-x: 2rem;
}

/* Mobile CSS Variables */
@media (max-width: 768px) {
    :root {
        --section-padding-y: 35px;
        --section-padding-x: 1rem;
    }
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-lg); /* 16px base for consistent rem calculations */
    font-weight: 300;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-medium) 50%, var(--color-bg-dark) 100%);
    background-attachment: fixed;
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Section Styles */
section {
    padding: var(--section-padding-y) var(--section-padding-x);
    overflow: visible;
}

/* Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInMenuItem {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
