/* Dare2Gear-style footer — shared by app + user layouts */

.d2g-site-footer {
    --d2g-footer-teal: #0d9488;
    --d2g-footer-teal-dark: #0f766e;
    --d2g-text-muted: #64748b;
    --d2g-text-dark: #0f172a;
    --d2g-accent-orange: #ea580c;
    font-family: 'Open Sans', 'Poppins', system-ui, sans-serif;
    color: var(--d2g-text-dark);
    margin-top: auto;
}

/* Public explore page: stay above section overlays / stacking contexts */
body.vc-explore-landing #d2g-site-footer {
    position: relative;
    z-index: 50;
    width: 100%;
}

.d2g-site-footer .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Newsletter */
.d2g-footer-newsletter {
    background: #fff;
    padding: 2.5rem 1.25rem 2.75rem;
    text-align: center;
}

.d2g-footer-newsletter-inner {
    max-width: 640px;
    margin: 0 auto;
}

.d2g-footer-newsletter-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--d2g-text-dark);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.d2g-footer-newsletter-icon {
    color: #e53935;
    display: inline-flex;
}

.d2g-footer-newsletter-sub {
    margin: 0 0 1.35rem;
    font-size: 0.95rem;
    color: var(--d2g-text-muted);
}

.d2g-footer-newsletter-thanks {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.5;
    text-align: left;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.d2g-footer-newsletter-thanks-title {
    display: block;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 0.35rem;
}

.d2g-footer-newsletter-thanks-msg {
    display: block;
    font-weight: 400;
    color: #475569;
    font-size: 0.875rem;
}

.d2g-footer-newsletter-thanks--single {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f766e;
    max-width: 28rem;
}

/* Footer newsletter success — custom SVG badge (Swal2 default icon breaks when over-scaled) */
.swal2-popup.d2g-newsletter-swal-popup {
    width: min(21rem, 92vw) !important;
    padding: 1rem 1.1rem 0.95rem !important;
    border-radius: 1rem !important;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.12),
        0 8px 20px rgba(15, 23, 42, 0.06) !important;
    border: 1px solid rgba(226, 232, 240, 0.95);
    font-family: 'Open Sans', 'Poppins', system-ui, sans-serif;
}

.swal2-popup.d2g-newsletter-swal-popup .swal2-html-container.d2g-newsletter-swal-html {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100%;
}

.d2g-newsletter-swal-inner {
    text-align: center;
}

.d2g-newsletter-swal-badge {
    display: flex;
    justify-content: center;
    margin: 0 0 0.75rem;
}

.d2g-newsletter-swal-badge-svg {
    display: block;
    filter: drop-shadow(0 4px 12px rgba(15, 118, 110, 0.35));
}

.d2g-newsletter-swal-msg {
    margin: 0;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #64748b;
    letter-spacing: 0.01em;
}

.swal2-popup.d2g-newsletter-swal-popup .swal2-actions {
    margin: 1rem 0 0 !important;
}

.swal2-popup.d2g-newsletter-swal-popup .swal2-confirm.d2g-newsletter-swal-confirm {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 1.35rem !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 10px rgba(15, 118, 110, 0.28);
}

.d2g-footer-newsletter-error {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #b91c1c;
}

.d2g-footer-newsletter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
}

.d2g-footer-newsletter-field {
    flex: 1 1 60px;
    max-width: 420px;
}

.d2g-footer-newsletter-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    min-height: 48px;
}

.d2g-footer-input-icon {
    color: #94a3b8;
    font-size: 1rem;
}
input[type="email"].d2g-footer-newsletter-input {
    flex: 1;
    border: 1px solid transparent !important;
    outline: none;
    font-size: 0.95rem;
    min-width: 0;
    background: transparent;
}

.d2g-footer-newsletter-btn {
    padding: 0 1.75rem;
    min-height: 48px;
    border: none;
    border-radius: 999px;
    background: #0a0a0a;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.d2g-footer-newsletter-btn:hover {
    background: #262626;
}

/* One illustrated band: columns + copyright row share the same background */
.d2g-footer-art {
    position: relative;
    border-top: 1px solid #f2f2f2;
    background-color: white;    background-image: var(--d2g-footer-bg, url('../bg_footer.png'));
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.d2g-footer-main {
    position: relative;
    z-index: 1;
    padding: 2rem 1.25rem 1.5rem;
    background: none;
    min-height: 0;
}

.d2g-footer-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.95fr 1fr 1fr;
    gap: 2rem 1.5rem;
    align-items: start;
}

