/* ------------------- */
/* RESET E GLOBAIS     */
/* ------------------- */
:root {
    /* --- Sistema de Design: Porto Travel VIP --- */

    /* 1. Cromodinâmica (A Paleta da Costa do Descobrimento) */
    --color-primary: #0A2E4C;          /* Azul-Marinho Profundo: Confiança, Serenidade */
    --color-accent: #C6A875;           /* Areia Dourada: Luxo, Exclusividade, Calor */
    --color-text-primary: #333333;     /* Cinza-Escuro Quente: Legibilidade, Sofisticação */
    --color-text-secondary: #555555;   /* Cinza Médio: Conteúdo de suporte */
    --color-text-light: #ffffff;
    --color-background-primary: #F9F9F7; /* Branco-Ostra: Orgânico, Confortável */
    --color-background-secondary: #F1F1ED;/* Cinza-Claro Quente: Separação de seções */
    --color-border-subtle: #EAEAE6;     /* Borda Sutil: Definição delicada */

    /* 2. Materialidade Digital (Sombras e Contornos) */
    --shadow-sm: 0 2px 4px rgba(10, 46, 76, 0.05);
    --shadow-md: 0 4px 8px rgba(10, 46, 76, 0.07), 0 2px 4px rgba(10, 46, 76, 0.06);
    --shadow-lg: 0 10px 20px rgba(10, 46, 76, 0.08), 0 5px 10px rgba(10, 46, 76, 0.09);

    /* 3. Cinesiologia Digital (Tempo e Curvas de Animação) */
    --transition-duration: 0.4s;
    --transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1); /* Curva de easing elegante (easeOutExpo) */
    
    /* 4. Arquitetura Espacial (Tipografia e Espaçamento) */
    --font-family-primary: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --container-width: 960px;
    --container-padding: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--color-background-primary);
    color: var(--color-text-primary);
    line-height: 1.8; /* Aumentado para conforto de leitura */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Diretriz de Foco para Acessibilidade Elevada */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-background-primary), 0 0 0 4px var(--color-accent);
    border-radius: 4px;
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-duration) ease;
}

h1, h2, h3 {
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.02em; /* Microtipografia para imponência */
    color: var(--color-primary);
}

ul {
    list-style: none;
}

.text-center {
    text-align: center;
}

/* ------------------- */
/* HEADER E NAVEGAÇÃO  */
/* ------------------- */
.site-header {
    background-color: rgba(249, 249, 247, 0.8); /* Fundo com a nova cor e transparência */
    backdrop-filter: blur(8px); /* Efeito de vidro fosco para sofisticação */
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow var(--transition-duration) var(--transition-timing-function), background-color var(--transition-duration) var(--transition-timing-function);
    border-bottom: 1px solid transparent; /* Borda para transição suave */
}

.site-header.scrolled {
    background-color: rgba(249, 249, 247, 0.95);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--color-border-subtle);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    text-decoration: none;
    color: var(--color-primary);
}

.logo-img {
    height: 44px;
    width: auto;
}

.nav-desktop ul {
    display: flex;
    gap: 30px;
}

.nav-desktop a {
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 28px 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-duration) ease, border-color var(--transition-duration) ease;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.hamburger-menu, .nav-mobile, .close-menu {
    display: none;
}
/* ------------------- */
/* HERO SECTION        */
/* ------------------- */
.hero {
    height: 600px;
    display: flex;
    align-items: flex-end; /* REPOSICIONAMENTO: Alinha o conteúdo na base para uma composição mais estável */
    justify-content: flex-start;
    position: relative;
    text-align: left;
    overflow: hidden;
    padding-bottom: 80px; /* ESPAÇAMENTO: Cria uma margem elegante da borda inferior */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    animation: slow-zoom 12s ease-out forwards;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    /* OVERLAY RE-ENGENHARADO: Camada dupla para garantir contraste e profundidade */
    background: 
        /* Gradiente inferior mais forte para a base do texto */
        linear-gradient(to top, rgba(10, 46, 76, 0.85) 0%, transparent 50%),
        /* Overlay sutil em toda a área para consistência */
        linear-gradient(to bottom, rgba(10, 46, 76, 0.4) 0%, rgba(10, 46, 76, 0.1) 50%);
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--color-text-light);
    text-align: left;
    width: 100%; /* Garante que o conteúdo ocupe o espaço do container */
}

.hero-title {
    line-height: 1.2;
}

.hero-title span {
    display: block;
    animation: fade-in-up 1.2s var(--transition-timing-function) forwards;
    opacity: 0;
}

/* Stagger (atraso) para a animação de cada linha */
.hero-title-line1 {
    font-size: 28px;
    font-weight: 400;
    animation-delay: 0.3s;
}

