/**
 * Footer Stylesheet - Borboleta Travel
 * Dark luxury aesthetic matching reference design
 *
 * @package Borboleta_Travel
 */

/* ==========================================================================
   Site Footer Main Container
   ========================================================================== */
.site-footer {
    background-color: #151817;
    color: #e1e6e4;
    position: relative;
    overflow: hidden;
    font-family: var(--bt-font-family-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

/* ==========================================================================
   Top Bar (Logo, Tagline, Socials)
   ========================================================================== */
.footer-top {
    padding: 44px 0 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* Brand area (Official Header Logo) */
.footer-brand-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.footer-logo-container .brand-logo-link {
    display: inline-block;
    line-height: 1;
}

.footer-logo-container .brand-logo-img,
.footer-logo-container .custom-logo {
    height: 76px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-logo-container .brand-logo-link:hover .brand-logo-img,
.footer-logo-container .brand-logo-link:hover .custom-logo {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 14px rgba(229, 168, 66, 0.3));
}

.footer-brand-tagline {
    font-family: var(--bt-font-family-ui, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 0.875rem;
    color: #929a96;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

/* Social links */
.footer-social-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social-label {
    font-family: var(--bt-font-family-ui, sans-serif);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social-btn:hover {
    background: #E5A842;
    border-color: #E5A842;
    color: #151817;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(229, 168, 66, 0.3);
}

.footer-social-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==========================================================================
   Main Columns Section (Grid)
   ========================================================================== */
.footer-main {
    padding: 56px 0 52px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr 1.1fr;
    gap: 52px;
    align-items: start;
}

/* Common Section Title */
.footer-col-title {
    font-family: var(--bt-font-family-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 26px;
    letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Column 1: Contact Us
   -------------------------------------------------------------------------- */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    border-color: #E5A842;
    background: rgba(229, 168, 66, 0.1);
    color: #E5A842;
}

.footer-contact-icon svg {
    width: 19px;
    height: 19px;
}

.footer-contact-content {
    display: flex;
    flex-direction: column;
}

.footer-contact-label {
    font-family: var(--bt-font-family-ui, sans-serif);
    font-size: 0.78rem;
    color: #88928e;
    margin-bottom: 4px;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.footer-contact-value {
    font-size: 0.9375rem;
    color: #f1f4f3;
    line-height: 1.45;
    font-weight: 500;
}

/* Empilha os contatos quando há mais de um telefone / e-mail */
.footer-contact-value a {
    display: block;
    color: inherit;
}

.footer-contact-value a + a {
    margin-top: 2px;
}

.footer-contact-value--highlight {
    font-size: 1.1875rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.footer-contact-value--highlight a + a {
    font-size: 1rem;
    margin-top: 4px;
}

.footer-contact-value a:hover {
    color: #E5A842;
}

/* --------------------------------------------------------------------------
   Column 2: About Us (2 Sub-columns with Chevrons)
   -------------------------------------------------------------------------- */
.footer-links-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-item a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--bt-font-family-ui, sans-serif);
    font-size: 0.925rem;
    color: #9ba4a0;
    transition: all 0.22s ease;
}

.footer-link-item a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-link-chevron {
    color: #E5A842;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    transition: transform 0.22s ease;
}

.footer-link-item a:hover .footer-link-chevron {
    transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Column 3: Newsletter & Apps
   -------------------------------------------------------------------------- */
.footer-newsletter-text {
    font-size: 0.9375rem;
    color: #9ba4a0;
    margin: 0 0 20px;
    line-height: 1.5;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.footer-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 4px 6px 4px 20px;
    transition: all 0.25s ease;
}

.footer-input-group:focus-within {
    border-color: #E5A842;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(229, 168, 66, 0.18);
}

.footer-newsletter-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--bt-font-family-ui, sans-serif);
    font-size: 0.9rem;
    width: 100%;
    padding: 8px 0;
}

.footer-newsletter-input::placeholder {
    color: #6c7572;
}

.footer-newsletter-submit {
    background: transparent;
    border: none;
    outline: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E5A842;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.footer-newsletter-submit:hover {
    background: #E5A842;
    color: #151817;
    transform: scale(1.08);
}

.footer-newsletter-submit svg {
    width: 18px;
    height: 18px;
    transform: rotate(0deg);
}

/* Checkbox terms */
.footer-terms-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    cursor: pointer;
    user-select: none;
}

.footer-terms-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #E5A842;
    cursor: pointer;
    border-radius: 4px;
}

.footer-terms-text {
    font-family: var(--bt-font-family-ui, sans-serif);
    font-size: 0.8125rem;
    color: #848e8a;
    line-height: 1.35;
}

/* Selos oficiais no lugar dos badges das lojas de apps */
.footer-seals {
    margin-top: 4px;
}

.footer-seals-label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #929a96;
}

.footer-seals-logos {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 84px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.footer-seal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.footer-seal img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
}
/* ==========================================================================
   Bottom Bar (Copyright, Legal Links)
   ========================================================================== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0 28px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-family: var(--bt-font-family-ui, sans-serif);
    font-size: 0.875rem;
    color: #79837f;
    margin: 0;
}

.footer-copyright strong {
    color: #f1f4f3;
    font-weight: 600;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-legal-link {
    font-family: var(--bt-font-family-ui, sans-serif);
    font-size: 0.875rem;
    color: #929a96;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-grid-col--newsletter {
        grid-column: span 2;
        max-width: 540px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 32px 0 26px;
    }

    .footer-top-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .footer-main {
        padding: 40px 0 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-grid-col--newsletter {
        grid-column: span 1;
        max-width: 100%;
    }

    .footer-links-subgrid {
        gap: 16px 24px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-legal-links {
        gap: 18px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    /* Links curtos: mantêm 2 colunas para não alongar o rodapé */
    .footer-links-subgrid {
        gap: 12px 16px;
    }

    .footer-seal {
        flex: 1 1 0;
        width: auto;
    }
}

/* Link do Livro de Reclamações com ícone */
.footer-legal-link--book {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
