/* === css/site.css === */
/**
 * KVBE - Core Styles (Loader & i18n Switcher)
 * Luxury Dark & Matte Gold Design System
 */

:root {
    --concrete: #E6E5E3;
    --matte-gold: #C4A46A;
    --matte-gold-light: #DFC79B;
    --matte-gold-dark: #9E7D47;
    --travertine: #E3DCCF;
    --wood: #A67953;
    --ceramic: #535947;
    --marble: #2B2A28;
    --bg-dark: #141414;
}

/* ==========================================================================
   Luxury Page Loader
   ========================================================================== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

.page-loader::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 164, 106, 0.12) 0%, rgba(20, 20, 20, 0) 70%);
    pointer-events: none;
    filter: blur(40px);
}

.page-loader.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.page-loader.disabled,
body.kvbe-no-loader .page-loader {
    display: none !important;
}

.loader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: kvbeLoaderPulse 2.2s ease-in-out infinite alternate;
}

.loader-logo img {
    max-width: 180px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(196, 164, 106, 0.35));
}

.loader-spinner {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-spinner .spinner-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(196, 164, 106, 0.18);
    border-top-color: var(--matte-gold, #C4A46A);
    border-right-color: rgba(196, 164, 106, 0.75);
    animation: kvbeLoaderSpin 0.9s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    box-shadow: 0 0 18px rgba(196, 164, 106, 0.3);
}

@keyframes kvbeLoaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes kvbeLoaderPulse {
    0% { transform: scale(0.98); opacity: 0.92; }
    100% { transform: scale(1.02); opacity: 1; }
}

/* ==========================================================================
   Minimalist Sliding Language Switch (Zero Flags - Pure Luxury)
   ========================================================================== */
.lang-switcher {
    display: none !important;
}

.lang-switch-wrap {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    user-select: none;
    -webkit-user-select: none;
}

.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 78px;
    height: 32px;
    background: rgba(20, 20, 20, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(196, 164, 106, 0.32);
    border-radius: 9999px;
    padding: 2px;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.lang-switch:hover {
    border-color: rgba(196, 164, 106, 0.65);
    box-shadow: 0 4px 22px rgba(196, 164, 106, 0.25);
}

.lang-switch:active {
    transform: scale(0.95);
}

.lang-switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background: linear-gradient(135deg, rgba(196, 164, 106, 0.3) 0%, rgba(196, 164, 106, 0.16) 100%);
    border: 1px solid rgba(196, 164, 106, 0.7);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* Slide to EN */
.lang-switch[data-lang="en"] .lang-switch-slider {
    transform: translateX(100%);
}

.lang-switch-opt {
    position: relative;
    z-index: 2;
    flex: 1;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(230, 229, 227, 0.45);
    pointer-events: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    text-transform: uppercase;
    user-select: none;
    -webkit-user-select: none;
}

.lang-switch[data-lang="pt"] .lang-switch-opt[data-lang="pt"],
.lang-switch[data-lang="en"] .lang-switch-opt[data-lang="en"] {
    color: #FFFFFF;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(196, 164, 106, 0.45);
}

@media (max-width: 768px) {
    .lang-switch-wrap {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
    }
    
    .lang-switch {
        width: 68px;
        height: 28px;
    }
    
    .lang-switch-opt {
        font-size: 10.5px;
        letter-spacing: 0.06em;
    }
}

/* ==========================================================================
   Coming Soon Page - Luxury Campaign CTA Card
   ========================================================================== */
.coming-soon-cta {
    margin-top: 2.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    display: flex;
    justify-content: center;
}

.cta-card {
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(196, 164, 106, 0.35);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(196, 164, 106, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 164, 106, 0.6);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(196, 164, 106, 0.15);
}

.cta-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--matte-gold, #C4A46A);
    margin-bottom: 0.6rem;
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.cta-desc {
    font-size: 0.92rem;
    color: rgba(230, 229, 227, 0.85);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #DFC79B 0%, #C4A46A 50%, #9E7D47 100%);
    color: #141414;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(196, 164, 106, 0.35);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(196, 164, 106, 0.5);
    filter: brightness(1.06);
}

.cta-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.cta-button:hover svg {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .cta-card {
        padding: 1.25rem 1.25rem;
    }
    .cta-title {
        font-size: 1.1rem;
    }
}


/* === css/footer.css === */
:root {
    color-scheme: dark;
    --matte-gold: #C4A46A;
    --concrete: #E6E5E3;
    --travertine: #E3DCCF;
    --wood: #A67953;
    --ceramic: #535947;
    --marble: #2B2A28;
}

.footer {
    width: 100%;
    padding: 2rem 1rem 3rem;
    text-align: center;
    background: transparent;
    border-top: 1px solid rgba(196, 164, 106, 0.2);
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.footer p {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--travertine);
    margin: 0;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.footer-links a,
.footer-links button.cookie-settings-link {
    color: rgba(230, 229, 227, 0.75);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-links button.cookie-settings-link:hover {
    color: var(--matte-gold);
}

.footer-links .footer-sep {
    color: rgba(196, 164, 106, 0.4);
    font-size: 0.7rem;
    user-select: none;
}

.footer a {
    color: var(--travertine);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--matte-gold);
}

.footer-credit {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.62rem;
    font-weight: 300;
    color: rgba(227, 220, 207, 0.32);
    letter-spacing: 0.06em;
    text-align: center;
}

.footer-credit a {
    color: rgba(196, 164, 106, 0.45);
    text-decoration: none;
    font-weight: 300;
    transition: all 0.25s ease;
}

.footer-credit a:hover {
    color: var(--matte-gold);
    opacity: 1;
}

@media (max-width: 768px) {
    .footer {
        border-top: none;
        padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
        margin-top: 1.25rem;
    }

    .footer::before {
        content: "";
        display: block;
        width: 160px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(196, 164, 106, 0.3), transparent);
        margin: 0 auto 0.85rem;
    }

    .footer p {
        font-size: 0.78rem;
        line-height: 1.5;
        max-width: 250px;
        margin: 0 auto;
    }

    .footer-credit {
        font-size: 0.58rem;
        margin-top: 0.3rem;
    }
}



/* === css/whatsapp.css === */
/* ==============================================================================
   KVBE WhatsApp Concierge Button & Speech Balloon (Flamingo Experiences Design)
   ============================================================================== */

.whatsapp-chat-container {
    position: fixed;
    right: 24px;
    bottom: 26px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

.whatsapp-chat-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0ddaa 0%, #c8a76b 50%, #9e7f45 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 16px rgba(200, 167, 107, 0.35);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .whatsapp-chat-button:hover {
        transform: scale(1.08) translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 20px rgba(200, 167, 107, 0.55);
    }

    .whatsapp-chat-button:hover svg {
        transform: scale(1.05);
    }
}

