/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ---- PALETA PROFISSIONAL PARA ADVOCACIA ---- */
    --primary-color: #0B1F4B;       /* Azul Marinho Rico - Autoridade */
    --primary-light: #162B63;       /* Azul Marinho Médio */
    --secondary-color: #C9A84C;     /* Dourado Vivo - Excelência */
    --secondary-light: #E8C56A;     /* Dourado Claro */
    --secondary-dark: #A8892E;      /* Dourado Escuro */
    --accent-color: #1A4FAF;        /* Azul Royal - Destaque */
    --accent-light: #2563EB;        /* Azul Brilhante */
    --dark-color: #060E25;          /* Azul Quase Preto */
    --light-color: #F0F4FF;         /* Azul Claro Acinzentado */
    --light-warm: #FAFAF7;          /* Branco Quente */
    --white: #ffffff;
    --text-dark: #1A2340;
    --text-medium: #3D4F70;
    --text-light: #6B7A99;
    --success-color: #059669;
    --error-color: #DC2626;
    --border-color: #D1D9EE;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(11, 31, 75, 0.08);
    --shadow-md: 0 4px 12px rgba(11, 31, 75, 0.12);
    --shadow-lg: 0 10px 30px rgba(11, 31, 75, 0.18);
    --shadow-xl: 0 20px 50px rgba(11, 31, 75, 0.25);
    --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.35);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 100px;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* CRÍTICO: evita scroll horizontal */
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    /* CRÍTICO: evita scroll horizontal */
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh;
}

/* Garante que nenhum filho quebre o layout */
*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

section,
    .container,
    .navbar,
    .hero,
    .about,
    .services,
    .testimonials,
    .contact,
    .footer {
        width: 100%;
        max-width: 100%;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(11, 31, 75, 0.1);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 3px solid var(--secondary-color);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(11, 31, 75, 0.18);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo i {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    display: block;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--light-color);
}

.btn-contato {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    border: 2px solid var(--primary-color);
}

.btn-contato:hover {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--dark-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold) !important;
}

/* Hamburger Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    transition: var(--transition);
}

.mobile-toggle:hover {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
    display: block;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 40%, var(--primary-light) 70%, var(--accent-color) 100%);
    padding-top: 80px;
    overflow: hidden;
}

/* Grade sutil de fundo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Brilho dourado decorativo */
.hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(6, 14, 37, 0.4), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    width: 100%;
    animation: fadeInUp 1s ease both;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--secondary-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.45rem 1.2rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-eyebrow i { font-size: 0.8rem; }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    border-radius: 2px;
    opacity: 0.6;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

/* Botões gerais */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-primary);
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--dark-color);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-light), #F5D580);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 860px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.85;
    letter-spacing: 0.5px;
    text-align: center;
}

/* ==========================================
   SECTION STYLES
   ========================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-dark);
    margin-bottom: 0.75rem;
    position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    background: var(--light-warm);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 1.25rem;
    line-height: 1.9;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid transparent;
    align-items: flex-start;
}

.feature-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.about-image {
    position: relative;
}

.image-wrapper {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 60%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.02) 0px,
        rgba(255,255,255,0.02) 1px,
        transparent 1px,
        transparent 40px
    );
}

.image-icon {
    font-size: 7rem;
    color: var(--secondary-color);
    opacity: 0.2;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -10px;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 4px solid var(--secondary-color);
}

.about-badge i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.about-badge span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    background: var(--white);
}

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

.service-card {
    position: relative;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.service-card.featured {
    background: linear-gradient(160deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border-color: transparent;
}

.service-card.featured::before {
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    transform: scaleX(1);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--dark-color);
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-gold);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--light-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.15);
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card.featured .service-icon i {
    color: var(--secondary-color);
}

.service-card:not(.featured):hover .service-icon {
    background: var(--primary-color);
    transform: scale(1.08) rotate(3deg);
}

.service-card:not(.featured):hover .service-icon i {
    color: var(--secondary-color);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-card.featured h3 {
    color: var(--white);
}

.service-card > p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.service-card.featured > p {
    color: rgba(255, 255, 255, 0.85);
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.service-card.featured .service-list li {
    color: rgba(255, 255, 255, 0.9);
}

.service-list i {
    color: var(--success-color);
    font-size: 0.75rem;
    width: 16px;
    flex-shrink: 0;
}

.service-card.featured .service-list i {
    color: var(--secondary-color);
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--light-warm) 100%);
    position: relative;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 2px solid transparent;
    position: relative;
}

.testimonial-card::after {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--light-color);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
}

.testimonial-rating i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.testimonial-text {
    font-size: 0.97rem;
    color: var(--text-medium);
    line-height: 1.8;
    font-style: italic;
    flex: 1;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.author-avatar i {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.contact-info > p {
    font-size: 1rem;
    opacity: 0.88;
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 450px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.contact-item p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.6;
}

.contact-item p + p {
    margin-top: 0.2rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.97rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(26, 79, 175, 0.12);
}

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

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 600;
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.82rem;
    margin-top: 0.35rem;
    min-height: 18px;
    font-weight: 500;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-success {
    display: none;
    padding: 1.25rem;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 1px solid #34d399;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    text-align: center;
}

.form-success.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.5s ease;
}

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

.form-success i {
    font-size: 2.2rem;
    color: var(--success-color);
}

.form-success p {
    color: #065f46;
    margin: 0;
    font-weight: 600;
    font-size: 0.97rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-logo i {
    font-size: 1.6rem;
    color: var(--secondary-color);
}

.footer-column > p {
    opacity: 0.72;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.93rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    color: var(--secondary-color);
}

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.92rem;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p { color: rgba(255, 255, 255, 0.5); }

.footer-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-links span { opacity: 0.3; }

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--dark-color);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
}

/* ==========================================
   RESPONSIVE — TABLETS (≤ 1024px)
   ========================================== */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 4rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .image-wrapper {
        height: 380px;
    }

    .about-badge {
        bottom: -15px;
        right: 20px;
    }

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

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info > p {
        max-width: 100%;
    }

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

