/*
Theme Name: Advocacia SC Custom
Author: Caio Vieira
Description: Tema exclusivo para o escritório Sônia de Carneiro Advogados Associados.
Version: 1.0
*/

:root {
  --primary: #0f2a44;
  --secondary: #b18c3a;
  --light: #f5f7fa;
  --dark: #0b1d2a;
  --text: #2a2a2a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: "Poppins", sans-serif; color: var(--dark); }

.container { max-width: 1200px; margin: auto; padding: 0 20px; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #800000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-grid { display: flex; align-items: center; justify-content: space-between; height: 120px; }
.logo { height: 150px; }

.main-nav a { margin-left: 24px; font-weight: 500; color: #ffffff; transition: 0.3s; }
.main-nav a:hover, .main-nav a.active { color: var(--secondary); }

/* HERO */
.hero, .page-hero {
  background: linear-gradient(rgba(15, 42, 68, .85), rgba(15, 42, 68, .85)),
    url("Imagens/Capa.jpg") center/cover no-repeat;
  color: #ffffff;
  padding: 150px 0;
  text-align: center;
}

/* GRIDS E SEÇÕES */
section { padding: 80px 0; }
.about-grid, .areas-section .area-card { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.mission-grid, .areas-grid, .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.mission-card, .team-card, .areas-grid .area-card {
  background: #ffffff; padding: 30px; border-radius: 10px; box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

.area-image img, .about-image img, .team-card img { width: 100%; border-radius: 10px; }

/* FOOTER */
.site-footer { background: #800000; color: #ffffff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 150px; }

/* WHATSAPP */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px; background: #25d366; color: #ffffff;
  padding: 14px 22px; border-radius: 50px; border: none; cursor: pointer; z-index: 999;
}

/* ANIMAÇÕES */
[data-animate] { opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
[data-animate].active { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .about-grid, .areas-section .area-card, .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .mission-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* AJUSTES ESPECÍFICOS PARA AS ÁREAS DE ATUAÇÃO */

.areas-section .area-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

/* Define que a imagem ocupa 50% do card */
.areas-section .area-image {
    flex: 0 0 50%; 
    max-width: 50%;
}

.areas-section .area-image img {
    width: 100%;
    height: 400px; 
    object-fit: contain; 
    display: block;
    background: #f5f7fa; 
    border-radius: 10px 0 0 10px;
}

.areas-section .area-content {
    flex: 1;
    padding: 30px;
}

.areas-section .area-content h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.areas-section .area-card:nth-child(even) {
    flex-direction: row-reverse;
}

.areas-section .area-card:nth-child(even) .area-image img {
    border-radius: 0 10px 10px 0;
}

/* ESTRUTURA DA PÁGINA SOBRE */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* GRID DE MISSÃO/VALORES */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* LISTA DE VALORES NO CARD */
.valores-list {
    list-style: none;
    padding: 0;
}

.valores-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.valores-list li::before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* GRID DA EQUIPE */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* ============================================================
                            MEDIA QUERIES
   ============================================================ */

/* TABLETS (768px ou mais) */
@media (min-width: 768px) {
  .page-hero { padding: 120px 0; }
  .page-hero h1 { font-size: 2.8rem; }
  
  .mission-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  
  .footer-grid { grid-template-columns: 1fr 1fr; text-align: left; }
  .footer-logo { margin: 0; }
}

/* DESKTOPS MÉDIOS (1024px ou mais) */
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .mission-grid, .team-grid { grid-template-columns: repeat(3, 1fr); }
  
  .areas-section .area-card { flex-direction: row; gap: 40px; }
  .areas-section .area-card:nth-child(even) { flex-direction: row-reverse; }
  .areas-section .area-image { flex: 0 0 50%; }
  .areas-section .area-image img { height: 400px; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* TELAS GRANDES E 4K */
@media (min-width: 1440px) {
  .container { max-width: 1400px; }
  html { font-size: 18px; }
  section { padding: 100px 0; }
}

/* WHATSAPP FLOAT  */
.whatsapp-float {
  position: fixed; 
  bottom: 20px; 
  right: 20px; 
  background: #25d366; 
  color: #ffffff;
  padding: 12px 20px; 
  border-radius: 50px; 
  text-decoration: none;
  font-weight: bold;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ============================================================
   ESTILO DO MENU HAMBÚRGUER (ADICIONADO AQUI)
   ============================================================ */

.menu-toggle {
    display: none; /* Escondido por padrão no Desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #ffffff;
    border-radius: 3px;
    transition: 0.3s;
}

/* Regras de ativação no Mobile */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: #800000 !important;
        padding-top: 100px;
        z-index: 9999;
        
        /* Estado inicial: Escondido totalmente para a direita */
        transform: translateX(100%); 
        transition: transform 0.4s ease-in-out;
        visibility: hidden;
    }

    /* QUANDO ATIVO: */
    .main-nav.active {
        transform: translateX(0);
        visibility: visible;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
}

    .main-nav a {
        margin: 0;
        font-size: 1.3rem;
    }

    /* Animação para o "X" */
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }
}