/*
Theme Name: Econtur Viagens e Turismo
Description: Tema personalizado para agência de viagens Econtur, baseado no design original do site. Inclui seções para pacotes de viagem, resorts, serviços e formulário de contato.
Author: Manus AI
Version: 1.0
Text Domain: econtur
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Variáveis CSS */
:root {
    --primary-color: #1B5F8C;
    --secondary-color: #C8A961;
    --accent-color: #E85A2B;
    --success-color: #4CAF50;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #343A40;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background: #144a73;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 95, 140, 0.9) 0%, rgba(41, 128, 185, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

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

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.feature i {
    color: var(--secondary-color);
}

/* Sections */
section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Services */
.services {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Packages */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.package-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.package-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.package-card:hover .package-image img {
    transform: scale(1.05);
}

.package-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.package-badge.featured {
    background: var(--success-color);
}

.package-badge.premium {
    background: var(--secondary-color);
}

.package-content {
    padding: 1.5rem;
}

.package-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.package-location,
.package-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.package-location i,
.package-duration i {
    color: var(--primary-color);
}

.package-features {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--light-gray);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.package-price {
    margin: 1.5rem 0;
    text-align: center;
}

.price-installment {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-total {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.price-contact {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* Why Choose */
.why-choose {
    background: var(--light-gray);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.75rem;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.benefit-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 95, 140, 0.1);
}

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

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--secondary-color);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    flex-wrap: wrap;
}

.footer-bottom__text p {
    margin: 0;
}

.footer-bottom__seals {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: auto;
}

.footer-bottom__seals img {
    max-height: 80px;
    height: auto;
    width: auto;
    opacity: .9;
    transition: opacity .2s ease;
}

.footer-bottom__seals a:hover img {
    opacity: 1;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
        z-index: 1001; /* Garante que o menu apareça sobre outros elementos */
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

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

    .services-grid,
    .packages-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

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

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

    /* Footer mobile styles - Corrigido */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
        justify-items: start;
        align-items: start;
    }

    .footer-section {
        text-align: left;
        width: 100%;
        margin-bottom: 1rem;
    }

    .footer-section .footer-title,
    .footer-section h4 {
        text-align: left;
        margin-bottom: 1rem;
        color: var(--white);
    }

    .footer-section .footer-links,
    .footer-section .footer-contact,
    .footer-section ul {
        text-align: left;
        padding-left: 0;
        margin: 0;
    }

    .footer-section .footer-links li,
    .footer-section ul li {
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .footer-section .footer-links a,
    .footer-section ul li a {
        text-align: left;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
    }

    .footer-social {
        justify-content: flex-start;
        text-align: left;
        margin-top: 1rem;
    }

    /* Forçar alinhamento à esquerda para widgets do footer */
    .footer-widget {
        text-align: left;
    }

    .footer-widget h4,
    .footer-widget .widget-title {
        text-align: left;
        color: var(--white);
        margin-bottom: 1rem;
    }

    .footer-widget ul {
        padding-left: 0;
        list-style: none;
        text-align: left;
        margin: 0;
    }

    .footer-widget ul li {
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .footer-widget ul li a {
        text-align: left;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
    }

    /* Garantir que todos os elementos do footer sejam alinhados à esquerda */
    .footer-section *,
    .footer-widget * {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .package-image {
        height: 200px;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}



@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .footer-bottom__seals {
    margin-left: 0;
    margin-top: 8px;
    justify-content: flex-start;
  }
}



/* === Form externo (iframe) embutido — versão limpa === */
.form-container,
.external-form {
  max-width: 100%;
  overflow-x: hidden;
}

.external-form {
  width: 100%;
  position: relative;
}

/* Base do iframe */
.external-form iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

/* Desktop (>=992px): sem scroll interno; evita “buracão” com clamp */
@media (min-width: 992px) {
  .external-form iframe { height: clamp(1100px, 140svh, 2200px); }
}

/* Tablet (576–991px): sem scroll interno, altura um pouco maior */
@media (min-width: 576px) and (max-width: 991.98px) {
  .external-form iframe { height: clamp(1200px, 160svh, 2400px); }
}

/* Mobile (<=575px): COM scroll interno, ocupa a tela */
@media (max-width: 575.98px) {
  .external-form iframe {
    min-height: 800px;
    height: 100vh;   /* fallback */
    height: 100dvh;  /* viewport dinâmico */
    height: 100svh;  /* viewport “small” – iOS recente */
  }
}

/* Evita overflow lateral do grid e da página */
.contact-grid,
html, body {
  overflow-x: hidden;
}


