/*
   Marcia Quaresma Advocacia - Design System
   Paleta: Branco, Verde, Nude/Peach
   Estilo: Institucional, Sóbrio, Elegante
*/

:root {
    /* --- Paleta de Cores --- */
    --color-primary: #2B5B4F;
    --color-primary-dark: #1E4038;
    --color-primary-light: #3A7A6A;
    --color-secondary: #D4A574;
    --color-secondary-dark: #C09060;
    --color-secondary-light: #E8C9A8;
    --color-accent: #F5E6D3;
    --color-bg-body: #FFFFFF;
    --color-bg-alt: #F9F7F4;
    --color-bg-dark: #1E4038;
    --color-text-main: #2B5B4F;
    --color-text-body: #3A3A3A;
    --color-text-light: #5A5A5A;
    --color-text-muted: #7A7A7A;
    --color-border: #E8E2DA;
    --color-white: #FFFFFF;

    /* --- Tipografia --- */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* --- Espaçamento --- */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    /* --- Layout --- */
    --container-width: 1200px;
    --header-height: 100px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* --- Efeitos --- */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-green: 0 4px 12px rgba(43, 91, 79, 0.3);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   BASE
======================================== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ========================================
   TIPOGRAFIA
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

h1 {
    font-size: clamp(2.5rem, 5vw, var(--text-5xl));
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, var(--text-4xl));
    font-weight: 600;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 500;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 500;
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-light);
    line-height: 1.8;
}

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

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

/* ========================================
   LAYOUT
======================================== */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section {
    padding: var(--space-24) 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

/* ========================================
   SECTION HEADER
======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header h2 {
    margin-bottom: var(--space-2);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

.subtitle {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-secondary);
    margin-bottom: var(--space-3);
}

/* ========================================
   BOTÕES
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white);
    border-color: #25D366;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
}

.btn-whatsapp:hover {
    background-color: #20BD5A;
    border-color: #20BD5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
}

.btn-text:hover {
    color: var(--color-secondary);
    gap: var(--space-3);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
}

/* ========================================
   CARDS
======================================== */
.card {
    background-color: var(--color-bg-body);
    padding: var(--space-8);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--color-primary);
}

.card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.card p {
    flex-grow: 1;
    margin-bottom: var(--space-4);
}

.card .btn-text {
    margin-top: auto;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    transition: var(--transition-base);
}

.card:hover .card-icon {
    color: var(--color-secondary);
    transform: scale(1.1);
}

/* ========================================
   HEADER & NAVEGAÇÃO
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-base);
    background-color: var(--color-bg-body);
}

.header.scrolled {
    height: 75px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo img {
    height: 70px;
    width: auto;
    transition: var(--transition-base);
}

.header.scrolled .logo img {
    height: 55px;
}

.nav-menu {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    position: relative;
    padding: var(--space-2) 0;
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background-color: var(--color-bg-body);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-content {
    animation: fadeUp 1s ease-out;
}

.hero-logo {
    max-width: 420px;
    height: auto;
    width: 100%;
    margin-bottom: var(--space-4);
}

.hero-microtexto {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
    display: block;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    margin-bottom: var(--space-3);
    max-width: 540px;
}

.hero-local {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.hero-local i {
    color: var(--color-primary);
    margin-right: var(--space-1);
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(43, 91, 79, 0.15);
    animation: slideInRight 0.8s ease-out 0.3s backwards;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-secondary-light);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ========================================
   MARQUEE
======================================== */
.marquee-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 18px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-container {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee-scroll 35s linear infinite;
    width: max-content;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 20px;
}

