/* 
   =================================================
   Delfos Consultoria - Design System V2 (Premium)
   =================================================
*/

:root {
    /* Paleta Premium e Corporativa */
    --color-primary: #061121; /* Azul ultra escuro (Autoridade) */
    --color-secondary: #0f294d; /* Azul corporativo profundo */
    --color-accent: #ffae00; /* Âmbar / Ouro (Segurança e Premium) */
    --color-accent-hover: #e69d00;
    --color-light: #f4f7f6; /* Off-white sofisticado para fundos */
    --color-dark: #030811;
    --color-text: #4a5568;
    --color-text-light: #718096;
    
    /* Tipografia */
    --font-primary: 'Inter', sans-serif;
}

/* ================== BASE & TYPOGRAPHY ================== */
html, body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* Removendo a regra que forçava cor nos títulos globalmente e impedia classes utilitárias */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    letter-spacing: -0.02em; /* Toque moderno */
}

/* Cores Utilitárias Customizadas */
.text-dark-blue { color: var(--color-primary) !important; }
.text-primary-custom { color: var(--color-secondary) !important; }
.bg-primary-custom { background-color: var(--color-secondary) !important; }
.bg-primary-light { background-color: rgba(15, 41, 77, 0.05) !important; }
.text-accent { color: var(--color-accent) !important; }
.bg-accent { background-color: var(--color-accent) !important; }
.bg-light-premium { background-color: var(--color-light) !important; }
.tracking-wide { letter-spacing: 0.15em; }
.py-7 { padding-top: 5rem; padding-bottom: 5rem; }

