:root {
    --primary-color: #c5a059; /* Gold accent */
    --primary-hover: #d4af37;
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-darker: #020617; /* Slate 950 */
    --text-light: #f8fafc;
    --text-muted: #dee2e6;
    --white: #ffffff;
    --glass: rgba(149, 154, 166, 0.8);
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 4s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Previne que o cabeçalho fixo cubra os títulos */
}

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

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

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

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

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

/* Typography */
.section-subtitle {
    display: block;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: #000000; /* Preto sólido conforme solicitado */
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

header.scrolled {
    background-color: #000000; /* Mantém preto ao rolar */
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 40px;
}

@media (max-width: 768px) {
    .logo img {
        height: 30px;
    }
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color) !important;
    transition: var(--transition);
    z-index: 1001;
}

.mobile-menu-btn i {
    color: var(--primary-color) !important;
}

.mobile-menu-btn:hover {
    color: var(--white);
}

/* Hero */
.hero {
    height: 100vh;
    background: url('assets/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-darker);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 20px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--bg-darker);
    transform: translateY(-3px);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* About Section */
.about p {
    margin-bottom: 20px;
    color: var(--text-muted);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-break: break-word;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-color);
    transform: translate(15px, 15px);
    z-index: -1;
    border-radius: 10px;
}

.image-wrapper img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* Cards */
.card {
    background-color: var(--bg-dark);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.specialty-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.specialty-card p {
    color: var(--text-muted);
}

/* MVV Section */
.mvv-card {
    background: #0f172a;
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.mvv-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.mvv-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mvv-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.mvv-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-break: break-word;
}

/* Portfolio CTA */
.portfolio-cta {
    background: linear-gradient(rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.9)), url('assets/equipe.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

/* Testimonials */
.testimonial-card {
    background: #0f172a;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.testimonial-card .quote-icon { /* Changed to avoid conflict with global quote-icon */
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author h4 {
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Quote Section Refinement */
.quote-main-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: block;
}

.quote-content blockquote {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    max-width: 900px;
    margin: 0 auto 20px;
}

/* Specialties Section Background */
.specialties {
    background: var(--bg-dark);
}

/* Quote Section */
.quote-section {
    padding: 120px 0;
    background: linear-gradient(rgba(10, 15, 30, 0.9), rgba(10, 15, 30, 0.9)), url('assets/quote-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quote-main-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    opacity: 0.8;
}

.quote-content blockquote {
    font-family: 'Libre Baskerville', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

.quote-content cite {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
}

/* Team Section Refined Cards */
.team-grid {
    align-items: stretch;
}

.team-card {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.team-card-header {
    height: 250px;
    overflow: hidden;
    background: #1e293b;
}

.team-img-wrapper {
    width: 100%;
    height: 100%;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

.team-card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-card-body h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 5px;
}

.team-card-body .oab {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.team-info-group {
    margin-bottom: 20px;
}

.team-info-group h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.team-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-tags li {
    background: rgba(197, 160, 89, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.team-card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.team-contact {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    gap: 15px;
}

.team-contact a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.team-contact a:hover {
    color: var(--primary-color);
}

/* Contact Section */
.contact-main {
    margin-bottom: 80px;
    align-items: flex-start;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #000000;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #666;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(136, 125, 100, 0.2);
}

.form-status {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: none;
    text-align: center;
    font-weight: 600;
}

.form-status.success {
    background: rgba(197, 160, 89, 0.15);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.form-status.error {
    background: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.w-100 {
    width: 100%;
}

.contact-item-simple {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item-simple i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item-simple h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.social-links-left {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.maps-title {
    margin-bottom: 40px;
}

.maps-title h3 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

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

.contact-grid {
    gap: 30px;
}

.contact-card {
    background-color: var(--bg-dark);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary-color);
}

.map-container {
    height: 300px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.contact-details {
    padding: 20px;
    text-align: center;
}

.contact-details h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background-color: var(--bg-darker);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in, .animate-up, .animate-left, .animate-right {
    opacity: 0;
    transition: all 4s ease;
}

.fade-in.reveal {
    opacity: 1;
    transform: translateY(0);
}

.animate-up.reveal {
    opacity: 1;
    transform: translateY(0);
}

.animate-left.reveal {
    opacity: 1;
    transform: translateX(0);
}

.animate-right.reveal {
    opacity: 1;
    transform: translateX(0);
}

.animate-left { transform: translateX(-50px); }
.animate-right { transform: translateX(50px); }
.animate-up { transform: translateY(50px); }

/* Responsive Design */
@media (max-width: 991px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header {
        background: #000000 !important; /* Totalmente preto no mobile */
        border-bottom: 1px solid var(--border);
        padding: 10px 0 !important;
        position: fixed !important;
    }

    header nav {
        padding: 0 40px !important; /* Aumentado para garantir espaçamento do menu */
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
    }

    .logo img {
        height: 32px !important;
    }

    /* FORCED POSITIONING AND STYLE FOR MOBILE MENU BTN */
    .mobile-menu-btn {
        display: block !important;
        position: relative !important; /* Voltando para relativo dentro do padding do nav */
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: 1200 !important;
    }

    .mobile-menu-btn i {
        color: #c5a059 !important;
        font-size: 1.8rem !important;
    }

    .grid-2, .grid-3, .contact-grid, .contact-main {
        grid-template-columns: 1fr !important;
        display: grid !important;
        gap: 30px !important;
    }

    .section-padding {
        padding: 50px 0 !important;
    }

    .container {
        padding: 0 25px !important; /* Mais respiro lateral para evitar corte do menu */
        width: 100% !important;
    }

    .hero-content {
        text-align: center;
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }

    .hero-content h2 {
        font-size: 1rem !important;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 30px !important; /* INCREASED GAP */
        align-items: center;
    }

    .btn {
        width: 100% !important;
        max-width: 280px !important;
        margin-left: 0 !important;
    }

    .nav-links {
        display: none !important;
        flex-direction: column !important;
        position: fixed !important; /* Fixed to cover whole screen */
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background-color: rgba(2, 6, 23, 0.98) !important;
        backdrop-filter: blur(15px);
        padding: 100px 20px !important; /* Space for header */
        z-index: 1000 !important;
        text-align: center !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        margin: 15px 0 !important;
    }

    .nav-links a {
        font-size: 1.3rem !important;
        color: var(--white) !important;
    }

    .about .grid-2 {
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    .image-wrapper::after {
        display: none !important;
    }

    .mvv-card, .testimonial-card, .specialty-card {
        padding: 30px 20px !important;
    }

    .team-card-body {
        padding: 20px !important;
    }

    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }

    .section-subtitle {
        font-size: 0.8rem !important;
    }
}
