/* ====================
   FOOTER - assets/css/footer.css
   Extracted from style.css so the footer has its own stylesheet,
   mirroring header.php / header.css.
   ==================== */

/* ================= FOOTER TOKENS ================= */
.site-footer {
    --ftr-bg: #F4F6F5;
    --ftr-bg-alt: #ECEFEE;
    --ftr-text: #16201E;
    --ftr-muted: #5B6663;
    --ftr-faint: #96A09D;
    --ftr-border: #DCE1DF;
    --ftr-accent: #0C6E5F;
    --ftr-accent-dark: #0A5A4E;
    --ftr-accent-tint: #DEF2ED;
    --ftr-radius: 14px;
    --ftr-radius-sm: 8px;
    font-family: inherit;
    color: var(--ftr-text);
}

.site-footer a {
    text-decoration: none;
    color: inherit;
}

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

/* ================= SPACER ================= */
.ftr-spacer {
    background: #ffffff;
    height: 70px;
}

/* ================= MAIN WRAP ================= */
.ftr-main {
    background: var(--ftr-bg);
    padding-bottom: 40px;
}

.ftr-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ================= LOGO STRADDLE ================= */
/* .ftr-top-row is a zero-height anchor; the circle is pulled up by
   exactly half its own height so it sits dead-center on the
   white/gray boundary line. */
.ftr-top-row {
    position: relative;
    height: 0;
}

.ftr-logo-wrapper {
    position: absolute;
    top: -45px;
    left: 0;
}

.ftr-logo-circle {
    box-sizing: border-box;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--ftr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(12, 110, 95, 0.16);
}

.ftr-logo-circle img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* ================= BRAND + FULL CONTACT LINE ================= */
.ftr-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 48px;
    padding-bottom: 24px;
}

.ftr-brand-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ftr-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--ftr-text);
    letter-spacing: -0.2px;
}

.ftr-brand-tag {
    font-size: 14px;
    color: var(--ftr-muted);
}

.ftr-contact-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 26px;
    max-width: 640px;
}

.ftr-contact-info a,
.ftr-contact-static {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ftr-text);
    transition: color 0.15s ease;
}

.ftr-contact-info a:hover {
    color: var(--ftr-accent);
}

.ftr-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ftr-accent-tint);
    color: var(--ftr-accent);
    flex-shrink: 0;
}

.ftr-contact-icon svg {
    width: 14px;
    height: 14px;
}

/* ================= TRUST BADGES BAR ================= */
.ftr-trust {
    margin-top: 4px;
    background: #ffffff;
    border: 1px solid var(--ftr-border);
    border-radius: var(--ftr-radius);
    padding: 22px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ftr-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ftr-trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ftr-accent-tint);
    color: var(--ftr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ftr-trust-icon svg {
    width: 20px;
    height: 20px;
}

.ftr-trust-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.ftr-trust-copy strong {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ftr-text);
}

.ftr-trust-copy em {
    font-style: normal;
    font-size: 12.5px;
    color: var(--ftr-muted);
}

/* ================= HR ================= */
.ftr-hr {
    border: none;
    border-top: 1px solid var(--ftr-border);
    margin: 28px 0;
}

/* ================= MEGA MENU (Logitech / Logitech G) ================= */
.ftr-mega {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 36px;
}

.ftr-col-mega summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 22px;
}

.ftr-col-mega .ftr-col-heading {
    position: relative;
    padding-bottom: 12px;
}

.ftr-col-mega .ftr-col-heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 44px;
    height: 2px;
    background: var(--ftr-accent);
    border-radius: 2px;
}

.ftr-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
}

.ftr-mega-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ftr-subhead {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ftr-accent-dark);
    text-transform: uppercase;
}

.ftr-mega-group ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ftr-mega-group a {
    font-size: 13.5px;
    color: var(--ftr-muted);
    transition: color 0.15s ease;
}

.ftr-mega-group a:hover {
    color: var(--ftr-accent);
}

/* ================= SECONDARY LINK COLUMNS ================= */
.ftr-links {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    padding-bottom: 8px;
}

.ftr-col {
    flex: 0 1 220px;
}

.ftr-col summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
    list-style: none;
}

.ftr-col summary::-webkit-details-marker,
.ftr-col-mega summary::-webkit-details-marker {
    display: none;
}

.ftr-col-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ftr-text);
}

.ftr-caret {
    display: none;
    color: var(--ftr-muted);
}

.ftr-links ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 16px;
}

.ftr-links ul a {
    font-size: 13.5px;
    color: var(--ftr-muted);
    transition: color 0.15s ease;
}

.ftr-links ul a:hover {
    color: var(--ftr-accent);
}

/* ================= OTHER USEFUL LINKS ROW ================= */
.ftr-useful {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--ftr-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: 13px;
}

.ftr-useful-label {
    font-weight: 700;
    color: var(--ftr-text);
}

.ftr-useful a {
    color: var(--ftr-muted);
}

.ftr-useful a:hover {
    color: var(--ftr-accent);
}

