* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --preto: #0a0a0a;
    --dourado: #fbb03b;
    --branco: #ffffff;
    --off-white: #fafafa;
    --cinza-claro: #f5f5f5;
    --cinza-medio: #888888;
    --cinza-escuro: #2a2a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--preto);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--branco);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Menu */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.menu.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.menu-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.menu-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu-links a {
    color: var(--preto);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.menu-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dourado);
    transition: width 0.3s ease;
}

.menu-links a:hover {
    color: var(--dourado);
}

.menu-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--preto);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.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);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 50%, rgba(251, 176, 59, 0.08) 100%);
    color: var(--preto);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../images/seguins-advocacia-justica-hero-2.webp') center/cover no-repeat;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--dourado) 0%, rgba(251, 176, 59, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 140px 0 80px;
}

.hero-logo {
    margin-bottom: 40px;
}

.hero-logo img {
    height: 80px;
    width: auto;
}

.hero h1 {
    font-size: 56px;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 35px;
    color: var(--preto);
    letter-spacing: -1px;
}

.hero h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--dourado);
    margin-top: 30px;
}

.hero p {
    font-size: 19px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--preto);
}

.hero-subtitle {
    font-weight: 300;
    margin-bottom: 45px;
    font-size: 17px;
    color: var(--cinza-medio);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--preto);
    color: var(--branco);
    padding: 18px 45px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid var(--preto);
}

.btn-primary:hover {
    background: transparent;
    color: var(--preto);
    transform: translateX(5px);
}

/* Áreas */
.areas {
    padding: 120px 0;
    background: var(--cinza-claro);
}

.areas h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--preto);
    letter-spacing: -1px;
}

.areas-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: 300;
    color: var(--cinza-medio);
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.area-card {
    background: var(--branco);
    padding: 50px 40px;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--dourado);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.area-card:hover::before {
    height: 100%;
}

.area-card:hover {
    transform: translateX(8px);
    box-shadow: -10px 20px 60px rgba(0, 0, 0, 0.08);
}

.area-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
    stroke: var(--preto);
    transition: all 0.4s ease;
}

.area-card:hover .area-icon {
    stroke: var(--dourado);
    transform: scale(1.1);
}

.area-card h3 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--preto);
    letter-spacing: -0.5px;
}

.area-card p {
    font-size: 15px;
    font-weight: 400;
    color: #000000;
    line-height: 1.9;
}

.areas-footer {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Sobre */
.sobre {
    padding-top: 120px;
    padding-bottom: 0;
    background: var(--branco);
    position: relative;
    overflow: hidden;
}

.sobre::before {
    content: '';
    position: absolute;
    top: 80px;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../images/logo-seguins-bg.webp') top right no-repeat;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.sobre .container {
    padding-bottom: 0;
    position: relative;
    z-index: 1;
}

.sobre-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
}

.sobre-text {
    padding-right: 40px;
    padding-bottom: 60px;
}

.sobre h2 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--preto);
    letter-spacing: -1px;
}

.oab-info {
    font-size: 14px;
    font-weight: 400;
    color: var(--cinza-medio);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sobre-text p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 25px;
    color: #000000;
    line-height: 1.9;
}

.oab-badge {
    display: none;
}

.sobre-image {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0;
    line-height: 0;
    z-index: 2;
}

.sobre-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: bottom center;
    margin-bottom: 0;
    vertical-align: bottom;
}

/* Atendimento */
.atendimento {
    padding: 120px 0;
    background: var(--preto);
    color: var(--branco);
}

.atendimento h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 50px;
    color: var(--branco);
    letter-spacing: -1px;
}

.atendimento-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.atendimento-content p {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
}

.btn-atendimento {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--dourado);
    color: var(--preto);
    padding: 18px 45px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 25px rgba(251, 176, 59, 0.3);
    margin-top: 20px;
}

.btn-atendimento:hover {
    background: var(--branco);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 176, 59, 0.4);
}

.btn-atendimento svg {
    width: 24px;
    height: 24px;
}

/* Instagram */
.instagram {
    padding: 120px 0;
    background: var(--branco);
}