/* ==========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.5rem;
    }

    /* ------ NAVBAR MOBILE ------ */
    .mobile-toggle {
        display: flex;
    }

    .services-grid,
    .testimonials-grid,
    .hero-stats {
        width: 100%;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    * {
        max-width: 100%;
    }

    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        /* ESCONDIDO */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.9rem 1.5rem;
        display: block;
        width: 100%;
        border-radius: var(--radius-sm);
        color: var(--primary-color);
        font-weight: 600;
    }

    .btn-contato {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 0.5rem !important;
        padding: 0.9rem 1.5rem !important;
        border-radius: var(--radius-sm) !important;
    }

    /* Botão hamburguer acima do menu */
    .mobile-toggle {
        z-index: 1001;
        position: relative;
    }

    /* ------ HERO MOBILE ------ */
    .hero {
        min-height: auto;
        padding: 100px 0 3.5rem;
    }

    .hero-eyebrow {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.97rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }

    .btn {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding: 0.9rem 1.5rem;
    }

    /* Stats em 2 colunas no mobile */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.25rem;
    }

    /* Terceiro stat ocupa linha inteira */
    .hero-stats .stat-item:nth-child(3) {
        grid-column: 1 / -1;
    }

    .stat-item {
        padding: 1.1rem 0.75rem;
    }

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

    /* ------ ABOUT MOBILE ------ */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .image-wrapper {
        height: 260px;
    }

    .about-badge {
        bottom: -12px;
        right: 12px;
        padding: 0.75rem 1rem;
    }

    .about-badge i { font-size: 1.4rem; }
    .about-badge span { font-size: 0.85rem; }

    .feature-item {
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    /* ------ SERVICES MOBILE ------ */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .featured-badge {
        top: 0.75rem;
        right: 0.75rem;
    }

    /* ------ TESTIMONIALS MOBILE ------ */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* ------ CONTACT MOBILE ------ */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info h2 {
        font-size: 1.7rem;
    }

    .contact-form-wrapper {
        padding: 1.75rem;
        border-radius: var(--radius-md);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* ------ FOOTER MOBILE ------ */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-links {
        justify-content: center;
    }
}

/* ==========================================
   RESPONSIVE — MOBILE PEQUENO (≤ 480px)
   ========================================== */
@media (max-width: 480px) {
    html { font-size: 15px; }

    .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo i { font-size: 1.3rem; }

    .hero-title {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    /* Stats empilhados no mobile pequeno */
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stats .stat-item:nth-child(3) {
        grid-column: auto;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .feature-icon {
        margin: 0 auto;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    .about-badge {
        position: static;
        margin-top: 1rem;
        justify-content: center;
        border-radius: var(--radius-md);
    }
}

/* ==========================================
   RESPONSIVE — EXTRA PEQUENO (≤ 320px)
   ========================================== */
@media (max-width: 320px) {
    html { font-size: 14px; }

    .hero-title { font-size: 1.5rem; }
    .btn { font-size: 0.9rem; padding: 0.8rem 1.25rem; }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .navbar, .back-to-top, .hero-cta,
    .social-links, .contact-form-wrapper,
    .mobile-toggle { display: none !important; }

    body { color: #000; background: #fff; }

    .hero { background: #fff !important; color: #000 !important; min-height: auto; }
    .hero-title, .hero-subtitle { color: #000 !important; }
}
