/*
 * Site footer, matching xtream-masters.com (same structure, colours and links).
 * The old theme styles bare `footer`, `footer ul`, `footer p`, `.footer-bottom`
 * and `.copyright`, so everything here is under .xf with its own class names.
 * Sizes in px: the theme sets html{font-size:10px}.
 */
footer.xf {
    padding: 0 !important;
    margin: 0;
    background: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
    color: rgba(255, 255, 255, .8);
    font-family: 'Nunito Sans', 'Segoe UI', Roboto, Arial, sans-serif;
    text-align: left;
}
.xf *, .xf *:before, .xf *:after { box-sizing: border-box; }
.xf a { text-decoration: none; }
.xf a:hover, .xf a:focus { text-decoration: none; }

/* Contact bar */
.xf-bar { display: flex; position: relative; background: linear-gradient(90deg, #2b3e4d 0%, #1a2332 50%, #2b3e4d 100%); }
.xf-bar:before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(245, 99, 62, .5), transparent); }
.xf-bar-item {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px;
    padding: 18px 24px; color: #fff !important; font-size: 16px; font-weight: 700; letter-spacing: .3px;
    background: rgba(37, 46, 63, .5); transition: filter .2s ease;
    overflow-wrap: anywhere;
}
.xf-bar-item:hover { filter: brightness(1.12); }
.xf-bar-accent { background: linear-gradient(135deg, #f5633e, #ff6b4a); }
.xf-bar-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* Main */
.xf-main { position: relative; padding: 64px 0 40px; }
.xf-grid {
    max-width: 1180px; margin: 0 auto; padding: 0 16px;
    display: grid; grid-template-columns: 1.6fr 1fr 1.15fr 1fr 1.35fr; gap: 40px;
}
.xf-col h3 {
    color: #fff; font-size: 17px; font-weight: 800; margin: 0 0 22px; padding-bottom: 10px; position: relative;
}
.xf-col h3:after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: linear-gradient(90deg, #f5633e, transparent); }
.xf-about p { color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.75; margin: 0 0 14px; padding: 0; }

.xf-social { display: flex; gap: 10px; margin-top: 18px; }
.xf-social a {
    width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); font-size: 16px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.xf-social a:hover { background: #f5633e; border-color: #f5633e; color: #fff; transform: translateY(-2px); }

ul.xf-links { list-style: none; margin: 0; padding: 0; text-align: left; }
ul.xf-links li { margin: 0 0 11px; padding: 0; }
ul.xf-links li a {
    display: inline-flex; align-items: baseline; gap: 8px; padding: 0;
    color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1.45; transition: color .2s ease, transform .2s ease;
}
ul.xf-links li a i { color: #f5633e; font-size: 13px; }
ul.xf-links li a:hover { color: #fff; transform: translateX(3px); }

.xf-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; color: inherit; }
.xf-contact-icon {
    width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(245, 99, 62, .12); border: 1px solid rgba(245, 99, 62, .28); color: #f5633e; font-size: 15px;
}
.xf-contact-item span:not(.xf-contact-icon) { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 2px; }
.xf-contact-item b { display: block; font-size: 14px; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
a.xf-contact-item:hover b { color: #ff8a6b; }

/* Bottom */
.xf-bottom { border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .2); }
.xf-bottom-inner {
    max-width: 1180px; margin: 0 auto; padding: 18px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
    font-size: 13px; color: rgba(255, 255, 255, .7);
}
.xf-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.xf-bottom nav a { color: rgba(255, 255, 255, .78); font-size: 13px; }
.xf-bottom nav a:hover { color: #f5633e; }

/* Tablet: about spans the full row, link groups side by side */
@media (max-width: 1100px) {
    .xf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
    .xf-about { grid-column: 1 / -1; max-width: 720px; }
    .xf-contact { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 20px; }
    .xf-contact h3 { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 767px) {
    .xf-bar { flex-direction: column; }
    .xf-bar-item { justify-content: flex-start; padding: 14px 16px; font-size: 15px; }
    .xf-main { padding: 40px 0 24px; }
    .xf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; padding: 0 16px; }
    .xf-contact { grid-template-columns: 1fr; }
    .xf-col h3 { font-size: 16px; margin-bottom: 16px; }
    ul.xf-links li { margin-bottom: 10px; }
    ul.xf-links li a { font-size: 14px; }
    .xf-bottom-inner { flex-direction: column; align-items: flex-start; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) {
    .xf-grid { grid-template-columns: 1fr; }
}

/* Product pages have a fixed mobile buy bar; keep the footer clear of it. */
@media (max-width: 767px) {
    body:has(.st-sticky) footer.xf { padding-bottom: 74px !important; }
}
