/* ============================================
   YURI CAMPOS ADVOGADOS - Folha de estilos
   Paleta: navy #2D2E3F | green #7FB098 | off-white #F5F5F2
   ============================================ */

/* Paleta e tipografia OFICIAL da marca Yuri Campos Advogados */
:root {
    --navy: #2B2B38;         /* Grafite oficial */
    --navy-dark: #1E1E28;    /* Grafite mais escuro (gradiente) */
    --navy-light: #3A3A48;   /* Grafite claro */
    --green: #679E7F;        /* Verde oficial */
    --green-dark: #527F65;   /* Verde escuro derivado */
    --verde-petroleo: #304547; /* Verde Escuro oficial da marca */
    --cream: #F5F5F2;
    --white: #FFFFFF;
    --gray-100: #F8F8F8;
    --gray-200: #DCDFE3;     /* Cinza oficial */
    --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;
}

/* Tipografia (Montserrat — fonte oficial da marca) */
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;
}

/* ============================================
   NAVBAR (barra de navegação fixa no topo)
   ============================================ */
.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;
    color: var(--navy);
}

.nav-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.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: 500;
    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(127, 176, 152, 0.4);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 176, 152, 0.5);
}

/* ============================================
   HERO (primeira seção, grande impacto)
   ============================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 24px 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(127, 176, 152, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(127, 176, 152, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    color: var(--cream);
}

.hero-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto 40px;
    display: block;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    margin-bottom: 24px;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(245, 245, 242, 0.85);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(245, 245, 242, 0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero-scroll-indicator span {
    display: block;
    width: 4px;
    height: 8px;
    background: var(--green);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* ============================================
   SEÇÕES GERAIS
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.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;
}

/* ============================================
   SEÇÃO SOBRE
   ============================================ */
.section-sobre {
    background: var(--cream);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    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;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    object-fit: cover;
}

.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;
}

.sobre-list {
    list-style: none;
    margin-top: 32px;
}

.sobre-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.sobre-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--green);
}

/* ============================================
   Á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(127, 176, 152, 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;
}

/* ============================================
   CONTATO
   ============================================ */
.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(127, 176, 152, 0.1) 0%, transparent 60%);
}

.section-contato .section-title {
    color: var(--cream);
}

.section-contato .section-subtitle {
    color: rgba(245, 245, 242, 0.7);
}

.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 32px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--cream);
    transition: all var(--transition);
    text-align: center;
    backdrop-filter: blur(10px);
}

a.contato-card:hover {
    background: rgba(127, 176, 152, 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;
}

.contato-action {
    font-size: 0.85rem;
    color: var(--green);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ============================================
   RODAPÉ
   ============================================ */
.footer {
    background: var(--navy-dark);
    color: rgba(245, 245, 242, 0.7);
    padding: 60px 0 24px;
}

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

.footer-brand img {
    height: 48px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 400px;
}

.footer-info {
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.9;
}

.footer-info strong {
    color: var(--cream);
    font-size: 1rem;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-oab {
    font-size: 0.75rem;
    color: rgba(245, 245, 242, 0.5);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   BOTÃO FLUTUANTE DE 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 (telas menores: celular, tablet)
   ============================================ */
@media (max-width: 900px) {
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .footer-info {
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

@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: 40px;
    }

    .hero {
        padding: 90px 20px 50px;
    }

    .hero-logo {
        max-width: 220px;
        margin-bottom: 32px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }

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