/* Dispositivos grandes (desktops, 992px e superior) */
@media (min-width: 992px) {
    .navbar-menu {
        display: flex;
    }
    .mobile-toggle,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none;
    }
}

/* Dispositivos médios (tablets, menos de 992px) */
@media (max-width: 991.98px) {
    .navbar-menu {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
}

/* Dispositivos pequenos (telefones de paisagem, menos de 768px) */
@media (max-width: 767.98px) {
    .header {
        height: var(--header-height-mobile, 80px);
    }
    .navbar {
        padding: 0.5rem 0;
    }
    .logo-img {
        height: 50px;
    }
    .navbar-actions {
        gap: 0.5rem;
    }

    .navbar-actions .language-selector-wrapper {
        display: flex;
        order: -1;
    }
}

/* Dispositivos extra pequenos (celulares tipo retrato, menos de 576px) */
@media (max-width: 575.98px) {
    .header {
        height: var(--header-height-mobile, 70px);
    }
    .logo-img {
        height: 45px;
    }
    .mobile-menu {
        width: 95%;
        max-width: none;
    }
    .mobile-menu-content {
        padding: 1.5rem 1rem;
    }
    .mobile-nav-link {
        font-size: 1.1rem;
        padding: 0.875rem;
    }
}

/* ===========================
    MOBILE MENU STYLES
   =========================== */

/* Mobile Toggle */
.mobile-toggle {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    margin: 0;
    z-index: var(--z-mobile-menu, 1001);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle:focus-visible {
    outline: 2px solid var(--primary-color, #3b82f6);
    outline-offset: 2px;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hamburger container */
.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Linhas do Hamburger */
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary, #ffffff);
    border-radius: 2px;
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animação Active X */
.mobile-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Sobreposição de desfoque para fundo */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-mobile-menu, 1000);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Container menu móvel */
.mobile-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 380px;
    z-index: var(--z-mobile-menu, 1001);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 2rem 1.5rem;
    overflow: hidden;
    position: relative;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: var(--text-primary, #ffffff);
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--primary-light, #60a5fa);
    transform: translateY(-2px);
}

/* Mobile Dropdown */
.mobile-dropdown {
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 0.5rem;
}

.has-dropdown.active .mobile-dropdown {
    max-height: 500px;
    padding: 0.5rem;
}

.mobile-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    background: transparent;
    border-radius: 8px;
    margin: 0.1rem 0;
    transition: all 0.3s ease;
}

.mobile-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.has-dropdown > .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.has-dropdown .dropdown-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Mobile Menu Rodapé */
.mobile-menu-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-footer .btn-contact {
    display: flex;
    width: 100%;
}

/* Oculta o botão de contato do menu mobile em telas maiores */
@media (min-width: 767.99px) {
    .mobile-menu-footer {
        display: none;
    }
}

/* Animações de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.active .mobile-nav li,
.mobile-menu.active .mobile-menu-footer {
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.mobile-menu.active .mobile-nav li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-nav li:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.active .mobile-nav li:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.active .mobile-menu-footer { animation-delay: 0.25s; }


/* --- Hero Section Responsividade --- */

/* Telas Pequenas (Celulares) */
@media (max-width: 767.98px) {
    .hero-section {
        margin-top: 80px;
        min-height: 90vh;
        min-height: 90svh;
    }
    .hero-glass-card {
        padding: 2rem 1.5rem;
    }
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .hero-buttons {
        gap: 1rem;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 425px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .hero-glass-card {
        padding: 1.5rem 1rem;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-subtitle {
        font-size: 0.85rem;
    }
}

/* Telas Médias (Tablets) */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
        max-width: 600px;
    }
}

/* Telas Grandes (Desktops) */
@media (min-width: 1024px) {
    .hero-glass-card {
        padding: 3.5rem 3rem;
    }
    .hero-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
        max-width: 650px;
    }
}

/* Telas Extra Grandes (Desktops Maiores) */
@media (min-width: 1440px) {
    .hero-glass-card {
        padding: 4rem 3.5rem;
    }
    .hero-title {
        font-size: 4.5rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
        max-width: 700px;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 1.2rem;
        padding: 1.2rem 2.5rem;
    }
}

/* Telas 4K e acima */
@media (min-width: 2560px) {
    .hero-section {
        min-height: 80vh;
        min-height: 80svh;
    }
    .hero-glass-card {
        padding: 5rem 4rem;
    }
    .hero-title {
        font-size: 5.5rem;
    }
    .hero-subtitle {
        font-size: 1.6rem;
        max-width: 800px;
    }
}

/* --- Why Section Responsividade --- */

/* Telas Pequenas (Celulares) */
@media (max-width: 767.98px) {
    .why-section {
        padding: 80px 0;
        margin-top: 0;
    }
    .why-header {
        margin-bottom: 3rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 0.95rem;
    }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .why-card-inner {
        padding: 2rem;
    }
    .why-card-title {
        font-size: 1.2rem;
    }
    .why-card-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 425px) {
    .why-section {
        padding: 60px 0;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .why-card-inner {
        padding: 1.5rem;
    }
}

@media (max-width: 375px) {
    .why-section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
    }
    .why-card-inner {
        padding: 1.25rem;
    }
}

@media (max-width: 320px) {
    .why-section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .why-card-inner {
        padding: 1rem;
    }
    .why-card-title {
        font-size: 1.1rem;
    }
    .why-card-desc {
        font-size: 0.85rem;
    }
}

/* Telas Médias (Tablets) */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .why-card-title {
        font-size: 1.3rem;
    }
}

