/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar - Minimalist and Calm Design */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B4513, #D2B48C);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #D2B48C, #8B4513);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #8B4513 rgba(26, 26, 26, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid #8B4513;
    border-top: 1px solid #8B4513;
    transition: transform 0.3s ease;
}

.header.header-hidden {
    transform: translateY(-100%);
}

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

.logo-img {
    height: 80px;
    width: auto;
}

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

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #D2B48C;
}



/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(0, 0, 0, 0.8)), url('img/direito.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #D2B48C;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.cta-button {
    display: inline-block;
    background-color: #8B4513;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #8B4513;
}

.cta-button:hover {
    background-color: transparent;
    color: #8B4513;
    transform: translateY(-2px);
}



/* About Section */
.about {
    padding: 80px 0 0 0; /* add top padding to account for fixed header */
    min-height: 100vh; /* make section fill the viewport height */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/direito22.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    backdrop-filter: blur(5px);
    display: flex; /* use flexbox for perfect centering */
    align-items: center; /* center vertically */
    justify-content: center; /* center horizontally */
    position: relative; /* ensure proper stacking context */
}

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

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* vertically center within full-height section */
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh; /* ensure content takes full viewport height */
    padding: 0 20px; /* add some horizontal padding */
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #D2B48C;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.about-text h2.about-title {
    color: #8B4513;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.3);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0.95;
}

.about-image-section {
    margin-top: 40px;
    text-align: center;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.impactful-phrase {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(210, 180, 140, 0.1) 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(139, 69, 19, 0.3);
    backdrop-filter: blur(10px);
}

.impactful-phrase h3 {
    font-size: 28px;
    font-weight: 600;
    color: #D2B48C;
    margin-bottom: 15px;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.impactful-phrase p {
    font-size: 18px;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* New Image and Impactful Phrase Section */
.about-image-section-main {
    padding: 100px 0;
    min-height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/direito33.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid #8B4513;
    border-bottom: 1px solid #8B4513;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
}

.about-image-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}



.impactful-phrase-main {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(26, 26, 26, 0.8) 100%);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid rgba(139, 69, 19, 0.6);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.impactful-phrase-main h3 {
    font-size: 32px;
    font-weight: 700;
    color: #D2B48C;
    margin-bottom: 20px;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

.impactful-phrase-main p {
    font-size: 20px;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}



/* Practice Areas */
.practice-areas {
    padding: 100px 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(5px);
    border-top: 1px solid #8B4513;
}

.practice-areas h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #ffffff;
}

.areas-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    gap: 30px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards are now arranged in 2 rows with 3 columns each */

/* For medium screens, maintain 3x2 grid layout */
@media (min-width: 768px) and (max-width: 1199px) {
    .areas-grid {
        max-width: 900px;
        gap: 25px;
    }
}

/* For larger screens, maintain 3x2 grid layout */
@media (min-width: 1200px) {
    .areas-grid {
        max-width: 1200px;
        gap: 30px;
    }
}

.area-card {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #8B4513;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 350px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Cards maintain proper flexbox layout within grid cells */

/* Ensure cards maintain proper flexbox layout */
.practice-areas .area-card {
    display: flex !important;
    flex-direction: column !important;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.2);
    border-color: #D2B48C;
}

.area-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #D2B48C;
}

.area-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #D2B48C;
}

.area-card p {
    color: #ffffff;
    line-height: 1.6;
    opacity: 0.9;
}

/* Show only emoji and title on area cards */
.area-card p { display: none; }
.area-card { cursor: pointer; }

/* Practice Area Modal theming (reusing modal shell) */
#areaModal .modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98) 0%, rgba(15, 15, 15, 0.99) 100%);
}

#areaModalContent {
    padding: 80px 60px 60px 60px;
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
    position: relative;
}

#areaModalContent .area-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

