/*
Theme Name: Riffel Advocacia LP
Theme URI: https://riffeladvocacia.com.br/
Author: Riffel Advocacia
Description: Landing page estática da Riffel Advocacia adaptada como tema WordPress.
Version: 1.0.3
Text Domain: riffel-advocacia-lp
*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /* Color Palette - Raquel Riffel Instagram Aesthetic (Sage, Cream, Charcoal) */
    --bg-primary: #FAF6F0;       /* Alabaster Warm Cream */
    --bg-secondary: #FFFDFB;     /* Off-White */
    --bg-card: #FFFFFF;          /* Pure White */
    --bg-section-alt: #F3EADB;   /* Soft Sand / Beige */
    --border-color: rgba(147, 183, 179, 0.25); /* Muted Sage border */
    --border-hover: #93B7B3;      /* Sage Green */
    
    --sage-primary: #557A76;     /* Contrast Sage Green */
    --sage-light: #93B7B3;       /* Brand Sage Green */
    --sage-dark: #324B48;        /* Deep Forest Sage */
    --sage-gradient: linear-gradient(135deg, #324B48 0%, #557A76 50%, #93B7B3 100%);
    --sage-glow: rgba(147, 183, 179, 0.2);
    
    --gold: #C49F60;             /* Muted Warm Gold */
    --gold-light: #E8D3B0;
    --gold-dark: #997230;
    --gold-gradient: linear-gradient(135deg, #997230 0%, #C49F60 50%, #E8D3B0 100%);
    
    --text-primary: #181A19;     /* Charcoal Black */
    --text-secondary: #4A5351;   /* Dark Muted Slate */
    --text-muted: #7D8886;       /* Medium Slate */
    
    --green-whatsapp: #25d366;
    --green-whatsapp-hover: #20ba5a;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Layout & Shadows */
    --max-width: 100%;
    --shadow-soft: 0 10px 30px -10px rgba(74, 83, 81, 0.08);
    --shadow-glow: 0 0 20px rgba(147, 183, 179, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body.custom-background,
body.home,
body.page,
#page,
.site,
.wp-site-blocks,
.entry-content,
.wp-block-post-content,
main {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    background-color: var(--bg-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utility */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Gradients */
.text-gradient {
    background: var(--sage-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Global Container */
.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: clamp(1.25rem, 4vw, 4rem);
    padding-right: clamp(1.25rem, 4vw, 4rem);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #181A19;
    box-shadow: 0 4px 15px rgba(196, 159, 96, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E8D3B0 0%, #C49F60 50%, #997230 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shimmer 6s infinite ease-in-out;
    z-index: 2;
    pointer-events: none;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 159, 96, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-dark);
    border: 1px solid var(--gold);
}

.btn-secondary:hover {
    background: rgba(196, 159, 96, 0.12);
    color: var(--gold-dark);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--green-whatsapp);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--green-whatsapp-hover);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--green-whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    font-size: 2rem;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: var(--green-whatsapp-hover);
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes shimmer {
    0% { left: -150%; }
    50% { left: -150%; }
    100% { left: 150%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes statusPulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* Header & Navigation */
header {
    background-color: rgba(250, 246, 240, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(250, 246, 240, 0.95);
    box-shadow: var(--shadow-soft);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 95px;
    padding: 0 4rem;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    header .container {
        padding: 0 2rem;
    }
}

header.scrolled .container {
    height: 75px;
}

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

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3.2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 550;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sage-gradient);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: block;
}

.nav-cta .btn {
    font-size: 0.85rem;
    padding: 0.65rem 1.4rem;
    letter-spacing: 0.5px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    background: radial-gradient(circle at 80% 20%, rgba(147, 183, 179, 0.15) 0%, rgba(250, 246, 240, 0) 50%),
                radial-gradient(circle at 10% 80%, rgba(244, 236, 225, 0.4) 0%, rgba(250, 246, 240, 0) 50%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sage-primary);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--sage-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    animation: float 8s ease-in-out infinite;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--border-radius);
    background: var(--sage-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.3;
}

.hero-card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hero-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.hero-card-list svg {
    color: var(--sage-primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: 20px;
    height: 20px;
}

/* Sections General */
section {
    padding: 6rem 0;
    position: relative;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sage-primary);
    margin-bottom: 0.8rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Especialidades Section */
.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.card-especialidade {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: var(--shadow-soft);
}

.card-especialidade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--sage-gradient);
    opacity: 0;
    transition: var(--transition);
}

.card-especialidade:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(147, 183, 179, 0.12), var(--shadow-soft);
}

.card-especialidade:hover::before {
    opacity: 1;
}

.card-icon {
    width: 55px;
    height: 55px;
    background: rgba(147, 183, 179, 0.12);
    border: 1px solid rgba(147, 183, 179, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-primary);
    margin-bottom: 0.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.card-especialidade:hover .card-icon {
    transform: scale(1.1) rotate(6deg);
    background-color: rgba(196, 159, 96, 0.15);
    border-color: var(--gold);
    color: var(--gold-dark);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: 1.4rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-list svg {
    color: var(--sage-primary);
    width: 16px;
    height: 16px;
}

/* Outros Servicos */
.outros-servicos {
    background: rgba(243, 234, 219, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
}

.outros-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
}

.outros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.outro-item {
    display: flex;
    gap: 1rem;
}

.outro-icon {
    color: var(--sage-primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.outro-icon svg {
    width: 24px;
    height: 24px;
}

.outro-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.outro-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.especialidades-cta {
    text-align: center;
    margin-top: 3.5rem;
}

/* Diferenciais Section */
.diferenciais {
    background: radial-gradient(circle at 10% 20%, rgba(147, 183, 179, 0.12) 0%, rgba(250, 246, 240, 0) 60%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.diferencial-card {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, background-color 0.4s ease;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
}

.diferencial-card:hover {
    transform: translateY(-6px);
    background-color: var(--bg-card);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-soft);
}

.diferencial-icon {
    width: 70px;
    height: 70px;
    background: rgba(147, 183, 179, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-primary);
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(147, 183, 179, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-color 0.4s ease;
}

.diferencial-card:hover .diferencial-icon {
    transform: scale(1.1) rotate(-6deg);
    background-color: rgba(147, 183, 179, 0.12);
    border-color: var(--sage-light);
}

.diferencial-icon svg {
    width: 32px;
    height: 32px;
}

.diferencial-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.diferencial-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Sobre Nos Section */
.sobre {
    background-color: var(--bg-secondary);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-img-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.sobre-img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    width: 100%;
}

.sobre-img-frame {
    position: absolute;
    top: 20px;
    left: -20px;
    right: 20px;
    bottom: -20px;
    border: 2px solid var(--sage-light);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.5;
    transition: var(--transition);
}

.sobre-img-container:hover .sobre-img-frame {
    transform: translate(-10px, 10px);
}

.sobre-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sobre-content p {
    color: var(--text-secondary);
}

.oab-badge {
    align-self: flex-start;
    padding: 0.4rem 1rem;
    background: rgba(147, 183, 179, 0.12);
    border: 1px solid var(--sage-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sage-dark);
}

/* Metodologia Section */
.metodologia {
    background: var(--bg-section-alt); /* Brand Cream Background */
}

.metodologia-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.metodologia-steps::after {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.step-card:hover .step-number {
    border-color: var(--sage-primary);
    color: var(--sage-primary);
    box-shadow: 0 0 15px rgba(147, 183, 179, 0.3);
    transform: scale(1.05);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Depoimentos Section */
.depoimentos {
    background: radial-gradient(circle at 50% 50%, rgba(147, 183, 179, 0.1) 0%, rgba(250, 246, 240, 0) 70%);
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.quote-icon {
    color: rgba(147, 183, 179, 0.15);
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.quote-icon svg {
    width: 60px;
    height: 60px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-name {
    font-weight: 600;
    color: var(--sage-dark);
    font-size: 1.05rem;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.carousel-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: rgba(196, 159, 96, 0.08);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--sage-primary);
    width: 24px;
    border-radius: 4px;
}

.google-rating:hover {
    transform: translateY(-2px);
    background: rgba(147, 183, 179, 0.15) !important;
    border-color: var(--sage-light) !important;
    box-shadow: 0 4px 12px rgba(147, 183, 179, 0.15);
}

/* FAQ Section */
.faq {
    background: rgba(243, 234, 219, 0.35);
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 1.5rem;
}

.faq-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    flex-grow: 1;
}

.faq-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(147, 183, 179, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon-box {
    transform: rotate(45deg);
    background: var(--sage-primary);
    color: #ffffff;
}

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

.faq-item.active .faq-body {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-content {
    padding: 0 2rem 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid rgba(148, 163, 184, 0.05);
    padding-top: 1.2rem;
}

/* Footer Section */
footer {
    background-color: #233533;   /* Brand Dark Sage Green for contrast */
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

footer h1, footer h2, footer h3, footer h4 {
    color: #f8fafc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

/* Filter logo to white/cream on dark background */
.footer-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-info p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--sage-light);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links-list a {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-links-list a:hover {
    color: var(--sage-light);
    padding-left: 5px;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.footer-contact-list svg {
    color: var(--sage-light);
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: 20px;
    height: 20px;
}

.footer-contact-list a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.6;
}

/* Animations Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Scroll Reveal Delays */
.especialidades-grid > .reveal:nth-child(1) { transition-delay: 0.1s; }
.especialidades-grid > .reveal:nth-child(2) { transition-delay: 0.25s; }
.especialidades-grid > .reveal:nth-child(3) { transition-delay: 0.4s; }

.diferenciais-grid > .reveal:nth-child(1) { transition-delay: 0.1s; }
.diferenciais-grid > .reveal:nth-child(2) { transition-delay: 0.25s; }
.diferenciais-grid > .reveal:nth-child(3) { transition-delay: 0.4s; }

.metodologia-steps > .reveal:nth-child(1) { transition-delay: 0.1s; }
.metodologia-steps > .reveal:nth-child(2) { transition-delay: 0.25s; }
.metodologia-steps > .reveal:nth-child(3) { transition-delay: 0.4s; }
.metodologia-steps > .reveal:nth-child(4) { transition-delay: 0.55s; }

/* Status Online Badge */
.status-online-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    align-self: flex-start;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #22c55e;
    border-radius: 50%;
    animation: statusPulse 1.8s infinite ease-in-out;
}

/* Quiz Section */
.quiz-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.quiz-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3.5rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.quiz-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--border-radius);
    background: var(--sage-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.25;
}

.quiz-progress-container {
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.quiz-progress-bar {
    height: 6px;
    background: rgba(147, 183, 179, 0.15);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.8rem;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--gold-gradient);
    width: 33.33%;
    border-radius: 50px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.quiz-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: quizFadeIn 0.5s ease-out;
}

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

.quiz-question {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    text-align: center;
    color: var(--text-primary);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.quiz-option {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 550;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.quiz-option:hover {
    border-color: var(--gold);
    background: rgba(196, 159, 96, 0.04);
    transform: translateX(5px);
}

.quiz-option.selected {
    border-color: var(--gold-dark);
    background: rgba(196, 159, 96, 0.08);
    box-shadow: var(--shadow-glow);
}

.quiz-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.quiz-option.selected .quiz-radio {
    border-color: var(--gold-dark);
    background: var(--gold);
}

.quiz-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #FFF;
    border-radius: 50%;
    display: block;
    transform: scale(0);
    transition: var(--transition);
}

.quiz-option.selected .quiz-radio::after {
    transform: scale(1);
}

.quiz-option-text {
    font-size: 1rem;
    color: var(--text-primary);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.quiz-btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quiz-btn-prev {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.quiz-btn-prev:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--text-muted);
}

.quiz-btn-next {
    background: var(--gold-gradient);
    color: #181A19;
    box-shadow: 0 4px 15px rgba(196, 159, 96, 0.2);
    margin-left: auto; /* Push next to right if prev is hidden */
}

.quiz-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 159, 96, 0.35);
}

@media (max-width: 768px) {
    .quiz-card {
        padding: 2rem 1.5rem;
    }
    
    .quiz-question {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .quiz-option {
        padding: 1rem 1.2rem;
    }
}

/* Responsive Queries */
@media (max-width: 1024px) {
    .especialidades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metodologia-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .metodologia-steps::after {
        display: none;
    }
    
    .hero-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        height: 70px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero {
        padding: 9rem 0 4rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .especialidades-grid {
        grid-template-columns: 1fr;
    }
    
    .outros-grid {
        grid-template-columns: 1fr;
    }
    
    .diferenciais-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sobre-img-container {
        order: -1;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .metodologia-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}