/* Telas Grandes (Desktops) */
@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Telas Extra Grandes (Desktops Maiores) */
@media (min-width: 1440px) {
    .why-section {
        padding: 140px 0;
    }
    .section-title {
        font-size: 3.2rem;
    }
    .section-subtitle {
        font-size: 1.25rem;
        max-width: 650px;
    }
    .why-grid {
        gap: 2.5rem;
    }
}

/* Telas 4K e acima */
@media (min-width: 2560px) {
    .why-section {
        padding: 180px 0;
    }
    .section-title {
        font-size: 4rem;
    }
    .section-subtitle {
        font-size: 1.5rem;
        max-width: 800px;
    }
    .why-grid {
        gap: 3rem;
    }
    .why-card-inner {
        padding: 3rem;
    }
}

/* --- Service Section Responsividade --- */
@media (max-width: 480px) {
    .features-list {
        grid-template-columns: 1fr;
    }

    .service-cta {
        width: auto;
        min-width: 0;
        max-width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* --- Services Page Responsividade --- */
@media (max-width: 767.98px) {
    .hero-section-services {
        padding: 120px 0 60px 0;
    }
    .page-title {
        font-size: 2.2rem;
    }
    .page-subtitle {
        font-size: 1rem;
    }
    .services-carousel-wrapper {
        padding: 2rem 1.5rem;
    }
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .service-info {
        text-align: center;
    }
    .service-card-icon {
        margin: 0 auto 1rem auto;
    }
    .service-title {
        font-size: 2rem;
    }
    .service-desc {
        font-size: 1rem;
    }
    .included-features h4,
    .service-addons h4,
    .base-plan h4 {
        text-align: center;
    }
    .included-list li {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .addons-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .addons-list li .addon-main {
        width: 100%;
        justify-content: space-between;
    }
    .addons-list label {
        flex-shrink: 1;
        min-width: 0; 
    }
    .addons-list label span {
        white-space: normal;
    }
    .addons-list input[type="checkbox"] {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    .quantity-selector {
        margin: 0 0.5rem;
        gap: 0.3rem;
        padding: 0.15rem;
    }
    .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
    .quantity-input {
        width: 30px;
        font-size: 0.9rem;
    }
    .total-price-container {
        padding: 1rem;
    }
    .total-price-value {
        font-size: 1.8rem;
    }
    .btn-quote {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 425px) {
    .services-carousel-wrapper {
        padding: 1.5rem 1rem;
    }
    .page-title {
        font-size: 2rem;
    }
    .service-title {
        font-size: 1.8rem;
    }
    .service-desc {
        font-size: 0.95rem;
    }
    .included-list {
        gap: 0;
    }
    .included-list li {
        justify-content: center;
        text-align: center;
        padding: 0.75rem 0; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    }
    .included-list li:last-child {
        border-bottom: none;
    }
    .included-list li i {
        display: none;
    }
    .included-list li,
    .addons-list label {
        font-size: 0.9rem;
    }
    .addon-price {
        font-size: 0.9rem;
    }
    .total-price-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 375px) {
    .services-carousel-wrapper {
        padding: 1rem 0.75rem;
    }
    .page-title {
        font-size: 1.8rem;
    }
    .service-title {
        font-size: 1.6rem;
    }
    .service-desc {
        font-size: 0.9rem;
    }
    .included-list li,
    .addons-list label {
        font-size: 0.85rem;
    }
    .addon-price {
        font-size: 0.85rem;
    }
    .total-price-value {
        font-size: 1.4rem;
    }
    .btn-quote {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 320px) {
    .services-carousel-wrapper {
        padding: 0.75rem 0.5rem;
    }
    .page-title {
        font-size: 1.6rem;
    }
    .service-title {
        font-size: 1.4rem;
    }
    .service-desc {
        font-size: 0.8rem;
    }
    .included-list li,
    .addons-list label {
        font-size: 0.8rem;
    }
    .addon-price {
        font-size: 0.8rem;
    }
    .total-price-value {
        font-size: 1.2rem;
    }
    .btn-quote {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* --- Timeline Section Responsividade --- */
@media (max-width: 768px) {
    .timeline-section {
        padding-top: 40px;
        margin-top: 4rem; 
    }
}

@media (max-width: 480px) {
    .timeline-section {
        padding-top: 20px;
        margin-top: 6rem;
        margin-bottom: 4rem;
    }

    .timeline-container {
        gap: 2rem;
        padding: 0 15px;
    }

    /* Remove a linha de progresso em telas pequenas */
    .timeline-container::before,
    .timeline-progress {
        display: none;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 0; 
        margin-bottom: 2rem; 
    }

    .timeline-article {
        display: flex;
        flex-direction: column;
        align-items: center; 
        gap: 1rem;
    }

    /* Reposiciona o step para o fluxo normal, acima do card */
    .timeline-item:nth-child(odd) .timeline-step,
    .timeline-item:nth-child(even) .timeline-step {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none; 
    }

    .timeline-step {
        margin-bottom: 0;
    }
}

/* --- Contact Page Responsividade --- */

/* Telas Pequenas (Celulares) - Tablets e abaixo */
@media (max-width: 767.98px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "cart"
            "form";
        gap: 3rem;
    }
    .contact-info-card,
    .contact-form-card {
        padding: 2rem;
    }
}

@media (max-width: 425px) {
    .contact-section {
        padding: 0 0 50px 0;
    }
    .contact-info-card,
    .contact-form-card,
    .cart-summary-card {
        padding: 1.5rem;
    }
    .contact-card-title {
        font-size: 1.5rem;
    }
    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
    }
    .contact-form textarea {
        max-height: 250px;
    }
    .form-actions {
        text-align: center;
    }
}

@media (max-width: 375px) {
    .contact-info-card,
    .contact-form-card,
    .cart-summary-card {
        padding: 1.25rem;
    }
}

@media (max-width: 320px) {
    .contact-info-card,
    .contact-form-card,
    .cart-summary-card {
        padding: 1rem;
    }
}