/* Padrão visual sutil para seções claras */
.bg-pattern {
    background-color: var(--color-light);
    background-image: radial-gradient(rgba(15, 41, 77, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ================== BUTTONS ================== */
.btn {
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 8px; /* Cantos arredondados modernos, não 100% circulares */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary-custom {
    background-color: var(--color-secondary);
    color: #fff;
    border: none;
}

.btn-primary-custom:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(6, 17, 33, 0.2);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 174, 0, 0.3);
}

.btn-outline-light:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ================== NAVBAR (FLOATING PILL) ================== */
.navbar-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.4s ease;
}

.navbar-wrapper.scrolled {
    top: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    box-shadow: 0 10px 40px rgba(6, 17, 33, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.navbar-wrapper.scrolled .navbar {
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logo-img {
    height: 55px;
    object-fit: contain;
    /* A logo agora está sobre fundo branco/claro, sem problemas de contraste e sem necessidade de filtro */
}

.nav-link {
    color: var(--color-text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-secondary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.custom-toggler {
    border: none;
    color: var(--color-primary);
}
.custom-toggler:focus {
    box-shadow: none;
}
.custom-toggler .navbar-toggler-icon {
    filter: none;
}

/* ================== HERO ================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: url('../img/hero.png') center/cover no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding-top: 100px; 
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(6, 17, 33, 0.92) 0%, rgba(15, 41, 77, 0.75) 100%);
    z-index: 0;
}

.z-index-1 { z-index: 1; }

.hero-title {
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    line-height: 1.1;
    color: #ffffff; /* GARANTINDO CONTRASTE PERFEITO */
}

.badge-premium {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: var(--color-accent);
}

/* ================== ABOUT ================== */
.img-wrapper {
    position: relative;
    border-radius: 12px;
}

.img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    z-index: 0;
}

.img-wrapper img {
    position: relative;
    z-index: 1;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    z-index: 2;
    background: var(--color-secondary);
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.custom-list li {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    display: flex;
    align-items: flex-start;
}
.custom-list li i {
    margin-top: 4px;
}

/* ================== SERVICES ================== */
.service-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.04) !important;
    background: #ffffff;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 1rem;
    box-shadow: 0 15px 45px rgba(15, 41, 77, 0.06);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(15, 41, 77, 0.1) !important;
}

.service-card:hover::after {
    opacity: 1;
}

.icon-box {
    width: 65px;
    height: 65px;
    transition: all 0.3s ease;
    background: var(--color-light);
}

.service-card:hover .icon-box {
    background-color: var(--color-secondary) !important;
    color: #fff !important;
    transform: scale(1.1);
}

.service-list li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

/* ================== TEAM (NOVA SEÇÃO COM FOTOS) ================== */
.team-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(15, 41, 77, 0.06);
}

.team-img-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    margin-bottom: 1.5rem;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    transition: all 0.4s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

.team-info p.role {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ================== FEATURES (DIFERENCIAIS) ================== */
.section-features {
    background-color: var(--color-primary);
    background-image: radial-gradient(circle at top right, rgba(255, 174, 0, 0.08), transparent 40%),
                      linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.feature-item {
    transition: all 0.4s ease;
    padding: 2rem 1.5rem;
    border-radius: 12px;
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon {
    background-color: var(--color-accent) !important;
    color: var(--color-primary) !important;
    transform: rotateY(180deg);
}

/* ================== PROCESS ================== */
.process-row::before {
    content: '';
    position: absolute;
    top: calc(35px + 1.5rem); /* 35px é o centro do ícone de 70px + 1.5rem do gutter-y (g-4) */
    left: 8%;
    width: 84%;
    height: 2px;
    background: linear-gradient(to right, rgba(15, 41, 77, 0.1), rgba(15, 41, 77, 0.5), rgba(15, 41, 77, 0.1));
    z-index: 0;
}

@media (max-width: 991px) {
    .process-row::before { display: none; }
    .process-step { margin-bottom: 2.5rem; }
}

.step-icon-wrapper {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: #fff;
    padding: 0 15px;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    transition: all 0.4s ease;
    border: 2px solid rgba(15, 41, 77, 0.1);
    background: var(--color-light);
    color: var(--color-secondary);
}

.process-step:hover .step-icon {
    background-color: var(--color-secondary) !important;
    color: #fff !important;
    transform: scale(1.15);
    border-color: var(--color-accent);
    box-shadow: 0 10px 20px rgba(15, 41, 77, 0.2);
}

/* ================== CTA SECTION ================== */
.CTA-section {
    background: url('../img/hero.png') center/cover fixed;
}

.cta-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(6, 17, 33, 0.95), rgba(15, 41, 77, 0.85));
}

/* ================== FOOTER ================== */
.footer-custom {
    background-color: var(--color-dark) !important;
    border-top: 4px solid var(--color-accent);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 8px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-5px);
}

/* ================== CONTACT FORM PREMIUM ================== */
.contact-premium-wrapper {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 15px 50px rgba(15, 41, 77, 0.08);
    padding: 3rem 4rem;
    border: 1px solid rgba(0,0,0,0.03);
}

.custom-premium-input {
    border: 1px solid rgba(15, 41, 77, 0.15) !important;
    color: var(--color-text) !important;
    border-radius: 8px !important;
    background-color: #f8fafc !important;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.custom-premium-input::placeholder {
    color: var(--color-text-light) !important;
    opacity: 0.8;
}

.custom-premium-input:focus {
    box-shadow: 0 0 0 4px rgba(255, 174, 0, 0.15) !important;
    border-color: var(--color-accent) !important;
    background-color: #ffffff !important;
}

/* ================== RESPONSIVE FIXES ================== */
@media (max-width: 991.98px) {
    .navbar {
        border-radius: 20px;
        padding: 0.8rem 1.2rem;
    }
    
    .navbar-collapse {
        background: #fff;
        border-radius: 12px;
        padding: 1rem;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
}

@media (max-width: 767.98px) {
    .img-wrapper::before {
        top: -10px;
        left: 0px;
        right: 10px;
        bottom: 10px;
    }
    
    .experience-badge {
        right: 10px;
        bottom: -15px;
        padding: 1rem !important;
    }
    
    .experience-badge h3 {
        font-size: 2rem;
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 180px;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .team-card {
        padding: 2rem !important;
    }
    
    .py-7 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* ================== FLOATING BUTTONS ================== */
.floating-whatsapp, .floating-back-to-top {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}
.floating-whatsapp:hover, .floating-back-to-top:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.floating-whatsapp {
    right: 30px;
    background-color: #25D366;
}
.floating-whatsapp:hover {
    background-color: #1ebe57;
}

.floating-back-to-top {
    left: 30px;
    background-color: var(--color-secondary);
    opacity: 0;
    visibility: hidden;
}
.floating-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ================== PREMIUM SECTIONS (VANTAGEM E METODOLOGIA) ================== */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}
.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.feature-icon-modern {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    transition: all 0.4s ease;
}
.feature-card:hover .feature-icon-modern {
    background: var(--color-accent);
    color: var(--color-secondary);
    transform: scale(1.1) rotate(5deg);
}

.process-row::before {
    content: '';
    position: absolute;
    top: calc(1.5rem + 40px); /* Compensando o gutter-y (g-4) do bootstrap + metade do icone */
    left: 8%;
    right: 8%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}
@media (max-width: 991px) {
    .process-row::before {
        display: none;
    }
}
.process-step {
    position: relative;
    z-index: 1;
}
.step-icon-wrapper-modern {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.process-step:hover .step-icon-wrapper-modern {
    background: var(--color-accent);
    color: var(--color-secondary);
    border-color: var(--color-accent);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.transition-color {
    transition: color 0.3s ease;
}
.process-step:hover .transition-color {
    color: var(--color-accent) !important;
}

/* ================== SERVICES V-PILLS (MODERN LAYOUT) ================== */
.custom-v-pills .nav-link {
    background: transparent;
    color: var(--color-text);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.custom-v-pills .nav-link:hover {
    background: var(--color-light);
    border-color: rgba(0,0,0,0.1);
}
.custom-v-pills .nav-link.active {
    background: var(--color-secondary);
    color: white !important;
    border-color: var(--color-secondary);
    box-shadow: 0 10px 20px rgba(6, 17, 33, 0.15);
}
.custom-v-pills .nav-link.active .icon-box-small {
    background: rgba(255,255,255,0.1);
    color: var(--color-accent);
}
.custom-v-pills .nav-link.active small {
    color: rgba(255,255,255,0.7) !important;
}
.custom-v-pills .nav-link.active h5 {
    color: white !important;
}

.icon-box-small {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(15, 41, 77, 0.05);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.custom-tab-content {
    min-height: 100%;
}

.service-list-modern li {
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--color-text);
    display: flex;
    align-items: flex-start;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}
.service-list-modern li:hover {
    background: rgba(0,0,0,0.04);
    border-left-color: var(--color-accent);
}
.service-list-modern li i {
    margin-top: 2px;
}
