/* ============================================
   HIRINGSCOPE - DESIGN FUTURISTA & CONFIÁVEL
   Gradientes, glassmorphism, animações suaves
   ============================================ */
:root {
    /* 🎨 CORES PRINCIPAIS */
    --primary: #0b2b5c;
    --primary-light: #1a6d8f;
    --primary-dark: #071a36;

    /* 🎨 APOIO */
    --accent: #3bb2ff;
    --success: #10b981;
    --warning: #fbbf24;
    --danger: #ef4444;

    /* 🎨 NEUTROS */
    --bg: #f6f9fc;
    --card: #ffffff;
    --text: #1a2c3e;
    --muted: #6b7280;

    /* 🎨 SOMBRA */
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-strong: 0 25px 50px -15px rgba(0,0,0,0.25);

    /* 🎨 GRADIENTE PADRÃO */
    --gradient-main: linear-gradient(135deg, var(--primary), var(--primary-light));
}
/* ----- Importação de fonte moderna ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

/* ============================================
   NAVBAR - Gradiente futurista com brilho
   ============================================ */
.navbar {
    background: linear-gradient(135deg, #0b2b5c 0%, #134b73 50%, #1a6d8f 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(120deg, #ffffff, #c3e2ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    transition: all 0.3s;
}

.navbar-brand:hover {
    transform: scale(1.02);
    background: linear-gradient(120deg, #ffffff, #e0f0ff);
    background-clip: text;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.2rem;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: white !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Botões customizados */
.btn-outline-primary-custom {
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    color: white;
    border-radius: 40px;
    padding: 0.4rem 1.4rem;
    font-weight: 600;
    background: transparent;
    transition: 0.25s;
}

.btn-outline-primary-custom:hover {
    background: white;
    color: #0b2b5c;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.btn-primary-custom {
    background: var(--gradient-main);
    border: none;
    border-radius: 40px;
    padding: 0.6rem 1.6rem;
    font-weight: 700;
    color: white;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: 0 12px 22px -8px rgba(0, 0, 0, 0.25);
}
.section-alt {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 2rem;
    padding: 2.5rem 0;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 3px;
}

.navbar-logo {
    height: 40px;
    width: auto;
    max-height: 40px;
    object-fit: contain;
    transition: all 0.2s;
}
.navbar-brand:hover .navbar-logo {
    transform: scale(1.02);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 32px;
    }
}
/* ============================================
   HERO SECTION - Gradiente dinâmico + brilho
   ============================================ */
.hero-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;

    background: 
        linear-gradient(rgba(11,43,92,0.85), rgba(26,109,143,0.85)),
        url("/static/img/banner1.jpg") center/cover no-repeat;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(11, 43, 92, 0.85),
        rgba(26, 109, 143, 0.85)
    );
    z-index: 1;
}
/* GARANTE QUE TEXTO FIQUE NA FRENTE */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: var(--primary-light);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(125deg, #ffffff, #b3e0ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CARDS DE CONFIANÇA (glassmorphism leve)
   ============================================ */
.trust-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 2rem 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.trust-card:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.2);
    border-color: rgba(11, 43, 92, 0.2);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--gradient-main);    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CATEGORIAS - Cards futuristas
   ============================================ */
