/* ============================================
   URCAO-RECOMSWA - MAIN CSS
   Clean, Professional Theme
   Primary: White/Silver | Accent: Green & Gold
============================================ */

:root {
    /* Primary Colors - Green (used sparingly) */
    --primary-color: #1B5E3A;
    --primary-light: #2E7D52;
    --primary-dark: #0F3D25;
    --primary-muted: #E8F5EC;
    
    /* Accent Color - Gold (used very sparingly) */
    --accent-color: #C9A227;
    --accent-light: #E8D48A;
    --accent-dark: #A68B1F;
    --accent-muted: #FBF7E9;
    
    /* Neutral Colors - Main Palette (90% of site) */
    --white: #FFFFFF;
    --silver-50: #FAFBFC;
    --silver-100: #F5F7F9;
    --silver-200: #E8ECEF;
    --silver-300: #D1D8DE;
    --silver-400: #A3B1BC;
    --silver-500: #7A8B99;
    --silver-600: #5A6A78;
    --silver-700: #3D4852;
    --silver-800: #2D3640;
    --silver-900: #1A2028;
    
    /* Text Colors */
    --text-primary: #1A2028;
    --text-secondary: #5A6A78;
    --text-muted: #7A8B99;
    --text-light: #A3B1BC;
    
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFBFC;
    --bg-tertiary: #F5F7F9;
    --bg-card: #FFFFFF;
    
    /* Border Colors */
    --border-light: #E8ECEF;
    --border-medium: #D1D8DE;
    --border-dark: #A3B1BC;
    
    /* Shadows - Subtle */
    --shadow-xs: 0 1px 2px rgba(26, 32, 40, 0.04);
    --shadow-sm: 0 2px 4px rgba(26, 32, 40, 0.06);
    --shadow-md: 0 4px 12px rgba(26, 32, 40, 0.08);
    --shadow-lg: 0 8px 24px rgba(26, 32, 40, 0.10);
    --shadow-xl: 0 16px 40px rgba(26, 32, 40, 0.12);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing Scale */
    --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;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* ============================================
   CONTAINER
============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background-color: var(--silver-100);
    border-color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-outline:hover {
    background-color: var(--silver-100);
    border-color: var(--border-dark);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--white);
}

.btn-white:hover {
    background-color: var(--silver-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ============================================
   UTILITY CLASSES
============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-4); }
.mt-2 { margin-top: var(--space-8); }
.mt-3 { margin-top: var(--space-12); }

.mb-1 { margin-bottom: var(--space-4); }
.mb-2 { margin-bottom: var(--space-8); }
.mb-3 { margin-bottom: var(--space-12); }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   ACCESSIBILITY
============================================ */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 10000;
    transition: top var(--transition-normal);
}

.skip-to-main:focus {
    top: 0;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   LOADING OVERLAY
============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-normal);
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--silver-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   CARDS - BASE STYLES
============================================ */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* ============================================
   FORM ELEMENTS
============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--white);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-muted);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
============================================ */
@media (max-width: 1024px) {
    :root {
        --space-16: 3rem;
        --space-20: 4rem;
    }
}

@media (max-width: 768px) {
    :root {
        --space-12: 2rem;
        --space-16: 2.5rem;
        --space-20: 3rem;
    }
    
    body {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    :root {
        --space-8: 1.5rem;
        --space-12: 1.5rem;
        --space-16: 2rem;
        --space-20: 2.5rem;
    }
}