#areaModalContent .area-emoji {
    font-size: 3rem;
    filter: drop-shadow(0 6px 18px rgba(210, 180, 140, 0.35));
}

#areaModalContent h1 {
    font-size: 2.2rem;
    color: #D2B48C;
}

#areaModalContent .area-subtitle {
    margin-top: 6px;
    color: rgba(255,255,255,0.85);
    opacity: 0.95;
}

/* Background ornament */
#areaModalContent::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 220px;
    background: radial-gradient(800px 220px at 10% 0%, rgba(210,180,140,0.10), transparent),
                radial-gradient(800px 220px at 90% 0%, rgba(139,69,19,0.10), transparent);
    pointer-events: none;
}

#areaModalContent .divider {
    height: 2px;
    margin: 20px 0 24px 0;
    background: linear-gradient(90deg, rgba(210,180,140,0.6), rgba(210,180,140,0) 60%);
    border-radius: 2px;
}

/* Minimal, elegant scroll accents for area modal */
#areaModal .modal-content::-webkit-scrollbar {
    width: 8px;
}

#areaModal .modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

#areaModal .modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D2B48C, #8B4513);
    border-radius: 8px;
}

/* Decorative subtle borders and glow */
#areaModalContent .section-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(210, 180, 140, 0.25);
    border-left: 4px solid #8B4513;
    border-radius: 14px;
    padding: 20px 22px;
    margin: 14px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

#areaModalContent .section-card h3 {
    color: #D2B48C;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#areaModalContent .section-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#areaModalContent .section-list li {
    position: relative;
    padding-left: 24px;
    margin: 10px 0;
    color: rgba(255,255,255,0.95);
}

#areaModalContent .section-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0;
    color: #D2B48C;
}

#areaModalContent .chip {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(210, 180, 140, 0.35);
    margin: 6px 6px 0 0;
    background: linear-gradient(180deg, rgba(210,180,140,0.08), rgba(139,69,19,0.06));
    color: #fff;
    font-size: 0.9rem;
}

#areaModalContent .area-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

#areaModalContent .area-cta {
    margin-top: 22px;
}

#areaModalContent .area-cta a.button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(210,180,140,0.45);
    color: #D2B48C;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(210,180,140,0.09), rgba(139,69,19,0.08));
    transition: transform .2s ease, background .2s ease;
}

#areaModalContent .area-cta a.button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(210,180,140,0.14), rgba(139,69,19,0.12));
}

@media (max-width: 768px) {
    /* Mobile menu behavior */
    .nav-toggle { display: flex; }
    
    /* News section mobile adjustments */
    .news-section .container {
        padding: 0 15px;
    }
    
    .news-carousel {
        gap: 10px;
    }
    
    .news-track {
        gap: 14px;
        padding: 6px 6px;
    }
    .nav-menu {
        position: absolute;
        top: 80px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        gap: 16px;
        background: rgba(26, 26, 26, 0.98);
        border: 1px solid #8B4513;
        border-radius: 10px;
        padding: 16px;
        box-shadow: 0 18px 40px rgba(0,0,0,0.4);
        z-index: 1001;
    }
    .nav-menu.nav-open { display: flex; }
    .nav-menu a { font-size: 18px; }

    /* Avoid iOS issues with fixed backgrounds */
    .hero,
    .about,
    .about-image-section-main {
        background-attachment: scroll;
    }

    /* Use small viewport units for better mobile vh behavior */
    .hero,
    .about { min-height: 100svh; }

    /* Lighten heavy effects for performance */
    .header { backdrop-filter: blur(6px); }
    .area-card,
    .lawyer-card { box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

    /* Anchor offset so content isn't hidden under fixed header */
    section[id] { scroll-margin-top: 90px; }
    #areaModalContent { padding: 60px 30px 40px 30px; }
    #areaModalContent h1 { font-size: 1.8rem; }
    #areaModalContent .area-emoji { font-size: 2.2rem; }
    #areaModalContent .area-sections { grid-template-columns: 1fr; }

	    /* Force telephone links (auto-detected on mobile) to be white only on mobile */
	    a[href^="tel"],
	    a[href^="tel"]:visited,
	    a[href^="tel"]:hover,
	    a[href^="tel"]:active {
	        color: #ffffff !important;
	        text-decoration: none;
	    }
}

/* Team Section */
.team {
    padding: 100px 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(5px);
    border-top: 1px solid #8B4513;
}



.team h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #ffffff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.lawyer-card {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.95) 0%, rgba(26, 26, 26, 0.98) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(139, 69, 19, 0.3);
    position: relative;
    cursor: pointer;
}

