/* ====================================
   Reset e Base Styles
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - Paleta da Marca */
    --primary-blue: #112554;
    --secondary-brown: #5C1C1A;
    --accent-red: #871C1D;
    --light-beige: #D8C4A7;
    --white: #FFFFFF;
    --light-gray: #F3F3F3;
    --medium-gray: #E9ECEF;
    --dark-gray: #495057;
    --text-dark: #212529;
    
    /* Cores legadas (para gradientes e transições) */
    --primary-color: #112554;
    --secondary-color: #871C1D;
    --accent-color: #D8C4A7;
    
    /* Tipografia */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lora', serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ====================================
   Container
   ==================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   Header e Navegação
   ==================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 1.2rem 0;
}

.nav-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.2rem;
    transition: var(--transition-normal);
    grid-column: 2;
}

.menu-toggle {
    grid-column: 1;
    justify-self: start;
}

.nav-menu {
    grid-column: 3;
    justify-self: end;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    max-height: 75px;
    width: auto;
    transition: var(--transition-normal);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition-normal);
}

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

.nav-link:hover {
    color: var(--accent-red);
}

.nav-cta {
    background-color: var(--accent-red);
    color: var(--white) !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: var(--secondary-brown);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: var(--transition-normal);
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-red) 100%);
    background-image: 
        linear-gradient(135deg, rgba(17, 37, 84, 0.95) 0%, rgba(135, 28, 29, 0.95) 100%),
        url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding-top: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 37, 84, 0.85) 0%, rgba(135, 28, 29, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ====================================
   Buttons
   ==================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background-color: #20BA5A;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ====================================
   Section Styles
   ==================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--secondary-brown));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ====================================
   Sobre Section
   ==================================== */
.sobre {
    background-color: var(--light-gray);
}

/* Introdução do Escritório */
.sobre-intro {
    max-width: 1000px;
    margin: 0 auto 4rem;
    text-align: center;
}

.sobre-intro h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
}

.sobre-intro p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--dark-gray);
}

/* Seção da Advogada */
.advogada-section {
    margin-top: 4rem;
}

.advogada-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.advogada-text h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.advogada-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.advogada-text p strong {
    color: var(--accent-red);
    font-weight: 600;
}

/* Quote da Advogada */
.advogada-quote {
    background: linear-gradient(135deg, var(--accent-red), var(--secondary-brown));
    color: var(--white);
    padding: 2rem;
    border-left: 5px solid var(--light-beige);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 2rem 0;
    position: relative;
}

.advogada-quote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Credenciais */
.advogada-credentials {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    max-width: 300px;
}

.credential-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.credential-item i {
    font-size: 2rem;
    color: var(--accent-red);
    flex-shrink: 0;
}

.credential-item h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin: 0;
    font-weight: 600;
}

.credential-item p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.5;
}

/* Imagem da Advogada */
.advogada-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.advogada-image img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
    object-fit: cover;
    object-position: center 30%;
}

.image-decoration {
    display: none;
}

/* Responsividade */
@media (max-width: 992px) {
    .advogada-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .advogada-image {
        order: -1;
        margin: 0 auto;
    }

    .advogada-image img {
        width: 350px;
        height: 350px;
    }

    .sobre-intro h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .advogada-image img {
        width: 300px;
        height: 300px;
    }
    .sobre-intro h3 {
        font-size: 1.5rem;
    }

    .sobre-intro p {
        font-size: 1.05rem;
    }

    .advogada-text h3 {
        font-size: 1.5rem;
    }

    .advogada-text p {
        font-size: 1rem;
    }

    .advogada-quote {
        font-size: 1.05rem;
        padding: 1.5rem;
    }
}

/* ====================================
   Áreas de Atuação Section
   ==================================== */
.areas {
    background-color: var(--white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.area-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid var(--medium-gray);
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-red);
}

.area-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-red), var(--secondary-brown));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.area-icon i {
    font-size: 2rem;
    color: var(--white);
}

.area-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.area-card > p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.area-list {
    margin-bottom: 1.5rem;
}

.area-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--dark-gray);
}

.area-list li i {
    color: var(--accent-red);
    font-size: 0.9rem;
}

.area-link {
    color: var(--accent-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.area-link:hover {
    color: var(--accent-green);
    gap: 0.75rem;
}

/* ====================================
   Diferenciais Section
   ==================================== */
.diferenciais {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-red) 100%);
    color: var(--white);
}

.diferenciais .section-title {
    color: var(--white);
}

.diferenciais .section-divider {
    background: linear-gradient(90deg, var(--white), var(--light-beige));
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.diferencial-item {
    text-align: center;
}

.diferencial-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-normal);
}

.diferencial-item:hover .diferencial-icon {
    background-color: var(--white);
    transform: scale(1.1);
}

.diferencial-icon i {
    font-size: 2.5rem;
    color: var(--white);
    transition: var(--transition-normal);
}

.diferencial-item:hover .diferencial-icon i {
    color: var(--accent-red);
}

.diferencial-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.diferencial-item p {
    opacity: 0.9;
    line-height: 1.7;
}

/* ====================================
   Contato Section
   ==================================== */
.contato {
    background-color: var(--light-gray);
}

.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contato-info h3,
.contato-form h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-red), var(--secondary-brown));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.3rem;
    color: var(--white);
}

.info-text h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.info-text p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.info-text a {
    color: var(--accent-red);
    font-weight: 500;
}

.info-text a:hover {
    text-decoration: underline;
}

.contato-cta {
    margin-top: 2rem;
}

.contato-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

.form-group textarea {
    resize: vertical;
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-col p {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.footer-col ul li a {
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--light-beige);
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 0.5rem;
    color: var(--light-beige);
}

.footer-oab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    margin-top: 1rem;
}

.footer-oab i {
    color: var(--light-beige);
}

.btn-footer-whatsapp {
    background-color: #25D366;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-footer-whatsapp:hover {
    background-color: #20BA5A;
}

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

.footer-bottom p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-cnpj {
    font-size: 0.9rem;
}

/* ====================================
   Floating Elements
   ==================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-red), var(--secondary-brown));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 999;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-top.visible {
    display: flex;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
    z-index: 999;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 992px) {
    .nav-wrapper {
        grid-template-columns: auto 1fr auto;
    }

    .logo {
        grid-column: 2;
    }

    .menu-toggle {
        grid-column: 1;
    }

    .nav-menu {
        grid-column: 3;
        position: fixed;
        top: 95px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 95px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .contato-wrapper {
        grid-template-columns: 1fr;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 0.875rem 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        max-height: 60px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .contato-form {
        padding: 1.5rem;
    }
}