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

:root {
    --primary: #0f172a;
    /* Azul Executivo */
    --primary-light: #1e293b;
    /* Slate 800 */
    --accent: #3b82f6;
    /* Azul Ação */
    --accent-hover: #2563eb;
    --azul-vm: #5a8bd4;
    --text-main: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f3f4f6;
    /* Fundo Secundário */
    --bg-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
.section-tag {
    font-family: 'Lexend', sans-serif;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
    background: #ffffff;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    width: 100%;
    height: 100%;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeito de Logo Branca no Topo (Desktop) */
@media (min-width: 769px) {
    .nav:not(.scrolled) .nav-logo {
        filter: brightness(0) invert(1);
    }
}

.nav.scrolled .nav-logo {
    height: 45px;
}

.nav-logo-text {
    font-family: 'Lexend', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled .nav-logo-text {
    color: var(--primary) !important;
}

.nav-logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav.scrolled .nav-links a {
    color: var(--primary);
}

.nav-links a:hover,
.nav.scrolled .nav-links a:hover {
    color: var(--accent);
}

.nav-links a.nav-cta {
    background: var(--accent);
    color: var(--bg-white) !important;
    padding: 0.6rem 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--accent);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 1rem;
}

.nav-links a.nav-cta:hover {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
}

.nav.scrolled .nav-links a.nav-cta:hover {
    color: var(--accent) !important;
    border-color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled .nav-toggle span {
    background: var(--primary);
}

/* Hero Section */
/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('./assets/site-imagens/sessao-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    padding: 100px 0 160px;
    min-height: 85vh;
    overflow: hidden;
    text-align: left !important;
}

.hero::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: -25%;
    left: -25%;
    z-index: 1;
    pointer-events: none;
}

.hero-wrapper {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-top: 40px;
    /* Reduzido drasticamente para remover o vácuo após o header */
    max-width: 750px !important;
    display: block !important;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3.5rem;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    max-width: 600px;
}

/* About Section Highlight Wrapper */
.about {
    padding-top: 0;
}

.about-highlight {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: stretch;
    /* Garante que a imagem preencha a altura */
    margin-top: -120px;
    margin-bottom: 4rem;
    background: var(--bg-white);
    padding: 3.5rem;
    /* Mais compacto */
    border-radius: 0;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.about .section-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.about .about-text {
    margin: 0;
}



.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-white);
    padding: 1.25rem 3rem;
    text-decoration: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
    color: var(--bg-white);
}

.btn-link {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.btn-link:hover {
    color: var(--primary);
    border-bottom-color: var(--accent);
    transform: translateX(5px);
}

/* Button variants for different backgrounds */
.hero .btn-primary,
.cta-dark .btn-primary {
    background: var(--bg-white);
    color: var(--primary);
    border-color: var(--bg-white);
}

.hero .btn-primary:hover,
.cta-dark .btn-primary:hover {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.cta-gold-btn .btn-primary {
    background: var(--accent);
    color: var(--bg-white);
    border-color: var(--accent);
}

.cta-gold-btn .btn-primary:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

/* Section Styling */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.1;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-description {
    margin: 4rem 0 2rem;
    text-align: left;
}

.about-description-text {
    max-width: 900px;
}

.about-description-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    background: var(--accent);
    color: var(--bg-white);
    transform: rotate(10deg);
}

.value-item h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.value-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Practice Areas */
.practice {
    background: var(--primary);
    color: var(--bg-white);
}

.practice .section-tag {
    color: var(--accent);
}

.practice .section-header h2 {
    color: var(--bg-white);
}

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

.practice-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.practice-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.practice-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 600;
}

.practice-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Section */
/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    position: relative;
    /* Necessário para o overlay */
    padding: 80px 0;
    background: url('/assets/site-imagens/sessao-contatos.avif') no-repeat center center/cover;
    color: var(--color-dark);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    /* Overlay branco semi-transparente */
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-description {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
}

.contact-methods {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0;
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-method>div:last-child {
    min-width: 0;
    flex: 1;
}

.contact-method h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-method a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    max-width: 100%;
}

.contact-method a:hover {
    color: var(--accent);
}

.disclaimer {
    background: var(--bg-light);
    padding: 1.5rem;
    border-left: 3px solid var(--accent);
    border-radius: 0;
}

.disclaimer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.disclaimer strong {
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo,
.footer .nav-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
}

.nav .nav-logo {
    max-width: 180px;
    max-height: 45px;
    height: auto;
    width: auto;
    display: block;
    margin: 0;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

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

.footer-bottom-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--accent);
}

