/* Premium marketing hero, popup, FAB, preloader */
#marketing-hero {
    position: relative;
    margin: 0;
    min-height: clamp(320px, 52vh, 560px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

#marketing-hero.hidden { display: none !important; }

.mh-carousel { position: relative; height: 100%; min-height: inherit; }

.mh-track { position: relative; height: 100%; min-height: inherit; }

.mh-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.mh-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.mh-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 8s ease;
}

.mh-slide.is-active .mh-bg { transform: scale(1); }

.mh-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(8, 66, 72, 0.88) 0%, rgba(12, 18, 34, 0.55) 55%, rgba(12, 18, 34, 0.25) 100%);
}

.mh-content {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(48px, 8vw, 96px) 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: inherit;
}

.mh-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 12px;
    animation: mh-rise 0.7s ease both;
}

.mh-sub {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 8px;
    animation: mh-rise 0.8s ease both;
}

.mh-desc {
    max-width: 560px;
    opacity: 0.88;
    margin-bottom: 20px;
    animation: mh-rise 0.9s ease both;
}

.mh-cta { display: inline-flex; width: fit-content; animation: mh-rise 1s ease both; }

@keyframes mh-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.mh-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
}

.mh-nav:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-50%) scale(1.05); }

.mh-prev { left: 16px; }
.mh-next { right: 16px; }

.mh-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.mh-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: width 0.25s, background 0.25s;
}

.mh-dot.is-active { width: 28px; background: var(--accent); }

section.hero.hero--dimmed { display: none; }

/* Popup */
#site-announce-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}

#site-announce-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.sap-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 34, 0.65);
    backdrop-filter: blur(4px);
}

.sap-panel {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.94) translateY(12px);
    transition: transform 0.35s ease;
}

#site-announce-popup.is-open .sap-panel {
    transform: scale(1) translateY(0);
}

.sap-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(12, 18, 34, 0.08);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--ink);
}

#sap-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.sap-body-wrap { padding: 24px; }

#sap-heading { font-size: 1.35rem; margin-bottom: 10px; color: var(--ink); }

#sap-body { color: var(--ink-soft); margin-bottom: 16px; }

#sap-cta {
    display: inline-flex;
    padding: 12px 22px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff !important;
    font-weight: 700;
}

#sap-cta:hover { background: var(--brand-dark); color: #fff !important; }

/* FAB + preloader + WhatsApp */
.fab-register {
    position: fixed;
    right: 20px;
    bottom: 88px;
    z-index: 900;
    padding: 14px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(13, 92, 99, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: fab-pulse 2.5s ease infinite;
}

@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 12px 32px rgba(13, 92, 99, 0.35); }
    50% { box-shadow: 0 12px 40px rgba(20, 163, 176, 0.5); }
}

.fab-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 900;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.fab-whatsapp.hidden { display: none !important; }

#site-preloader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity 0.4s, visibility 0.4s;
}

#site-preloader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.auth-tab-btn.active {
    background: var(--brand) !important;
    color: #fff !important;
    border-color: var(--brand) !important;
}

@media (max-width: 768px) {
    .mh-nav { display: none; }
    .fab-register span { display: none; }
    .fab-register { padding: 14px; border-radius: 50%; bottom: 88px; }
}
