@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-light: #f8f9fa;
    --text-on-dark: #e0e0e0;
    --text-on-light: #2d2d2d;
    --silver: #b5b5b5;
    --silver-dark: #8a8a8a;
    
    --bordo-primary: #7c121e;
    --bordo-dark: #4a0b12;
    --bordo-gradient: linear-gradient(135deg, #7c121e 0%, #4a0b12 100%);
    --bordo-hover: #9c1b2a;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-on-light);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, .cinzel {
    font-family: 'Cinzel', serif;
}

/* Header & Nav */
header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-on-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--silver);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-monogram {
    width: 36px;
    height: 36px;
    background: var(--bordo-gradient);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 12px;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    box-shadow: 0 4px 10px rgba(124, 18, 30, 0.4);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    padding: 0 15px;
}

.nav-links a {
    color: var(--silver);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--bordo-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: var(--silver);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--bg-dark);
    font-size: 2.5rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--bordo-gradient);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.bg-dark-section {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 80px 0;
}

.bg-dark-section .section-title {
    color: #fff;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, rgba(20, 5, 8, 0.4), rgba(20, 5, 8, 0.9)), url('law_firm_bg_marsala.png') center 25%/cover no-repeat;
    color: var(--text-on-dark);
    min-height: 45vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid var(--bordo-dark);
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.1;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.25rem;
    color: #e0e0e0;
    max-width: 700px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    background: var(--bordo-gradient);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 5px 15px rgba(124, 18, 30, 0.4);
    cursor: pointer;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #fff;
    color: var(--bordo-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 18, 30, 0.5);
    border: 1px solid var(--bordo-primary);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    background: transparent;
    color: var(--bordo-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--bordo-primary);
    cursor: pointer;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: var(--bordo-gradient);
    color: #fff;
    transform: translateY(-2px);
}

.btn-card {
    display: inline-block;
    color: var(--silver-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: auto;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.btn-card:hover {
    color: var(--bordo-primary);
}

/* Cards & Grid */
.card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--bg-dark);
}

.card h3 {
    color: var(--bg-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.atuacao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.atuacao-card {
    background: #fff;
    color: var(--text-on-light);
    padding: 40px 30px;
    border-radius: 8px;
    border-top: 4px solid var(--bordo-primary);
    display: flex;
    flex-direction: column;
    align-items: start;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.atuacao-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(124, 18, 30, 0.15);
}

.atuacao-card h3 {
    color: var(--bg-dark);
    margin-bottom: 15px;
    font-size: 1.35rem;
}

.atuacao-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Missão, Visão e Valores */
.mvw-section {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
}

.mvw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.mvw-card {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.mvw-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mvw-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.mvw-icon {
    width: 24px;
    height: 24px;
    background: var(--bordo-gradient);
    margin-right: 12px;
    border-radius: 4px;
}

.mvw-card p {
    color: var(--silver);
    line-height: 1.7;
}

/* Contato */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: auto;
}

.contact-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 4px solid var(--bordo-primary);
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.contact-card p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

@media(max-width: 600px) {
    .contact-buttons {
        flex-direction: column;
    }
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: center;
}

.info-item strong {
    display: block;
    color: var(--bordo-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.info-item p {
    color: var(--text-on-light);
    font-size: 1.1rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* Footer */
footer {
    background: #050505;
    color: var(--silver-dark);
    padding: 50px 20px;
    text-align: center;
}

footer p {
    max-width: 600px;
    margin: auto;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        padding: 20px 0;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 15px 0;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}