/* ==========================================================================
   BedstTest.dk — footer.css
   Matches the footer.php layout pixel-for-pixel
   ========================================================================== */

/* ---- Reset / Base ---- */
.bt-footer *,
.bt-footer *::before,
.bt-footer *::after {
    box-sizing: border-box;
}

.bt-footer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #444;
    background: #fff;
}

/* ---- Shared inner container ---- */
.bt-footer-inner {
    max-width: 1344px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ==========================================================================
   1. NEWSLETTER SECTION
   ========================================================================== */

.bt-footer-newsletter {
    padding: 30px 0 30px;
    text-align: center;
    border-top: 1px solid #f5f5f5;
}

.bt-newsletter-heading {
    font-size: 21px;
    font-weight: 600;
    color: #009688;
    margin: 0 0 20px;
    line-height: 1.4;
}

/* Form wrapper — narrow centred pill */
.bt-footer-newsletter .tnp-field-email {
    display: flex;
    justify-content: center;
}

.bt-newsletter-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 470px;
    border: 1px solid #ccc;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
}

input#tnp-footer {
    background-color: white !important;
    border: none !important;
}

.bt-email-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 11px 16px;
    font-size: 16px;
    color: #333;
    background: transparent;
    font-family: inherit;
}

.bt-email-input::placeholder {
    color: #aaa;
}

.bt-submit-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 11px 16px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.bt-submit-btn:hover {
    color: #009688;
}

.bt-submit-btn svg {
    display: block;
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   2. MAIN FOOTER BODY  (Mission | Populære | Information)
   ========================================================================== */

.bt-footer-body {
    background: #fff;
    padding: 52px 0 44px;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
}

.bt-footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr;
    gap: 52px;
    align-items: start;
}

/* ---- Shared column heading ---- */
.bt-footer-heading {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #009688;
    margin: 0 0 18px;
    padding: 0;
    line-height: 1.2;
}

/* ---- Mission text ---- */
.bt-footer-mission p {
    font-size: 15.5px;
    color: #555;
    margin: 0 0 13px;
}

.bt-footer-mission p:last-child {
    margin-bottom: 0;
}

/* ---- Icon link lists (Populære & Information) ---- */
.bt-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bt-footer-links li {
    margin-bottom: 9px;
}

.bt-footer-links li:last-child {
    margin-bottom: 0;
}

.bt-footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    color: #444;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.bt-footer-links a:hover {
    color: #009688;
}

.bt-footer-links .fa-check-circle {
    color: #009688;
    font-size: 15px;
    flex-shrink: 0;
    line-height: 1;
}

/* ==========================================================================
   3. TRUST BAR  (Tryghed)
   ========================================================================== */

.bt-footer-trust {
    padding: 26px 0 24px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
}

.bt-footer-trust .bt-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bt-trust-heading {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #009688;
    margin: 0 0 14px;
}

.bt-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}

.bt-trust-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    color: #444;
}

.bt-trust-list .fa-check-circle {
    color: #009688;
    font-size: 18px;
    line-height: 1;
}

/* ==========================================================================
   4. BOTTOM BAR  (Editorial note + flag + address)
   ========================================================================== */

.bt-footer-bottom {
    background: #fff;
    padding: 26px 0 28px;
    overflow: visible;   /* ← add this line */
}

.bt-editorial-note {
    text-align: center;
    font-size: 15.5px;
    color: #444;
    margin: 0 0 18px;
    line-height: 1.6;
}

.bt-editorial-note a {
    color: inherit;
    text-decoration: none;
}

.bt-editorial-note a:hover {
    color: #009688;
}

.bt-footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    flex-direction: column;
}

.bt-also-found {
    font-size: 15px;
    color: #555;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;    /* ← add */
    overflow: visible;     /* ← add */
}

.bt-company-address {
    font-size: 14.5px;
    color: #888;
    margin: 0;
    text-align: right;
}

/* ---- Flag Dropdown ---- */
.bt-flag-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bt-flag-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 3px 7px 3px 5px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: border-color 0.15s ease;
    line-height: 1;
}

.bt-flag-toggle:hover {
    border-color: #009688;
    color: #009688;
}

.bt-flag-toggle img {
    display: block;
    border-radius: 1px;
}

.bt-flag-arrow {
    font-size: 10px;
    line-height: 1;
}

.bt-flag-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    top: auto;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.11);
    min-width: 130px;
    z-index: 999;
    overflow: hidden;
}

.bt-flag-dropdown.open .bt-flag-menu {
    display: block;
}

.bt-flag-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    font-size: 15px;
    color: #444;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.bt-flag-menu a:hover {
    background: #f4faf9;
    color: #009688;
}

.bt-flag-menu img {
    display: block;
    border-radius: 1px;
}

/* ==========================================================================
   5. BACK TO TOP BUTTON
   ========================================================================== */

.bt-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    line-height: 0;
}

.bt-back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.bt-back-to-top img {
    display: block;
    width: 48px;
    height: 48px;
}

/* ==========================================================================
   6. UTILITY
   ========================================================================== */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

/* Tablet: 2-column grid */
@media (max-width: 960px) {
    .bt-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .bt-footer-mission {
        grid-column: 1 / -1;
    }

    .bt-newsletter-heading {
        font-size: 18px;
    }
}

/* Mobile: single column */
@media (max-width: 600px) {
    .bt-footer-inner {
        padding: 0 20px;
    }

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

    .bt-footer-mission {
        grid-column: auto;
    }

    .bt-newsletter-heading {
        font-size: 16px;
        padding: 0 10px;
    }

    .bt-footer-newsletter {
        padding: 32px 0 28px;
    }

    .bt-footer-body {
        padding: 36px 0 32px;
    }

    .bt-trust-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bt-footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        place-items: center;
    }

    .bt-company-address {
        text-align: center;
    }

    .bt-flag-menu {
        bottom: calc(100% + 6px);
        top: auto;
    }
}
