/**
 * Estilos Principais - Design Moderno
 * Portal de Denúncias - AME
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Design System Variables */
:root {
    /* Primárias - Azul AME */
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #3388dd;
    --primary-50: #e6f0ff;
    --primary-100: #cce0ff;

    /* Secundárias */
    --secondary: #0891b2;
    --secondary-dark: #0e7490;

    /* Acentos */
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-violet: #7c3aed;
    --accent-rose: #f43f5e;

    /* Neutros */
    --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;

    /* Status */
    --success: #10b981;
    --danger: #f43f5e;
    --warning: #f59e0b;
    --info: #06b6d4;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
    --gradient-cool: linear-gradient(135deg, #0066cc 0%, #0891b2 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --gradient-hero: linear-gradient(135deg, #003d7a 0%, #0066cc 50%, #0891b2 100%);

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(0, 102, 204, 0.3);
    --shadow-glow-pink: 0 0 20px rgba(8, 145, 178, 0.2);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    /* Body */
    --body-bg: #f8fafc;
    --body-color: var(--gray-700);
}

/* ========== BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--body-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* ========== TIPOGRAFIA ========== */
h1, .h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--gray-900); line-height: 1.2; }
h2, .h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; color: var(--gray-900); line-height: 1.3; }
h3, .h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; color: var(--gray-800); }
h4, .h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; color: var(--gray-800); }
h5, .h5 { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; }

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

/* ========== NAVBAR ========== */
.navbar {
    background: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 0.6rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff !important;
    gap: 0.75rem;
}

.navbar-brand img {
    height: 38px;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: rgba(255,255,255,0.9) !important;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: var(--transition-fast);
    position: relative;
}

.navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.12);
}

.navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.18);
    font-weight: 600;
}

.navbar .nav-link i {
    margin-right: 0.25rem;
    font-size: 0.85rem;
}

.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem;
    border-radius: var(--radius);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Notification badge */
.navbar .badge.rounded-pill {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

/* Dropdown modern */
.navbar .dropdown-menu {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownFade 0.2s ease;
}

.navbar .dropdown-item {
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: var(--transition-fast);
}

.navbar .dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.navbar .dropdown-item i {
    width: 1.25rem;
    margin-right: 0.5rem;
    color: var(--gray-400);
}

.navbar .dropdown-item:hover i {
    color: var(--primary);
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: var(--gradient-hero);
    border-radius: var(--radius-2xl);
    padding: clamp(2.5rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-illustration {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration img {
    max-height: 280px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    animation: float 6s ease-in-out infinite;
}

/* ========== BUTTONS ========== */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    font-size: 0.9rem;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.35);
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-hero-primary {
    background: white;
    color: var(--primary-dark);
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-hero-primary:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-hero-outline {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    color: white;
    transform: translateY(-3px);
}

.btn-sm {
    min-height: 36px;
    min-width: 36px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: var(--radius);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* ========== CARDS ========== */
.card {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    background: white;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-title {
    color: var(--gray-900);
    font-weight: 700;
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    font-weight: 600;
}

/* Category Card */
.category-card {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    background: white;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-100);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    transition: var(--transition);
    position: relative;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.category-card .card-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* ========== STEPS SECTION ========== */
.steps-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-radius: var(--radius-2xl);
    padding: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid var(--gray-100);
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.step-card {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}

.step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: white;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.25);
    transition: var(--transition);
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.35);
}

.step-1 .step-number { background: var(--primary); }
.step-2 .step-number { background: var(--primary-dark); }
.step-3 .step-number { background: var(--secondary); }
.step-4 .step-number { background: var(--accent-emerald); }

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.step-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Step connector line */
.step-connector {
    display: none;
}

@media (min-width: 768px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 36px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: var(--gray-200);
        z-index: 0;
    }

    .step-connector::after {
        content: '';
        position: absolute;
        right: 0;
        top: -3px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--gray-300);
    }
}

/* ========== SECTION BADGES ========== */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-badge-primary {
    background: var(--primary-50);
    color: var(--primary);
}

.section-badge-emerald {
    background: #ecfdf5;
    color: var(--accent-emerald);
}

/* ========== TRUST BADGES ========== */
.trust-section {
    padding: 2rem 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.trust-badge:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-100);
}

.trust-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.trust-badge h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
    color: var(--gray-800);
}

.trust-badge p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
}

/* ========== STATS (Admin) ========== */
.stats-card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.stats-card .card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 1.25rem;
}

.stats-card .card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--gray-800);
}

.stats-card .card-footer {
    background: white;
    border-top: 1px solid var(--gray-100);
    padding: 1rem 1.25rem;
}

/* ========== FOOTER (Minimal & Elegant) ========== */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    margin-top: auto;
}

