/* ============================================================
   EXPlicacoes.com — Brand Style Guide
   Identidade visual baseada no conceito_logo.png
   
   Paleta extraída:
   - Azul-marinho #092248 (cor principal)
   - Turquesa     #039ea6 (cor de acento)
   - Branco/cinzas claras (fundos)
   ============================================================ */

/* ========================
   1. VARIÁVEIS CSS (RAIZ)
   ======================== */
:root {
    /* Cor principal — Azul-marinho */
    --brand-50:  #eef2f9;
    --brand-100: #d4ddf0;
    --brand-200: #a9bce1;
    --brand-300: #7e9bd2;
    --brand-400: #537ac3;
    --brand-500: #3d5a9e;
    --brand-600: #2a4178;
    --brand-700: #1a2d5a;
    --brand-800: #102045;
    --brand-900: #092248;
    --brand-950: #051530;

    /* Cor de acento — Turquesa */
    --accent-50:  #e6f7f8;
    --accent-100: #c2eef0;
    --accent-200: #85dde1;
    --accent-300: #48ccd2;
    --accent-400: #1bb8bf;
    --accent-500: #039ea6;
    --accent-600: #038a90;
    --accent-700: #027075;
    --accent-800: #01565a;
    --accent-900: #013c40;

    /* Neutros */
    --white:   #ffffff;
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semânticas */
    --success: #10b981;
    --warning: #f59e0b;
    --danger:  #ef4444;
    --info:    var(--accent-500);

    /* Tipografia */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Poppins', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Espaçamento */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(9, 34, 72, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(9, 34, 72, 0.1), 0 2px 4px -2px rgba(9, 34, 72, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(9, 34, 72, 0.1), 0 4px 6px -4px rgba(9, 34, 72, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(9, 34, 72, 0.15), 0 8px 10px -6px rgba(9, 34, 72, 0.08);

    /* Transições */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;

    /* Gradientes da marca */
    --gradient-brand: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
    --gradient-accent: linear-gradient(135deg, var(--brand-900) 0%, var(--accent-500) 100%);
    --gradient-hero: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 50%, var(--accent-700) 100%);
}

/* ========================
   2. TIPOGRAFIA
   ======================== */
body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.875rem, 5vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.2; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.3; }

.font-display { font-family: var(--font-display); }

/* ========================
   3. SCROLLBAR
   ======================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-900);
    border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-700);
}

/* ========================
   4. LINKS E BOTÕES
   ======================== */
a {
    transition: var(--transition);
}

/* Botão primário da marca */
.btn-brand {
    background: var(--brand-900);
    color: var(--white);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-brand:hover {
    background: var(--brand-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Botão de acento (turquesa) */
.btn-accent {
    background: var(--accent-500);
    color: var(--white);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-accent:hover {
    background: var(--accent-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Botão outline */
.btn-outline-brand {
    border: 2px solid var(--brand-900);
    color: var(--brand-900);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
}
.btn-outline-brand:hover {
    background: var(--brand-900);
    color: var(--white);
}

/* ========================
   5. CARTÕES E SUPERFÍCIES
   ======================== */
.card-brand {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.card-brand:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

/* ========================
   6. GRADIENTES DE FUNDO
   ======================== */
.bg-gradient-brand {
    background: var(--gradient-brand);
}
.bg-gradient-accent {
    background: var(--gradient-accent);
}
.bg-gradient-hero {
    background: var(--gradient-hero);
}

/* ========================
   7. BADGES E ETIQUETAS
   ======================== */
.badge-brand {
    background: var(--brand-100);
    color: var(--brand-900);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-2xl);
    display: inline-block;
}
.badge-accent {
    background: var(--accent-100);
    color: var(--accent-700);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-2xl);
    display: inline-block;
}

/* ========================
   8. INPUTS E FORMULÁRIOS
   ======================== */
.input-brand {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.625rem 1rem;
    font-family: var(--font-sans);
    transition: var(--transition);
    width: 100%;
}
.input-brand:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(61, 90, 158, 0.15);
}

/* ========================
   9. DIVISOR DE MARCA
   ======================== */
.divider-brand {
    height: 4px;
    width: 60px;
    background: var(--accent-500);
    border-radius: var(--radius-2xl);
    margin: 1rem 0;
}

/* ========================
   10. ANIMAÇÕES
   ======================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-brand {
    0%, 100% { box-shadow: 0 0 0 0 rgba(3, 158, 166, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(3, 158, 166, 0); }
}

.animate-pulse-brand {
    animation: pulse-brand 2s infinite;
}

/* ========================
   11. UTILITÁRIOS
   ======================== */
.text-brand { color: var(--brand-900); }
.text-accent { color: var(--accent-500); }
.bg-brand { background-color: var(--brand-900); }
.bg-accent { background-color: var(--accent-500); }
.border-brand { border-color: var(--brand-900); }
.border-accent { border-color: var(--accent-500); }

/* Texto com gradiente */
.text-gradient-brand {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================
   12. BOOTSTRAP OVERRIDES
   ======================== */
.btn-primary {
    background-color: var(--brand-900) !important;
    border-color: var(--brand-900) !important;
}
.btn-primary:hover {
    background-color: var(--brand-700) !important;
    border-color: var(--brand-700) !important;
}

.btn-success {
    background-color: var(--accent-500) !important;
    border-color: var(--accent-500) !important;
}
.btn-success:hover {
    background-color: var(--accent-600) !important;
    border-color: var(--accent-600) !important;
}

.btn-outline-primary {
    color: var(--brand-900) !important;
    border-color: var(--brand-900) !important;
}
.btn-outline-primary:hover {
    background-color: var(--brand-900) !important;
    border-color: var(--brand-900) !important;
}

a {
    color: var(--brand-600);
}
a:hover {
    color: var(--brand-900);
}

.navbar-light .navbar-brand {
    color: var(--brand-900);
}

/* Bootstrap text colors */
.text-primary {
    color: var(--brand-900) !important;
}
.text-success {
    color: var(--accent-600) !important;
}

/* Bootstrap bg colors */
.bg-primary {
    background-color: var(--brand-900) !important;
}
.bg-success {
    background-color: var(--accent-500) !important;
}

/* Bootstrap border */
.border-primary {
    border-color: var(--brand-900) !important;
}

/* ========================
   13. SELEÇÃO DE TEXTO
   ======================== */
::selection {
    background: var(--accent-500);
    color: var(--white);
}
::-moz-selection {
    background: var(--accent-500);
    color: var(--white);
}

/* ========================
   14. FOCUS ACCESSIBLE
   ======================== */
*:focus-visible {
    outline: 2px solid var(--accent-500);
    outline-offset: 2px;
}
