/*
 * ============================================
 * PETMORIA - Global Styles
 * ============================================
 * This file contains:
 * - CSS Reset
 * - CSS Variables (Brand Colors, Fonts, Spacing)
 * - Base Typography
 * - Utility Classes
 * ============================================
 */

/* ==========================================
   CSS RESET
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ==========================================
   CSS VARIABLES - PETMORIA BRAND
   ========================================== */
:root {
    /* === Primary Colors (Palette F - Coral Punch) === */
    --primary-orange: #E8704E;
    --primary-orange-dark: #CC5836;
    --primary-orange-light: #F0936E;
    
    /* === Accent Colors (Palette F - Mint) === */
    --accent-teal: #358585;
    --accent-teal-dark: #2A6B6B;
    --accent-teal-light: #48B0B0;
    
    /* === Bright teal (logo, footer social links, charity badges) === */
    --accent-teal-bright: #48B0B0;
    --accent-teal-bright-dark: #358585;
    
    /* === Neutral Colors === */
    --text-primary: #3D2E26;
    --text-secondary: #6B5E57;
    --text-muted: #9B8E87;
    --text-light: #d4c4b8;
    
    /* === Background Colors === */
    --bg-primary: #FFF5F0;
    --bg-secondary: #FFEEE6;
    --bg-accent: #FFE0D2;
    --bg-warm: #FFE8D6;
    --bg-white: #ffffff;
    --bg-dark: #1A1514;
    
    /* === Gradients === */
    --gradient-primary: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    --gradient-teal: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-dark));
    --gradient-warm: linear-gradient(165deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-hero: linear-gradient(165deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    
    /* === Sponsor/Business Colors === */
    --sponsor-purple: #8b5cf6;
    --sponsor-purple-light: #a78bfa;
    
    /* === Status Colors === */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* === Typography === */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Quicksand', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* === Font Sizes === */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;
    --text-6xl: 3.5rem;
    --text-7xl: 4rem;
    
    /* === Font Weights === */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* === Spacing === */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* === Border Radius === */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-2xl: 25px;
    --radius-3xl: 30px;
    --radius-full: 50px;
    --radius-circle: 50%;
    
    /* === Shadows === */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 20px 45px rgba(0, 0, 0, 0.15);
    
    /* === Transitions === */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* === Z-Index Scale === */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal-backdrop: 1500;
    --z-modal: 2000;
    --z-tooltip: 2500;
}

/* ==========================================
   BASE TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-extrabold);
    color: var(--text-primary);
    line-height: 1.2;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--primary-orange); }
.text-teal { color: var(--accent-teal); }
.text-white { color: white; }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Font Weights */
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

/* Backgrounds */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-white { background: var(--bg-white); }
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-teal { background: var(--gradient-teal); }
.bg-gradient-warm { background: var(--gradient-warm); }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Spacing */
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.container-sm { max-width: 800px; }
.container-lg { max-width: 1400px; }

/* Section Padding */
.section {
    padding: var(--space-24) 5%;
}

/* Highlight Text (gradient) */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: var(--text-5xl);
    margin-bottom: var(--space-5);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--text-xl);
    max-width: 700px;
    margin: 0 auto var(--space-16);
    line-height: 1.7;
}

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* ==========================================
   CTA GLOW EFFECT
   Subtle pulsing glow for primary CTA buttons
   Apply class .cta-glow to any CTA button
   ========================================== */
@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 4px 16px rgba(232, 112, 78, 0.3), 0 0 0 0 rgba(232, 112, 78, 0); }
    50% { box-shadow: 0 4px 16px rgba(232, 112, 78, 0.3), 0 0 20px 4px rgba(232, 112, 78, 0.25); }
}

.cta-glow {
    animation: ctaGlow 2.5s ease-in-out infinite;
}

.cta-glow:hover {
    animation: none;
    box-shadow: 0 6px 24px rgba(232, 112, 78, 0.45);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-4xl); }
    .section-title { font-size: var(--text-4xl); }
}

@media (max-width: 768px) {
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
    .section-title { font-size: var(--text-3xl); }
    .section-subtitle { font-size: var(--text-base); }
    .section { padding: var(--space-16) 5%; }
}

@media (max-width: 480px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    .section-title { font-size: var(--text-2xl); }
}
