/* 
 * COMMON CSS - Shared styles for all pages
 * This file contains variables, typography, layout, and common components
 */

/* ===================================
   1. VARIABLES AND CONFIGURATIONS BASE
   =================================== */
:root {
    /* Primary colors - Melhorado contraste */
    --primary: #FF5A5F;
    --secondary: #00A699;
    --accent: #FC642D;
    --text-color: #1e293b;
    /* Escurecido para melhor contraste */
    --text-light: #475569;
    /* Escurecido para melhor legibilidade */
    --bg-light: #f5f5f5;
    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);

    /* Responsive typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    /* 12-14px */
    --text-sm: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
    /* 14-16px */
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    /* 16-18px */
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    /* 18-20px */
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    /* 20-24px */
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    /* 24-32px */
    --text-3xl: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
    /* 28-40px */

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transições de página */
    --page-transition: 0.3s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: var(--text-base);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    padding-top: 0;
    /* Garante que não haja padding extra no topo */
}

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

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

/* Responsive container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===================================
   2. UTILITIES
   =================================== */

/* Flexible spacing */
.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.py-sm {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.py-md {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.py-lg {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.py-xl {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.px-sm {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

.px-md {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.px-lg {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.px-xl {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

/* Text alignment */
.text-center {
    text-align: center;
}

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

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

/* Display utilities */
.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

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

.space-between {
    justify-content: space-between;
}

/* ===================================
   3. REUSABLE COMPONENTS
   =================================== */

/* Buttons */
/* ===================================
   3. REUSABLE COMPONENTS (SINGLE SOURCE OF TRUTH)
   =================================== */

/* Standard Buttons Configuration */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.cta-button,
.nav-button,
.hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 15px;
    /* Standardize font size */
    border-radius: 50px;
    /* Standardize radius */
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Primary Button */
.btn-primary,
.cta-button,
.nav-button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
}

.btn-primary:hover,
.cta-button:hover,
.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 90, 95, 0.3);
    color: white;
}

/* Secondary Button */
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #00847A);
    color: white;
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 166, 153, 0.3);
    color: white;
    background-color: #008C85;
    /* fallback */
}

/* Outline Button */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Icon spacing standard */
.btn i,
.btn-primary i,
.btn-secondary i,
.cta-button i {
    margin-right: 8px;
    /* Standardize Left Icon */
    margin-left: 0;
}

/* Mobile specific overrides handled via global classes, not inline hacks */
@media (max-width: 767px) {

    .btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        /* Mobile buttons full width often useful */
        justify-content: center;
    }
}

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

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

.btn i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

/* Efeito ripple para botões */
.btn-primary,
.btn-secondary,
.nav-button,
.hero-actions a {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-md);
    display: inline-block;
    color: var(--text-color);
    /* Garantir contraste */
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width var(--transition-base);
}

.section-title:hover h2::after {
    width: 100px;
}

.section-title p {
    font-size: var(--text-lg);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
    /* Aumentado para melhorar legibilidade */
}

/* ===================================
   MODERN HEADER
   =================================== */

/* Legacy header/menu styles disabled.
   The canonical header implementation lives in `css/header.css`. */

/* Accessibility - Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    z-index: 1010;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 90, 95, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 900;
}

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

.back-to-top:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    font-size: 18px;
}

/* Footer */
/* Footer Premium */
footer {
    background-color: #0F172A;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.18) 1.4px, transparent 1.4px),
        linear-gradient(180deg, #1A202C 0%, #0F172A 100%);
    background-size: 16px 16px, 100% 100%;
    background-position: 0 0, 0 0;
    color: #f8fafc;
    padding: 80px 0 30px;
    margin-top: 60px;
    border-top: 5px solid var(--primary);
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

footer::before {
    content: none;
}

/* Force Logo Centering on Mobile (Common override) */
@media (max-width: 1023px) {
    .logo-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: auto;
        justify-content: center;
    }
}

/* Removed previous footer::after to avoid clutter */

.footer-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column h3 {
    font-size: 12px;
    margin-bottom: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #94a3b8;
    position: relative;
    padding-bottom: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    transform: translateX(-50%);
}

@media (min-width: 1024px) {
    .footer-column h3 {
        width: auto;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        display: block;
    }

    .footer-column h3::after {
        left: 0;
        transform: none;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 0.8;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(6px);
    opacity: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.footer-links li span {
    font-size: 15px;
    color: #cbd5e1;
    display: block;
    line-height: 1.6;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    font-weight: 500;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Contact Section Premium Redesign */
.contact {
    padding: 100px 0;
    background-color: #f8fafc;
    position: relative;
    z-index: 10;
    margin-bottom: 0;
}

.contact-container {
    display: flex;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    /* Premium shadow */
    max-width: 1100px;
    /* Limit width for aesthetics */
    margin: 0 auto;
}

/* Left Side: Info (Dark) */
.contact-info {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    /* Match footer theme */
    padding: 50px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* overflow: hidden; Removed to prevent clipping */
}

/* Decorative circles for premium feel */
.contact-info::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-info::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-details i,
.contact-details img {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    /* Softer radius */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    object-fit: contain;
}

.contact-details li:hover i,
.contact-details li:hover img {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.social-icons {
    margin-top: auto;
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.line-social-icon {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    width: auto;
    /* Force width auto */
}

.line-social-icon span {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.line-social-icon:hover {
    transform: translateY(-3px);
}

/* Right Side: Form (Light) */
.contact-form {
    flex: 1;
    background-color: #ffffff;
    padding: 50px;
    box-shadow: none;
    /* Reset old shadow */
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.1);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Pricing Cards - Redesenhados para melhor legibilidade e layout side-by-side */
.pricing-plans-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e2e8f0;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 90, 95, 0.15);
    /* Sombra colorida */
    border: 2px solid var(--primary);
    /* Borda mais grossa e colorida */
    z-index: 1;
    /* Sobrepõe aos outros cards */
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card.popular::before {
    content: 'Mais Popular';
    position: absolute;
    top: 15px;
    right: -35px;
    background-color: var(--primary);
    color: white;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 1;
}

.pricing-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    /* Gradiente sutil */
    border-bottom: 2px solid #e2e8f0;
    /* Borda mais visível */
}

.pricing-card.popular .pricing-header {
    background: linear-gradient(135deg, #fff5f5, #ffe0e0);
    /* Fundo sutilmente destacado */
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.price {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    /* Mais escuro para melhor legibilidade */
}

.price span {
    font-size: 16px;
    font-weight: 500;
    /* Aumentado de 400 para melhor legibilidade */
    color: #64748b;
}

.pricing-body {
    padding: 30px;
    flex: 1;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 16px;
    /* Aumentado de 15px para melhor legibilidade */
    position: relative;
    padding-left: 28px;
    font-weight: 500;
    /* Adicionado para melhor legibilidade */
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li.available {
    color: #334155;
    /* Mais escuro para melhor legibilidade */
}

.features-list li.available::before {
    content: "\f00c";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 10px;
    color: #10b981;
    /* Verde mais vibrante */
}

.features-list li.unavailable {
    color: #64748b;
    /* Mais escuro que o original */
    text-decoration: line-through;
    opacity: 0.8;
    /* Manter alguma indicação visual sem perder legibilidade */
}

.features-list li.unavailable::before {
    content: "\f00d";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 10px;
    color: #94a3b8;
}

.pricing-footer {
    padding: 0 30px 30px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .pricing-plans-container {
        justify-content: center;
    }

    .pricing-card {
        max-width: 100%;
        width: calc(50% - 15px);
    }

    .pricing-card.popular {
        transform: scale(1.03);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px) scale(1.03);
    }

    /* Contact Section Tablet */
    .contact-container {
        flex-direction: column;
        max-width: 700px;
        margin: 0 auto;
    }

    .contact-info {
        flex: auto;
        padding: 40px;
        border-radius: 20px 20px 0 0;
    }

    .contact-form {
        flex: auto;
        padding: 40px;
    }
}

@media (max-width: 767px) {

    /* Compact Mobile Footer */
    footer {
        padding: 30px 0 20px;
        text-align: center;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
        margin-bottom: 25px;
        text-align: left;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 20px;
    }

    .footer-column h3 {
        margin-bottom: 15px;
        font-size: 11px;
        display: inline-block;
    }

    .footer-column:not(:last-child) h3::after,
    .footer-column:last-child h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .footer-links a {
        font-size: 13px;
    }

    .pricing-card {
        max-width: 100%;
        width: 100%;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

    /* Contact Section Mobile */
    .contact {
        padding: 60px 0;
    }

    .contact-container {
        margin: 0 15px;
        border-radius: 15px;
    }

    .contact-info {
        padding: 30px 20px;
        text-align: left;
    }

    .contact-info h3 {
        font-size: 24px;
    }

    .contact-details li {
        justify-content: flex-start;
        text-align: left;
    }

    .contact-details i {
        margin-right: 15px;
    }

    .social-icons {
        justify-content: flex-start;
        margin-top: 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        text-align: left;
        gap: 18px 12px;
    }

    .footer-column {
        text-align: left;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 8px;
        padding-top: 16px;
    }

    .footer-column h3 {
        display: inline-block;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .popup-content {
        padding: 20px;
    }
}

/* Ajustes específicos para o seletor de idiomas em desktop */
@media screen and (min-width: 1024px) {
    .header-container {
        padding: 25px 40px;
    }

    .logo-container {
        width: 33%;
    }

    .main-navigation {
        width: 67%;
        padding-right: 0;
    }

    .nav-menu {
        justify-content: flex-end;
        padding-left: 0;
        padding-right: 0;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .nav-item {
        margin: 0 5px;
    }

    .gtranslate_wrapper.desktop {
        display: block;
        right: 20px;
    }

    .gtranslate_wrapper.mobile,
    .mobile-lang-selector {
        display: none;
    }
}

@media screen and (min-width: 1280px) {
    .nav-menu {
        padding-left: 240px;
        padding-right: 60px;
    }
}

@media screen and (max-width: 1023px) {
    .header-container {
        padding: 40px 20px;
    }

    .logo-container {
        position: absolute;
        left: 20px;
        transform: none;
        margin-right: 0;
    }
}

/* ===================================
   TRANSIÇÕES DE PÁGINA E AJAX NAVIGATION
   =================================== */

/* Estilo para o conteúdo principal durante transições de página */
main#main-content {
    padding-top: 60px;
    transition: opacity 0.3s ease;
    min-height: 50vh;
}

main#main-content.loading {
    opacity: 0.6;
}

/* Destaque para links ativos no menu */
.header__menu-item a.active,
.mobile-menu__item a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Ajuste global para espaçamento entre seções */
section {
    position: relative;
}

/* Evitar espaçamentos excessivos entre seções */
section+section {
    margin-top: 0;
}

/* Ajuste específico para o problema de espaçamento após a seção de funcionalidades */
.modern-features+section,
.features+section,
.benefits+section {
    padding-top: 30px;
}

/* Corrigir espaçamento em dispositivos móveis */
@media (max-width: 768px) {
    section {
        padding: 30px 0;
        margin-top: 0;
    }

    body:not(.home-page) .hero-modern,
    body.interior-page .hero-modern {
        padding-top: 40px;
    }

    .modern-features+section,
    .benefits+section,
    .features+section {
        margin-top: 0;
        padding-top: 30px;
    }

    .features-cta {
        margin-top: 20px;
    }
}

/* Reduzir espaçamento em páginas internas */
body:not(.home-page) .hero-modern,
body.interior-page .hero-modern {
    padding-top: 60px;
}

/* Back to Top Button Global Styles */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary, #e11d48);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 18px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark, #be123c);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}
