/* Vi Turismo - CSS Principal */
/* Baseado no template Safer com adaptações para turismo */

/* CSS Variables */
:root {
    --primary-color: #2c5282;
    --primary-light: #4299e1;
    --primary-dark: #1a365d;
    --secondary-color: #38b2ac;
    --accent-color: #ed8936;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-accent: #edf2f7;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 2rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Navegação */
.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

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

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

/* Contato Header */
.header-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    transition: var(--transition);
}

.phone-link:hover {
    background: var(--primary-color);
    color: white;
}

.phone-icon {
    width: 18px;
    height: 18px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.8), rgba(66, 153, 225, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Highlight */
.hero-highlight {
    margin-top: 2rem;
}

.highlight-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Search Widget Section */
.search-widget {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Novo estilo do buscador */
.search-widget-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff; /* BUSCADOR em branco */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.search-widget-desc {
    color: #fff; /* Subtexto em branco */
    font-size: 1rem; /* ligeiramente maior */
    margin-bottom: 2rem;
}

.search-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-content {
    margin-bottom: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

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

.search-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.3);
}

.search-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.search-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
}

/* WhatsApp Button (apenas botão flutuante) */
.whatsapp-btn-float { /* mantém verde apenas no flutuante */
    background: #25d366 !important;
}

.whatsapp-btn-float:hover {
    background: #128c7e !important;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

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

.whatsapp-btn-float:hover {
    transform: scale(1.1);
    background: #128c7e;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: white;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

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

/* Mobile: service-card com largura padrão */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}


.service-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;              /* centraliza em todas as larguras */
    flex-direction: column;     /* empilha conteúdo verticalmente */
    align-items: center;        /* centraliza filhos horizontalmente */
    text-align: center;         /* centraliza textos */
}

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

/* Emojis maiores no desktop */
.service-icon {
    font-size: 5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 1rem auto 0.5rem auto; /* centraliza horizontalmente */
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    width: 100%;
}

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

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

.service-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* centraliza filhos como o service-icon */
    gap: 0.8rem; /* Espaçamento consistente entre elementos */
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    flex-grow: 1; /* Faz a descrição ocupar espaço disponível */
}

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


/* CTA padrão azul (mantém identidade anterior) */
.service-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: var(--transition);
}

.service-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-primary);
}

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

.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 3em; /* bottom 3em antes de fechar o footer */
    border-top: 3px solid var(--primary-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    text-align: center; /* centraliza textos no desktop */
}

/* Linhas verticais entre colunas (desktop) */
.footer-content::before,
.footer-content::after {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.footer-content::before { left: 33.33%; }
.footer-content::after  { left: 66.66%; }

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Desktop: ajustes finos no layout */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.footer-viagens,
.footer-contato {
    align-items: center; /* centraliza conteúdos nas colunas */
}

.footer-logo-img {
    height: 55px;
    width: auto;
    margin-bottom: 0.5rem;
}

.footer-logo {
    display: inline-block;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-light);
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    padding: 0.15rem 0;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
    padding-left: 0.25rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.footer-text a {
    color: var(--primary-light);
}

.footer-text a:hover {
    text-decoration: underline;
}

/* HR do footer */
.footer-hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0.75rem 0 0.5rem;
}

.footer-hr-mobile-only {
    display: none;
}

/* Footer Legal Section */
.footer-legal {
    display: inline-flex; /* garante mesma linha */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap; /* evita quebra entre Termos | Privacidade */
}

.footer-legal-sep {
    opacity: 0.7;
    margin: 0 0.5rem;
}

/* Legal fora do footer (fundo branco) */
.legal-outside {
    background: #ffffff;
    padding: 0.75rem 0 1.5rem; /* <space-low> antes e dois <space-low> depois */
}

.legal-links {
    margin: 0;
    color: var(--text-primary);
}

.legal-links .legal-link {
    color: var(--text-primary);
}

