/* ==========================================================================
   BeautsGO Global Footer ([bgo_footer] shortcode)
   Enqueued sitewide via functions.php (priority 20, before newsletter.css).
   Legacy 4-column newsletter form rules are intentionally omitted so
   assets/css/newsletter.css styles .bgo-nl-footer cleanly without overrides.
   ========================================================================== */

.footer-d,
.footer-d *,
.footer-d *::before,
.footer-d *::after {
    box-sizing: border-box;
}

.footer-d {
    --cream: #FAF6F3;
    --cream-2: #F3ECE5;
    --ink: #2C2420;
    --ink-2: #5A4D46;
    --ink-3: #8A7F78;
    --rose-ink: #C94A6B;
    --rose: #F6D5CF;
    --rose-2: #EFB8B0;
    --sky: #CFDDE8;
    --pink: #DC6495;
    --blue: #2C92B9;
    --border: rgba(44, 36, 32, 0.10);
    --border-2: rgba(44, 36, 32, 0.18);
    background: #1f1815;
    color: rgba(250, 246, 243, 0.88);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.footer-d p:empty {
    display: none;
}

.footer-d::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(250, 246, 243, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
    pointer-events: none;
}

.footer-d__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

/* === 1. Newsletter pre-strip container === */
.footer-d__newsletter {
    background: linear-gradient(135deg, rgba(201, 74, 107, 0.18) 0%, rgba(44, 146, 185, 0.12) 100%);
    border-bottom: 1px solid rgba(250, 246, 243, 0.10);
    padding: 48px 32px;
    position: relative;
}

.footer-d__newsletter-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-d__newsletter .eyebrow {
    font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rose-2);
    display: block;
    margin-bottom: 10px;
}

.footer-d__newsletter .eyebrow::before {
    content: "·  ";
}

.footer-d__newsletter h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--cream);
    max-width: 540px;
    letter-spacing: -0.01em;
}

.footer-d__newsletter h3 em {
    font-style: italic;
    color: var(--rose-2);
}

/* === 2. Main grid === */
.footer-d__main {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 56px;
    padding: 80px 0 56px;
}

.footer-d__brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 360px;
}

.footer-d__logo-row {
    margin: 0;
}

.footer-d__logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.footer-d__logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-d__brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-d__wordmark {
    font-family: 'Baloo Thambi 2', sans-serif;
    font-size: 22px;
    line-height: 1.1;
    color: var(--pink);
    letter-spacing: -0.005em;
    font-weight: 600;
}

.footer-d__wordmark em {
    color: var(--pink);
}

.footer-d__tagline {
    font-family: 'Baloo Thambi 2', sans-serif;
    font-style: italic;
    font-size: 13px;
    color: var(--pink);
}

.footer-d__desc {
    margin: 0;
    font-size: 13.5px;
    color: rgba(250, 246, 243, 0.65);
    line-height: 1.65;
}

.footer-d__desc em {
    font-family: Georgia, serif;
    font-style: italic;
    color: var(--rose-2);
}

.footer-d .col-eyebrow {
    color: rgba(250, 246, 243, 0.55);
    margin-bottom: 20px;
    display: block;
    font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.footer-d .col-eyebrow::before {
    content: "·  ";
    color: var(--rose-2);
}

.footer-d .link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-d .link-list li {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
}

.footer-d .link-list li:last-child {
    margin-bottom: 0;
}

.footer-d .link-list a,
.footer-d__consent-btn {
    color: rgba(250, 246, 243, 0.78);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
}

.footer-d__consent-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.footer-d .link-list a:hover,
.footer-d__consent-btn:hover {
    color: var(--rose-2);
    transform: translateX(3px);
}

.footer-d .social {
    margin-top: 8px;
    gap: 10px;
    display: flex;
}

.footer-d .social a {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.footer-d .social a:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.footer-d .social svg {
    width: 15px;
    height: 15px;
}

.footer-d .social .s-ig {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.footer-d .social .s-fb {
    background: #1877F2;
}

.footer-d .social .s-tt {
    background: #000;
}

.footer-d .social .s-yt {
    background: #FF0000;
}

.footer-d .social .s-li {
    background: #0A66C2;
}

/* === 3. Destinations flag row === */
.footer-d__row {
    padding: 28px 0;
    border-top: 1px solid rgba(250, 246, 243, 0.08);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
}

.footer-d__row-label {
    font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(250, 246, 243, 0.55);
}

.footer-d__row-label::before {
    content: "·  ";
    color: var(--rose-2);
}

.footer-d__destinations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-d__destination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(250, 246, 243, 0.15);
    border-radius: 100px;
    font-size: 13px;
    color: rgba(250, 246, 243, 0.85);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-d__destination:hover {
    border-color: var(--rose-2);
    color: var(--rose-2);
    transform: translateY(-1px);
}

.footer-d__destination .flag-svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    border-radius: 2px;
}

/* === 4. Accreditation row === */
.footer-d__accred-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.footer-d__badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 18px;
    background: rgba(250, 246, 243, 0.04);
    border: 1px solid rgba(250, 246, 243, 0.12);
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: rgba(250, 246, 243, 0.78);
    transition: all 0.2s;
    min-width: 84px;
}

.footer-d__badge:hover {
    border-color: var(--rose-2);
    background: rgba(239, 184, 176, 0.05);
}

.footer-d__badge strong {
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--cream);
}

