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

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #f8fafc;
    overflow-x: hidden; /* Evita rolagem horizontal acidental */
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

h2{ font-size: 2rem; color: #fff; }

/* Correção principal de responsividade: container dinâmico e centralizado */
.container {
    width: min(1200px, 90%);
    margin: 0 auto; 
}

section {
    padding: 90px 0;
}

/* =========================================
   COMPONENTES GERAIS
   ========================================= */
.btn {
    display: inline-block;
    background: rgba(30, 41, 59, 0.5);
    color: #fff;
    padding: 18px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
}

.btn:hover {
    background: rgba(1, 20, 63, 0.6);
    transform: translateY(-2px);
}

.subtitle {
    font-family: 'Playfair Display', serif;
    color: #D4AF37;
    font-size: 1rem;
    letter-spacing: 4px;
    font-weight: 200;
    display: block;
    margin-bottom: 25px;
    position: relative;
    text-align: center;
}

.subtitle::before,
.subtitle::after {
    content: '';
    display: inline-block;
    width: 90px;
    height: 1px;
    background: #D4AF37;
    margin: 0 20px;
    vertical-align: middle;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #D4AF37;
    font-size: 1rem;
    margin-bottom: 30px;
}

.divider span {
    width: 100px;
    height: 1px;
    background: #D4AF37;
}

#icon {
    filter: invert(72%) sepia(35%) saturate(836%) hue-rotate(11deg) brightness(94%) contrast(89%);
}

.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 20px;
    padding: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all .35s ease;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-left: 4px solid #D4AF37;
    padding: 40px;
    margin: 60px auto 0;
    max-width: 900px;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.highlight-title {
    color: #D4AF37;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    font-style: italic;
}

/* =========================================
   HERO (CABEÇALHO)
   ========================================= */