@media (min-width: 769px) {
    .legal-links {
        text-align: left;
        margin-left: 6em; /* alinhado à esquerda com 6em */
    }

    /* Footer desktop: respiro inferior dentro do grid */
    .footer-content {
        padding-bottom: 2em;
    }
}

@media (max-width: 768px) {
    .legal-links {
        text-align: center; /* centralizado no mobile */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px; /* Para não conflitar com o botão flutuante existente */
        right: 15px;
    }

    .whatsapp-btn-float {
        width: 50px;
        height: 50px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .hero-highlight {
        margin-top: 1.5rem;
    }

    .highlight-badge {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    /* Search Widget Mobile */
    .search-widget-label {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }

    .search-widget-desc {
        font-size: 0.85rem;
    }

    .search-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .tab-btn {
        width: 100%;
        max-width: 200px;
    }

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

    .search-form {
        padding: 1.5rem;
    }

    /* Services Mobile em duas colunas */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .service-card {
        max-width: 400px;
        margin: 0 auto;
        min-height: 320px; /* Altura mínima para cards com imagem */
        display: flex;
        flex-direction: column;
    }

    .service-content {
        flex: 1; /* Faz o conteúdo ocupar o espaço restante */
        justify-content: space-between;
    }

    /* Garante centralização do ícone no mobile */
    .service-card > .service-icon {
        display: block;
        margin: 1rem auto 0.5rem auto;
    }

    /* Service cards without images (ícones) */
    .service-card:nth-child(-n+4) {
        min-height: 280px; /* Cards com ícones precisam de altura menor */
    }

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

    /* Modal Mobile */
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
        max-height: 85vh;
    }

    .close-modal {
        font-size: 24px;
        top: 0.5rem;
        right: 1rem;
    }

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .header-content {
        gap: 1rem;
    }

    .nav {
        display: none;
    }

    .header-contact {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 80vh;
        margin-top: var(--header-height);
    }

    .hero-content {
        padding: 1rem;
    }

    .services {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .about {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image img {
        height: 300px;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        position: relative;
        padding-bottom: 2em; /* respiro inferior também no mobile */
    }

    /* Remove linhas verticais no mobile */
    .footer-content::before,
    .footer-content::after {
        display: none;
    }

    /* Layout Mobile: VIAGENS width 100% */
    .footer-viagens {
        grid-column: 1;
        width: 100%;
    }

    /* LOGO CENTER */
    .footer-logo-section {
        grid-column: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 0;
    }

    /* CONTATO */
    .footer-contato {
        grid-column: 1;
        text-align: center;
    }

    /* HR + TERMOS | PRIVACIDADE */
    .footer-legal {
        grid-column: 1;
        padding-top: 0.75rem;
        margin-top: 0.25rem;
    }

    .footer-hr-mobile-only {
        display: block; /* HR entre seções no mobile */
    }

}

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

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

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

    /* Search Widget Extra Small */
    .search-widget-label {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .search-widget-desc {
        font-size: 0.8rem;
    }

    .search-form {
        padding: 1rem;
    }

    .search-input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .search-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .service-image {
        height: 180px;
    }

    .service-content {
        padding: 1rem;
    }

    .service-icon {
        font-size: 4rem;
        padding: 1.5rem;
        background: var(--bg-secondary);
        border-radius: 50%;
        display: inline-block;
        width: 80px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 0;
    padding: 1.5rem; /* padding interno menor */
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 760px;
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.close-modal {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    margin-top: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem; /* fonte menor no modal */
}

.modal-body h3 {
    color: var(--primary-color);
    margin: 1.25rem 0 0.5rem 0;
    font-size: 1.1rem; /* título menor */
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.nav-link:focus,
.service-btn:focus,
.phone-link:focus,
.footer-link:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .mobile-menu-toggle {
        display: none;
    }

    .hero {
        margin-top: 0;
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-background {
        display: none;
    }

    .hero-content {
        color: var(--text-primary);
    }
}
