/* =========================================================
   FOOTER REDESIGN — append after existing TT-BUILD CSS.
   Add a script font in functions.php, e.g.:
   wp_enqueue_style('tt-font-script','https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');
   ========================================================= */

:root, :host {
    --tt-font-script: "Caveat", cursive;
}

/* =========================================================
   1. NEWSLETTER BAR
   ========================================================= */

.tt-newsletter {
    padding: 0 0px;
    margin: 40px auto 0;
    max-width: 1400px;
}

.tt-newsletter__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;

    background: linear-gradient(120deg, var(--tt-color-orange-wash) 0%, #eef3fb 100%);
    border: 1px solid var(--tt-color-clay-line);
    border-radius: 28px;
    padding: 40px 50px;
    overflow: hidden;
}

.tt-newsletter__content {
    flex: 1;
    min-width: 0;
}

.tt-newsletter__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tt-newsletter__eyebrow::after {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--tt-color-brand-orange);
}

.tt-newsletter__title {
    font-family: var(--tt-font-display);
    color: var(--tt-color-deep-navy);
    font-size: 32px;
    font-weight: 700;
    margin-top: 10px;
}

.tt-newsletter__desc {
    color: var(--tt-color-ink-body);
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
    margin-top: 10px;
}

.tt-newsletter__form {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    max-width: 620px;
}

.tt-newsletter__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--tt-color-clay-line);
    border-radius: 40px;
    padding: 0px 20px;
    color: var(--tt-color-muted-gray);
}

.tt-newsletter__field input {
    flex: 1;
    border: 0;
    outline: none;
    background: none;
    font-family: var(--tt-font-poppins);
    font-size: 15px;
    color: var(--tt-color-dark-ink);
}

.tt-newsletter__form .tt-btn {
    flex: none;
    white-space: nowrap;
}

.tt-newsletter__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.tt-newsletter__badges li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tt-color-slate-text);
    font-size: 14px;
    font-weight: 500;
}

.tt-newsletter__badges svg {
    color: var(--tt-color-brand-orange);
    flex: none;
}

.tt-newsletter__media {
    position: relative;
    flex: none;
    width: 300px;
    height: 220px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--tt-color-deep-navy);
}

.tt-newsletter__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tt-newsletter__script {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    font-family: var(--tt-font-script);
    color: #fff;
    font-size: 22px;
    line-height: 1.25;
}

@media (max-width: 900px) {
    .tt-newsletter__inner {
        flex-direction: column;
        align-items: stretch;
        padding: 32px;
    }
    .tt-newsletter__media {
        width: 100%;
    }
    .tt-newsletter__form {
        flex-direction: column;
    }
}

/* =========================================================
   2. FOOTER — LIGHT THEME
   ========================================================= */

.tt-footer {
    position: relative;
    background: #fff;
    padding: 70px 20px 0;
    overflow: hidden;
}

.tt-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    position: relative;
    z-index: 1;
}

.tt-footer .tt-logo--footer {
    filter: none;
}

.tt-footer__about {
    color: var(--tt-color-muted-gray);
    max-width: 320px;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.7;
}

.tt-footer__social a {
    border: 1px solid var(--tt-color-clay-line);
    color: var(--tt-color-deep-navy);
    background: var(--tt-color-off-white-surface);
}

.tt-footer__social a:hover {
    background: var(--tt-color-brand-orange);
    border-color: var(--tt-color-brand-orange);
    color: #fff;
}

.tt-footer__tagline {
    margin-top: 22px;
    color: var(--tt-color-deep-navy);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    gap: 10px;
}

.tt-footer__tagline span {
    color: var(--tt-color-brand-orange);
}

.tt-footer__heading {
    font-family: var(--tt-font-display);
    color: var(--tt-color-deep-navy);
    font-size: 17px;
    font-weight: 700;
}

.tt-footer__heading::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background: var(--tt-color-brand-orange);
    margin-top: 8px;
}

.tt-footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    font-size: 15px;
}

.tt-footer__links .tt-list__link {
    color: var(--tt-color-ink-body);
    transition: color .2s;
}

.tt-footer__links .tt-list__link:hover {
    color: var(--tt-color-brand-orange);
}

/* Need Help column */

.tt-footer__help-desc {
    color: var(--tt-color-muted-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 14px;
}

.tt-footer__help-list {
    list-style: none;
    padding: 0;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tt-footer__help-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--tt-color-slate-text);
}

.tt-footer__help-list a {
    color: var(--tt-color-slate-text);
    transition: color .2s;
}

.tt-footer__help-list a:hover {
    color: var(--tt-color-brand-orange);
}

.tt-footer__help-icon {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tt-color-orange-wash);
    color: var(--tt-color-brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-footer__help-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 14px 26px;
    border-radius: 40px;
    background: var(--tt-color-brand-orange);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: background .2s;
}

.tt-footer__help-cta:hover {
    background: var(--tt-color-orange-deep);
    color: #fff;
}

/* Decorative mountains + script text */

.tt-footer__bg-mountains {
    position: absolute;
    right: 0;
    bottom: 66px;
    width: min(520px, 55%);
    pointer-events: none;
    z-index: 0;
}

.tt-footer__bg-mountains svg {
    width: 100%;
    height: auto;
    fill: var(--tt-color-off-white-surface);
}

.tt-footer__mountains-text {
    position: absolute;
    top: -34px;
    right: 30px;
    font-family: var(--tt-font-script);
    color: var(--tt-color-muted-gray);
    font-size: 22px;
    line-height: 1.2;
    text-align: right;
}

/* Bottom bar */

.tt-footer__bottom {
    position: relative;
    z-index: 1;
    background: var(--tt-color-navy-deep);
    max-width: none;
    margin-top: 60px;
    padding: 22px 20px;
}

.tt-footer__bottom > * {
    max-width: 1200px;
    margin: 0 auto;
}

.tt-footer > .tt-footer__bottom {
    margin-left: -20px;
    margin-right: -20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: var(--tt-color-nav-muted);
    font-size: 14px;
}

.tt-footer__bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.tt-footer__bottom-links a {
    color: #fff;
    font-size: 14px;
    transition: color .2s;
}

.tt-footer__bottom-links a:hover {
    color: var(--tt-color-brand-orange);
}

.tt-footer__bottom-links a + a {
    position: relative;
    padding-left: 14px;
}

.tt-footer__bottom-links a + a::before {
    content: "|";
    position: absolute;
    left: -1px;
    color: var(--tt-color-nav-muted);
}

@media (max-width: 900px) {
    .tt-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .tt-footer__bg-mountains {
        display: none;
    }
}

@media (max-width: 560px) {
    .tt-footer__grid {
        grid-template-columns: 1fr;
    }
    .tt-footer > .tt-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}