.d2g-footer-logo-link {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.d2g-footer-logo-img {
    max-width: 200px;
    height: auto;
    display: block;
}

.d2g-footer-tagline {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--d2g-text-muted);
    line-height: 1.5;
}

.d2g-footer-pin {
    flex-shrink: 0;
    margin-top: 2px;
}

.d2g-footer-phone-label {
    margin: 0 0 0.15rem;
    font-size: 0.88rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.d2g-footer-phone-ico {
    font-size: 0.85rem;
    color: #0f172a;
}

.d2g-footer-phone {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.d2g-footer-phone:hover {
    text-decoration: underline;
}

.d2g-footer-heading {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--d2g-text-dark);
}

.d2g-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.d2g-footer-links li {
    margin-bottom: 0.55rem;
}

.d2g-footer-links a {
    color: var(--d2g-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.d2g-footer-links a:hover {
    color: var(--d2g-footer-teal-dark);
}

/* Unforgettable Vibes grid */
.d2g-footer-vibes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 220px;
}

.d2g-vibe-item,
.d2g-vibe-placeholder {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.35);
}

.d2g-vibe-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.d2g-vibe-item {
    display: block;
    text-decoration: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.d2g-vibe-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
}

.d2g-vibe-item:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

.d2g-vibe-placeholder {
    border: 1px dashed rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.25);
    min-height: 0;
}

.d2g-vibe-lightbox-open {
    overflow: hidden;
}

.d2g-vibe-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.d2g-vibe-lightbox.is-open {
    display: block;
}

.d2g-vibe-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
}

.d2g-vibe-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 980px);
    margin: 4vh auto;
    height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d2g-vibe-lightbox-figure {
    margin: 0;
    width: 100%;
    max-height: 100%;
    text-align: center;
}

.d2g-vibe-lightbox-figure img {
    width: auto;
    max-width: 100%;
    max-height: calc(92vh - 4rem);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: #fff;
}

.d2g-vibe-lightbox-figure figcaption {
    margin-top: 0.75rem;
    color: #f8fafc;
    font-size: 0.9rem;
}

.d2g-vibe-lightbox-close,
.d2g-vibe-lightbox-nav {
    position: absolute;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.d2g-vibe-lightbox-close:hover,
.d2g-vibe-lightbox-nav:hover {
    background: rgba(15, 23, 42, 0.95);
    transform: scale(1.04);
}

.d2g-vibe-lightbox-close {
    top: 0.25rem;
    right: 0.25rem;
}

.d2g-vibe-lightbox-prev {
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.d2g-vibe-lightbox-next {
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Bottom row: same art as above; divider only (no solid teal block) */
.d2g-footer-bottombar {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.42);
    padding: 0.45rem 1.25rem 0.55rem;
    background: transparent;
    color: #fff;
}

.d2g-footer-bottombar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
}

.d2g-footer-copyright {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.96) !important;
    flex: 1 1 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.d2g-footer-social-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.d2g-footer-follow {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.d2g-footer-social-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.d2g-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s, opacity 0.15s;
}

.d2g-social:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.d2g-social-ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.d2g-social-fb {
    background: #1877f2;
}

.d2g-social-yt {
    background: #ff0000;
}

.d2g-social-wa {
    background: #25d366;
}

.d2g-back-top {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.d2g-back-top:hover {
    background: rgba(15, 23, 42, 0.65);
}

@media (max-width: 1024px) {
    .d2g-footer-main-inner {
        grid-template-columns: 1fr 1fr;
    }

    .d2g-footer-col-vibes {
        grid-column: 1 / -1;
    }

    .d2g-footer-vibes-grid {
        max-width: 280px;
    }
}

@media (max-width: 640px) {
    .d2g-footer-main-inner {
        grid-template-columns: 1fr;
    }
    .d2g-footer-copyright{
        color:#0a0a0a !important;
    }

    .d2g-footer-newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .d2g-footer-newsletter-btn {
        width: 100%;
    }

    .d2g-footer-bottombar-inner {
        flex-direction: column;
        text-align: center;
    }

    .d2g-footer-social-row {
        justify-content: center;
    }

    .d2g-vibe-lightbox-dialog {
        width: 96vw;
        margin: 2vh auto;
        height: 96vh;
    }

    .d2g-vibe-lightbox-figure img {
        max-height: calc(96vh - 5rem);
    }

    .d2g-vibe-lightbox-close {
        top: 0.15rem;
        right: 0.15rem;
    }

    .d2g-vibe-lightbox-prev {
        left: 0.15rem;
    }

    .d2g-vibe-lightbox-next {
        right: 0.15rem;
    }
}
