/* --- Variáveis Globais (Fácil Edição) --- */
:root {
    --primary-color: #0f172a; /* Azul Marinho Profundo */
    --gold-color: #c5a47e;    /* Dourado Premium */
    --gold-hover: #b08d62;
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

/* --- Reset & Tipografia --- */
body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: var(--font-serif);
}

.text-gold { color: var(--gold-color) !important; }
.bg-dark-blue { background-color: var(--primary-color); }
.ls-1 { letter-spacing: 1px; }
.ls-2 { letter-spacing: 2px; }

/* --- Navbar Premium --- */
.navbar {
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95); /* Fundo vidro escuro */
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 400;
    margin: 0 10px;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-color) !important;
}

/* --- Botões Personalizados --- */
.btn-gold {
    background-color: var(--gold-color);
    color: #fff;
    border: 2px solid var(--gold-color); /* Mantém a borda sólida */
    padding: 12px 30px; /* Um pouco mais encorpado */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 4px; /* Canto levemente arredondado */
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(197, 164, 126, 0.3); /* Sombra suave inicial */
}

.btn-gold:hover {
    background-color: var(--primary-color); /* Vira Azul Escuro */
    border-color: var(--primary-color);
    color: var(--gold-color); /* Texto vira Dourado */
    transform: translateY(-3px); /* Sobe levemente */
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.4); /* Sombra mais forte */
}

/* Pequeno ajuste no ícone dentro do botão para ele acompanhar a cor */
.btn-gold:hover i {
    transform: translateX(5px); /* Move a setinha pra direita */
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh; /* Tela cheia */
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed; /* Efeito Parallax */
}

.hero-section .container {
    padding-top: 120px;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.z-index-2 { position: relative; z-index: 2; }

.text-gold-gradient {
    background: linear-gradient(to right, #c5a47e, #e3c498);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 1.5rem;
    opacity: 0.7;
}

.border-bottom-gold {
    border-bottom: 4px solid var(--gold-color);
}

/* --- Animações Simples (Fade Up) --- */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* --- Seção de Serviços / Áreas --- */
.section-padding {
    padding: 100px 0;
}

.bg-light-gray {
    background-color: #f9fafb; /* Cinza muito sutil para contraste */
}

/* Divisor Dourado Minimalista */
.divider-gold {
    width: 60px;
    height: 3px;
    background-color: var(--gold-color);
}

/* Card Premium Style */
.service-card {
    border: 1px solid rgba(0,0,0,0.03); /* Borda quase invisível */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Sombra suave */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px); /* Flutuação */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Efeito da linha dourada aparecendo no rodapé do card */
.hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--gold-color);
    transition: width 0.4s ease;
}

.service-card:hover .hover-line {
    width: 100%;
}

/* Ícone */
.service-card .icon-box i {
    transition: transform 0.3s ease;
}

.service-card:hover .icon-box i {
    transform: scale(1.1); /* Ícone cresce levemente */
}

/* Link "Saiba Mais" */
.read-more {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.read-more i {
    transition: margin-left 0.3s ease;
}

.service-card:hover .read-more i {
    margin-left: 10px !important; /* Seta se move para a direita */
}

/* --- Seção Sobre (About) --- */

/* Wrapper da imagem para permitir posicionamento absoluto dos elementos decorativos */
.about-image-wrapper {
    position: relative;
    padding-bottom: 30px; /* Espaço para o badge não cortar */
}

/* Moldura Dourada Atrás da Foto */
.image-frame-gold {
    position: absolute;
    top: -20px;
    left: 20px; /* Ajuste para desktop (no mobile, precisa de media query se quiser manter) */
    width: 100%;
    height: 100%;
    border: 5px solid var(--gold-color);
    z-index: 1; /* Fica atrás da foto (z-index 2) */
    opacity: 0.3;
    transition: all 0.5s ease;
}

.about-image-wrapper:hover .image-frame-gold {
    top: -10px;
    left: 10px; /* Efeito de "apertar" a moldura ao passar o mouse */
    opacity: 1;
}

/* Badge Flutuante (Anos de Experiência) */
.experience-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3; /* Fica na frente de tudo */
    min-width: 140px;
    border-bottom: 4px solid var(--gold-color);
}

/* Ajuste fino para lista de diferenciais */
.list-unstyled li {
    font-size: 1.05rem;
}

/* Fonte estilo Assinatura */
.signature-text {
    font-family: 'Playfair Display', serif; /* Usando a Serif como assinatura por enquanto */
    /* Se quiser algo mais manuscrito, poderia importar 'Great Vibes' do Google Fonts */
    letter-spacing: -1px;
}