.lawyer-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(139, 69, 19, 0.3);
    border-color: rgba(210, 180, 140, 0.5);
}

.lawyer-card:active {
    transform: translateY(-4px) scale(1.01);
}

.lawyer-photo {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, rgba(139, 69, 19, 0.2), rgba(210, 180, 140, 0.2));
}

.lawyer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Adjust object position for specific photos to avoid cutting the forehead */
.lawyer-photo img[alt="Natan Falcão Fiuza"] {
    object-position: center 20%;
}

/* Slightly higher framing just for Flávio */
.lawyer-photo img[alt="Flávio Loch"] {
    object-position: center 24%;
}

.lawyer-card:hover .lawyer-img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.lawyer-info {
    padding: 35px;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
}

.lawyer-info-simple {
    padding: 25px;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    text-align: center;
}

/* Lawyer names on the presentation cards */
.lawyer-info-simple h3 {
    color: #8B4513;
}

.lawyer-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
}

.lawyer-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #8B4513, #D2B48C);
    border-radius: 1px;
}

.oab {
    font-weight: 700;
    color: #D2B48C;
    margin-bottom: 12px;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(210, 180, 140, 0.2));
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(210, 180, 140, 0.3);
}

.education, .specialization, .expertise {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.5;
    padding-left: 15px;
    position: relative;
    opacity: 0.9;
}

.education::before, .specialization::before, .expertise::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #D2B48C;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: rgba(26, 26, 26, 0.95);
    color: white;
    backdrop-filter: blur(5px);
    border-top: 1px solid #8B4513;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #ffffff;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #D2B48C;
}

.contact-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #ffffff;
}

.contact-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(139, 69, 19, 0.3);
}

/* Footer */
.footer {
    background-color: rgba(26, 26, 26, 0.95);
    color: white;
    padding: 60px 0 20px;
    backdrop-filter: blur(5px);
    border-top: 1px solid #8B4513;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 85px;
    width: auto;
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h4, .footer-contact-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #D2B48C;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #D2B48C;
}

.footer-contact-section p {
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer-contact-section .contact-item {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(210, 180, 140, 0.2);
}

.footer-contact-section .contact-item:last-child {
    border-bottom: none;
}

.footer-contact-section .contact-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #D2B48C;
}

.footer-contact-section .contact-item p {
    font-size: 0.9rem;
    margin-bottom: 3px;
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid #8B4513;
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .hero-content {
        max-width: 600px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        max-width: 600px;
        text-align: center;
    }
    
    .about-image-section {
        margin-top: 35px;
    }
    
    .impactful-phrase h3 {
        font-size: 24px;
    }
    
    .about-image-section-main {
        padding: 60px 0;
    }
    
    .impactful-phrase-main h3 {
        font-size: 28px;
    }
    
    .impactful-phrase-main p {
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .areas-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: repeat(6, 1fr) !important;
        max-width: 100%;
        padding: 0 20px;
        gap: 25px;
    }
    
    .area-card {
        max-width: 100%;
        min-height: auto;
    }
}

/* News Section Styles */
.news-section {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 60px 0;
    border-top: 1px solid #8B4513;
}