.footer-d__badge span {
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(250, 246, 243, 0.5);
}

/* === 5. Aftercare concierge strip — centered editorial === */
.footer-d__emergency {
    padding: 40px 32px 36px;
    margin-top: 24px;
    background: rgba(201, 74, 107, 0.08);
    border: 1px solid rgba(201, 74, 107, 0.20);
    border-radius: 14px;
    text-align: center;
}

.footer-d__emergency-headline {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 400;
    color: var(--cream);
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.footer-d__emergency-channels {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.footer-d__emergency-channels a,
.footer-d__emergency-channels button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(250, 246, 243, 0.12);
    border-radius: 100px;
    color: rgba(250, 246, 243, 0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.footer-d__emergency-channels a:hover,
.footer-d__emergency-channels button:hover {
    border-color: var(--rose-2);
    color: var(--rose-2);
    background: rgba(239, 184, 176, 0.06);
    transform: translateY(-1px);
}

.footer-d__emergency-channels button.is-copied,
.footer-d__emergency-channels button[data-copied] {
    border-color: var(--rose-2);
    color: var(--rose-2);
    background: rgba(239, 184, 176, 0.10);
}

.footer-d__copy-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.footer-d__copy-status {
    position: absolute;
    inset-block-end: calc(100% + 8px);
    inset-inline-start: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 5px 10px;
    border-radius: 6px;
    background: #2C2420;
    border: 1px solid rgba(239, 184, 176, 0.35);
    color: #FAF6F3;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.footer-d__copy-btn[data-copied] + .footer-d__copy-status,
.footer-d__copy-btn[data-failed] + .footer-d__copy-status {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.footer-d__copy-btn[data-failed] + .footer-d__copy-status {
    border-color: rgba(244, 155, 184, 0.6);
    color: #f49bb8;
}

/* === 6. Disclaimer paragraph === */
.footer-d__disclaimer {
    padding: 32px 0;
    border-top: 1px solid rgba(250, 246, 243, 0.08);
    margin-top: 32px;
}

.footer-d__disclaimer p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.7;
    color: rgba(250, 246, 243, 0.5);
    max-width: 880px;
    font-style: italic;
    font-family: Georgia, serif;
}

.footer-d__disclaimer p strong {
    font-style: normal;
    color: rgba(250, 246, 243, 0.7);
    font-weight: 500;
    font-family: ui-sans-serif, system-ui, Helvetica, Arial, sans-serif;
}

/* === 7. Bottom row === */
.footer-d__bottom {
    padding: 24px 0 32px;
    border-top: 1px solid rgba(250, 246, 243, 0.08);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-d__bottom-left {
    font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: rgba(250, 246, 243, 0.5);
    line-height: 1.7;
}

/* === 8. Accessibility Focus & Responsive Rules === */
.footer-d :where(a, button):focus-visible {
    outline: 2px solid #EFB8B0;
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .footer-d__main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-d__brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 700px) {
    .footer-d__inner {
        padding: 0 20px;
    }

    .footer-d__main {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 52px 0 40px;
    }

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

    .footer-d__emergency {
        padding: 28px 20px;
    }

    .footer-d__emergency-headline {
        font-size: 18px;
    }

    .footer-d__bottom {
        grid-template-columns: 1fr;
    }

    .footer-d__newsletter h3 {
        font-size: 22px;
    }
}

@media (pointer: coarse) {
    .footer-d__destination,
    .footer-d__emergency-channels a,
    .footer-d__emergency-channels button {
        min-block-size: 44px;
    }

    .footer-d .social a {
        min-inline-size: 44px;
        min-block-size: 44px;
    }

    .footer-d .link-list a,
    .footer-d__consent-btn {
        padding-block: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-d .link-list a,
    .footer-d__consent-btn,
    .footer-d .social a,
    .footer-d__destination,
    .footer-d__badge,
    .footer-d__emergency-channels a,
    .footer-d__emergency-channels button,
    .footer-d__copy-status {
        transition: none;
    }

    .footer-d .link-list a:hover,
    .footer-d__consent-btn:hover,
    .footer-d .social a:hover,
    .footer-d__destination:hover,
    .footer-d__emergency-channels a:hover,
    .footer-d__emergency-channels button:hover {
        transform: none;
    }
}
