/* ============================================
   YURI CAMPOS ADVOGADOS - Folha de estilos
   Paleta: Grafite #2B2B38 | Verde #679E7F | Cinza #DCDFE3
   Fonte: Montserrat
   ============================================ */

:root {
    --navy: #2B2B38;
    --navy-dark: #1E1E28;
    --navy-light: #3A3A48;
    --green: #679E7F;
    --green-dark: #527F65;
    --verde-petroleo: #304547;
    --cream: #F5F5F2;
    --white: #FFFFFF;
    --gray-100: #F8F8F8;
    --gray-200: #DCDFE3;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #1A1A1A;
    --max-width: 1200px;
    --shadow-sm: 0 2px 8px rgba(43, 43, 56, 0.08);
    --shadow-md: 0 8px 24px rgba(43, 43, 56, 0.12);
    --shadow-lg: 0 20px 40px rgba(43, 43, 56, 0.15);
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
    font-weight: 400;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-weight: 800; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: normal; color: var(--green); font-weight: 300; }

/* Textos justificados (sem hifenização) */
.hero-subtitle,
.sobre-text p,
.escritorio-hero-text p,
.valor-card p,
.area-card p,
.section-subtitle,
.contato-card > p {
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* ============================================ NAVBAR ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled { padding: 12px 0; box-shadow: var(--shadow-sm); border-bottom-color: var(--gray-200); }
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 48px; width: auto; max-width: 280px; display: block; object-fit: contain; }
.nav-menu { display: flex; gap: 36px; list-style: none; }
.nav-menu a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition);
    position: relative;
}
.nav-menu a:hover { color: var(--green); }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--green);
    transition: width var(--transition);
}
.nav-menu a:hover::after { width: 100%; }
.nav-toggle {
    display: none;
    background: none; border: none;
    cursor: pointer; padding: 8px;
    flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); transition: all var(--transition); }

/* ============================================ BOTÕES ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}
.btn-primary {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(103, 158, 127, 0.4);
}
.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 158, 127, 0.5);
}
.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(245, 245, 242, 0.4);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--green);
    color: var(--green);
}

/* ============================================ HERO (foto de fundo + texto por cima) ============================================ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    background-color: var(--navy);
    background-image:
        linear-gradient(
            90deg,
            rgba(43,43,56,1) 0%,
            rgba(43,43,56,0.95) 35%,
            rgba(43,43,56,0.75) 55%,
            rgba(43,43,56,0.25) 80%,
            rgba(43,43,56,0) 100%
        ),
        url('assets/hero-main.jpg?v=12');
    background-size: cover, auto 110%;
    background-position: center, right 20%;
    background-repeat: no-repeat;
}
.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}
.hero-text {
    max-width: 640px;
    color: var(--cream);
}
.hero-title {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    color: var(--cream);
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.hero-title em { color: var(--green); font-weight: 400; font-style: normal; }
.hero-subtitle {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: rgba(245, 245, 242, 0.85);
    margin-bottom: 28px;
    line-height: 1.65;
}
.hero-bullets { list-style: none; margin-bottom: 32px; padding: 0; }
.hero-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: rgba(245, 245, 242, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}
.hero-bullets li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--green);
    stroke-width: 2.5;
}
.hero-authority {
    padding: 14px 20px;
    background: rgba(103, 158, 127, 0.12);
    border-left: 3px solid var(--green);
    border-radius: 2px;
    margin-bottom: 28px;
    display: inline-block;
    backdrop-filter: blur(4px);
}
.hero-authority strong {
    color: var(--cream);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
}
.hero-oab {
    color: var(--green);
    font-weight: 500;
    font-size: 0.88rem;
    margin-left: 12px;
    letter-spacing: 0.05em;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============================================ SEÇÕES GERAIS ============================================ */
.section { padding: 100px 0; }
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--gray-500); line-height: 1.7; }

/* ============================================ SOBRE ============================================ */
.section-sobre { background: var(--cream); }
.sobre-grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 80px;
    align-items: center;
}
.sobre-image { position: relative; }
.sobre-image::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px;
    width: 100%; height: 100%;
    border: 2px solid var(--green);
    border-radius: 4px;
    z-index: 0;
}
.sobre-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}
.sobre-text h3 { font-size: 2rem; color: var(--navy); margin-bottom: 8px; }
.sobre-oab {
    color: var(--green);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.sobre-text p { color: var(--gray-700); margin-bottom: 20px; line-height: 1.8; }

/* ============================================ O ESCRITÓRIO ============================================ */
.section-escritorio { background: var(--white); }
.escritorio-hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.escritorio-hero-image img {
    width: 100%; height: auto; display: block;
    border-radius: 4px; box-shadow: var(--shadow-lg);
}
.escritorio-hero-text h3 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 24px;
    line-height: 1.2;
}
.escritorio-hero-text p {
    color: var(--gray-700);
    margin-bottom: 18px;
    line-height: 1.8;
}
.escritorio-hero-text p:last-child { margin-bottom: 0; }

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 96px;
}
.valores-grid-3 { grid-template-columns: repeat(3, 1fr); }
.valor-card {
    background: var(--cream);
    padding: 32px 28px;
    border-radius: 4px;
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
}
.valor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--green);
}
.valor-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.valor-card h4 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 700;
}
.valor-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; }