.marquee-separator {
    color: var(--color-secondary);
    font-size: 0.8rem;
    padding: 0 10px;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-section:hover .marquee-track {
    animation-play-state: paused;
}

/* ========================================
   SOBRE
======================================== */
.sobre {
    background-color: var(--color-bg-alt);
}

.sobre .grid-2 {
    align-items: center;
    gap: var(--space-12);
}

.sobre-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.sobre-img-wrapper img {
    width: 100%;
    transition: transform 0.6s ease;
}

.sobre-img-wrapper:hover img {
    transform: scale(1.03);
}

.sobre-content h2 {
    margin-bottom: var(--space-2);
}

.sobre-content .subtitle {
    margin-bottom: var(--space-6);
}

.sobre-text {
    color: var(--color-text-light);
    line-height: 1.9;
    margin-bottom: var(--space-4);
}

.credenciais {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.credencial-card {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.credencial-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.credencial-card h4 {
    color: var(--color-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
    font-family: var(--font-heading);
}

.credencial-card p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

/* ========================================
   ÁREAS DE ATUAÇÃO
======================================== */
.areas {
    background-color: var(--color-bg-body);
}

.areas .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.areas .card {
    position: relative;
    overflow: hidden;
}

.areas .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.areas .card:hover::before {
    transform: scaleX(1);
}

.areas-cta {
    text-align: center;
    margin-top: var(--space-12);
}

.areas-cta p {
    margin-bottom: var(--space-6);
    color: var(--color-text-muted);
}

/* ========================================
   CARROSSEL INFINITO
======================================== */
.carrossel-section {
    background-color: var(--color-bg-alt);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.infinite-carousel {
    width: 100%;
    overflow: hidden;
    margin-top: var(--space-8);
}

.infinite-carousel__track {
    display: flex;
    gap: 20px;
    animation: carousel-scroll 40s linear infinite;
    width: max-content;
}

.infinite-carousel__slide {
    flex-shrink: 0;
    width: 300px;
    height: 380px;
}

.infinite-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: var(--transition-smooth);
}

.infinite-carousel__slide img:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

@keyframes carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.infinite-carousel:hover .infinite-carousel__track {
    animation-play-state: paused;
}

/* ========================================
   DIFERENCIAIS
======================================== */
.diferenciais {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 80px 0;
    position: relative;
}

.diferenciais::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A574' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.diferenciais .container {
    position: relative;
    z-index: 1;
}

.diferenciais .section-header h2 {
    color: var(--color-white);
}

.diferenciais .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.diferencial-item {
    text-align: center;
    padding: var(--space-6);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.diferencial-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

.diferencial-icon {
    font-size: 2.8rem;
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
}

.diferencial-item h4 {
    color: var(--color-secondary-light);
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.diferencial-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ========================================
   FAQ
======================================== */
.faq {
    background-color: var(--color-bg-body);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: var(--transition-base);
}

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    background: var(--color-bg-alt);
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-primary);
    transition: var(--transition-base);
}

.faq-question:hover {
    background-color: var(--color-accent);
}

.faq-question i {
    font-size: var(--text-sm);
    color: var(--color-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: var(--space-4);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: var(--space-6);
    color: var(--color-text-light);
    line-height: 1.8;
    border-top: 1px solid var(--color-border);
}

/* ========================================
   CONTATO
======================================== */
.contato {
    background-color: var(--color-bg-alt);
}

.contato .grid-2 {
    gap: var(--space-12);
    align-items: start;
}

.contato-info {
    padding: var(--space-8);
}

.contato-info-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    margin-bottom: var(--space-6);
}

.contato-info-item i {
    font-size: 1.4rem;
    color: var(--color-primary);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.contato-info-item span,
.contato-info-item a {
    color: var(--color-text-body);
    line-height: 1.6;
}

.contato-info-item a:hover {
    color: var(--color-primary);
}

.contato-form {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: var(--transition-base);
    background-color: var(--color-bg-alt);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43, 91, 79, 0.1);
    background-color: var(--color-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.form-check label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
}

.form-message {
    padding: var(--space-4);
    border-radius: var(--radius-sm);
    margin-top: var(--space-4);
    display: none;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background-color: #1a1a1a;
    color: var(--color-white);
    padding: var(--space-16) 0 var(--space-8);
    font-size: var(--text-sm);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer h4 {
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}

.footer p {
    color: #AAAAAA;
    margin-bottom: var(--space-2);
}

.footer a {
    color: #AAAAAA;
    transition: var(--transition-base);
}

.footer a:hover {
    color: var(--color-secondary);
}

.footer i {
    margin-right: var(--space-2);
    color: var(--color-secondary);
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777777;
}

/* ========================================
   WHATSAPP FLOAT
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: var(--transition-base);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ========================================
   ANIMAÇÕES
======================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* ========================================
   ACESSIBILIDADE - prefers-reduced-motion
======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-track,
    .infinite-carousel__track {
        animation: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   SUBPÁGINAS – HERO INTERNO
======================================== */
.hero-interno {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e4038 100%);
    color: #fff;
    padding: calc(var(--header-height) + var(--space-12)) var(--space-4) var(--space-12);
    position: relative;
    overflow: hidden;
}

.hero-interno::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-interno::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-secondary);
}

.hero-interno .container {
    position: relative;
    z-index: 1;
}

.hero-interno h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.hero-interno p {
    font-size: var(--text-lg);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

/* ========================================
   SUBPÁGINAS – CONTEÚDO
======================================== */
.content {
    padding: var(--space-16) 0;
}

.content .container {
    max-width: 960px;
}

.content h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.content p {
    color: var(--color-text-body);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: var(--space-4);
}

.content ul li {
    color: var(--color-text-body);
    line-height: 1.8;
    margin-bottom: var(--space-1);
}

.bg-alt {
    background-color: var(--color-bg-alt, #f9f6f2);
}

/* ========================================
   SUBPÁGINAS – GRID DE CARDS
======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.card-grid .card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-grid .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SUBPÁGINAS – CTA FINAL
======================================== */
.cta {
    padding: var(--space-16) 0;
    background-color: var(--color-bg-alt, #f9f6f2);
}

.cta.bg-primary {
    background: linear-gradient(135deg, var(--color-primary), #1e4038);
    color: #fff;
}

.cta.bg-primary h2,
.cta.bg-primary p {
    color: #fff;
}

.cta h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.cta p {
    font-size: var(--text-base);
    color: var(--color-text-body);
    max-width: 600px;
    margin: 0 auto var(--space-6);
    line-height: 1.7;
}

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

/* ========================================
   SUBPÁGINAS – NAV INTERNA
======================================== */
.nav-interno .nav-link {
    color: var(--color-text-body);
}

.nav-interno .nav-link:hover,
.nav-interno .nav-link.active {
    color: var(--color-primary);
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero { min-height: auto; padding-bottom: var(--space-8); }
    .hero-content { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-image::after { display: none; }
    .hero-logo { max-width: 280px; }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .credenciais { grid-template-columns: repeat(3, 1fr); }

    .sobre .grid-2 { text-align: center; }
    .sobre-content .subtitle { display: block; }
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */
@media (max-width: 768px) {
    :root { --header-height: 80px; }

    .logo img { height: 55px; }
    .header.scrolled .logo img { height: 45px; }

    .mobile-toggle { display: block; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-bg-body);
        flex-direction: column;
        padding: var(--space-24) var(--space-8);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        align-items: flex-start;
    }

    .nav-menu.active { right: 0; }

    .grid-3 { grid-template-columns: 1fr; }
    .diferenciais-grid { grid-template-columns: 1fr; }
    .credenciais { grid-template-columns: 1fr; gap: var(--space-3); }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn { width: 100%; }

    .btn {
        padding: 12px 24px;
        font-size: var(--text-xs);
    }

    h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

    .infinite-carousel__slide {
        width: 250px;
        height: 320px;
    }

    .marquee-item {
        font-size: 0.9rem;
        letter-spacing: 1px;
        padding: 0 15px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE SMALL
======================================== */
@media (max-width: 480px) {
    .container { width: 95%; padding: 0 var(--space-3); }
    .section { padding: var(--space-16) 0; }
    .card { padding: var(--space-6); }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .infinite-carousel__slide {
        width: 200px;
        height: 260px;
    }

    .marquee-section { padding: 14px 0; }
    .marquee-item { font-size: 0.8rem; padding: 0 10px; }
}

/* ========================================
   PRINT
======================================== */
@media print {
    .header, .whatsapp-float, .mobile-toggle, .marquee-section {
        display: none !important;
    }
    .hero { min-height: auto !important; padding-top: 0 !important; }
    body { color: #000; background: #fff; }
}
