/* FlyBeep Public Website — Shell Styles (Utility Bar, Header, Drawer, Newsletter, Footer, Modal, Floating Actions, Cookie Banner) */

.pub-utility-bar {
    background-color: var(--pub-surface-deep);
    color: var(--pub-text-muted);
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--pub-border);
    padding-block: 0.45rem;
}

.pub-utility-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem var(--pub-gap);
    flex-wrap: wrap;
}

.pub-utility-left,
.pub-utility-right {
    display: flex;
    align-items: center;
    gap: 0.35rem 1.25rem;
    flex-wrap: wrap;
    min-width: 0;
}

.pub-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pub-badge-item strong {
    color: var(--pub-text-heading);
    font-weight: 600;
}

.pub-badge-item svg {
    color: var(--pub-red-text);
    flex-shrink: 0;
}

.pub-utility-link {
    color: var(--pub-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

a.pub-utility-link:hover {
    color: var(--pub-red-text);
}

.pub-utility-link svg {
    color: var(--pub-text-subtle);
    flex-shrink: 0;
}

.pub-staff-link {
    color: var(--pub-text-muted);
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}

.pub-staff-link:hover {
    color: var(--pub-red-text);
}

.pub-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background-color: var(--pub-surface);
    border-bottom: 1px solid var(--pub-border);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.pub-header.is-scrolled {
    box-shadow: var(--pub-shadow-md);
}

.pub-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 4.5rem;
    padding-block: 0.625rem;
    gap: 0.75rem var(--pub-gap);
}

.pub-brand-logo {
    width: 150px;
    height: 42px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.pub-brand-logo-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--pub-transition);
}

[data-theme="dark"] .pub-brand-logo-plate {
    background-color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--pub-shadow-sm);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .pub-brand-logo-plate {
        background-color: white;
        padding: 0.25rem 0.625rem;
        border-radius: 0.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--pub-shadow-sm);
    }
}

.pub-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.pub-nav-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pub-text-muted);
    padding: 0.4rem 0.25rem;
    position: relative;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.pub-nav-link:hover {
    color: var(--pub-text-heading);
}

.pub-nav-link.is-active {
    color: var(--pub-text-heading);
    font-weight: 700;
}

.pub-nav-link.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.125rem;
    background-color: var(--pub-red);
    border-radius: var(--pub-radius-pill);
}

.pub-cta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.pub-theme-toggle {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border-radius: var(--pub-radius-pill);
    border: 1px solid var(--pub-border-strong);
    background-color: var(--pub-surface-muted);
    color: var(--pub-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--pub-transition);
}

.pub-theme-toggle:hover {
    background-color: var(--pub-surface-hover);
    color: var(--pub-red-text);
    border-color: var(--pub-red-text);
}

.pub-theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.pub-mobile-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    background-color: var(--pub-surface-muted);
    border: 1px solid var(--pub-border-strong);
    border-radius: var(--pub-radius-field);
    color: var(--pub-text);
    cursor: pointer;
    transition: var(--pub-transition);
}

.pub-mobile-toggle:hover {
    background-color: var(--pub-surface-hover);
    color: var(--pub-red-text);
}

.pub-mobile-drawer {
    display: none;
    width: 100%;
    background-color: var(--pub-surface);
    border-top: 1px solid var(--pub-border);
    border-bottom: 1px solid var(--pub-border-strong);
    padding: 1.25rem var(--pub-gutter) 1.75rem;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    z-index: 850;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--pub-shadow-lg);
}

.pub-mobile-drawer.is-open {
    display: flex;
}

.pub-mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
}

.pub-mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.625rem 1rem;
    border-radius: var(--pub-radius-field);
    font-size: 1rem;
    font-weight: 600;
    color: var(--pub-text);
    background-color: var(--pub-surface-subtle);
    border: 1px solid transparent;
    overflow-wrap: anywhere;
    transition: var(--pub-transition);
}

.pub-mobile-nav-link:hover,
.pub-mobile-nav-link.is-active {
    background-color: var(--pub-surface-muted);
    color: var(--pub-red-text);
    border-color: var(--pub-border);
}