/* TRT News Section - Slight variation for visual distinction */
.trt-news-section {
    background-color: rgba(26, 26, 26, 0.92);
    border-top: 1px solid rgba(139, 69, 19, 0.7);
}

.trt-news-section h2 {
    color: #D2B48C;
}

.news-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 30px;
}

.news-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 6px 4px;
    -webkit-overflow-scrolling: touch;
}

.news-track::-webkit-scrollbar {
    height: 8px;
}

.news-track::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B4513, #D2B48C);
    border-radius: 4px;
}

.carousel-btn {
    background: rgba(139, 69, 19, 0.25);
    color: #D2B48C;
    border: 1px solid rgba(210,180,140,0.45);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.carousel-btn:hover { background: rgba(139, 69, 19, 0.4); }

.news-card { flex: 0 0 calc(33.333% - 8px); scroll-snap-align: start; }

.news-card {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 12px;
    padding: 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    min-width: 300px;
    max-width: 440px;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: #D2B48C;
    box-shadow: 0 18px 34px rgba(139,69,19,0.22);
}

.news-card h3 {
    font-size: 1.05rem;
    color: #D2B48C;
}

.news-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.news-meta {
    font-size: 0.8rem;
    opacity: 0.75;
}

.news-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.5), transparent);
    border-radius: 1px;
}

.news-link {
    color: #D2B48C;
    text-decoration: none;
    border-bottom: 1px dashed rgba(210,180,140,0.6);
    transition: border-color 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
}

.news-link:hover {
    border-bottom-color: #D2B48C;
}

.news-footer {
    text-align: center;
    margin-top: 30px;
}

.news-more {
    color: #D2B48C;
    text-decoration: none;
    border-bottom: 1px dashed rgba(210,180,140,0.6);
}

