/* ============================================
   MACHADO ADVOGADOS - CSS
   Design: Modernismo Corporativo Sóbrio
   Paleta: Azul-Marinho + Dourado + Branco
   ============================================ */

:root {
    --color-navy: #0d1b2a;
    --color-navy-light: #1a2f42;
    --color-gold: #b8860b;
    --color-gold-light: #d4a574;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray-dark: #333333;
    --color-text: #2d3436;
    --color-text-light: #636e72;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 1rem 0;
}

.header.scrolled {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-img {
    display: block;
    width: clamp(150px, 18vw, 220px);
    height: auto;
    max-height: 58px;
    padding: 0.35rem 0.55rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 0.5rem;
    object-fit: contain;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Navigation Desktop */
.nav-desktop {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-desktop a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-desktop a:hover {
    color: var(--color-gold);
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition);
}

.nav-desktop a:hover::after {
    width: 100%;
}

/* Button WhatsApp Header */
.btn-whatsapp-header {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .btn-whatsapp-header {
        display: flex;
    }
}

.btn-whatsapp-header:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
}

.icon-whatsapp {
    width: 18px;
    height: 18px;
}

/* Menu Toggle Mobile */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

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

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

.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(8px, -8px);
}

/* Navigation Mobile */
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: var(--color-navy-light);
    padding: 1.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-mobile a:hover {
    color: var(--color-gold);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.6)),
                url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1200&h=800&fit=crop') center/cover;
    background-attachment: fixed;
    margin-top: 60px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.3) 0%, rgba(13, 27, 42, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 700px;
    animation: fadeInUp 0.8s var(--ease-out);
}

.hero-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gold);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.text-gold {
    color: var(--color-gold);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-navy);
}

.btn-primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.3);
}

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

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-navy);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gold);
    font-size: 0.9rem;
    font-weight: 500;
}

.icon-check {
    width: 20px;
    height: 20px;
}

/* ============================================
   BENEFÍCIOS SECTION
   ============================================ */

.beneficios {
    padding: 5rem 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

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

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

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

.beneficio-card {
    padding: 2rem;
    background: var(--color-gray-light);
    border-radius: 0.75rem;
    transition: var(--transition);
    text-align: center;
}

.beneficio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.beneficio-icon {
    width: 60px;
    height: 60px;
    background: var(--color-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-gold);
}

.beneficio-icon svg {
    width: 30px;
    height: 30px;
}

.beneficio-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.beneficio-card p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ============================================
   ATUAÇÃO SECTION
   ============================================ */

.atuacao {
    padding: 5rem 0;
    background: var(--color-gray-light);
}

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

.atuacao-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--color-gold);
    transition: var(--transition);
}

.atuacao-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.atuacao-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.atuacao-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.atuacao-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.atuacao-list li {
    padding: 0.5rem 0;
    color: var(--color-text);
    padding-left: 1.5rem;
    position: relative;
}

.atuacao-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
}

.btn-link {
    display: inline-block;
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--color-gold-light);
}

/* ============================================
   SOBRE SECTION
   ============================================ */

.sobre {
    padding: 5rem 0;
    background: var(--color-white);
}

.sobre-content {
    max-width: 800px;
}

.sobre-text h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-navy);
    margin-bottom: 2rem;
}

.sobre-text p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* ============================================
   CONTATO SECTION
   ============================================ */

.contato {
    padding: 5rem 0;
    background: var(--color-gray-light);
}

.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contato-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: var(--transition);
}

.contato-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.contato-icon {
    width: 60px;
    height: 60px;
    background: var(--color-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-gold);
}

.contato-icon svg {
    width: 30px;
    height: 30px;
}

.contato-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.contato-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: flex-start;
}

.footer-logo {
    display: block;
    width: min(100%, 260px);
    height: auto;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 0.5rem;
    object-fit: contain;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

.footer-info {
    flex: 1;
}

.footer-company {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.footer-cnpj {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.footer-phone {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-description {
    grid-column: 2;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.legal-logo-link {
    flex: 0 1 260px;
}

.legal-logo,
.legal-footer-logo {
    display: block;
    width: min(100%, 240px);
    height: auto;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 0.5rem;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.legal-back-link {
    flex: 1;
    justify-content: flex-end;
}

.legal-footer-logo {
    width: min(100%, 220px);
    margin: 0 auto 1rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

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

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.footer-bottom a,
.legal-footer-content p a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover,
.legal-footer-content p a:hover {
    color: var(--color-gold);
}

/* ============================================
   WHATSAPP FLUTUANTE
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

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

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

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .hero {
        margin-top: 50px;
        min-height: 80vh;
    }

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

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

    .section-header h2 {
        font-size: 1.8rem;
    }

    .beneficios-grid,
    .atuacao-grid,
    .contato-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-description {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    body .legal-header .legal-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-back-link {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .logo-img {
        width: 138px;
        padding: 0.3rem 0.45rem;
    }
}
