/**
 * OREKONECT PREMIUM THEME
 * Global color system and design tokens
 * Applied across all pages for brand consistency
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* Premium Brand Palette */
    --primary: #0f766e;
    --primary-dark: #0d5f59;
    --primary-light: #ccfbf1;
    --primary-lighter: #f0fdfa;
    --primary-glow: rgba(15, 118, 110, 0.12);

    --accent: #f97316;
    --accent-dark: #ea580c;
    --accent-light: #fed7aa;
    --accent-lighter: #fff7ed;
    --accent-glow: rgba(249, 115, 22, 0.1);

    --secondary: #6366f1;
    --secondary-light: #e0e7ff;
    --secondary-glow: rgba(99, 102, 241, 0.1);

    /* Neutral Palette */
    --dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --bg-overlay: rgba(255, 255, 255, 0.95);

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 80px rgba(15, 118, 110, 0.08);

    /* Typography */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    --space-6xl: 10rem;

    /* Animation */
    --ease-quick: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-smooth: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 600ms;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Legacy color aliases for compatibility */
    --primary-color: #0f766e;
    --secondary-color: #f97316;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-quick);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   GLOBAL UTILITIES
   ============================================ */

.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--space-2xl);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-quick);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform var(--duration-normal) var(--ease-quick);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 12px 32px rgba(15, 118, 110, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 118, 110, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.4);
}

.btn-accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(249, 115, 22, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-lighter);
}

/* ============================================
   FORMS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="phone"],
input[type="number"],
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all var(--duration-normal) var(--ease-quick);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="phone"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */

.alert {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #0c2340;
    border: 1px solid #bfdbfe;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--primary-lighter);
    color: var(--primary);
}

.badge-accent {
    background: var(--accent-lighter);
    color: var(--accent-dark);
}

.badge-secondary {
    background: var(--secondary-light);
    color: var(--secondary);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-quick);
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--space-5xl) 0;
    position: relative;
    overflow: hidden;
}

.section-light {
    background: var(--bg-light);
}

.section-white {
    background: var(--bg-white);
}

.section-header {
    margin-bottom: var(--space-4xl);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-lighter);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: var(--space-md);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-title strong {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
    max-width: 600px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .section {
        padding: var(--space-4xl) 0;
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: var(--space-sm);
    }

    .section-subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: var(--space-3xl) 0;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-header {
        margin-bottom: var(--space-3xl);
    }

    .section-label {
        font-size: 0.7rem;
        padding: var(--space-xs) var(--space-sm);
        margin-bottom: var(--space-md);
    }

    .section-subtitle {
        font-size: 0.9rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--space-2xl) 0;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: var(--space-sm);
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .section-subtitle {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .btn {
        width: 100%;
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9rem;
    }
}