/* Enhanced Loading States for Mobile */
.news-skeleton {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 12px;
    padding: 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 300px;
    max-width: 440px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes skeleton-pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.news-skeleton::before {
    content: '';
    height: 20px;
    background: rgba(139, 69, 19, 0.3);
    border-radius: 4px;
    margin-bottom: 10px;
}

.news-skeleton::after {
    content: '';
    height: 16px;
    background: rgba(139, 69, 19, 0.2);
    border-radius: 4px;
    width: 80%;
}

/* Mobile-specific loading improvements */
@media (max-width: 768px) {
    .news-skeleton {
        min-width: 280px;
        max-width: 320px;
        padding: 16px;
    }
    
    .news-skeleton::before {
        height: 18px;
    }
    
    .news-skeleton::after {
        height: 14px;
    }
}

@media (max-width: 480px) {
    .news-skeleton {
        min-width: 260px;
        max-width: 300px;
        padding: 14px;
    }
    
    .news-skeleton::before {
        height: 16px;
    }
    
    .news-skeleton::after {
        height: 12px;
    }
}

/* Responsive News Layout */
@media (max-width: 1024px) {
    .news-card { 
        flex-basis: calc(50% - 8px); 
    }
}

@media (max-width: 640px) {
    .news-card { 
        flex-basis: calc(90%); 
        min-width: 240px; 
        max-width: 320px;
        padding: 16px;
        margin-right: 8px;
    }
    
    .news-track {
        padding: 6px 8px;
        gap: 12px;
    }
    
    .news-carousel {
        gap: 8px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .news-card { 
        flex-basis: calc(95%); 
        min-width: 220px; 
        max-width: 280px;
        padding: 14px;
        margin-right: 6px;
    }
    
    .news-track {
        padding: 6px 6px;
        gap: 10px;
    }
    
    .news-carousel {
        gap: 6px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
    }
    
    /* Smaller header offset */
    section[id] { scroll-margin-top: 80px; }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-text h2,
    .practice-areas h2,
    .team h2,
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .about-image-section {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .about-image {
        margin-bottom: 20px;
    }
    
    .impactful-phrase {
        padding: 20px;
    }
    
    .impactful-phrase h3 {
        font-size: 22px;
    }
    
    .impactful-phrase p {
        font-size: 16px;
    }
    
    .about-image-section-main {
        padding: 40px 0;
    }
    
    .impactful-phrase-main {
        padding: 25px;
        margin: 0 15px;
    }
    
    .impactful-phrase-main h3 {
        font-size: 24px;
    }
    
    .impactful-phrase-main p {
        font-size: 16px;
    }
    
    .team-grid {
        gap: 25px;
        padding: 0 15px;
    }
    
    .lawyer-card {
        margin: 0;
    }
    
    .lawyer-info {
        padding: 25px;
    }
    
    .lawyer-info h3 {
        font-size: 1.3rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Animation classes for scroll triggering */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animate-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-on-scroll.animate-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-on-scroll.animate-up {
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-on-scroll.animate-scale {
    animation: scaleIn 0.8s ease-out forwards;
}

.animate-on-scroll.animate-rotate {
    animation: rotateIn 0.8s ease-out forwards;
}

/* Staggered animations for grid items */
.animate-on-scroll.stagger-1 { animation-delay: 0.1s; }
.animate-on-scroll.stagger-2 { animation-delay: 0.2s; }
.animate-on-scroll.stagger-3 { animation-delay: 0.3s; }
.animate-on-scroll.stagger-4 { animation-delay: 0.4s; }
.animate-on-scroll.stagger-5 { animation-delay: 0.5s; }
.animate-on-scroll.stagger-6 { animation-delay: 0.6s; }

/* Garantir que as imagens sejam sempre visíveis */
img {
    opacity: 1 !important;
    transition: opacity 0.3s ease;
}

.hero-text,
.hero-image,
.about-text,
.about-image,
.area-card,
.lawyer-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Ensure proper opacity for animated elements */
.animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
}

/* Page load animation */
body.loaded .hero-text,
body.loaded .hero-subtitle,
body.loaded .hero-description {
    animation: fadeInUp 1s ease-out forwards;
}

body.loaded .hero-subtitle {
    animation-delay: 0.2s;
}

body.loaded .hero-description {
    animation-delay: 0.4s;
}

body.loaded .cta-button {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}



/* Improved shadows for better depth perception */
.header {
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
}

.practice-areas,
.team,
.contact,
.footer {
    box-shadow: inset 0 1px 0 rgba(139, 69, 19, 0.2);
}

/* Enhanced navigation hover effects */
.nav-menu a:hover {
    color: #D2B48C;
    text-shadow: 0 0 10px rgba(210, 180, 140, 0.3);
}



/* Thin separator line between sections */
.section-separator {
    height: 1px;
    background: linear-gradient(90deg, rgba(210,180,140,0.7), rgba(210,180,140,0));
    margin: 0;
}

/* Enhanced text readability */
.area-card p,
.lawyer-info .education,
.lawyer-info .specialization,
.lawyer-info .expertise {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Lawyer Profile Page Styles - Now handled by modal */

/* Modal Styles */
.lawyer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.lawyer-modal.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.98) 0%, rgba(26, 26, 26, 0.99) 100%);
    margin: 0;
    padding: 0;
    border-radius: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    position: relative;
    box-shadow: none;
    border: none;
    backdrop-filter: blur(15px);
    transform: translateY(20px);
    transition: transform 0.4s ease-in-out;
}

.lawyer-modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 40px;
    font-weight: bold;
    color: #D2B48C;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.2);
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    color: #ffffff;
    background: rgba(139, 69, 19, 0.4);
    transform: scale(1.1);
}

.close-modal:active {
    transform: scale(0.95);
}

/* Modal content styling */
#modalContent {
    padding: 80px 60px 60px 60px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B4513, #D2B48C);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #D2B48C, #8B4513);
}

#modalContent .lawyer-profile-header {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 3px solid rgba(139, 69, 19, 0.4);
}