.footer-legal-links span {
    color: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-dev a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-dev a:hover {
    color: var(--aqua);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    /* overflow: hidden; */
    /* Removido para permitir que o efeito de onda apareça */
}

/* Efeito de Onda (Pulse) Duplo */
.whatsapp-float::after,
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--accent);
    z-index: -1;
    opacity: 0.5;
    animation: pulse-wave 3s infinite;
}

.whatsapp-float::before {
    animation-delay: 1.5s;
}

@keyframes pulse-wave {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@media (min-width: 1024px) {
    .whatsapp-float {
        width: 110px;
        justify-content: flex-start;
        padding-left: 12px;
        padding-right: 15px;
    }

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

.whatsapp-float:hover {
    transform: translateX(-5px);
    background: var(--accent-hover);
    box-shadow: -5px 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-float span {
    display: none;
}

@media (min-width: 1024px) {
    .whatsapp-float span {
        display: block;
        margin-left: 6px;
        font-weight: 700;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

/* CTA Sections */
.cta-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.cta-section.cta-dark {
    background: var(--primary);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section.cta-dark h2 {
    color: var(--bg-white);
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-section.cta-white {
    background: var(--bg-white);
}

.cta-section.cta-dark p {
    color: rgba(255, 255, 255, 0.9);
}

/* Statistics Section */
.stats {
    background: var(--primary);
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
    color: var(--bg-white);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Services Section */
.services {
    background: #0a0f1c;
    /* Fundo ultra dark para contraste premium */
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.services::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.services .section-header h2 {
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    /* Bauhaus style: cards colados com bordas compartilhadas */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 4rem 3rem;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
    margin: -0.5px;
    /* Compensa a borda dupla do grid */
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}



.service-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    color: var(--accent);
    transition: all 0.4s ease;
}

.service-icon svg {
    width: 40px;
    height: 40px;
}



.service-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.service-card .service-description {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.service-details {
    list-style: none;
    padding-left: 0;
    margin-top: auto;
}

.service-details li {
    padding: 0.75rem 0 0.75rem 1.8rem;
    position: relative;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover .service-details li {
    color: rgba(255, 255, 255, 0.8);
}

.service-details li:last-child {
    padding-bottom: 0;
}

.service-details li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 400;
}

.service-link {
    margin-top: 2.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
    color: var(--accent-hover);
}

.individual-service {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 3rem 2.5rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 0 !important;
    /* Reseta o margin negativo do bauhaus style na home */
}

.individual-service:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent) !important;
}

.individual-service .section-tag {
    background: rgba(15, 23, 42, 0.05);
    padding: 0.4rem 0.8rem;
    margin-bottom: 1.5rem !important;
    font-size: 0.7rem;
    color: var(--primary);
    width: fit-content;
}

.individual-service h3 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    margin-bottom: 2rem !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.individual-service .service-icon {
    margin-bottom: 1.5rem !important;
    color: var(--accent) !important;
    display: block;
}

.individual-service .service-details li {
    color: var(--text-muted) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.individual-service:hover .service-details li {
    color: var(--text-dark) !important;
}

.services-page-section .service-link:hover {
    color: var(--accent-hover) !important;
}

/* Team Section */
.team {
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}


.team-photo-block {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.team-photo-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-photo-block:hover img {
    transform: scale(1.05);
}

.team-info-block {
    aspect-ratio: 1/1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem;
    border: 0.5px solid rgba(0, 0, 0, 0.05);
    transition: background 0.4s ease;
}

.team-info-block:hover {
    background: #fdfdfd;
}

.team-info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.team-role {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.team-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.team-social {
    display: flex;
    gap: 1.25rem;
}

.team-social a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.team-social a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.team-social svg {
    width: 18px;
    height: 18px;
}

.team-brand-block {
    aspect-ratio: 1/1;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
}

.team-brand-block .logo-text {
    font-family: 'Lexend', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.team-brand-block .logo-text span {
    color: var(--accent);
}

.team-brand-block p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Blog Section */
.blog {
    background: var(--bg-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.blog-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.blog-category {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    color: var(--text-muted);
    border-radius: 0;
}

.blog-cta {
    text-align: center;
}

/* Contact Section Updates */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info .section-header {
    text-align: left;
}

.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background: var(--bg-white);
    padding: 4rem;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.25rem;
    border: 1.5px solid #edf2f7;
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.form-group select:required:invalid {
    color: var(--text-muted);
}

.form-group option[value=""][disabled] {
    display: none;
}

.form-group option {
    color: var(--text-dark);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.form-success {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    border-radius: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.form-success.active {
    display: flex;
}

.form-success svg {
    color: var(--accent);
    margin-bottom: 1rem;
}

.form-success h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-muted);
}

.form-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    border-radius: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.form-error.active {
    display: flex;
}

.form-error svg {
    color: #dc3545;
    margin-bottom: 1rem;
}

.form-error h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-error p {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        background-attachment: scroll;
        /* Better performance on mobile */
        text-align: left;
    }

    .hero-wrapper {
        justify-content: flex-start;
    }

    .hero-content {
        text-align: left;
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-cta .btn-primary {
        margin-bottom: 25px;
    }

    .about-highlight {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
        gap: 3rem;
        margin-top: -80px;
    }

    .about .section-header {
        text-align: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 0;
    }

    .contact-form {
        padding: 2.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-col.footer-brand {
        grid-column: 1 / -1;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        border: none;
    }

    .team-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .team-info-block,
    .team-photo-block {
        aspect-ratio: auto;
        min-height: 380px;
    }

    /* Ajuste de ordem para Leandro (inverter info e foto no mobile) */
    .leandro-photo {
        order: 4;
    }

    .leandro-info {
        order: 5;
    }

    .team-brand-block {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid #e5e5e5;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 120px 0 60px;
    }

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

    .nav-logo {
        height: 42px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        margin-left: 0 !important;
        text-align: left;
    }

    .about-image {
        order: -1;
        /* Image first on mobile */
    }

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

    section {
        padding: 4rem 0;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

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

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .services-grid,
    .team-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-info-block {
        order: 2;
        /* Texto sempre depois da foto no mobile para facilitar leitura */
    }

    .services-grid {
        border: none;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 80px;
        right: 0;
        padding-left: 0;
        justify-content: center;
    }

    .whatsapp-float span {
        display: none;
    }

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

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

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-method {
        padding: 1rem;
        gap: 0.75rem;
    }

    .contact-method .method-icon {
        width: 36px;
        height: 36px;
    }

    .contact-method .method-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-method a {
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .contact-method {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .contact-method a {
        font-size: 0.8rem;
    }
}

@media (min-width: 1921px) {
    .hero {
        max-height: 900px;
    }
}

/* Blog List & Rows (Bauhaus Style) */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-row {
    display: flex;
    align-items: stretch;
    min-height: 450px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Borda em todo o card para separação clara */
    background: #fff;
    transition: all 0.4s ease;
    margin-bottom: 3rem;
    /* Espaço generoso entre cada blog */
    overflow: hidden;
    position: relative;
}

.blog-row:nth-child(even) {
    flex-direction: row-reverse;
}

.blog-row:hover {
    background: #fff;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    /* Sombra mais profunda para foco */
    border-color: var(--accent);
    /* Destaque azul na borda */
    transform: translateY(-8px);
    /* Elevação suave */
}

.blog-row-content {
    flex: 1;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-row-image {
    flex: 1;
    overflow: hidden;
    position: relative;
    aspect-ratio: 2 / 1;
}

.blog-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-row:hover .blog-row-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.blog-row .section-tag {
    margin-bottom: 2rem;
    display: inline-block;
}

.blog-row h2,
.blog-row h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Single Post Main Image Style */
.post-main-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    margin-bottom: 3rem;
    background: #f1f5f9;
}

.blog-row .excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Share Buttons Styles */
.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.share-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 0.5rem;
}

.share-btns-wrapper {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: #f8fafc;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* Hover específico para plataformas (opcional se quiser usar as cores reais) */
.share-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.share-btn.linkedin:hover {
    background: #0077B5;
    border-color: #0077B5;
}

.share-btn.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

@media (max-width: 640px) {
    .post-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.blog-row .read-more {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.blog-row:hover .read-more {
    transform: translateX(10px);
}

/* Responsividade Blog Rows */
@media (max-width: 992px) {

    .blog-row,
    .blog-row:nth-child(even) {
        flex-direction: column-reverse;
        min-height: auto;
    }

    .blog-row-content {
        padding: 3rem 2rem;
    }

    .blog-row-image {
        height: 300px;
    }
}

/* Roundness 0 Overrides */
.filter-btn,
.service-card,
.overview-card,
.overview-icon,
.btn-primary,
.btn-secondary,
.btn-link,
.nav-cta,
.form-group input,
.form-group select,
.form-group textarea,
.whatsapp-float {
    border-radius: 0 !important;
}

/* Flickering Fix */
.services-grid {
    min-height: 400px;
    transition: opacity 0.3s ease;
}

.services-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}


/* Services Overview Section (Homepage) */
.services-overview {
    background: var(--primary);
    color: var(--bg-white);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.services-overview .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.services-overview .section-header h2 {
    color: var(--bg-white);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.overview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    height: 100%;
}

.overview-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    transform: translateY(-10px);
}

.overview-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.overview-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.overview-list {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.overview-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
}

.overview-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    flex-shrink: 0;
}

.overview-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.overview-link:hover {
    gap: 1rem;
    color: var(--bg-white);
}

@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .overview-card {
        padding: 2.5rem;
    }
}

/* Services Page Enhancements (Light Background Fix) */
.services-page-section {
    background: var(--bg-white) !important;
}

.services-page-section .section-header h2 {
    color: var(--primary) !important;
}

.services-page-section .services-grid {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.services-page-section .service-card {
    border-color: rgba(0, 0, 0, 0.08) !important;
    background: #fff !important;
}

.services-page-section .service-card h3 {
    color: var(--primary) !important;
}

.services-page-section .service-card .service-description {
    color: var(--text-muted) !important;
}

.services-page-section .service-card .service-details li {
    color: var(--text-muted) !important;
}

/* Global Search Overlay */
.search-trigger {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.nav.scrolled .search-trigger {
    color: var(--primary);
}

.search-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.nav.scrolled .search-trigger:hover {
    background: rgba(15, 23, 42, 0.05);
}

.search-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    z-index: 1050;
    overflow: hidden;
    transition: width 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    display: flex;
    align-items: center;
}

.search-overlay.active {
    width: 100%;
    overflow: visible;
    /* Permite ver os resultados que caem abaixo do header */
}

.search-overlay-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease 0.3s;
}

.search-overlay.active .search-overlay-container {
    opacity: 1;
    transform: translateX(0);
    overflow: visible;
    /* Garante que a lista de resultados absoluta não seja cortada */
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.search-overlay input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    outline: none;
    padding: 1rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-overlay input:focus {
    border-bottom-color: var(--accent);
}

.search-overlay input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.search-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.search-results-list {
    position: absolute;
    top: calc(100% + 15px);
    /* Espaço maior do header */
    left: 0;
    right: 0;
    width: 600px;
    /* Largura fixa */
    max-width: 90vw;
    /* Responsividade em telas pequenas */
    margin: 0 auto;
    background: #fff;
    max-height: 450px;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 2500;
    border: 1px solid #e2e8f0;
}

.search-result-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.search-result-item:hover {
    background: #f8fafc;
    padding-left: 2.5rem;
}

.search-result-item .res-type {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.search-result-item .res-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    background: #fff;
}

@media (max-width: 768px) {
    .search-overlay input {
        font-size: 1.2rem;
    }
}