/* --- Depoimentos (Testimonials) --- */
.quote-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20rem; /* Ícone Gigante */
    color: rgba(255, 255, 255, 0.03); /* Quase invisível */
    z-index: 1;
    pointer-events: none;
}

/* --- Depoimentos Premium (Dark Mode) --- */

/* O Card em si */
.testimonial-card {
    background: #162032; /* Um tom acima do fundo principal (#0f172a) */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Borda quase invisível */
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden; /* Para conter a marca d'água */
    transition: all 0.4s ease;
    height: 100%;
}

/* Efeito Hover: Sobe e ganha brilho dourado em baixo */
.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: rgba(197, 164, 126, 0.3); /* Borda fica levemente dourada */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Marca d'água de Aspas (Fundo do Card) */
.testimonial-card::before {
    content: '\f10e'; /* Unicode do FontAwesome (Aspas) */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.03); /* Quase transparente */
    z-index: 0;
    pointer-events: none;
}

/* Conteúdo deve ficar acima da marca d'água */
.testimonial-card > * {
    position: relative;
    z-index: 1;
}

/* Texto do Depoimento */
.testimonial-text {
    color: #cbd5e1; /* Cinza claro azulado (muito legível no escuro) */
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Nome do Cliente */
.client-name {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

/* Cargo / Tipo de Causa */
.client-role {
    color: var(--gold-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Estrelas Douradas */
.stars-gold {
    color: var(--gold-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Avatar Placeholder (Ajustado para Dark) */
.avatar-placeholder {
    width: 50px;
    height: 50px;
    background-color: rgba(197, 164, 126, 0.1); /* Fundo dourado transparente */
    color: var(--gold-color);
    border: 1px solid var(--gold-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-serif);
}

/* Paginação (Bolinhas) */
.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.2;
}
.swiper-pagination-bullet-active {
    background: var(--gold-color) !important;
    opacity: 1;
}

/* Indicadores do Carousel (setinhas) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(175deg); /* Tenta puxar pro dourado se possível, ou usa SVG custom */
    opacity: 0.5;
}

/* --- Formulário de Contato Premium --- */
.border-top-gold {
    border-top: 5px solid var(--gold-color);
}

/* Sobrescrevendo o Bootstrap Form Floating */
.form-control, .form-select {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 0.25rem rgba(197, 164, 126, 0.25); /* Glow Dourado Suave */
}

/* Labels flutuantes com cor correta */
.form-floating > label {
    color: #999;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--gold-color);
    opacity: 1;
}

/* Botão de envio largo */
.btn-gold.w-100 {
    font-size: 1rem;
    transition: all 0.3s;
}

/* --- Footer Premium --- */
.border-top-gold-thick {
    border-top: 4px solid var(--gold-color);
}

/* Links do Footer */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block; /* Necessário para o transform funcionar */
}

.footer-links a:hover {
    color: var(--gold-color);
    transform: translateX(5px); /* Move levemente para a direita */
}

/* Botões Sociais Redondos */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-btn:hover {
    background-color: var(--gold-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 164, 126, 0.4);
}

/* Texto de Atendimento */
.text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Ajuste de Fonte para Títulos do Footer */
footer h5 {
    letter-spacing: 1px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 15px;
}

/* Pequeno traço dourado abaixo dos títulos */
footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--gold-color);
}

/* --- Botão Flutuante WhatsApp Premium --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Verde Oficial */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra elegante */
    z-index: 10000; /* Acima de tudo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efeito Hover */
.whatsapp-float:hover {
    background-color: #1ebe57; /* Verde um pouco mais escuro */
    color: #fff;
    transform: translateY(-5px); /* Sobe levemente */
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4); /* Glow verde */
}

/* Animação de Pulso (Radar) */
.pulse-ring {
    border: 3px solid #25d366;
    border-radius: 50%;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: pulsate 2s infinite;
    opacity: 0;
    z-index: -1;
}

@keyframes pulsate {
    0% {
        transform: scale(1, 1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5, 1.5); /* Cresce 50% */
        opacity: 0; /* Desaparece */
    }
}

/* Ajuste Mobile (para não cobrir conteúdo importante) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* Responsividade */
@media (max-width: 991px) {
    .about-image-wrapper {
        padding-left: 0 !important;
        margin-bottom: 3rem;
    }
    
    .image-frame-gold {
        display: none; /* Remove a moldura em telas pequenas para limpar o visual */
    }
    
    .experience-badge {
        right: 0;
        left: auto; /* No mobile, joga o badge para a direita */
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .hero-section { text-align: center; }
    .hero-section p { width: 100% !important; }
    .hero-section .d-flex { justify-content: center; }
    .hero-section .container { padding-top: 100px; }
    .navbar-collapse {
        background: var(--primary-color);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }
}