:root {
    /* Paleta Strategic Juris - Editorial / Luxury Minimal */
    --deep-bg: #141A22; /* Deep Navy/Charcoal for headers/footers */
    --accent-gold: #C5A059;
    --accent-gold-dark: #A68045;
    --stone-light: #F8F8F6; /* Main background */
    --stone-muted: #EAEAE6; /* Secondary background */
    --text-main: #1C1C1C; /* Main text */
    --text-muted: #555555;
    --white: #FFFFFF;
    --border-color: rgba(197, 160, 89, 0.3);

    /* Fontes */
    --display-font: 'Cormorant Garamond', serif;
    --body-font: 'Outfit', sans-serif;

    /* Espaçamento */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--stone-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background-color: var(--accent-gold);
    color: var(--white);
}

/* Accessibility Focus States */
*:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

h1,
h2,
h3,
h4 {
    font-family: var(--display-font);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- Layout Utility --- */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

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

.card {
    background: var(--white);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.center {
    text-align: center;
}

.full-width {
    grid-column: 1 / -1;
}

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    font-family: var(--body-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-gold-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--white);
}

.accent {
    color: var(--accent-gold);
}

/* --- Navbar --- */
.navbar {
    padding: var(--spacing-sm) 0;
    background: var(--deep-bg);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
    filter: brightness(1);
}

/* Legacy text logo fallback */
.logo-text {
    font-family: var(--display-font);
    font-size: 1.8rem;
    letter-spacing: 2px;
    display: block;
    line-height: 1;
}

.logo-sub {
    font-family: var(--body-font);
    font-size: 0.6rem;
    letter-spacing: 5px;
    opacity: 0.7;
    display: block;
    margin-top: 2px;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--deep-bg);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding: var(--spacing-md) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-sm);
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(197, 160, 89, 0.3);
}

.stat-num {
    font-family: var(--display-font);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--display-font);
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.stat-item p {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* Pulse animation for urgent CTA */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

.btn-pulse {
    animation: pulse-gold 2s infinite;
}

/* --- Hero --- */
.hero {
    min-height: 85vh;
    background: var(--deep-bg);
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator i {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Texture Overlay - Grain & Grid */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 70% 50%, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
    background-size: 80px 80px, 80px 80px, 100% 100%;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 10;
}

.upper-title {
    display: block;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 3px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.hero-subtext {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-lg);
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.hero-urgency {
    font-size: 0.85rem;
    opacity: 0.6;
}

.hero-trust-badges {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
}

.badge {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.8;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    color: var(--accent-gold);
}

/* --- Sections Common --- */
section {
    padding: var(--spacing-xl) 0;
}

.step-num {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.step-num::before {
    content: '[';
    margin-right: 5px;
}

.step-num::after {
    content: ']';
    margin-left: 5px;
}

h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

/* --- Authority --- */
.authority {
    background: var(--stone-muted);
}

.benefit-list {
    list-style: none;
    margin-top: var(--spacing-md);
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.benefit-list i {
    color: var(--accent-gold);
}

.img-frame {
    position: relative;
    height: 400px;
    border: 1px solid var(--accent-gold);
}

.experience-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--accent-gold);
    color: var(--white);
    padding: 2rem;
    border-radius: 50%;
    font-family: var(--display-font);
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.abstract-graphic {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, var(--deep-bg) 0%, #1a233b 100%),
        repeating-linear-gradient(45deg, rgba(197, 160, 89, 0.05) 0, rgba(197, 160, 89, 0.05) 1px, transparent 0, transparent 50%);
    background-size: cover, 20px 20px;
    opacity: 0.9;
    position: relative;
    overflow: hidden;
}

.abstract-graphic::after {
    content: 'DEFESA';
    position: absolute;
    bottom: -20px;
    left: 10px;
    font-family: var(--display-font);
    font-size: clamp(4rem, 15vw, 8rem);
    color: var(--accent-gold);
    opacity: 0.05;
    font-weight: 700;
}

/* --- Areas Card --- */
.area-card {
    padding: 3rem 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    text-align: left;
}

.area-card i {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.area-card h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.area-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-10px);
}

/* --- Process --- */
.process-steps {
    margin-top: var(--spacing-lg);
    display: grid;
    gap: var(--spacing-md);
}

.process-item {
    display: flex;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.p-num {
    font-family: var(--display-font);
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.5;
    line-height: 1;
}

.p-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Testimonials --- */
.testimonial-grid {
    margin-top: var(--spacing-lg);
}

.testimonial-item {
    font-size: 1.1rem;
    font-style: italic;
    border-left: 4px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-item i {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.testimonial-item footer {
    margin-top: 1.5rem;
    font-style: normal;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Urgency --- */
.urgency {
    background: var(--deep-bg);
}

.urgency-banner {
    padding: var(--spacing-lg);
    border: 1px solid var(--accent-gold);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.urgency-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.1) 0%, transparent 70%);
}

.urgency-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.urgency-content h2 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.urgency-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.urgency-note {
    margin-top: var(--spacing-sm);
    font-weight: 600;
    color: var(--accent-gold) !important;
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
}

.faq-item {
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    font-family: var(--body-font);
    font-size: 1.1rem;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--accent-gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 1s ease-in;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Team --- */
.team {
    background: var(--stone-muted);
}

.team-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(10, 15, 28, 0.05);
}

.team-img-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #f0f0f0 0%, #d1d1d1 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.team-info {
    padding: 2rem;
}

.oab {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Contact & Float --- */
.contact-box {
    padding: var(--spacing-lg);
    background: var(--white);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.7;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-main);
    font-family: var(--body-font);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-gold);
    outline: none;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-float img {
    width: 35px;
}

/* --- Footer --- */
.main-footer {
    background: var(--deep-bg);
    color: var(--white);
    padding: 3rem 0;
    font-size: 0.8rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    opacity: 0.6;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2)::after,
    .stat-item:nth-child(4)::after {
        display: none;
    }

    .stat-num {
        font-size: 2rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-cta-group {
        align-items: center;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .hero-trust-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }

    .navbar .container {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .logo {
        margin: 0 auto;
    }

    .navbar nav {
        display: flex;
        justify-content: center;
    }

    .authority .grid-2 {
        display: flex;
        flex-direction: column-reverse;
    }

    .img-frame {
        height: 300px;
        margin-bottom: var(--spacing-md);
    }

    .experience-badge {
        padding: 1.5rem;
        font-size: 1.2rem;
        top: -10px;
        right: -10px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .footer-links a {
        margin: 5px 10px;
    }
}

/* Accessibility & Color Contrast Adjustments */
.authority,
.team,
.process,
.faq,
.testimonials {
    --accent-gold: #A68045;
}

section.authority h2,
section.areas h2,
section.process h2,
section.team h2,
section.faq h2 {
    color: var(--deep-bg);
}