/* 
   SISTEMA DE CORES E DESIGN - DR. WELLINGTON FREITAS
   Estilo: Luxo Refinado
   Paleta: Branco (#FFFFFF 60%), Marrom (#392620 30%), Dourado (10% detalhes)
*/

:root {
    --primary-color: #392620; /* Marrom escuro luxuoso */
    --primary-dark: #2a1c17; /* Tom mais escuro para hovers e sobreposições */
    --primary-light: rgba(57, 38, 32, 0.05); /* Fundo suave */
    --secondary-color: #C5A059; /* Dourado refinado (aproximado para contraste premium) */
    --secondary-light: #DFBF82; /* Dourado mais claro */
    --bg-color: #FFFFFF; /* Branco principal */
    --text-color: #2b2b2b;
    --text-muted: #666666;
    --white: #ffffff;
    --transition-slow: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-premium: 0 15px 35px rgba(57, 38, 32, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
}

p {
    text-align: justify;
}

h1, h2, h3, h4, .serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

section {
    padding: 120px 0;
    position: relative;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(57, 38, 32, 0.1);
}

header.scrolled {
    background: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    border-bottom: none;
}

header.mobile-open {
    background: var(--white);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tipografia de Logo Textual */
.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: 1px;
    transition: var(--transition);
}

.logo-subtext {
    font-size: 0.7rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: var(--transition);
}

header.scrolled .logo-text {
    color: var(--white);
}

nav ul {
    display: flex;
    gap: 35px;
}

nav ul li a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    color: var(--primary-color);
}

header.scrolled nav ul li a {
    color: var(--white);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

header.scrolled .mobile-btn {
    color: var(--white);
}

header.mobile-open .mobile-btn {
    color: var(--primary-color);
}

/* HERO */
.hero {
    height: 100vh;
    background: url('../image/fundo-freitas.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: left;
    padding-top: 80px; /* offset header */
}

.hero-content {
    max-width: 45%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 45px;
    font-weight: 300;
    letter-spacing: 1px;
    text-align: left;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3);
    color: var(--primary-dark);
}

.btn:hover::before {
    opacity: 1;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    margin: 20px auto 0;
}

/* SERVIÇOS */
.services {
    background: #fdfdfd;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(57, 38, 32, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 340px;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(57, 38, 32, 0.12);
}

.service-card i {
    font-size: 2.4rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    display: block;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: var(--transition);
}

.service-card:hover .service-link {
    color: var(--primary-color);
}

/* SOBRE */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
}

.oab-badge {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: var(--primary-light);
    border: 1px solid var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 1px;
}

.about-image .image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    width: 100%;
    display: block;
}

.image-badge {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: #1a1a1a;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.image-badge .badge-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    font-weight: 600;
    margin-bottom: 5px;
}

.image-badge .badge-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.1;
}

/* Ajuste mobile para o badge */
@media (max-width: 768px) {
    .image-badge {
        bottom: -15px;
        right: 15px;
        padding: 20px 25px;
    }
    .image-badge .badge-subtitle {
        font-size: 1.5rem;
    }
}

/* DIFERENCIAIS */
.differentials {
    background-color: var(--primary-light);
    border-top: 1px solid rgba(57, 38, 32, 0.05);
    border-bottom: 1px solid rgba(57, 38, 32, 0.05);
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.diff-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.diff-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-bottom: 3px solid var(--secondary-color);
}

.diff-icon {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.diff-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* CTA PREMIUM */
.cta-section {
    position: relative;
    padding: 140px 0;
    background: url('../image/CTA.png') no-repeat center center/cover;
    background-attachment: fixed;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(57, 38, 32, 0.6); /* Overlay marrom escuro */
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.cta-divider {
    width: 80px;
    height: 2px;
    background: var(--secondary-color);
    margin: 30px auto;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-gold {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.4s;
    border: none;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

.btn-gold:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* AVALIAÇÕES */
.reviews {
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    padding: 40px;
    background: var(--primary-light);
    border-radius: 8px;
    position: relative;
    border-left: 4px solid var(--secondary-color);
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

/* FAQ */
.faq-section {
    background: #fdfdfd;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(57, 38, 32, 0.1);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* FOOTER */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}
.footer-logo .logo-text {
    color: var(--white);
}

.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p, .footer-col a {
    margin-bottom: 15px;
    display: block;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25D366; /* Cor oficial do WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 260px;
    background: var(--white);
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 12px;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.whatsapp-float:hover .whatsapp-tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip-profile {
    flex-shrink: 0;
}

.tooltip-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #25D366;
}

.tooltip-text {
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.3;
    font-weight: 500;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.modal-header h2 {
    color: var(--primary-color);
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-footer {
    margin-top: 30px;
    text-align: center;
}

/* ANIMATIONS */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: var(--transition-slow);
}

.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .mobile-btn {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }
    
    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        padding: 20px 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 0;
        color: var(--primary-color) !important;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 90px;
        height: calc(100vh - 90px);
        background: url('../image/mobile-freitas.png') no-repeat top center/cover;
        align-items: flex-end;
        padding-bottom: 60px;
        text-align: center;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; text-align: center; }
    .hero-content { max-width: 100%; }
    .btn { padding: 15px 25px; font-size: 0.85rem; }
    .about-grid { grid-template-columns: 1fr; }
}
