/* ============================================================================
 * Trilogy Mind Body Soul — Footer (redesign)
 * Modern dark footer with a dedicated Calculators column. Site-wide.
 * ========================================================================== */

/* Hide the original Header-Footer-Elementor footer; replaced by .tri-foot. */
#colophon { display: none !important; }

.tri-foot {
    --tri-orange: #ff4500;
    --tri-bg: #1c0e21;
    --tri-fg: rgba(255, 255, 255, 0.64);
    --tri-fg-strong: #ffffff;
    --tri-hair: rgba(255, 255, 255, 0.12);
    --tri-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    background: var(--tri-bg);
    color: var(--tri-fg);
    font-family: "Inter", "DM Sans", system-ui, -apple-system, sans-serif;
    margin-top: 0;
}
.tri-foot *, .tri-foot *::before, .tri-foot *::after { box-sizing: border-box; }

.tri-foot__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(44px, 5vw, 72px) 24px 0;
}

/* ---- Top: brand + newsletter ---- */
.tri-foot__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--tri-hair);
}
.tri-foot__logo { height: 54px; width: auto; display: block; }
.tri-foot__tag { margin: 18px 0 20px; line-height: 1.7; font-size: 14.5px; max-width: 420px; }

.tri-foot__social { display: flex; gap: 10px; }
.tri-foot__social a {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--tri-fg-strong);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--tri-hair);
    transition: transform 0.2s var(--tri-ease), background-color 0.2s ease, color 0.2s ease;
}
.tri-foot__social a:hover { background: var(--tri-orange); border-color: var(--tri-orange); color: #fff; transform: translateY(-3px); }
.tri-foot__social svg { width: 18px; height: 18px; }

/* Newsletter */
.tri-foot__news-title { margin: 0 0 14px; color: var(--tri-fg-strong); font-size: 18px; font-weight: 700; }
.tri-foot__news { display: flex; gap: 10px; max-width: 420px; }
.tri-foot__news input {
    flex: 1; height: 50px; padding: 0 16px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--tri-hair);
    color: #fff; font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tri-foot__news input::placeholder { color: rgba(255, 255, 255, 0.4); }
.tri-foot__news input:focus { outline: none; border-color: var(--tri-orange); box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.2); }
.tri-foot__news button {
    border: none; cursor: pointer; padding: 0 24px; height: 50px; border-radius: 12px;
    background: var(--tri-orange); color: #fff; font-weight: 700; font-size: 15px;
    box-shadow: 0 10px 24px -8px rgba(255, 69, 0, 0.6);
    transition: transform 0.2s var(--tri-ease), box-shadow 0.2s var(--tri-ease);
    white-space: nowrap;
}
.tri-foot__news button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(255, 69, 0, 0.7); }
.tri-foot__news-msg { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.tri-foot__news-msg.is-ok { color: #4ade80; }
.tri-foot__news-msg.is-err { color: #ff7a59; }
.tri-foot__consent { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, 0.45); max-width: 420px; }

/* ---- Link columns ---- */
.tri-foot__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 44px 0;
}
.tri-foot__col-title {
    margin: 0 0 18px; color: var(--tri-fg-strong);
    font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.tri-foot__menu { list-style: none; margin: 0; padding: 0; }
.tri-foot__menu li { margin: 0; }
.tri-foot__menu a {
    display: inline-block; padding: 7px 0; color: var(--tri-fg);
    text-decoration: none; font-size: 14.5px;
    transition: color 0.2s ease, transform 0.2s var(--tri-ease);
}
.tri-foot__menu a:hover { color: var(--tri-orange); transform: translateX(4px); }
.tri-foot__menu .current-menu-item > a { color: var(--tri-fg-strong); }

/* Calculators column reads as two tidy sub-columns when it gets long */
.tri-foot__col--calc .tri-foot__menu { columns: 2; column-gap: 18px; }
.tri-foot__col--calc .tri-foot__menu li { break-inside: avoid; }

/* Contact */
.tri-foot__contact { list-style: none; margin: 0; padding: 0; }
.tri-foot__contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14.5px; line-height: 1.55; }
.tri-foot__contact svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--tri-orange); }
.tri-foot__contact a { color: var(--tri-fg); text-decoration: none; transition: color 0.2s ease; }
.tri-foot__contact a:hover { color: var(--tri-orange); }

/* ---- Bottom bar ---- */
.tri-foot__bottom {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    padding: 22px 0 28px; border-top: 1px solid var(--tri-hair);
    font-size: 13px; color: rgba(255, 255, 255, 0.5);
}
.tri-foot__made { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
    .tri-foot__top { grid-template-columns: 1fr; gap: 32px; }
    .tri-foot__cols { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
}
@media (max-width: 520px) {
    .tri-foot__cols { grid-template-columns: 1fr; }
    .tri-foot__col--calc .tri-foot__menu { columns: 2; }
    .tri-foot__news { flex-direction: column; }
    .tri-foot__news button { padding: 0 24px; }
    .tri-foot__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .tri-foot__social a, .tri-foot__news button, .tri-foot__menu a, .tri-foot__contact a {
        transition: none !important;
    }
}
