/* Shared public footer. */
.site-footer {
    --footer-text: #e4eeea;
    --footer-muted: #b7d1c5;
    --footer-line: rgba(183, 209, 197, .22);
    position: relative;
    background: var(--custom-bg);
    color: var(--footer-text);
    border: 0;
    overflow-wrap: anywhere;
}
main:has(> .home_faq_section:last-child) + .site-footer {
    background: var(--color-surface-soft);
}

.footer-wave {
    display: block;
    width: 100%;
    height: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: -1px;
    pointer-events: none;
}

.footer-wave-accent {
    fill: var(--color-accent-border);
}

.footer-wave-surface {
    fill: var(--color-custom-dark);
}

.footer-surface {
    background: var(--color-custom-dark);
    background-image: radial-gradient(ellipse at 5% 90%, rgba(50, 118, 109, .25), transparent 60%);
}

.footer-inner {
    max-width: 1248px;
    margin-inline: auto;
    padding: 1.25rem 1.5rem 1.5rem;
}

.footer-invitation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1rem 2.5rem;
    border-bottom: 1px solid var(--footer-line);
}

.footer-eyebrow {
    margin: 0 0 .5rem;
    color: var(--footer-muted);
    font-size: .8125rem;
}

.footer-invitation h2 {
    margin: 0;
    color: var(--color-white);
    font-size: clamp(1.375rem, 2.25vw, 2rem);
    font-weight: 700;
    line-height: 1.7;
    text-wrap: balance;
}

.footer-invitation h2 + p {
    margin: .625rem 0 0;
    font-size: .875rem;
    line-height: 1.9;
}

.footer-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 1.5rem;
    min-height: 56px;
    padding: .875rem 1.25rem;
    border: 1px solid transparent;
    border-radius: .875rem;
    background: var(--color-sand);
    color: var(--color-custom-dark);
    font-size: .9375rem;
    font-weight: 700;
    transition: background-color .2s ease;
}

.footer-booking:hover {
    background: #fff7eb;
}

.footer-booking i {
    font-size: .875rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.25fr .8fr .8fr 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-block: 2.5rem;
}

.footer-main > * {
    min-width: 0;
}

.site-footer a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.site-footer a:hover {
    color: var(--color-white);
}

.site-footer .footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-inline-start: -.875rem;
    color: var(--color-white);
}

.footer-brand-link img {
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
}

.footer-brand-link > span {
    display: grid;
    gap: .375rem;
}

.footer-brand-link strong {
    font-size: 1.25rem;
}

.footer-brand-link > span > span {
    color: var(--footer-muted);
    font-size: .6875rem;
}

.footer-brand > p {
    max-width: 22rem;
    margin: .75rem 0 1.25rem;
    font-size: .875rem;
    line-height: 2;
}

.footer-brand-note {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--footer-muted);
    font-size: .75rem;
    line-height: 1.8;
}

.footer-main h2,
.footer-newsletter h2 {
    margin: 0 0 1rem;
    color: var(--color-white);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.8;
}

.footer-links {
    padding-top: 1rem;
}

.footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: .5rem;
    font-size: .8125rem;
    line-height: 1.8;
}

.footer-links a:hover,
.footer-bottom a:hover {
    text-decoration: underline;
    text-underline-offset: .35rem;
}

.footer-contact {
    padding-top: 1rem;
}

.footer-contact address {
    display: grid;
    gap: .75rem;
    margin: 0;
    font-style: normal;
}

.footer-contact address > a {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 48px;
    border-radius: .625rem;
    font-size: .8125rem;
}

.footer-contact address > a > span:last-child {
    display: grid;
    min-width: 0;
    gap: .2rem;
}

.footer-contact-label {
    color: var(--footer-muted);
    font-size: .6875rem;
}

.footer-contact bdi {
    font-family: sans-serif;
    font-size: .875rem;
    line-height: 1.6;
}

.footer-contact-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--footer-line);
    border-radius: .75rem;
    color: var(--footer-muted);
}

.footer-contact a:hover .footer-contact-icon {
    background: rgba(183, 209, 197, .12);
    color: var(--color-white);
}

.footer-contact .fa-arrow-up-right-from-square {
    margin-inline-start: .375rem;
    font-size: .625rem;
}

.footer-newsletter {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--footer-line);
    border-radius: 1.25rem;
    background: rgba(232, 242, 237, .05);
}