.footer-main {
    padding: 2.5rem 0 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
}

.footer-brand-name {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
    padding-left: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.5rem;
}

.footer-nav a {
    color: var(--gray-400);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0;
    transition: var(--transition-fast);
}

.footer-nav a:hover {
    color: white;
    text-decoration: none;
}

.footer-contact-mini {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.footer-contact-mini a {
    color: var(--gray-500);
    font-size: 0.8rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-mini a:hover {
    color: var(--gray-300);
    text-decoration: none;
}

.footer-contact-mini i {
    font-size: 0.7rem;
    color: var(--primary-light);
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 0;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0;
}

.footer-bottom a {
    color: var(--gray-500);
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

/* Social icons (kept for other pages) */
.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    text-decoration: none;
}

/* ========== FORMS ========== */
.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    transition: var(--transition-fast);
    background-color: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.invalid-feedback {
    font-weight: 500;
    font-size: 0.8rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ========== ALERTS ========== */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
}

.alert-info {
    background: #ecfeff;
    color: #0e7490;
    border-left: 4px solid var(--accent-cyan);
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid var(--accent-emerald);
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid var(--accent-amber);
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--accent-rose);
}

/* ========== BADGES ========== */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.375em 0.75em;
    border-radius: var(--radius-full);
}

.bg-primary, .badge-primary {
    background: var(--primary) !important;
}

.bg-success, .badge-success {
    background: var(--success) !important;
}

.bg-danger, .badge-danger {
    background: var(--danger) !important;
}

.bg-warning, .badge-warning {
    background: var(--warning) !important;
    color: #fff !important;
}

.bg-info, .badge-info {
    background: var(--info) !important;
    color: #fff !important;
}

.bg-secondary, .badge-secondary {
    background: var(--gray-500) !important;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--primary);
}

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--gray-200));
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: -30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--gray-200);
    background: var(--primary);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    padding-bottom: 0.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* ========== TABLES ========== */
.table {
    font-size: 0.875rem;
}

.table th {
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* ========== ATTACHMENTS ========== */
.attachment-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
}

.attachment-icon {
    font-size: 2rem;
    color: var(--gray-400);
}

/* ========== HONEYPOT (oculto para bots) ========== */
.ohnohoney {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fadeIn { animation: fadeIn 0.6s ease-out; }
.animate-slideUp { animation: slideUp 0.6s ease-out; }

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        background: var(--primary-dark);
        border-radius: var(--radius-lg);
        padding: 1rem;
        margin-top: 0.75rem;
    }

    .navbar .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .hero-illustration {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-xl);
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .steps-section {
        padding: 2rem 1.5rem;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .category-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-body.p-4 {
        padding: 1.25rem !important;
    }

    .card-body.p-5 {
        padding: 1.5rem !important;
    }

    .trust-badge {
        padding: 1rem;
    }

    /* Footer mobile */
    .site-footer {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-contact-mini {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* Navbar mobile */
    .navbar-brand {
        font-size: 0.85rem;
        max-width: 70%;
    }

    .navbar-brand img {
        height: 30px !important;
    }

    /* Form horizontal → vertical */
    .form-group.row .col-form-label {
        text-align: left;
        margin-bottom: 0.25rem;
    }

    .form-group.row .col-md-6 {
        margin-bottom: 0.5rem;
    }

    .form-group.row .col-md-6 .btn {
        width: 100%;
    }

    /* Icon box */
    .icon-box {
        width: 60px;
        height: 60px;
    }

    .icon-box .fa-3x {
        font-size: 1.5em;
    }

    /* FAQ accordion */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .card-body {
        padding: 0.875rem;
    }

    .btn-lg {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline:before {
        left: 10px;
    }

    .timeline-marker {
        left: -20px;
        width: 12px;
        height: 12px;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3em 0.5em;
    }

    .step-number {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

/* Tables mobile - cards empilhados */
@media (max-width: 575.98px) {
    .table-mobile-cards thead {
        display: none;
    }

    .table-mobile-cards tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        padding: 0.75rem;
        background: white;
        box-shadow: var(--shadow-sm);
    }

    .table-mobile-cards tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid var(--gray-100);
    }

    .table-mobile-cards tbody td:last-child {
        border-bottom: none;
    }

    .table-mobile-cards tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-500);
        margin-right: 1rem;
        flex-shrink: 0;
    }
}

/* ========== PRINT ========== */
@media print {
    .navbar, .site-footer, .btn, .breadcrumb, .form-check {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    body {
        background: #fff;
    }
}

/* ========== ICON BOX (legacy support) ========== */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 102, 204, 0.1);
}

/* ========== MISC OVERRIDES ========== */
.bg-primary {
    background: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-white {
    color: #fff !important;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Selection color */
::selection {
    background: var(--primary-light);
    color: white;
}