.category-card {
    background: white;
    border-radius: 28px;
    padding: 1.4rem;
    text-align: center;
    transition: all 0.25s;
    cursor: pointer;
    border: 1px solid #eef2ff;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: #0b2b5c;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
    background: linear-gradient(145deg, #ffffff, #fafcff);
}

.category-icon {
    font-size: 2.4rem;
    background: linear-gradient(145deg, #0b2b5c, #1a6d8f);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.8rem;
}
.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}
.rating {
    color: #f5a623;
    font-size: 0.9rem;
}

/* Cores variadas para cada categoria */
.category-card[data-cat="tecnologia"] .category-icon { color: #3b82f6; }
.category-card[data-cat="construcao"] .category-icon { color: #f59e0b; }
.category-card[data-cat="design"] .category-icon { color: #ec4899; }
.category-card[data-cat="educacao"] .category-icon { color: #10b981; }

/* Ou use nth-child se quiser automático */
.category-card:nth-child(1) .category-icon { color: #3b82f6; }
.category-card:nth-child(2) .category-icon { color: #f59e0b; }
.category-card:nth-child(3) .category-icon { color: #ec4899; }
.category-card:nth-child(4) .category-icon { color: #10b981; }.search-bar-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    overflow: hidden;
}
.search-bar-wrapper:focus-within {
    box-shadow: 0 4px 16px rgba(11, 43, 92, 0.2);
    border-color: var(--primary-light);
}
.search-icon {
    padding: 0 16px;
    color: #94a3b8;
    font-size: 1.1rem;
}
.navbar-logo {
    height: 40px;
    width: auto;
    max-height: 40px;
    object-fit: contain;
}

.search-bar-desktop {
    flex: 0 0 320px;
    margin: 0 20px;
}
@media (min-width: 1200px) {
    .search-bar-desktop {
        flex: 0 0 380px;
    }
}
.search-bar-mobile {
    margin: 0.5rem 0;
}
.search-bar-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    height: 42px;
}
.search-input {
    flex: 1;
    border: none;
    padding: 0 0 0 12px;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
}
.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}
.search-btn {
    background: var(--gradient-main);
    border: none;
    color: white;
    padding: 0 28px;
    font-weight: 600;
    border-radius: 0 60px 60px 0;
    transition: 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
}
.search-btn:hover {
    filter: brightness(1.05);
    transform: scale(1.02);
}

/* Botão Cadastro em destaque (gradiente) */
.btn-cadastro-destaque {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white !important;
    border-radius: 40px;
    padding: 0.5rem 1.4rem;
    margin-left: 0.5rem;
    font-weight: 700;
    transition: 0.25s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-cadastro-destaque:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,158,11,0.3);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Botão Login (outline claro) */
.btn-login {
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 40px;
    padding: 0.5rem 1.4rem;
    transition: 0.25s;
}
.btn-login:hover {
    background: white;
    color: var(--primary) !important;
    border-color: white;
}

/* Responsividade da barra de pesquisa */
@media (max-width: 768px) {
    .search-btn {
        padding: 0 18px;
        font-size: 0.85rem;
    }
    .search-input {
        padding: 12px 0;
        font-size: 0.9rem;
    }
    .search-icon {
        padding: 0 12px;
    }
}
/* ============================================
   SERVIÇOS / OFERTAS - Cards com gradiente
   ============================================ */
.service-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #eef2ff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.service-img-placeholder {
    background: linear-gradient(145deg, #eef2ff, #e0eaff);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);}

/* ============================================
   PASSO A PASSO - Efeito vidro
   ============================================ */
.step-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: 0.25s;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.step-wrapper:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #0b2b5c, #1a6d8f);
    color: white;
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* ============================================
   DEPOIMENTOS - Confiança visual
   ============================================ */
.testimonial-card {
    background: white;
    border-radius: 32px;
    padding: 1.8rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
    transition: 0.2s;
}

.testimonial-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.08);
}

.rating i {
    color: #fbbf24;
    font-size: 1rem;
}

/*carousel*/
.carousel-item {
    padding: 10px 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #0b2b5c;
    border-radius: 50%;
    padding: 15px;
}
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#carouselDestaques:hover .carousel-control-prev,
#carouselDestaques:hover .carousel-control-next {
    opacity: 0.6;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(11, 43, 92, 0.6);
    border-radius: 50%;
    padding: 12px;
}
.featured-card {
    border-radius: 20px;
    overflow: hidden;
    min-height: 320px;
    transform: translateY(0);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-card img {
    height: 200px;
    object-fit: cover;
    transform: translateY(-10px) scale(1.01);
}
.trust-card,
.service-card,
.featured-card,
.category-card,
.testimonial-card {
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

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

/* loader*/

.loader-content {
    text-align: center;
    color: white;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.logo-loader {
    width: 180px;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.6));
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== LOADING SCREEN ===== */
#loader {
    position: fixed;
    inset: 0;
    background: var(--gradient-main);    
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    z-index: 9999;
}

/* LOGO */
.loader-logo {
    width: 220px;
    max-width: 70%;
    
    animation: floatLogo 2s ease-in-out infinite;
}

/* TEXTO */
.loader-text {
    margin-top: 15px;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 2px;
}

/* BARRA PROGRESSO */
.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: white;
    animation: loadingBar 1.2s infinite;
}

/* ANIMAÇÕES */
@keyframes floatLogo {
    0%,100% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes loadingBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}
/* ============================================
   FOOTER - Gradiente escuro elegante
   ============================================ */
.footer {
    background: linear-gradient(125deg, #0a1a2e, #0b2b44);
    color: #cbd5e6;
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer a {
    color: #b9d0f0;
    text-decoration: none;
    transition: 0.2s;
}

.footer a:hover {
    color: white;
    transform: translateX(4px);
    display: inline-block;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.25s;
}

.social-links a:hover {
    background: var(--gradient-main);
    transform: translateY(-3px);
}

/* ============================================
   COOKIE BANNER - Moderno e discreto
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 30, 45, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    z-index: 1100;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: transform 0.3s;
    color: white;
}

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-banner .btn-primary-custom {
    background: white;
    color: #0b2b5c;
    padding: 0.4rem 1.2rem;
}

.cookie-banner .btn-outline-secondary {
    background: transparent;
    border: 1px solid white;
    color: white;
}

/* ============================================
   CHAT STYLES (mantido, com novas cores)
   ============================================ */
.chat-container {
    height: calc(100vh - 120px);
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: white;
}

.message.sent .message-content {
    background: linear-gradient(115deg, #0b2b5c, #1a6d8f);
    color: white;
}

.user-item.active {
    background: #eef2ff;
    border-left: 4px solid #0b2b5c;
}

.online-indicator {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* ============================================
   ANIMAÇÕES E DETALHES FUTURISTAS
   ============================================ */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.trust-card:hover .icon-circle {
    animation: float 0.6s ease-in-out;
}

.btn-primary-custom, .btn-outline-primary-custom {
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .trust-card {
        padding: 1.5rem;
    }
    .category-card {
        padding: 1rem;
    }
    .cookie-banner .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* perfil*/
/* Cabeçalho de cards com gradiente */
.card-header-gradient {
    background: var(--gradient-main);
    color: white;
    border-bottom: none;
    border-radius: 1rem 1rem 0 0;
    padding: 1rem 1.25rem;
}

/* Avatar com borda */
.avatar-border {
    border: 3px solid var(--primary-light);
}

/* Estatísticas */
.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Cor de destaque alternativa (azul claro) */
.text-accent {
    color: var(--accent) !important;
}

/* Inputs e textarea arredondados */
textarea.rounded-4 {
    border-radius: 1rem;
}

/*perfil foto*/
.user-avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-nav-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

/* Nome do usuário na navbar */
.user-name-nav {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   HOME - ANIMAÇÕES E CARDS (INDEX)
   ============================================ */

.transition {
    transition: all 0.3s ease;
}

.stat-card:hover,
.category-card:hover,
.testimonial-card:hover,
.recent-card:hover,
.featured-card:hover,
.top-prestador-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1) !important;
}

/* Botão principal padrão do sistema */
.btn-primary {
    background: linear-gradient(135deg, #0b2b5c, #1a6d8f);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a6d8f, #2d8fb2);
    transform: translateY(-2px);
}

/* Títulos com linha */
.section-title {
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 3px;
}

.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================
   TOP PRESTADORES
   ============================================ */

.medalha {
    z-index: 10;
}

.prestador-avatar {
    width: 85px;
    height: 85px;
    margin: 0 auto;
}

.servicos-mini {
    min-height: 55px;
}

/* Hover links */
.hover-primary:hover {
    color: #0b2b5c !important;
    text-decoration: underline !important;
}

/* Estrelas */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* ============================================
   RESPONSIVO HOME
   ============================================ */

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        opacity: 0.8;
    }

    .carousel-item .row {
        margin: 0;
    }

    .carousel-item .col-12 {
        padding: 0 8px;
    }

    .section-title:after {
        width: 40px;
    }

    .prestador-avatar {
        width: 65px;
        height: 65px;
    }

    .prestador-avatar img,
    .prestador-avatar div {
        width: 65px !important;
        height: 65px !important;
    }
}

@media (max-width: 480px) {
    .stat-card,
    .category-card,
    .testimonial-card,
    .step-card {
        padding: 0.75rem !important;
    }

    .top-prestador-card .card-body {
        padding: 1rem !important;
    }

    .servicos-mini span {
        font-size: 0.7rem !important;
    }

    .testimonial-card {
        padding: 1rem !important;
    }
}