/**
 * FXT Child — footer layout (loaded from assets/css via functions.php).
 * Images: use url('../img/your-file.png') from this file.
 */

/* Header notice (Appearance → FXT Child → Header) */
.fxt-child-header-notice {
    background: #333333;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}

.fxt-child-header-notice a {
    color: #9fd86a;
    text-decoration: underline;
}

.fxt-child-header-notice__inner {
    padding: 0.5rem 0;
}

/* Footer design tokens (match reference) */
.fxtcf {
    --fxtcf-green: #55a61a;
    --fxtcf-link: #007bff;
    --fxtcf-link-hover: #0056b3;
    --fxtcf-bg-main: #ffffff;
    --fxtcf-heading: #000000;
    --fxtcf-body: #555555;
    --fxtcf-border: #e0e0e0;
    --fxtcf-sidebar-cta: #333333;
    --fxtcf-sidebar-mobile: #2d2d2d;
    --fxtcf-bar: #1a1a1a;
    --fxtcf-bar-muted: #cccccc;
}

.fxtcf {
    background: var(--fxtcf-bg-main);
    color: var(--fxtcf-body);
}

.fxtcf .container {
    max-width: 1320px;
}

.fxtcf__body {
    background: var(--fxtcf-bg-main);
    padding: 46px 0;
}

/* —— Newsletter —— */
.fxtcf__newsletter {
    background: var(--fxtcf-bg-main);
    border-bottom: 1px solid var(--fxtcf-border);
    padding: 2.5rem 0;
    text-align: center;
}

.fxtcf__newsletter-inner {
    max-width: 42rem;
    margin-inline: auto;
}

.fxtcf__newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border: 2px solid var(--fxtcf-green);
    border-radius: 4px;
    color: var(--fxtcf-green);
}

.fxtcf__newsletter-svg {
    width: 1.75rem;
    height: 1.75rem;
}

.fxtcf__newsletter-headline {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--fxtcf-heading);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.fxtcf__newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    max-width: 32rem;
    margin-inline: auto;
    border: 1px solid var(--fxtcf-border);
    border-radius: 4px;
    overflow: hidden;
}

.fxtcf__newsletter-input {
    flex: 1 1 12rem;
    min-width: 0;
    border: 0;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--fxtcf-heading);
    background: var(--fxtcf-bg-main);
}

.fxtcf__newsletter-input::placeholder {
    color: #999999;
}

.fxtcf__newsletter-btn {
    flex: 0 0 auto;
    border: 0;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--fxtcf-green);
    cursor: pointer;
    white-space: nowrap;
}

.fxtcf__newsletter-btn:hover {
    filter: brightness(1.05);
}

/* —— Main grid —— */
.fxtcf__grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .fxtcf__grid {
        grid-template-columns: 1fr 300px;
        align-items: start;
    }
}

/* —— Intro row (About, FAQ, Learn, Start) —— */
.fxtcf__intro-row {
    display: grid;
    gap: 1.75rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--fxtcf-border);
}

@media (min-width: 900px) {
    .fxtcf__intro-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .fxtcf__intro-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.fxtcf__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fxtcf-heading);
    margin-bottom: 0.5rem;
}

.fxtcf__lead {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--fxtcf-body);
    margin: 0;
}

.fxtcf__link {
    color: var(--fxtcf-link);
    text-decoration: none;
    font-size: 0.8125rem;
}

.fxtcf__link:hover {
    color: var(--fxtcf-link-hover);
    text-decoration: underline;
}

.fxtcf__link-list {
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
}

.fxtcf__link-list li {
    margin-bottom: 0.35rem;
}

.fxtcf__link-list a {
    color: var(--fxtcf-link);
    text-decoration: none;
    font-size: 0.8125rem;
}

.fxtcf__link-list a:hover {
    color: var(--fxtcf-link-hover);
    text-decoration: underline;
}

/* —— Nav columns + social —— */
.fxtcf__section-line {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--fxtcf-border);
}

.fxtcf__columns {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .fxtcf__columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .fxtcf__columns {
        grid-template-columns: repeat(4, 1fr);
    }
}

.fxtcf__col-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fxtcf-heading);
    margin-bottom: 0.5rem;
}

.fxtcf__social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.fxtcf__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
}