/* ================= NEWSLETTER ================= */
.ftr-newsletter {
    background: var(--ftr-bg-alt);
    border-radius: var(--ftr-radius);
    padding: 22px 28px;
    margin: 28px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ftr-newsletter-copy strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.ftr-newsletter-copy span {
    color: var(--ftr-muted);
    font-size: 13px;
}

.ftr-newsletter-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--ftr-border);
    border-radius: 999px;
    padding: 5px 6px 5px 18px;
    min-width: 300px;
    flex: 1 1 320px;
    max-width: 420px;
}

.ftr-newsletter-form input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    background: transparent;
    color: var(--ftr-text);
}

.ftr-newsletter-form button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--ftr-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.ftr-newsletter-form button:hover {
    background: var(--ftr-accent-dark);
}

.ftr-newsletter-form button svg {
    width: 15px;
    height: 15px;
}

/* ================= PAYMENT METHODS & DELIVERY PARTNERS ================= */
/* NOTE: these are text/icon placeholders since no brand logo images
   were supplied — swap the <span class="ftr-pd-badge"> / ftr-pd-chip
   content for <img> logos whenever you have the real assets. */
.ftr-pd {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--ftr-border);
    display: flex;
    flex-wrap: wrap;
    gap: 32px 60px;
}

.ftr-pd-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ftr-pd-label {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ftr-text);
}

.ftr-pd-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ftr-pd-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ftr-text);
    background: #ffffff;
    border: 1px solid var(--ftr-border);
    border-radius: var(--ftr-radius-sm);
    padding: 9px 14px;
}

.ftr-pd-badge svg {
    width: 16px;
    height: 16px;
    color: var(--ftr-accent);
    flex-shrink: 0;
}

.ftr-pd-chip {
    display: flex;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--ftr-text);
    background: #ffffff;
    border: 1px solid var(--ftr-border);
    border-radius: var(--ftr-radius-sm);
    padding: 9px 16px;
}

/* ================= BOTTOM ================= */
.ftr-bottom {
    padding-top: 28px;
}

.ftr-disclaimer {
    font-size: 12px;
    line-height: 1.7;
    color: var(--ftr-faint);
    margin: 0 0 20px;
    max-width: 980px;
}

.ftr-bottom-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--ftr-muted);
}

.ftr-copyright {
    justify-self: start;
}

.ftr-legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    justify-self: center;
}

.ftr-legal-links a {
    color: var(--ftr-muted);
}

.ftr-legal-links a:hover {
    color: var(--ftr-accent);
}

.ftr-socials {
    display: flex;
    gap: 10px;
    justify-self: end;
}

.ftr-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ftr-bg-alt);
    color: var(--ftr-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.ftr-socials a:hover {
    background: var(--ftr-accent);
    color: #fff;
}

.ftr-socials svg {
    width: 14px;
    height: 14px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ---- Tablet ---- */
@media (max-width: 900px) {
    .ftr-container {
        padding: 0 24px;
    }

    .ftr-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ftr-contact-info {
        justify-content: flex-start;
        max-width: none;
    }

    .ftr-trust {
        grid-template-columns: repeat(2, 1fr);
    }

    .ftr-mega {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ftr-mega-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ftr-links {
        gap: 40px;
    }

    .ftr-bottom-row {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 14px;
    }

    .ftr-legal-links,
    .ftr-socials {
        justify-self: start;
    }
}

/* ---- Mobile: footer columns become accordions ---- */
@media (max-width: 640px) {
    .ftr-spacer {
        height: 56px;
    }

    .ftr-logo-wrapper {
        top: -36px;
    }

    .ftr-logo-circle {
        width: 72px;
        height: 72px;
    }

    .ftr-logo-circle img {
        width: 38px;
        height: 38px;
    }

    .ftr-header-row {
        padding-top: 40px;
    }

    .ftr-trust {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    /* keep mega sub-groups side-by-side (2-up) instead of stacking
       full-width — saves vertical space and keeps everything visible
       without extra taps */
    .ftr-mega-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 14px;
    }

    .ftr-links {
        flex-direction: column;
        gap: 0;
    }

    .ftr-col {
        flex-basis: auto;
    }

    /* Accordion behaviour for all footer columns */
    .ftr-col summary,
    .ftr-col-mega summary {
        cursor: pointer;
        padding: 14px 0;
        border-bottom: 1px solid var(--ftr-border);
    }

    .ftr-col-mega summary {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .ftr-col-mega .ftr-col-heading {
        padding-bottom: 0;
    }

    .ftr-col-mega .ftr-col-heading::after {
        display: none;
    }

    .ftr-caret {
        display: flex;
    }

    .ftr-col[open] .ftr-caret svg,
    .ftr-col-mega[open] .ftr-caret svg {
        transform: rotate(180deg);
    }

    .ftr-caret svg {
        transition: transform 0.2s ease;
    }

    .ftr-mega-grid {
        padding: 16px 0 8px;
    }

    .ftr-links ul {
        padding-bottom: 8px;
    }

    .ftr-newsletter {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .ftr-newsletter-form {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .ftr-pd {
        flex-direction: column;
        gap: 24px;
    }

    .ftr-bottom-row {
        grid-template-columns: 1fr;
        justify-items: start;
        text-align: left;
    }

    .ftr-legal-links {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .ftr-useful {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
