/* ============================================
   Advocacia Ribeiro SJC - Estilos
   Mobile First | Pure CSS | pt-BR
   ============================================ */

/* Reset e base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #c9a227;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Tipografia */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: #1a365d;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #1a365d;
    color: #ffffff;
    border-color: #1a365d;
}

.btn-primary:hover {
    background-color: #0f2440;
    border-color: #0f2440;
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #1a365d;
}

.btn-whatsapp,
.btn-whatsapp-full {
    background-color: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.btn-whatsapp:hover,
.btn-whatsapp-full:hover {
    background-color: #1da851;
    border-color: #1da851;
    color: #ffffff;
}

.btn-whatsapp-full {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
}

/* ========== HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a365d;
    font-size: 1.25rem;
}

.logo:hover {
    color: #1a365d;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-text strong {
    color: #1a365d;
}

.logo-text {
    font-family: Georgia, serif;
    letter-spacing: 0.5px;
}

/* Menu toggle (hambúrguer) - mobile */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #1a365d;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navegação - mobile first (escondida) */
.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.main-nav.open {
    max-height: 320px;
}

.main-nav ul {
    padding: 1rem 0;
}

.main-nav li {
    border-bottom: 1px solid #eef0f4;
}

.main-nav a {
    display: block;
    padding: 0.9rem 1.5rem;
    color: #1a365d;
    font-weight: 600;
    font-size: 1rem;
}

.main-nav a:hover {
    background-color: #f0f4f8;
    color: #c9a227;
}

.header-whatsapp {
    display: none; /* some apenas em telas maiores */
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #0f2440 100%);
    color: #ffffff;
    padding: 4rem 0 4.5rem;
    text-align: center;
}

.hero-subtitle {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c9a227;
    margin-bottom: 0.75rem;
    font-family: Arial, Helvetica, sans-serif;
}

.hero-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: center;
}

.hero-actions .btn {
    width: 100%;
    max-width: 280px;
}

/* ========== SEÇÕES COMUNS ========== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #5a6a7a;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
}

/* ========== SOBRE ========== */
.sobre {
    padding: 4rem 0;
    background-color: #ffffff;
}

.sobre-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sobre-texto p {
    margin-bottom: 1rem;
    color: #333;
}

.sobre-destaques {
    margin-top: 1.5rem;
}

.sobre-destaques li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: #1a365d;
    font-weight: 600;
}

.sobre-destaques li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c9a227;
    font-weight: bold;
}

.sobre-card {
    background: linear-gradient(145deg, #1a365d, #0f2440);
    border-radius: 8px;
    padding: 2px;
}

.sobre-card-inner {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.sobre-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.sobre-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.sobre-card p {
    color: #5a6a7a;
    font-size: 0.95rem;
}

.sobre-card hr {
    border: none;
    border-top: 1px solid #e0e4ea;
    margin: 1.25rem 0;
}

.sobre-local {
    font-size: 0.9rem !important;
}

/* ========== ÁREAS ========== */
.areas {
    padding: 4rem 0;
    background-color: #f0f4f8;
}

.areas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.area-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 3px solid #1a365d;
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.area-icon {
    font-size: 2rem;
    margin-bottom: 0.85rem;
}

.area-titulo {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: #1a365d;
}

.area-desc {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.55;
}

/* ========== CONTATO ========== */
.contato {
    padding: 4rem 0;
    background-color: #ffffff;
}

.contato-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contato-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.info-item {
    margin-bottom: 1.35rem;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c9a227;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 0.3rem;
}

.info-item p {
    color: #333;
    font-size: 0.98rem;
}

.info-item a {
    color: #1a365d;
    font-weight: 600;
}

.info-item a:hover {
    color: #c9a227;
}

/* Formulário */
.contato-form-wrapper {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.75rem 1.25rem;
    border: 1px solid #e0e4ea;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.35rem;
    font-family: Arial, Helvetica, sans-serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #cfd6e0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #1a1a2e;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Honeypot */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.btn-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-mensagem {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
}

.form-mensagem.sucesso {
    display: block;
    background-color: #e6f7ed;
    color: #0d5c2e;
    border: 1px solid #a3e0bc;
}

.form-mensagem.erro {
    display: block;
    background-color: #fdecea;
    color: #9b1c1c;
    border: 1px solid #f5c2c0;
}

/* ========== FOOTER ========== */
.site-footer {
    background-color: #0f2440;
    color: #d0d7e2;
    padding-top: 3rem;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-subtitle {
    color: #c9a227;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.85rem;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-contact li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact a {
    color: #ffffff;
}

.footer-contact a:hover {
    color: #c9a227;
}

.footer-whatsapp {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-oab {
    margin-top: 0.35rem;
    font-size: 0.8rem;
}

/* ============================================
   MEDIA QUERIES - Progressive Enhancement
   (Mobile First)
   ============================================ */

/* Tablets e acima (≥ 640px) */
@media (min-width: 640px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-actions .btn {
        width: auto;
    }
    
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop pequeno (≥ 768px) */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    .main-nav {
        position: static;
        max-height: none;
        box-shadow: none;
        background: transparent;
        overflow: visible;
    }
    
    .main-nav ul {
        display: flex;
        gap: 0.25rem;
        padding: 0;
    }
    
    .main-nav li {
        border: none;
    }
    
    .main-nav a {
        padding: 0.5rem 0.9rem;
        font-size: 0.95rem;
    }
    
    .main-nav a:hover {
        background: transparent;
    }
    
    .header-whatsapp {
        display: inline-block;
    }
    
    .sobre-grid {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
    
    .sobre-texto {
        flex: 1.4;
    }
    
    .sobre-card {
        flex: 1;
        max-width: 320px;
    }
    
    .contato-grid {
        flex-direction: row;
        gap: 3rem;
    }
    
    .contato-info {
        flex: 1;
    }
    
    .contato-form-wrapper {
        flex: 1.3;
        padding: 2rem;
    }
    
    .footer-grid {
        flex-direction: row;
        gap: 2.5rem;
    }
    
    .footer-col {
        flex: 1;
    }
}

/* Desktop médio (≥ 992px) */
@media (min-width: 992px) {
    .hero {
        padding: 5.5rem 0 6rem;
    }
    
    .hero-title {
        font-size: 2.85rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Desktop grande (≥ 1200px) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.1rem;
    }
}
