/* ============================================
   Sites para Advogados - CSS
   Paleta: Azul escuro, dourado, branco
   Fontes: Playfair Display + Source Sans 3
   ============================================ */

:root {
    --color-primary: #1e293b;
    --color-secondary: #b45309;
    --color-accent: #d4a853;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-text-white: #f1f5f9;
    --color-border: #e2e8f0;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

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

/* ---- HEADER ---- */
.site-header {
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--color-accent);
}

.logo-highlight {
    color: var(--color-accent);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--color-text-white);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text-white);
    transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0f172a 100%);
    color: var(--color-text-white);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(180, 83, 9, 0.08);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- SECTIONS ---- */
.content-section {
    padding: 60px 0;
}

.content-section.alt-bg {
    background-color: var(--color-bg-alt);
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
}

.content-section h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-top: 35px;
    margin-bottom: 15px;
}

.content-section p {
    margin-bottom: 18px;
    font-size: 1.02rem;
}

/* ---- CARDS ---- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 10px;
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 12px;
}

.card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---- FEATURES ---- */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-item {
    padding: 24px;
    border-left: 3px solid var(--color-accent);
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.feature-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---- CTA ---- */
.cta-section {
    background: var(--color-primary);
    color: var(--color-text-white);
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--color-text-white);
    font-family: var(--font-heading);
}

.cta-section h2::after {
    background: var(--color-accent);
}

.cta-section p {
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-bg);
    padding: 14px 36px;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}

.cta-button:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ---- FOOTER ---- */
.site-footer {
    background: #0f172a;
    color: var(--color-text-white);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.footer-col p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.85rem;
}

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-primary);
        padding: 80px 30px 30px;
        transition: right var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .nav-list a {
        font-size: 1.1rem;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.15rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.45rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}