.instagram h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--preto);
    letter-spacing: -1px;
}

.instagram-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: 300;
    color: var(--cinza-medio);
    margin-bottom: 60px;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    min-height: 200px;
}

.instagram-feed:empty::before {
    content: 'Carregando feed do Instagram...';
    grid-column: 1 / -1;
    text-align: center;
    color: var(--cinza-medio);
    font-size: 16px;
    padding: 60px 20px;
}

.instagram-post {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--cinza-claro);
}

.instagram-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.instagram-post:hover img {
    transform: scale(1.05);
}

.instagram-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.instagram-post:hover .instagram-post-overlay {
    opacity: 1;
}

.instagram-post-caption {
    color: var(--branco);
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
    max-height: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--preto);
    padding: 18px 45px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid var(--preto);
    margin: 0 auto;
    display: flex;
    width: fit-content;
}

.btn-instagram:hover {
    background: var(--preto);
    color: var(--branco);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-instagram svg {
    width: 24px;
    height: 24px;
}

/* Customização do widget Elfsight Instagram */
.eapps-instagram-feed a {
    text-decoration: none;
    color: #000;
    margin: 0;
    display: none;
}

/* Contatos */
.contato {
    padding: 120px 0;
    background: var(--cinza-claro);
}

.contato h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 70px;
    color: var(--preto);
    letter-spacing: -1px;
}

.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contato-item {
    background: var(--branco);
    padding: 40px 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 2px solid transparent;
}

.contato-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--dourado);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contato-item:hover::before {
    height: 100%;
}

.contato-item:hover {
    transform: translateX(8px);
    box-shadow: -10px 20px 60px rgba(0, 0, 0, 0.08);
}

.contato-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 20px;
    stroke: var(--preto);
    transition: all 0.4s ease;
}

.contato-item:hover .contato-icon {
    stroke: var(--dourado);
    transform: scale(1.1);
}

.contato-item h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--preto);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.contato-item p {
    font-size: 15px;
    color: var(--cinza-medio);
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contato-item a {
    color: var(--cinza-medio);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contato-item a:hover {
    color: var(--dourado);
}

/* Formulário de Contato */
.contato-form-wrapper {
    background: var(--branco);
    padding: 50px 45px;
}

.contato-form-wrapper h3 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 35px;
    color: var(--preto);
    letter-spacing: -0.5px;
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--cinza-claro);
    background: var(--off-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--preto);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--dourado);
    background: var(--branco);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--preto);
    color: var(--branco);
    padding: 18px 40px;
    border: 2px solid var(--preto);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: transparent;
    color: var(--preto);
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
    fill: var(--branco);
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    }
}

/* Footer */
.footer {
    background: var(--preto);
    color: var(--branco);
    padding: 50px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer a {
    color: var(--dourado);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--branco);
}

/* Responsive */
@media (max-width: 1024px) {
    .sobre-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .sobre-text {
        padding-right: 0;
        padding-bottom: 40px;
    }

    .sobre-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .sobre {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .menu {
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
    }

    .menu.scrolled {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--branco);
        flex-direction: column;
        padding: 100px 40px;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow-y: auto;
    }

    .menu-links.active {
        right: 0;
    }

    .menu-links a {
        color: var(--preto);
        font-size: 16px;
        padding: 10px 0;
    }

    .menu-links a::after {
        bottom: 0;
    }

    .hero-logo img {
        height: 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero h1::after {
        margin-top: 20px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero::before {
        width: 100%;
        opacity: 0.08;
    }

    .areas h2,
    .sobre h2,
    .atendimento h2,
    .contato h2 {
        font-size: 36px;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .contato-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contato-form-wrapper {
        padding: 40px 30px;
    }

    .contato-item {
        padding: 35px 25px;
    }

    .contato-item p {
        font-size: 14px;
    }

    .sobre-image {
        max-width: 100%;
    }

    .sobre {
        padding-top: 80px;
        padding-bottom: 0;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 60px;
        height: 60px;
    }

    .whatsapp-btn svg {
        width: 32px;
        height: 32px;
    }

    .atendimento-content p {
        font-size: 18px;
    }
}
