:root {
    --gold: #D4AF37;
    --gold-light: #F9E498;
    --black: #0A0A0A;
    --dark-grey: #1A1A1A;
    --white: #FFFFFF;
    --text-muted: #B0B0B0;
    --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Alex Brush', cursive;
    font-weight: 400;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* Common Section Styles */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.overlay.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 80%, var(--black) 100%);
}

.overlay.sobre-overlay {
    background: linear-gradient(to bottom, var(--black) 0%, rgba(0,0,0,0.65) 50%, var(--black) 100%);
}

.overlay.areas-overlay {
    background: linear-gradient(to bottom, var(--black) 0%, rgba(0,0,0,0.45) 50%, var(--black) 100%);
}

.section-title {
    font-size: 4.5rem;
    color: var(--gold);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 400;
}

/* Hero Section */
#hero {
    background-image: url('Imagens/martinsesilva-bg.jpg');
    text-align: center;
}

.logo-hero {
    max-width: 400px;
    height: auto;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.hero-text p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.scroll-indicator p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin: 0;
    margin-right: -2px; /* Compensa o letter-spacing no final para centralizar o bloco perfeitamente */
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

.scroll-indicator .mouse {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid var(--gold);
    border-radius: 12px;
    position: relative;
    opacity: 0.8;
}

.scroll-indicator .mouse::after {
    content: '';
    width: 4px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMove 1.5s infinite ease-in-out;
}

@keyframes scrollMove {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Sobre Section */
#sobre {
    background-image: url('Imagens/sobre-nos.jpg');
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.text-block p {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.team-block h3 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.lawyer-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--gold);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.lawyer-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.lawyer-card .name {
    font-weight: 600;
    font-size: 1.1rem;
}

.lawyer-card .oab {
    color: var(--gold);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Areas Section */
#areas {
    background-image: url('Imagens/areas-de-atuacao-ms.jpg');
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.area-item {
    background: rgba(0, 0, 0, 0.7);
    padding: 4rem 2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.area-item:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.area-icon {
    margin-bottom: 1.5rem;
    color: var(--gold);
    display: flex;
    justify-content: center;
}

.area-item h3 {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--white);
    margin: 0;
}

/* Footer & Contact */
#contato {
    background: var(--black);
    padding: 100px 0 0 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 80px;
}

.contact-item {
    text-align: center;
    padding: 2rem;
}

.contact-item .icon {
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.contact-item .label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-item .value {
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--gold);
}

.sub-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 7px 0;
    text-align: center;
}

.tronux-branding img {
    max-width: 100%;
    height: auto;
    transition: var(--transition);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    section {
        padding: 80px 0;
    }
    .content-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .areas-grid {
        gap: 1.5rem;
    }
    .logo-hero {
        max-width: 300px;
    }
    .hero-text p {
        font-size: 1.15rem;
        padding: 0 1rem;
    }
    .section-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    .team-block h3 {
        font-size: 2.5rem;
    }
    .area-item {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 600px) {
    section {
        padding: 60px 0;
    }
    .container {
        padding: 0 1.5rem;
    }
    .areas-grid {
        grid-template-columns: 1fr; /* Quebra as áreas de atuação para 1 coluna no celular */
    }
    .logo-hero {
        max-width: 80%;
    }
    .hero-text p {
        font-size: 1.05rem;
    }
    .section-title {
        font-size: 3rem;
    }
    .contact-grid {
        gap: 1.5rem;
        margin-bottom: 50px;
    }
    .contact-item {
        padding: 1.5rem;
    }
    .contact-item .icon svg {
        width: 32px;
        height: 32px;
    }
    .contact-item .value {
        font-size: 0.85rem;
        word-break: normal;
        overflow-wrap: break-word;
    }
    .scroll-indicator {
        bottom: 20px;
    }
}
