/* ============================================================
   F. PEREIRA ADVOGADOS — Design System (White + Royal Blue + Metallic Gold)
   Base: PULINO ADVOGADOS (GOMES & AMARO 3.0 Structure)
   ============================================================ */

/* --- Custom Properties --- */
:root {
    /* Royal Blue Palette */
    --blue-900: #001f4d;
    --blue-800: #002d73;
    --blue-700: #003b99;
    --blue-600: #004ac2;
    --blue-500: #0059e6;

    /* Metallic Gold Palette */
    --gold-400: #d4af37;
    --gold-500: #b28e21;
    --gold-500-rgb: 178, 142, 33;
    --gold-600: #8c6e17;
    --gold-300: #ebd171;

    --whatsapp: #25D366;
    --whatsapp-hover: #1ebd5a;
    --text-dark: #1A1A1A;
    --text-muted: #5F5F5F;
    --text-light: #8a8a8a;
    --bg-light: #f8f8f8;
    --bg-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-bg-dark: rgba(0, 31, 77, 0.95);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background: var(--gold-500);
    color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4f4f5;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-500);
}

/* --- Typography --- */
.font-serif {
    font-family: 'Playfair Display', serif;
}

.section-tag {
    color: var(--gold-500);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    line-height: 1.15;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.1rem;
    }
}

.section-description {
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 600px;
}

.text-gold-gradient {
    background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-400) 50%, var(--gold-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding-right: 0.15em;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-links {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .navbar-links {
        display: flex;
    }
}

.nav-link {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dark);
    transition: color 0.3s ease;
    opacity: 0.8;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--gold-500);
    opacity: 1;
}

/* Mobile Menu Button */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
    z-index: 99;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* Já presente, mas garantindo */
    background: var(--blue-900);
    padding-top: 72px;
    width: 100%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 31, 77, 0.7), rgba(0, 31, 77, 0.7)), url('../images/bck01.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-bg {
        background-image: linear-gradient(rgba(0, 31, 77, 0.7), rgba(0, 31, 77, 0.7)), url('../images/backg01mobile.webp');
    }
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1.2fr 1fr;
        padding: 5rem 1.5rem;
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-title em {
    background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-400) 50%, var(--gold-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-style: italic;
    padding-right: 0.15em;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
        word-wrap: break-word;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

.hero-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 520px;
    border-left: 2px solid var(--gold-500);
    padding-left: 1.25rem;
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 1.125rem;
    }
}

/* --- Premium Buttons --- */
.btn-premium-outer {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px;
    border-radius: 3px;
    transition: all 0.4s ease;
    text-decoration: none;
    width: fit-content;
}

.btn-premium-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-400) 25%, var(--gold-300) 50%, var(--gold-400) 75%, var(--gold-600) 100%);
    background-size: 200% auto;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(var(--gold-500-rgb), 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .btn-premium-inner {
        padding: 1.25rem 3rem;
        font-size: 13px;
    }
}

.btn-premium-outer:hover .btn-premium-inner {
    background-position: right center;
    box-shadow: 0 0 30px rgba(var(--gold-500-rgb), 0.4);
    transform: scale(1.02);
}

@media (max-width: 480px) {
    .btn-premium-inner {
        white-space: normal;
        text-align: center;
        padding: 1rem;
    }
}

.btn-premium-outer.light-bg {
    background: rgba(var(--gold-500-rgb), 0.05);
    border-color: rgba(var(--gold-500-rgb), 0.15);
}

/* --- Marquee / Ticker --- */
.marquee-section {
    padding: 1.25rem 0;
    background: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    z-index: 20;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    white-space: nowrap;
    margin-right: 3rem;
}

.marquee-item svg {
    width: 14px;
    height: 14px;
    fill: var(--gold-500);
    flex-shrink: 0;
}

/* --- Sections Common --- */
.section {
    padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 2.5rem;
    }
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- News Section / Carousel --- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.news-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.news-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.news-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--blue-900);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.news-btn:hover {
    background: var(--gold-500);
    color: #fff;
    border-color: var(--gold-500);
    transform: translateY(-2px);
}

.news-carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-slide {
    min-width: 100%;
}

.news-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.news-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.news-dot {
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-dot.active {
    background: var(--gold-500);
    width: 24px;
    border-radius: 4px;
}

/* --- Service Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem 2rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    border-color: var(--gold-500);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(var(--gold-500-rgb), 0.12);
}

.service-card .step-number {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1;
    opacity: 0.06;
    color: var(--gold-500);
    position: absolute;
    top: 15px;
    right: 15px;
    transition: all 0.4s ease;
}

.service-card:hover .step-number {
    opacity: 0.18;
    transform: scale(1.1) rotate(-5deg);
}

.service-card .card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 2rem;
    color: var(--gold-500);
    background: rgba(var(--gold-500-rgb), 0.05);
    padding: 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .card-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
    font-family: 'Inter', sans-serif;
    color: var(--blue-900);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.95rem;
}

/* --- Floating WhatsApp --- */
#wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.wa-balloon {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wa-balloon.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wa-msg {
    font-size: 13px;
    color: var(--text-dark);
}

.wa-btn-circle {
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}

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

/* --- Footer --- */
.footer {
    background: #00112b;
    color: #fff;
    padding: 7rem 0 3rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.2fr;
    }
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2.5rem;
    color: var(--gold-400);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-400);
    transform: translateX(5px);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--gold-400);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-text strong {
    display: block;
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- About Section Specifics --- */
#sobre {
    background: #fff !important;
    position: relative;
    overflow: hidden;
}

#sobre::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0%;
    width: 600px;
    height: 600px;
    background: url('assets/images/brazil-map.png') no-repeat center center;
    background-size: contain;
    opacity: 0.12;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

#sobre .section-inner {
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    #sobre::before {
        width: 400px;
        height: 400px;
        right: -100px;
        top: 60%;
    }
}