/**
 * BASE.CSS - Core Styles
 * Mobile-First Approach - Optimized Typography
 * @version 2.0
 */

/* ============================================ */
/* CSS VARIABLES */
/* ============================================ */

:root {
    /* Primary Colors */
    --primary-500: #3b5bdb;
    --primary-600: #2d4bbc;
    --primary-700: #1e40af;
    
    /* Accent Colors */
    --accent-400: #fb9654;
    --accent-500: #f97316;
    --accent-600: #ea580c;
    --accent-700: #c2410c;
    
    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    
    /* Text Colors */
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    
    /* Background */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    
    /* Border */
    --border-color: #e5e7eb;
    
    /* Special */
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
    
    /* Layout - Mobile First */
    --container-width: 1200px;
    --section-padding-mobile: 50px 0;
    --section-padding-tablet: 60px 0;
    --section-padding-desktop: 80px 0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.12);
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ============================================ */
/* RESET */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================ */
/* TYPOGRAPHY - Mobile Optimized */
/* ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Mobile First Typography */
h1 { 
    font-size: 1.75rem; /* 28px */
    letter-spacing: -0.02em;
}

h2 { 
    font-size: 1.5rem; /* 24px */
    letter-spacing: -0.01em;
}

h3 { 
    font-size: 1.25rem; /* 20px */
}

h4 { 
    font-size: 1.125rem; /* 18px */
}

h5 { 
    font-size: 1rem; /* 16px */
}

h6 { 
    font-size: 0.95rem; /* 15px */
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.95rem; /* 15px - Mobile */
    line-height: 1.65;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

a:active {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================ */
/* TABLET BREAKPOINT - 768px */
/* ============================================ */

@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    h1 { font-size: 2.25rem; } /* 36px */
    h2 { font-size: 1.875rem; } /* 30px */
    h3 { font-size: 1.5rem; } /* 24px */
    
    p {
        font-size: 1rem; /* 16px */
        line-height: 1.7;
    }
}

/* ============================================ */
/* DESKTOP BREAKPOINT - 1024px */
/* ============================================ */

@media (min-width: 1024px) {
    h1 { font-size: 2.5rem; } /* 40px */
    h2 { font-size: 2rem; } /* 32px */
    h3 { font-size: 1.5rem; } /* 24px */
    
    p {
        font-size: 1.0625rem; /* 17px */
        line-height: 1.75;
    }
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}