.hero-title-line2 {
    font-size: 72px;
    font-weight: 700;
    margin: 5px 0;
    animation-delay: 0.5s;
    /* TEXT-SHADOW REFINADO: Sombra mais pronunciada para máxima legibilidade */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title-line3 {
    font-size: 22px;
    font-weight: 400;
    animation-delay: 0.7s;
}

/* FIX: Garante que o título no Hero seja sempre claro, sobrepondo a regra global de h2 */
.hero h2 {
    color: var(--color-text-light);
}

/* ------------------- */
/* SEÇÕES PRINCIPAIS   */
/* ------------------- */
.concierge {
    padding: 120px 0; /* Espaçamento vertical aumentado */
}

.concierge .container {
    max-width: 700px; /* Limitando a largura para o texto */
    text-align: left; /* Quebrando a simetria */
}

.concierge h2 {
    font-size: 42px;
    margin-bottom: 25px;
}

.concierge p {
    font-size: 22px;
    color: var(--color-text-secondary);
    margin-left: 4px; /* Recuo sutil para criar hierarquia */
}

.services-main,
.services-prepared {
    padding: 100px 0; /* Espaçamento unificado e aumentado */
}

.services-prepared {
    background-color: var(--color-background-primary);
}

.services-prepared h2 {
    font-size: 38px;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px; /* Espaçamento aumentado */
}

.service-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border-subtle);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative; /* Para o contorno */
    transition: transform var(--transition-duration) var(--transition-timing-function), 
                box-shadow var(--transition-duration) var(--transition-timing-function);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    border: 1px solid var(--color-accent);
    opacity: 0;
    transition: opacity var(--transition-duration) var(--transition-timing-function);
    pointer-events: none; /* Garante que o pseudo-elemento não capture eventos do mouse */
}

.service-card:hover,
.service-card:focus-within,
.service-card.is-touch-hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::after,
.service-card:focus-within::after,
.service-card.is-touch-hover::after {
    opacity: 1;
}

.service-card img {
    margin: 0;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.services-prepared .service-card {
    text-align: center;
}

.services-prepared .service-card img {
    width: 80px;
    height: auto;
    margin: 0 auto 20px;
}

.service-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 16px;
    color: var(--color-text-secondary);
    flex-grow: 1;
}

/* ------------------- */
/* TESTIMONIALS        */
/* ------------------- */
.testimonials {
    background-color: var(--color-background-secondary);
    padding: 100px 0;
}

.testimonials-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 1.5px; /* Aumentado para mais destaque */
    text-transform: uppercase;
    margin-bottom: 10px;
}

.testimonials h2 {
    font-size: 38px;
    margin-bottom: 50px;
}

