/* Reset and Base Styles */
:root {
    --bg-dark: #0a0e14;
    --bg-darker: #06090c;
    --bg-card: rgba(255, 255, 255, 0.03);
    
    --text-primary: #f0f2f5;
    --text-secondary: #a0a8b1;
    
    --gold-accent: #d4af37;
    --gold-accent-hover: #b8962c;
    --gold-gradient: linear-gradient(135deg, #e6c875 0%, #c19a5b 50%, #997a42 100%);
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;

h1, h2, h3, h4, .logo-main, .section-title {
    font-family: var(--font-heading);
    font-weight: 600;

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;

.container-narrow {
    max-width: 1000px;

.section-padding {
    padding: 100px 0;

.section-header {
    margin-bottom: 60px;

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;

.lead {
    font-size: 1.25rem;
    color: var(--gold-accent);
    margin-bottom: 20px;

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;

.btn-primary {
    background: var(--gold-gradient);
    color: var(--bg-darker);
    border: none;

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);

.btn-whatsapp {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);

.btn-whatsapp:hover {
    border-color: #25D366;
    color: #25D366;
    transform: translateY(-3px);

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);

.btn-outline:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    transform: translateY(-3px);

.whatsapp-icon {
    width: 20px;
    height: 20px;

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2px 0; /* Near zero padding */
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);

.navbar.scrolled {
    padding: 2px 0;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;

.logo-text {
    display: flex;
    flex-direction: column;

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: #0b1f48;

.logo-sub {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 4px;
    font-weight: 600;
    color: #c19a5b;

.brand-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);

.navbar.scrolled .brand-logo {
    max-height: 80px; /* Shrinks drastically when scrolling down */

.brand-logo:hover {
    transform: scale(1.05);

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a2230;
    font-weight: 500;
    position: relative;

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--gold-accent);
    transition: var(--transition);

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;

.hamburger {
    display: none;
    cursor: pointer;

.hamburger .bar {
    width: 25px;
    height: 2px;
    background: #1a2230;
    margin: 5px 0;
    transition: 0.3s;

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #1a2230 0%, #0a0e14 100%);
    overflow: hidden;

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg opacity="0.03" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0 100 L100 0 M0 0 L100 100" stroke="%23ffffff" stroke-width="0.5"/></svg>');
    background-size: 50% 50%;
    pointer-events: none;

.hero-text-wrapper {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding-top: 100px; /* Reduced push since header is smaller */

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;

.hero-buttons {
    display: flex;
    gap: 20px;

/* About Section */
.about {
    background-color: var(--bg-darker);

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;

.about-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);

.differentials {
    list-style: none;
    margin-top: 30px;

.differentials li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-primary);

.chk {
    color: var(--gold-accent);
    font-weight: bold;

.about-topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;

.about-topic h4 {
    color: var(--gold-accent);
    margin-bottom: 8px;
    font-size: 1.05rem;

.about-topic p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;

.about-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: transparent;
    border: none;

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);

.advogado-foto {
    height: 95%;
    width: auto;
    object-fit: cover;
    object-position: bottom;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));

.glass-panel {
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);

.floating-panel {
    position: absolute;
    bottom: -30px;
    left: -20px;
    right: 20px;
    z-index: 3;

.glass-panel h3 {
    color: var(--gold-accent);
    margin-bottom: 10px;

/* Practice Areas */
.services {
    background-color: var(--bg-dark);

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(10,14,20,0) 0%, rgba(10,14,20,0.95) 100%);
    z-index: 1;

.service-card h3, .service-card p {
    position: relative;
    z-index: 2;

.service-card h3 {
    margin-bottom: 12px;
    color: var(--gold-accent);

.service-card p {
    color: #fff;
    line-height: 1.5;
    margin-bottom: 0;

/* Background classes for Practice Areas */
.serv-civel { background: url('bg_civel.png') center/cover no-repeat; }
.serv-contratual { background: url('bg_contratual.png') center/cover no-repeat; }
.serv-civil { background: url('bg_civil.png') center/cover no-repeat; }
.serv-patrimonial { background: url('bg_patrimonial.png') center/cover no-repeat; }
.serv-consultiva { background: url('bg_contratual.png') center/cover no-repeat; }
.serv-internacional { background: url('lisboa.png') center/cover no-repeat; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 3;

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);

.service-card:hover::before {
    transform: scaleX(1);


/* Presence Section */
.presence {
    background-color: var(--bg-darker);

.presence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

.location-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background-color: #1a2230; /* Fallback if no bg image */
    background-size: cover;
    background-position: center;

.brazil {
    background: linear-gradient(180deg, rgba(10,14,20,0) 0%, rgba(10,14,20,0.9) 100%), url('recife.png');
    background-size: cover;
    background-position: center;

.portugal {
    background: linear-gradient(180deg, rgba(10,14,20,0) 0%, rgba(10,14,20,0.9) 100%), url('lisboa.png');
    background-size: cover;
    background-position: center;

.location-card:hover {
    transform: scale(1.02);
    transition: var(--transition);

.location-content h3 {
    font-size: 1.5rem;
    color: var(--gold-accent);
    margin-bottom: 10px;

.location-content p {
    color: var(--text-primary);

/* News Section */
.news {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255,255,255,0.02);

.news-slider-wrapper {
    position: relative;
    padding: 10px 0;

.news-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-accent) rgba(255,255,255,0.1);
    padding-bottom: 25px;

.news-slider::-webkit-scrollbar {
    height: 6px;

.news-slider::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;

.news-slider::-webkit-scrollbar-thumb {
    background: var(--gold-accent);
    border-radius: 4px;

.news-item {
    min-width: 320px;
    max-width: 350px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 25px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;

.news-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);

.news-date {
    font-size: 0.8rem;
    color: var(--gold-accent);
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;

.news-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
    flex-grow: 1;

.news-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;

.news-link:hover {
    color: var(--gold-accent);

/* Contact Section */
.contact {
    background-color: var(--bg-dark);

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;

.info-items {
    margin-top: 40px;

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;

.info-item .icon {
    font-size: 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    color: var(--gold-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;

.info-item h4 {
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;

.info-item a {
    color: var(--text-primary);
    font-size: 1.1rem;

.info-item a:hover {
    color: var(--gold-accent);

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);

.form-group {
    margin-bottom: 25px;

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    background: rgba(0,0,0,0.4);

.submit-btn {
    width: 100%;

/* Footer */
.footer {
    background-color: #ffffff;
    padding: 20px 0 5px;
    border-top: 1px solid rgba(0,0,0,0.05);

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 15px;
    align-items: center; /* helps align columns visually if content height differs */

.footer-brand p {
    color: #4a5568;
    margin-top: 15px;
    max-width: 300px;

.footer h4 {
    color: #1a2230;
    margin-bottom: 20px;
    font-size: 1.1rem;

.footer-links ul {
    list-style: none;

.footer-links li {
    margin-bottom: 10px;

.footer-links a {
    color: #4a5568;

.footer-links a:hover {
    color: var(--gold-accent);

.footer-contact p {
    color: #4a5568;
    margin-bottom: 10px;

.footer-contact p a {
    color: #4a5568;

.footer-contact p a:hover {
    color: var(--gold-accent);

.footer-bottom {
    text-align: center;
    background-color: #ffffff;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #718096;
    font-size: 0.85rem;

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);

.floating-whatsapp svg {
    width: 35px;
    height: 35px;

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: 0.8s ease-out;

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: 0.8s ease-out;

.slide-in-left.visible, .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(6, 9, 12, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        padding: 30px 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .presence-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
