/* Silva & Rodrigues - Premium Law Firm Design */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette */
    --primary-color: #0f172a;
    /* Slate 900 - Deep Navy */
    --secondary-color: #c5a059;
    /* Muted Gold */
    --secondary-hover: #dbc183;
    --accent-color: #1e293b;
    /* Slate 800 */
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --bg-dark: #020617;
    /* Slate 950 */
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --section-padding: 5rem 2rem;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background-color: rgba(2, 6, 23, 0.98);
    /* Slightly more opaque */
    padding: 1.25rem 0;
    /* More vertical padding */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo - Optimized for new asset */
.logo img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    /* Stronger glow for simple transparent logo */
    transition: var(--transition);
}

.logo img:hover {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
    /* Very bright on hover */
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1rem;
    /* Slightly larger */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--secondary-color);
    /* Changed to solid for better visibility */
    border: 1px solid var(--secondary-color);
    color: var(--primary-color);
    padding: 0.85rem 1.75rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 2px;
    font-weight: 600;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Updated background with a clearer legal theme and lighter overlay */
    background: linear-gradient(rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.5)), url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    background-attachment: fixed;
    /* Parallax effect */
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(2, 6, 23, 0.4);
    /* Slight backdrop for text readability */
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.1);
    backdrop-filter: blur(3px);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero h1 span {
    color: var(--secondary-color);
    display: block;
    font-size: 5rem;
    margin-top: 0.5rem;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero .btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.hero .btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.5);
}

/* Section Common */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Areas of Expertise */
.areas {
    padding: var(--section-padding);
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1589578527966-fdac0f44566c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.area-card {
    background-color: rgba(30, 41, 59, 0.8);
    /* Semi-transparent */
    padding: 3.5rem 2.5rem;
    text-align: center;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.area-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background-color: rgba(30, 41, 59, 1);
}

.area-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.area-card h3 {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.area-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.btn-learn-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.btn-learn-more:hover {
    border-color: var(--secondary-color);
    letter-spacing: 1.5px;
}

.btn-learn-more i {
    margin-left: 5px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-learn-more:hover i {
    transform: translateX(4px);
}

/* Professionals */
.professionals {
    padding: var(--section-padding);
    background-color: var(--bg-dark);
}

.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    align-items: stretch;
    /* Ensure cards are same height */
}

.professional-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.professional-image {
    width: 100%;
    height: 550px;
    /* Increased height to show more body */
    overflow: hidden;
    background: linear-gradient(to bottom, #2c3e50, #000000);
    /* Professional gradient background */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align image to bottom */
}

.professional-image img {
    width: auto;
    height: 100%;
    /* Fill height */
    max-width: 100%;
    object-fit: contain;
    /* Ensure full image is visible without cropping */
    object-position: bottom center;
    /* Anchor to bottom */
    transition: var(--transition);
}

.professional-card:hover .professional-image img {
    transform: scale(1.03);
    /* Subtle zoom */
}

.professional-info {
    padding: 2.5rem;
    text-align: center;
    width: 100%;
    background-color: var(--primary-color);
    flex-grow: 1;
    /* Make info area fill remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.professional-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.oab {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.professional-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-contact-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-contact-small:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

/* Contact / Footer */
.footer {
    background-color: #000;
    padding: 4rem 2rem 2rem;
    color: var(--text-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: grayscale(100%) brightness(200%) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    /* Silver/White monochrome look for footer */
    opacity: 0.9;
    transition: var(--transition);
}

.footer-logo:hover {
    filter: grayscale(0%) brightness(100%) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    /* Restore color on hover */
    opacity: 1;
}

.footer-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .professionals-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .cta-button {
        display: none;
        /* Hide CTA in header on mobile to save space */
    }

    /* Hero adjustments */
    .hero {
        padding-top: 80px;
        height: auto;
        min-height: 100vh;
        background-attachment: scroll;
        /* Parallax often buggy on mobile */
    }

    .hero-content {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h1 span {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Grid fixes */
    .areas-grid,
    .professionals-grid {
        grid-template-columns: 1fr;
        /* Stack into single column */
        gap: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Professional card adjustments */
    .professional-image {
        height: 400px;
    }

    .professional-info h3 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h1 span {
        font-size: 2.2rem;
    }

    .area-card {
        padding: 2.5rem 1.5rem;
    }

    .professional-image {
        height: 350px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }


    /* WhatsApp Floating Button */
    .whatsapp-float {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background-color: #25d366;
        color: #fff;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        transition: var(--transition);
    }

    .whatsapp-float:hover {
        background-color: #128c7e;
        transform: scale(1.1);
        box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
        color: #fff;
    }

    /* Footer Link Hover */
    .footer-col ul li a:hover {
        color: var(--secondary-color) !important;
        padding-left: 5px;
    }

    /* Cookie Banner */
    .cookie-banner {
        position: fixed;
        bottom: 20px;
        left: 20px;
        max-width: 400px;
        background-color: var(--accent-color);
        color: var(--text-light);
        padding: 1.5rem;
        border-radius: 4px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
        z-index: 2000;
        display: none;
        border-left: 4px solid var(--secondary-color);
        animation: slideIn 0.5s ease;
    }

    .cookie-banner p {
        margin-bottom: 1rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .cookie-banner a {
        color: var(--secondary-color);
        text-decoration: underline;
    }

    .btn-accept {
        background-color: var(--secondary-color);
        color: var(--primary-color);
        border: none;
        padding: 0.5rem 1.5rem;
        border-radius: 2px;
        cursor: pointer;
        font-weight: 600;
        transition: var(--transition);
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .btn-accept:hover {
        background-color: var(--secondary-hover);
    }

    @keyframes slideIn {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}

/* FAQ Section */
.faq-accordion {
    width: 100%;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 4px;
    background-color: rgba(30, 41, 59, 0.2);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--secondary-color);
    background-color: rgba(30, 41, 59, 0.4);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    transition: var(--transition);
}

.faq-question i {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-question.active {
    color: var(--secondary-color);
    background-color: rgba(197, 160, 89, 0.05);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(2, 6, 23, 0.3);
}

.faq-answer p {
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}