.hero {
    min-height: 100vh;
    background: url('images/cabecalho.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 20, 63, .46);
}

.hero-content {
    position: relative;
    color: #fff;
    z-index: 2;
    text-align: left;
    margin-left: 5%;
}

.hero-content h1, 
.hero-content p {
    max-width: 700px;
    text-align: left; 
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-align: left; /* Reforça o alinhamento do título */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left; /* Reforça o alinhamento do parágrafo */
}

.hero-content .btn {
    float: left;
    clear: both;
}

/* =========================================
   ÁREAS DE ATUAÇÃO (CARROSSEL)
   ========================================= */
.services {
    background: linear-gradient(135deg, #01143F 0%, #021b57 100%);
    text-align: center;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 50px;
    padding: 0 60px;
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    align-items: stretch;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.service-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    padding: 30px 25px;
    flex: 0 0 calc((100% - 60px) / 3); 
    max-width: calc((100% - 60px) / 3);
    scroll-snap-align: start;
}

.service-card h3 {
    color: #D4AF37;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.service-card i.card-icon {
    font-size: 2.2rem;
    color: #D4AF37;
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    flex-grow: 1;
}

.service-card ul li {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
}

.service-card ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #D4AF37;
    font-size: 1rem;
}

.carousel-btn {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid #D4AF37;
    color: #D4AF37;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-btn:hover {
    background: #D4AF37;
    color: #01143F;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* =========================================
   SOBRE NÓS
   ========================================= */
.about {
    background: url('images/marble_background.png') no-repeat center/cover, linear-gradient(rgba(1,20,63,.88), rgba(1,20,63,.88));
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
}

.about-desc {
    max-width: 750px;
    margin: 0 auto 50px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    line-height: 1.7;
}

/* Grid dinâmico que não "estoura" a tela do celular */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.lawyer-card {
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lawyer-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top;
    border-radius: 15px;
    margin-bottom: 20px;
}

.lawyer-card h3 {
    color: #D4AF37;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.lawyer-card p {
    font-size: 1.2rem;
    line-height: 1.2;
}

/* =========================================
   FAQ
   ========================================= */
.faq-section {
    background: linear-gradient(rgba(1,20,63,.93), rgba(1,20,63,.96));
    text-align: center;
}

.faq-list {
    max-width: 900px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, .25);
    border-radius: 18px;
    overflow: hidden;
    transition: .35s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

.faq-item:hover {
    transform: translateY(-4px);
    border-color: #D4AF37;
}

.faq-question {
    width: 100%;
    padding: 24px 30px;
    background: none;
    border: none;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    color: #D4AF37;
    transition: transform .35s ease;
}

.faq-answer {
    text-align: left;
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    color: rgba(255, 255, 255, .8);
    font-size: 1rem;
    line-height: 1.8;
    transition: all .4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 30px 25px;
}

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

/* =========================================
   CTA SECTION
   ========================================= */
.call-to-action-section {
    background: linear-gradient(135deg, #01143F 0%, #021b57 100%);
    text-align: center;
}

.cta-inner-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    max-width: 900px;
    margin: 50px auto 0;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.cta-heading {
    color: #D4AF37;
    font-size: 2rem;
    margin-bottom: 25px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn-gold {
    color: #D4AF37;
    border: 2px solid #D4AF37;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
}

.cta-btn-gold:hover {
    background: #D4AF37;
    color: #01143F;
    transform: translateY(-4px);
}

/* =========================================
   CONTATO & FOOTER
   ========================================= */
.contact {
    background: linear-gradient(135deg, #01143F 0%, #021b57 100%);
    text-align: center;
    color: white;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-card {
    width: 150px;
    height: 150px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: all .3s ease;
}

.social-card i { font-size: 2.5rem; }
.social-card span { font-weight: 600; font-size: 0.95rem; }

.social-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,.30);
}

.whatsapp:hover { background: #25D366; border-color: #25D366; }
.instagram:hover { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); border-color: #DD2A7B; }
.facebook:hover { background: #1877F2; border-color: #1877F2; }
.linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.tiktok:hover { background: linear-gradient(45deg, #25F4EE, #FE2C55); border-color: #FE2C55; }

footer {
    background: #000;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ========================================= */

/* Tablets e telas médias */
@media(max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .service-card {
        flex: 0 0 calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }
}

/* Dispositivos móveis grandes/padrão */
@media(max-width: 768px) {
    section { padding: 60px 0; }
    
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2.2rem; text-align: left }
    .hero p { font-size: 1.05rem; text-align: left }
    
    .subtitle::before, .subtitle::after { width: 40px; }
    .divider span { width: 70px; }

    .service-card { flex: 0 0 100%; max-width: 100%; }
    .carousel-wrapper { padding: 0; }
    .carousel-btn { display: none; } /* Remove setas no mobile, usuário usa o dedo para rolar */
    .service-card { flex: 0 0 100%; max-width: 100%; }
    
    .lawyer-card img { height: 400px; }
    
    h2 { font-size: 1.5rem; }
    .faq-question { font-size: 1.05rem; padding: 20px; }
    
    .cta-inner-box { padding: 40px 20px; margin-top: 30px; }
    .cta-heading { font-size: 1.6rem; }
    .cta-btn-gold { width: 100%; font-size: 1.1rem; }
    
    .highlight-box { padding: 30px 20px; margin-top: 40px; border-radius: 15px; }
    .highlight-title { font-size: 1rem } 
    .about-desc { font-size: 1rem }
    .lawyer-card p { font-size: 1rem; line-height: 1.2 }
    .subtitle::before, .subtitle::after {
        display: block;
        margin: 10px auto;
    }
}

/* Dispositivos móveis pequenos */
@media(max-width: 480px) {
    .highlight-title {font-size: 1rem;} 
    .hero h1 { font-size: 2.2rem; }
    .social-card { width: 130px; height: 130px; }
    .social-card i { font-size: 2rem; }
    .lawyer-card img { height: 350px; }
    h2 { font-size: .8rem; }
    .subtitle::before, .subtitle::after {
        display: block;
        margin: 10px auto;
    }
}