.fxtcf__social:hover {
    opacity: 0.85;
    color: #ffffff;
}

.fxtcf__social-svg {
    width: 1rem;
    height: 1rem;
}

.fxtcf__col-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fxtcf__col-list li {
    margin-bottom: 0.35rem;
}

.fxtcf__col-link {
    font-size: 0.8125rem;
    color: var(--fxtcf-link);
    text-decoration: none;
}

.fxtcf__col-link:hover {
    color: var(--fxtcf-link-hover);
    text-decoration: underline;
}

.fxtcf__col-list a {
    font-size: 0.8125rem;
    color: var(--fxtcf-link);
    text-decoration: none;
}

.fxtcf__col-list a:hover {
    color: var(--fxtcf-link-hover);
    text-decoration: underline;
}

/* —— Broker columns —— */
.fxtcf__brokers {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .fxtcf__brokers {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* —— Google News —— */
.fxtcf__google-news {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--fxtcf-border);
    font-size: 0.875rem;
    color: var(--fxtcf-body);
}

.fxtcf__google-news-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--fxtcf-border);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fxtcf-heading);
}

/* —— Legal —— */
.fxtcf__legal {
    padding-top: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.65;
    color: var(--fxtcf-body);
}

.fxtcf__legal-label {
    font-weight: 700;
    color: var(--fxtcf-heading);
}

.fxtcf__risk {
    margin: 0 0 1rem;
}

.fxtcf__legal-address {
    margin: 0;
}

/* —— Sidebar widgets —— */
.fxtcf__aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fxtcf__box {
    padding: 1.25rem;
    border-radius: 4px;
    color: #ffffff;
}

.fxtcf__box--cta {
    background: var(--fxtcf-sidebar-cta);
}

.fxtcf__box--mobile {
    background: var(--fxtcf-sidebar-mobile);
}

.fxtcf__box-kicker {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fxtcf-green);
    margin-bottom: 0.5rem;
}

.fxtcf__box-heading {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    line-height: 1.25;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fxtcf__box-list {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
    color: #eeeeee;
    line-height: 1.5;
}

.fxtcf__box-btn {
    display: block;
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #ffffff !important;
    background: var(--fxtcf-green);
    text-decoration: none;
}

.fxtcf__box-btn:hover {
    filter: brightness(1.08);
    color: #ffffff !important;
}

.fxtcf__box-sub {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fxtcf__box-preview {
    height: 10rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    color: #aaaaaa;
    margin-bottom: 0.75rem;
}

.fxtcf__stores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.fxtcf__store {
    display: block;
    text-align: center;
    padding: 0.45rem 0.35rem;
    font-size: 0.625rem;
    line-height: 1.25;
    font-weight: 600;
    color: #ffffff !important;
    background: #000000;
    border: 1px solid #555555;
    border-radius: 4px;
    text-decoration: none;
}

.fxtcf__store:hover {
    opacity: 0.92;
    color: #ffffff !important;
}

/* —— Bottom bar —— */
.fxtcf__bar {
    background: var(--fxtcf-bar);
    color: var(--fxtcf-bar-muted);
}

.fxtcf__bar-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 0.8125rem;
}

@media (min-width: 768px) {
    .fxtcf__bar-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.fxtcf__bar-logo {
    flex-shrink: 0;
}

.fxtcf__bar-logo a,
.fxtcf__bar-logo span {
    color: #ffffff;
}

.fxtcf__bar-logo .custom-logo-link img {
    filter: brightness(0) invert(1);
}

.fxtcf__bar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .fxtcf__bar-right {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        text-align: right;
    }
}

.fxtcf__bar-copy {
    color: var(--fxtcf-bar-muted);
    white-space: nowrap;
}

.fxtcf__bar-sep {
    display: none;
}

@media (min-width: 768px) {
    .fxtcf__bar-sep {
        display: inline-block;
        width: 1px;
        height: 0.875rem;
        background: #444444;
        margin-inline: 0.5rem;
    }
}

.fxtcf__bar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.fxtcf__bar-nav a {
    color: var(--fxtcf-link);
    text-decoration: none;
    white-space: nowrap;
}

.fxtcf__bar-nav a:hover {
    color: var(--fxtcf-link-hover);
    text-decoration: underline;
}