.espaco-wrapper { text-align: center; }
.espaco-titulo {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 40px;
}
.espaco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.espaco-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    margin: 0;
    aspect-ratio: 3 / 2;
}
.espaco-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.espaco-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s ease;
}
.espaco-item--preserve-right img {
    object-position: right center;
}
.espaco-item--preserve-top img {
    object-position: center top;
}
.espaco-item:hover img { transform: scale(1.05); }
.espaco-item figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(43, 43, 56, 0.9) 0%, transparent 100%);
    color: var(--white);
    padding: 32px 20px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.05em;
}

/* ============================================ ÁREAS DE ATUAÇÃO ============================================ */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.area-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.area-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    background: var(--green);
    transition: height var(--transition);
}
.area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.area-card:hover::before { height: 100%; }
.area-icon {
    width: 56px; height: 56px;
    border-radius: 4px;
    background: rgba(103, 158, 127, 0.1);
    color: var(--green);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    transition: all var(--transition);
}
.area-card:hover .area-icon {
    background: var(--green);
    color: var(--white);
}
.area-card h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 12px; }
.area-card p { color: var(--gray-500); line-height: 1.7; font-size: 0.95rem; }

/* ============================================ MATERIAL GRATUITO ============================================ */
.section-material {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    position: relative;
}
.material-card {
    max-width: 920px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 8px;
    padding: 48px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--green);
    align-items: center;
}
.material-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--green);
    background: rgba(103, 158, 127, 0.08);
    border-radius: 6px;
    padding: 36px 16px;
}
.material-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.material-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.2;
}
.material-content h3 em {
    color: var(--green);
    font-style: normal;
}
.material-lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 20px;
}
.material-list {
    list-style: none;
    margin: 0 0 28px 0;
    padding: 0;
}
.material-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.5;
}
.material-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 2px;
    background: var(--green);
}
.material-disclaimer {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 18px;
    line-height: 1.4;
    max-width: 480px;
}
@media (max-width: 768px) {
    .material-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 24px;
    }
    .material-visual {
        padding: 24px 16px;
    }
    .material-content h3 {
        font-size: 22px;
    }
}

/* ============================================ SOLICITE ATENDIMENTO ============================================ */
.section-contato {
    background: var(--navy);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}
.section-contato::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 100%;
    background: radial-gradient(circle at top right, rgba(103, 158, 127, 0.1) 0%, transparent 60%);
}
.section-contato .section-title { color: var(--cream); }
.section-contato .section-subtitle { color: rgba(245, 245, 242, 0.75); }
.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}
.contato-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 28px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--cream);
    transition: all var(--transition);
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}
a.contato-card:hover {
    background: rgba(103, 158, 127, 0.1);
    border-color: var(--green);
    transform: translateY(-4px);
}
.contato-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.contato-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--cream);
}
.contato-card > p {
    color: rgba(245, 245, 242, 0.85);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}
.contato-action {
    font-size: 0.85rem;
    color: var(--green);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: auto;
}

/* ============================================ RODAPÉ ============================================ */
.footer {
    background: var(--navy-dark);
    padding: 40px 0 28px;
}
.footer-only-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
}
.footer-logo {
    height: 48px;
    width: auto;
    display: block;
}
.footer-copyright {
    font-size: 0.82rem;
    color: rgba(245, 245, 242, 0.55);
    text-align: center;
    letter-spacing: 0.02em;
    margin: 0;
}

/* ============================================ BOTÃO FLUTUANTE WHATSAPP ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 60px; height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); background: #20BA5A; }
@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.7); }
}

/* ============================================ RESPONSIVIDADE ============================================ */
@media (max-width: 960px) {
    .valores-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .sobre-grid,
    .escritorio-hero {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .espaco-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hero {
        background-image:
            linear-gradient(
                180deg,
                rgba(30,30,40,0.85) 0%,
                rgba(43,43,56,0.75) 50%,
                rgba(43,43,56,0.60) 100%
            ),
            url('assets/hero-main.jpg?v=12');
        background-size: cover;
        background-position: center 20%;
    }
    .hero-text { max-width: 100%; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 24px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform var(--transition);
    }
    .nav-menu.active { transform: translateY(0); }
    .nav-menu li { border-bottom: 1px solid var(--gray-200); }
    .nav-menu a { display: block; padding: 16px 0; }
    .nav-logo img { height: 36px; max-width: 200px; }
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons .btn { justify-content: center; }
    .valores-grid-3 { grid-template-columns: 1fr; }
    .whatsapp-float {
        width: 52px; height: 52px;
        bottom: 16px; right: 16px;
    }
    .whatsapp-float svg { width: 26px; height: 26px; }
    .footer-logo { height: 40px; }
}

@media (max-width: 420px) {
    .nav-logo img { height: 32px; max-width: 160px; }
    .hero-authority { display: block; }
    .hero-oab { display: block; margin-left: 0; margin-top: 4px; }
}