.footer-newsletter-intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.footer-newsletter h2 {
    margin-bottom: .5rem;
    font-size: 1rem;
}

.footer-newsletter-intro p {
    margin: 0;
    color: var(--footer-muted);
    font-size: .8125rem;
    line-height: 1.9;
}

.footer-newsletter-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border: 1px solid var(--footer-line);
    border-radius: 50%;
    color: var(--footer-muted);
    font-size: 1.25rem;
}

.footer-newsletter-field {
    min-width: 0;
}

.footer-newsletter label {
    display: block;
    margin-bottom: .5rem;
    font-size: .75rem;
}

.footer-newsletter-controls {
    display: flex;
    gap: .5rem;
}

.footer-newsletter input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: .75rem 1rem;
    border: 1px solid var(--color-accent-border);
    border-radius: .75rem;
    background: var(--color-white);
    color: var(--color-text);
    font-family: sans-serif;
    font-size: 1rem;
    text-align: left;
}

.footer-newsletter input::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

.footer-newsletter input[aria-invalid="true"] {
    border-color: #ffbdbe;
    box-shadow: 0 0 0 2px #ffbdbe;
}

.footer-newsletter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: .75rem;
    min-height: 48px;
    padding: .75rem 1rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    background: var(--color-accent-soft);
    color: var(--color-custom-dark);
    font-size: .8125rem;
    font-weight: 700;
    transition: background-color .2s ease;
}

.footer-newsletter button:hover {
    background: var(--color-accent-border);
}

.footer-newsletter button:disabled {
    opacity: .7;
    cursor: wait;
}

.footer-newsletter-status {
    min-height: 1.5rem;
    margin: .5rem 0 0;
    color: var(--footer-muted);
    font-size: .75rem;
    line-height: 1.8;
}

.footer-newsletter-status[data-state="error"] {
    color: #ffbdbe;
}

.footer-newsletter-status[data-state="success"] {
    color: #d2efcb;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 2rem;
    padding-top: 1.5rem;
    color: var(--footer-muted);
    font-size: .75rem;
    line-height: 1.9;
}

.footer-copyright {
    margin: 0;
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
}

.footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.site-footer :is(a, button, input):focus-visible {
    outline: 3px solid var(--color-accent-border);
    outline-offset: 4px;
}

.site-footer .btn-to-top {
    visibility: hidden;
    background: var(--color-custom-dark);
    border: 1px solid var(--color-accent-border);
    border-radius: 50%;
}

.site-footer .btn-to-top.visible {
    visibility: visible;
}

.wa-fab {
    z-index: 1030;
}
body.modal-open :is(.wa-fab, .btn-to-top) {
    visibility: hidden;
}

#howWork, #comparison {
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

@media (max-width: 991.98px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }
    .footer-brand {
        grid-column: 1;
        grid-row: 1;
    }
    .footer-contact {
        grid-column: 2;
        grid-row: 1;
    }
    .footer-newsletter {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }
    .footer-newsletter-controls {
        max-width: 40rem;
    }
}

@media (max-width: 575.98px) {
    .footer-inner {
        padding: .75rem 1.25rem max(5.5rem, env(safe-area-inset-bottom));
    }
    .footer-invitation {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1.25rem;
        padding-block: 1rem 2rem;
    }
    .footer-invitation h2 + p {
        font-size: .8125rem;
    }
    .footer-booking {
        width: 100%;
        max-width: 24rem;
        align-self: center;
    }
    .footer-main {
        gap: 1.75rem 1rem;
        padding-block: 1.75rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-brand > p {
        max-width: none;
        margin-bottom: .875rem;
    }
    .footer-links {
        padding-top: 0;
    }
    .footer-contact {
        grid-column: 1 / -1;
        grid-row: auto;
        padding: 1.5rem 0 0;
        border-top: 1px solid var(--footer-line);
    }
    .footer-contact address {
        gap: 1rem;
    }
    .footer-main h2 {
        margin-bottom: .75rem;
    }
    .footer-newsletter {
        padding: 1.25rem;
        gap: 1.25rem;
    }
    .footer-newsletter-icon {
        display: none;
    }
    .footer-newsletter-controls {
        flex-direction: column;
        gap: .75rem;
    }
    .footer-newsletter button {
        width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: .75rem;
    }
    .footer-bottom nav {
        order: -1;
        justify-content: center;
        gap: .25rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer *, .wa-fab {
        transition: none !important;
    }
}
