/**
 * CSS Principal do Site
 * Abbey Travel
 */

/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00aa58;
    --secondary-color: #2fb0e3;
    --text-color: #4d5a62;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    margin-bottom: 0 !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

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

.nav-menu {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-menu .admin-link {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-menu .admin-link::after {
    display: none;
}

.nav-menu .admin-link:hover {
    background: var(--secondary-color);
    color: white !important;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 170, 88, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

.close-menu {
    display: none;
}

.mobile-menu-logo {
    display: none;
}

/* Floating Sidebar */
.floating-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
}

.floating-sidebar.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    font-size: 22px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-icon:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Slider */
.slider-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-top: -62px;
}

/* Setas de navegação do slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0.8;
}

.slider-arrow:hover {
    background: rgba(0, 170, 88, 0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
    left: 20px;
}

.slider-arrow-next {
    right: 20px;
}

/* Mobile: setas menores e mais discretas */
@media (max-width: 768px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-arrow-prev {
        left: 10px;
    }
    
    .slider-arrow-next {
        right: 10px;
    }
}

/* About Section */
.about-section {
    padding: 50px 0;
    background: var(--white);
    margin-top: -100px;
}

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

.about-text h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

.gallery-filters {
    margin: 40px 0;
}

/* Botão "Todos os Grupos" - sozinho no topo */
.gallery-filters-primary {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-btn-primary {
    font-size: 18px;
    padding: 14px 40px;
}

/* Botões secundários - em linha */
.gallery-filters-secondary {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Quando TEM intercâmbio - grid 2x2 */
.gallery-filters-secondary.has-intercambio {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 170, 88, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

/* CTA Section */
/* CTA Section - Clean Design */
.cta-section {
    padding: 60px 0;
    background: var(--primary-color);
    color: var(--white);
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-text {
    flex: 1;
}

.cta-text h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-text p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
}

.cta-button {
    flex-shrink: 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--white);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-btn i {
    font-size: 22px;
}

/* Photo Gallery Section */
.photo-gallery-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.photo-gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.photo-gallery-header h2 {
    font-size: 42px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.photo-gallery-header p {
    font-size: 20px;
    color: #666;
}

.photo-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
}

.photo-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-carousel-item {
    flex: 0 0 calc(25% - 15px);
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.photo-carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.photo-carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.photo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 170, 88, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.photo-arrow:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.photo-arrow-prev {
    left: 0;
}

.photo-arrow-next {
    right: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-arrow:hover {
    background: var(--primary-color);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-column p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    max-width: 280px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
}

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

.footer-certifications {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.footer-certifications img {
    max-height: 50px;
    width: auto;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-certifications img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-copyright {
    text-align: center;
    padding: 25px 20px 30px;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
}

/* Responsive */

/* Resoluções MUITO grandes (monitores 4K e acima) */
@media (min-width: 2000px) {
    .slide img {
        object-fit: cover;
        object-position: center;
    }
    
    .slider-container {
        height: 700px;
    }
    
    .slider-section {
        width: 100vw;
        max-width: 100vw;
    }
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: flex !important;
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        background: var(--white);
        flex-direction: column;
        padding: 20px 30px 30px;
        gap: 20px;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease-in-out;
        z-index: 10001;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    /* Logo no menu mobile */
    .mobile-menu-logo {
        display: block !important;
        text-align: center;
        padding: 20px 0 30px;
        border-bottom: 2px solid #e0e0e0;
    }
    
    .mobile-menu-logo img {
        max-width: 180px;
        height: auto;
    }
    
    .nav-menu a {
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    /* Botão de fechar menu mobile */
    .close-menu {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        font-size: 28px;
        color: var(--text-color);
        cursor: pointer;
        padding: 5px;
        line-height: 1;
        transition: var(--transition);
        z-index: 10;
    }
    
    .close-menu:hover {
        color: var(--primary-color);
        transform: rotate(90deg);
    }
    
    .social-icons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 10002;
    }
    
    /* Overlay quando menu está aberto */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 10000;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Prevenir scroll quando menu está aberto */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Ícones sociais na parte inferior do mobile */
    .floating-sidebar {
        left: auto;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 10px 5px;
        gap: 8px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
        border-top: 2px solid var(--primary-color);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition);
        z-index: 9;
    }
    
    .floating-sidebar.visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Ícones redondos e menores no mobile */
    .sidebar-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 20px;
        flex-shrink: 0;
    }
    
    .slider-container {
        height: 550px;
    }
    
    /* Reduzir espaçamento entre seções no mobile */
    .about-section,
    .gallery-section,
    .cta-section,
    .photo-gallery-section {
        padding: 20px 0 !important;
    }
    
    .slider-section {
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text h2 {
        font-size: 28px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Filtros no mobile */
    .gallery-filters-primary {
        margin-bottom: 15px;
    }
    
    .filter-btn-primary {
        width: 90%;
        max-width: 350px;
        font-size: 17px;
    }
    
    /* Botões secundários - SEMPRE em linha horizontal */
    .gallery-filters-secondary {
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        padding: 0 10px;
    }
    
    .gallery-filters-secondary .filter-btn {
        flex: 1;
        min-width: 100px;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* Quando TEM intercâmbio - grid 2x2 no mobile */
    .gallery-filters-secondary.has-intercambio {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-filters-secondary.has-intercambio .filter-btn {
        flex: none;
        font-size: 14px;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 32px;
    }
    
    .cta-text p {
        font-size: 18px;
    }
    
    .photo-carousel-track {
        gap: 15px;
    }
    
    .photo-carousel-item {
        flex: 0 0 calc(50% - 7.5px);
    }
    
    .photo-carousel {
        padding: 0 50px;
    }
    
    .lightbox-prev, .lightbox-next {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
        left: auto;
    }
    
    /* Galeria de Fotos - 2 imagens por vez no mobile */
    .photo-carousel {
        padding: 0 50px;
    }
    
    .photo-carousel-item {
        flex: 0 0 calc(50% - 10px) !important;
        min-width: calc(50% - 10px);
    }
    
    .photo-carousel-item img {
        height: 220px;
        object-fit: cover;
    }
    
    .photo-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .photo-arrow-prev {
        left: 5px;
    }
    
    .photo-arrow-next {
        right: 5px;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-column p {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-certifications {
        gap: 20px;
    }
    
    .footer-certifications img {
        max-height: 40px;
    }
    
    /* Espaço no copyright para não colar nos ícones fixos */
    .footer-copyright {
        padding-bottom: 90px !important;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo img {
        max-width: 140px;
    }
    
    .about-text h2,
    .section-title {
        font-size: 24px;
    }
    
    .about-description {
        font-size: 16px;
    }
    
    .cta-text h2 {
        font-size: 26px;
    }
    
    .cta-text p {
        font-size: 16px;
    }
    
    .cta-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .photo-gallery-header h2 {
        font-size: 32px;
    }
    
    .photo-gallery-header p {
        font-size: 16px;
    }
    
    .photo-carousel-item img {
        height: 180px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