.whatsapp-chat-button:active {
    transform: scale(0.93);
}

/* Emerald green ripple aura / bubble effect */
.whatsapp-chat-button.ring-pulse::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    animation: whatsappRingPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
    pointer-events: none;
}

.whatsapp-chat-button.pulse-animation {
    animation: whatsappPulse 1.4s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.09); }
    100% { transform: scale(1); }
}

@keyframes whatsappRingPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-chat-button svg {
    width: 26px;
    height: 26px;
    display: block;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.whatsapp-button-status-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #25D366;
    border: 2px solid #141416;
    box-shadow: 0 0 6px rgba(37, 211, 102, 0.9);
    pointer-events: none;
}

/* ==============================================================================
   Speech Balloon ("Cena de meter-se com as pessoas")
   ============================================================================== */
.whatsapp-chat-balloon {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: 310px;
    max-width: calc(100vw - 36px);
    padding: 13px 15px;
    background: rgba(26, 25, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #F5F3EF;
    border: 1px solid rgba(196, 164, 106, 0.35);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 16px rgba(196, 164, 106, 0.12);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-chat-balloon.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.whatsapp-chat-balloon::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: rgba(26, 25, 24, 0.95);
    border-right: 1px solid rgba(196, 164, 106, 0.35);
    border-bottom: 1px solid rgba(196, 164, 106, 0.35);
    transform: rotate(45deg);
}

.whatsapp-balloon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(196, 164, 106, 0.18);
}

.whatsapp-balloon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #C4A46A;
}

.whatsapp-balloon-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0 0 8px #25D366;
    display: inline-block;
}

.whatsapp-chat-balloon-close {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    transition: color 0.2s, background-color 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .whatsapp-chat-balloon-close:hover {
        color: #FFFFFF;
        background: rgba(255, 255, 255, 0.12);
    }

    .whatsapp-chat-balloon:hover .whatsapp-balloon-action {
        opacity: 0.85;
    }
}

.whatsapp-balloon-body {
    font-size: 13px;
    color: #E8E6E3;
    line-height: 1.45;
    margin-bottom: 9px;
    font-weight: 400;
}

.whatsapp-balloon-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #25D366;
    text-decoration: none;
    transition: opacity 0.2s;
}

@media (max-width: 768px) {
    .whatsapp-chat-container {
        right: 20px;
        bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    }

    .whatsapp-chat-button {
        width: 52px;
        height: 52px;
    }

    .whatsapp-chat-button svg {
        width: 26px;
        height: 26px;
    }

    .whatsapp-chat-balloon {
        width: min(88vw, 310px);
        right: 0;
        bottom: calc(100% + 14px);
        padding: 13px 15px;
        font-size: 13px;
    }

    .whatsapp-chat-balloon::after {
        right: 21px;
    }
}

/* Fix WhatsApp vs Back-to-Top scroll conflict */
.whatsapp-chat-container { z-index: 99995 !important; pointer-events: none !important; }
.whatsapp-chat-button, .whatsapp-chat-balloon.is-visible { pointer-events: auto !important; touch-action: manipulation !important; }
#back-to-top { z-index: 99980 !important; touch-action: manipulation !important; }