.testimonials blockquote p {
    font-size: 20px;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 25px;
    color: var(--color-text-primary);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials img {
    margin: 0 auto 15px;
}

.testimonials figcaption {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* --- CAROUSEL STYLES --- */
.testimonial-carousel:focus-visible {
    outline: none; /* O foco global já trata disso */
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.carousel-slide {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    padding: 0 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}

.carousel-slide.is-selected {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--color-text-secondary);
    opacity: 0.6;
    transition: opacity var(--transition-duration) ease, transform var(--transition-duration) ease;
    z-index: 10;
}

.carousel-button:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    color: var(--color-primary);
}

.carousel-button[hidden] {
    display: none;
}

.carousel-button--left {
    left: -10px;
}

.carousel-button--right {
    right: -10px;
}

.carousel-button svg {
    width: 36px;
    height: 36px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-indicator {
    background-color: #d8d8d8;
    border: 0;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    cursor: pointer;
    transition: background-color var(--transition-duration) ease, transform var(--transition-duration) ease;
}

.carousel-indicator.is-selected {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

/* ------------------- */
/* FOOTER              */
/* ------------------- */
.site-footer-contact {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 80px 0;
}

.contact-header h2 {
    font-size: 38px;
    margin-bottom: 15px;
    color: var(--color-text-light);
}

.contact-header p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.contact-details-refactored address {
    font-style: normal;
}

.contact-main-action {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-main-action a {
    font-size: 2.5rem; /* 40px */
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-text-light);
    transition: color var(--transition-duration) ease, transform var(--transition-duration) ease;
}
.contact-main-action a:hover {
    color: var(--color-accent);
    transform: scale(1.05);
}

.contact-wpp-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: fill var(--transition-duration) ease, transform var(--transition-duration) ease;
}

.contact-main-action a:hover .contact-wpp-icon {
    transform: scale(1.1);
}

.contact-secondary-info {
    font-size: 16px;
    letter-spacing: 0.5px;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-secondary-info a {
    color: var(--color-text-light);
}

.contact-secondary-info a:hover {
    text-decoration: underline;
    color: var(--color-accent);
}

.site-footer-bottom {
    background-color: #000;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

/* ------------------- */
/* BOTÃO FLUTUANTE WPP */
/* ------------------- */
.floating-wpp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    opacity: 0;
    transform: scale(0.8);
    visibility: hidden;
    transition: opacity var(--transition-duration) var(--transition-timing-function), 
                transform var(--transition-duration) var(--transition-timing-function), 
                visibility 0s linear var(--transition-duration), 
                box-shadow var(--transition-duration) var(--transition-timing-function);
}

.floating-wpp-button.is-visible {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    transition-delay: 0.5s;
}

.floating-wpp-button:hover,
.floating-wpp-button:focus-visible {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floating-wpp-button svg {
    width: 32px;
    height: 32px;
}

/* ------------------- */
/* EFEITOS E ANIMAÇÕES */
/* ------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px); /* Movimento mais sutil */
    transition: opacity 1s var(--transition-timing-function), 
                transform 1s var(--transition-timing-function);
    transition-delay: 0.1s;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes para as animações do Hero */
@keyframes slow-zoom {
  from { transform: scale(1.1); filter: brightness(0.9); }
  to { transform: scale(1); filter: brightness(0.95); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------- */
/* MEDIA QUERIES       */
/* ------------------- */
@media (max-width: 767px) {
    body {
        line-height: 1.7;
    }

    /* ========================================================== */
    /* == REGRAS DO MENU MÓVEL (V.FINALÍSSIMA ESTRUTURAL)      == */
    /* ========================================================== */

    .nav-desktop {
        display: none;
    }

.hamburger-menu {
        display: block;
        position: fixed; /* FIX: Posição fixa na tela */
        top: 24px;       /* FIX: Alinhado com o centro do header de 80px */
        right: var(--container-padding); /* FIX: Alinhado com o padding do container */
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        color: var(--color-primary);
        z-index: 1002;
        width: 22px;
        height: 32px; /* Altura aumentada para melhor área de toque */
        display: flex;
        align-items: center;
        justify-content: center;
        /* TRANSIÇÃO PARA DESAPARECIMENTO SUAVE */
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* NOVA REGRA: ESCONDE O HAMBÚRGUER QUANDO O MENU ESTÁ ABERTO */
    body.body-no-scroll .hamburger-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* Garante que o botão invisível não seja clicável */
    }

    .nav-mobile {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100%;
        background-color: #F9F9F7; /* Fundo sólido e direto */
        box-shadow: -2px 0 20px rgba(10, 46, 76, 0.25);
        transition: right 0.5s var(--transition-timing-function);
        padding-top: 80px;
        z-index: 1001;
    }

    .nav-mobile.open {
        right: 0;
    }

    .nav-mobile .close-menu {
        display: block;
        position: absolute;
        top: 22px;
        right: 25px;
        font-size: 36px;
        background: none;
        border: none;
        color: var(--color-text-secondary);
        cursor: pointer;
    }

    .nav-mobile ul {
        flex-direction: column;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-mobile li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--color-border-subtle);
    }

    .nav-mobile li:first-child {
        border-top: 1px solid var(--color-border-subtle);
    }

    .nav-mobile a {
        display: block;
        padding: 18px 25px;
        color: var(--color-text-secondary);
        font-size: 18px;
        font-weight: 500;
        background-color: transparent;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .nav-mobile a:hover {
        background-color: var(--color-background-secondary);
        color: var(--color-accent);
    }

    .nav-mobile a.active {
        background-color: transparent;
        color: var(--color-accent);
        font-weight: 600;
    }
    
    .concierge, .services-main, .services-prepared, .testimonials {
        padding: 80px 0;
    }

    .concierge .container {
        text-align: center;
    }

    .concierge p {
        margin-left: 0;
    }

    .hero-title-line1 {
        font-size: 20px;
    }

    .hero-title-line2 {
        font-size: 48px;
    }

    .hero-title-line3 {
        font-size: 18px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials blockquote p {
        font-size: 18px;
        min-height: auto;
        padding: 0 10px;
    }

    .carousel-button {
        top: 35%;
    }

    .carousel-button--left {
        left: 0;
    }

    .carousel-button--right {
        right: 0;
    }

    .contact-main-action a {
        font-size: 2rem;
    }

    .floating-wpp-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .floating-wpp-button svg {
        width: 28px;
        height: 28px;
    }
}

/* --- ACESSIBILIDADE: PREFERÊNCIA POR MOVIMENTO REDUZIDO --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-delay: 0s !important;
        animation-delay: 0s !important;
        scroll-behavior: auto !important;
    }
}

/* ------------------- */
/* OVERLAY DO MENU MOBILE */
/* ------------------- */
.body-no-scroll::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 46, 76, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}