#modalContent .lawyer-profile-photo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(139, 69, 19, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

#modalContent .lawyer-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#modalContent .lawyer-profile-info h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

#modalContent .oab-profile {
    font-size: 1.5rem;
    color: #D2B48C;
    font-weight: 500;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#modalContent .lawyer-profile-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

#modalContent .detail-section {
    background: rgba(26, 26, 26, 0.6);
    padding: 35px;
    border-radius: 20px;
    border-left: 5px solid #D2B48C;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#modalContent .detail-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #D2B48C;
    margin-bottom: 20px;
    position: relative;
}

#modalContent .detail-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #D2B48C, transparent);
}

#modalContent .detail-section p {
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 15px;
    opacity: 0.95;
    font-size: 1.1rem;
}

#modalContent .detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#modalContent .detail-section li {
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    opacity: 0.95;
    font-size: 1.1rem;
}

#modalContent .detail-section li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #D2B48C;
    font-size: 0.9rem;
}

/* Responsive modal design */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }
    
    #modalContent {
        padding: 60px 30px 40px 30px;
        max-width: 100%;
    }
    
    #modalContent .lawyer-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    #modalContent .lawyer-profile-photo {
        width: 150px;
        height: 150px;
    }
    
    #modalContent .lawyer-profile-info h1 {
        font-size: 2.5rem;
    }
    
    #modalContent .lawyer-profile-details {
        gap: 25px;
        max-width: 100%;
    }
    
    .close-modal {
        top: 20px;
        right: 25px;
        font-size: 35px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    #modalContent {
        padding: 50px 20px 30px 20px;
        max-width: 100%;
    }
    
    #modalContent .lawyer-profile-info h1 {
        font-size: 2rem;
    }
    
    #modalContent .oab-profile {
        font-size: 1.2rem;
    }
    
    #modalContent .detail-section {
        padding: 25px;
    }
    
    #modalContent .detail-section h2 {
        font-size: 1.5rem;
    }
    
    #modalContent .lawyer-profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

/* =====================
   Booking (consulta) page
   ===================== */

.booking-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
}

.booking-card {
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(135deg, rgba(45,45,45,0.92), rgba(20,20,20,0.96));
    border: 1px solid rgba(210,180,140,0.35);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.booking-header {
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(210,180,140,0.25);
}

.booking-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.booking-brand img {
    height: 70px;
    width: auto;
}

.booking-brand span {
    color: #D2B48C;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.booking-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.booking-visual {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139,69,19,0.12), rgba(210,180,140,0.08));
    border-right: none;
    border-bottom: 1px solid rgba(210,180,140,0.18);
    padding: 20px;
}

.booking-image {
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 0;
    filter: none;
}

.booking-overlay { display: none; }

.booking-options {
    padding: 38px 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.booking-title {
    font-size: 2rem;
    color: #fff;
}

.booking-subtitle {
    color: rgba(255,255,255,0.85);
    margin-top: 4px;
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 8px;
}

.option-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(210,180,140,0.25);
    border-left: 4px solid #8B4513;
    border-radius: 14px;
    padding: 18px 18px 18px 16px;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(139,69,19,0.20);
    border-color: rgba(210,180,140,0.45);
}

.option-info h3 {
    margin: 0 0 6px 0;
    color: #D2B48C;
}

.option-info p {
    margin: 0;
    color: rgba(255,255,255,0.9);
}

.option-actions a.button {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(210,180,140,0.45);
    color: #D2B48C;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(210,180,140,0.09), rgba(139,69,19,0.08));
}

.option-actions a.button + a.button { margin-left: 10px; }

.option-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.booking-footer {
    padding: 16px 32px 28px;
    border-top: 1px solid rgba(210,180,140,0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.85);
}

.booking-footer small { opacity: .8; }

@media (max-width: 980px) {
    .booking-content { grid-template-columns: 1fr; }
    .booking-visual { min-height: 220px; }
}