.pub-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--pub-line);
}

.pub-newsletter {
    background-color: var(--pub-surface);
    color: var(--pub-text);
    padding-block: clamp(2.5rem, 4vw, 3.75rem);
    border-top: 1px solid var(--pub-border);
    border-bottom: 1px solid var(--pub-border);
}

.pub-newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pub-gap);
    flex-wrap: wrap;
}

.pub-newsletter-text {
    flex: 1 1 22rem;
    max-width: 42rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pub-newsletter-title {
    font-family: var(--pub-font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    color: var(--pub-text-heading);
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.pub-newsletter-desc {
    font-size: 0.95rem;
    color: var(--pub-text-muted);
    line-height: 1.55;
}

.pub-newsletter-form {
    flex: 1 1 22rem;
    max-width: 34rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.pub-newsletter-form .pub-form-alert {
    flex: 1 1 100%;
    margin-bottom: 0.25rem;
}

.pub-newsletter-input {
    flex: 1 1 14rem;
    min-width: 0;
    width: 100%;
    min-height: var(--pub-control-height);
    height: var(--pub-control-height);
    padding: 0 1.125rem;
    border-radius: var(--pub-radius-field);
    border: 1px solid var(--pub-border-strong);
    background-color: var(--pub-bg);
    color: var(--pub-text);
    font-size: 0.9375rem;
    transition: var(--pub-transition);
}

.pub-newsletter-input::placeholder {
    color: var(--pub-text-subtle);
}

.pub-newsletter-input:focus {
    border-color: var(--pub-border-focus);
    box-shadow: 0 0 0 3px var(--pub-focus-ring);
    outline: none;
}

.pub-footer {
    background-color: var(--pub-surface-deep);
    color: var(--pub-text-muted);
    padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
    border-top: 1px solid var(--pub-border);
    font-size: 0.875rem;
}

.pub-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: clamp(1.75rem, 3vw, 2.75rem);
    margin-bottom: 3rem;
}

.pub-footer-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pub-footer-brand {
    margin-bottom: 1.25rem;
}

.pub-footer-desc {
    color: var(--pub-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    overflow-wrap: anywhere;
}

.pub-atol-img {
    max-width: 170px;
    height: auto;
    margin-bottom: 1.25rem;
}

.pub-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pub-social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--pub-radius-pill);
    background-color: var(--pub-surface);
    border: 1px solid var(--pub-border);
    color: var(--pub-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--pub-transition);
}

.pub-social-link:hover {
    background-color: var(--pub-red);
    border-color: var(--pub-red);
    color: white;
}

.pub-footer-heading {
    font-family: var(--pub-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--pub-text-heading);
    margin-bottom: 1.125rem;
    letter-spacing: -0.01em;
}

.pub-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
}

.pub-footer-link {
    color: var(--pub-text-muted);
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.pub-footer-link:hover {
    color: var(--pub-red-text);
}

.pub-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.pub-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--pub-text-muted);
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pub-contact-item span,
.pub-contact-item a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pub-contact-item a {
    color: var(--pub-text-muted);
}

.pub-contact-item a:hover {
    color: var(--pub-red-text);
}

.pub-contact-item svg {
    color: var(--pub-red-text);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.pub-cards-img {
    max-width: 180px;
    height: auto;
    margin-top: 0.5rem;
}

.pub-footer-bottom {
    padding-top: 1.75rem;
    border-top: 1px dashed var(--pub-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--pub-text-muted);
}

.pub-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.pub-legal-link {
    color: var(--pub-text-muted);
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.pub-legal-link:hover {
    color: var(--pub-red-text);
}

.pub-modal {
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card);
    background-color: var(--pub-surface);
    color: var(--pub-text);
    width: min(calc(100% - 2rem), 34rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--pub-shadow-lg);
    margin: auto;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.pub-modal::backdrop {
    background-color: rgba(20, 22, 26, 0.72);
    backdrop-filter: blur(4px);
}

.pub-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--pub-line);
}

.pub-modal-title {
    font-family: var(--pub-font-display);
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
    font-weight: 700;
    color: var(--pub-text-heading);
    letter-spacing: -0.02em;
}

.pub-modal-close {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border-radius: var(--pub-radius-pill);
    background-color: var(--pub-surface-muted);
    border: 1px solid var(--pub-border);
    color: var(--pub-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    transition: var(--pub-transition);
}

.pub-modal-close:hover {
    background-color: var(--pub-surface-hover);
    color: var(--pub-red-text);
    border-color: var(--pub-red-text);
}

.pub-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pub-modal-form .pub-input,
.pub-modal-form .pub-select {
    min-height: var(--pub-control-height);
    height: var(--pub-control-height);
    border-radius: var(--pub-radius-field);
    border: 1px solid var(--pub-border-strong);
    background-color: var(--pub-bg);
    color: var(--pub-text);
    padding: 0 1rem;
}

.pub-modal-form textarea.pub-input {
    height: auto;
    min-height: 5.5rem;
    padding: 0.75rem 1rem;
}

.pub-floating-actions {
    position: fixed;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0rem));
    right: calc(1.25rem + env(safe-area-inset-right, 0rem));
    z-index: 840;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: bottom 0.2s ease;
}

body:has(.pub-cookie-banner.is-visible) .pub-floating-actions {
    bottom: calc(7.5rem + env(safe-area-inset-bottom, 0rem));
}

.pub-float-btn {
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    min-height: 3.5rem;
    border-radius: var(--pub-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    box-shadow: var(--pub-shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-float-btn:hover {
    transform: translateY(-0.125rem) scale(1.05);
    color: white !important;
}

.pub-float-whatsapp {
    background-color: var(--pub-whatsapp);
}

.pub-float-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.pub-float-call {
    background-color: var(--pub-red);
}

.pub-float-call:hover {
    background-color: var(--pub-red-hover);
    box-shadow: 0 6px 20px rgba(204, 43, 36, 0.4);
}

.pub-cookie-banner {
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0rem));
    left: 1rem;
    right: 1rem;
    z-index: 950;
    max-width: min(100%, 60rem);
    margin-inline: auto;
    background-color: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card);
    padding: 1.125rem 1.5rem;
    box-shadow: var(--pub-shadow-lg);
    display: none;
}

.pub-cookie-banner.is-visible {
    display: block;
}

.pub-cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    padding-inline: 0;
}

.pub-cookie-text {
    flex: 1 1 20rem;
    font-size: 0.875rem;
    color: var(--pub-text-muted);
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pub-cookie-text a {
    color: var(--pub-red-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}

.pub-cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (min-width: 64.0625rem) {
    .pub-mobile-drawer.is-open {
        display: none;
    }
}

@media (max-width: 64rem) {
    .pub-nav-links,
    .pub-cta-group .pub-btn-outline,
    .pub-cta-group .pub-btn-call {
        display: none;
    }

    .pub-mobile-toggle {
        display: inline-flex;
    }
}

@media (max-width: 48rem) {
    .pub-utility-bar {
        font-size: 0.75rem;
    }

    .pub-newsletter-content {
        flex-direction: column;
        align-items: stretch;
    }

    .pub-newsletter-form {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }

    .pub-newsletter-form .pub-btn {
        width: 100%;
    }

    .pub-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 36rem) {
    .pub-cookie-actions,
    .pub-cookie-actions .pub-btn {
        width: 100%;
    }

    .pub-floating-actions {
        bottom: calc(1rem + env(safe-area-inset-bottom, 0rem));
        right: calc(1rem + env(safe-area-inset-right, 0rem));
    }

    body:has(.pub-cookie-banner.is-visible) .pub-floating-actions {
        bottom: calc(10.5rem + env(safe-area-inset-bottom, 0rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub-header,
    .pub-brand-logo-plate,
    .pub-nav-link,
    .pub-theme-toggle,
    .pub-mobile-toggle,
    .pub-mobile-drawer,
    .pub-mobile-nav-link,
    .pub-newsletter-input,
    .pub-footer-link,
    .pub-social-link,
    .pub-legal-link,
    .pub-modal,
    .pub-modal-close,
    .pub-float-btn,
    .pub-cookie-banner,
    .pub-floating-actions {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}
