/* LogicX shared footer — self-contained. Include after Google Fonts. */

:root {
    --xo-blue: #1a7bbd;
    --xo-blue-dark: #146294;
    --xo-logo-dark: #222f36;
    --xo-logo-dark-deep: #1a252b;
    --xo-silver: #aeb6c1;
    --hero-bg: #080808;
    --hero-gold: #C9A96E;
    --hero-gold-dark: #b8944e;
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-footer {
    margin-top: 0;
    background: var(--hero-bg);
    color: rgba(255, 255, 255, 0.55);
    border-top: 0.5px solid rgba(201, 169, 110, 0.35);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1.6fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.footer-tagline {
    margin: 12px 0 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #c7d2dd;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

.footer-social-link:hover {
    background: var(--hero-gold);
    border-color: var(--hero-gold);
    color: #0a0a0a;
    transform: translateY(-2px);
}

.footer-heading {
    margin: 0 0 18px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.footer-links,
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: var(--hero-gold);
    padding-left: 4px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
}

.footer-contact-list svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--hero-gold-dark);
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-list a:hover {
    color: var(--hero-gold);
}

.footer-newsletter-copy {
    margin: 0 0 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-newsletter-form input {
    flex: 1 1 160px;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.footer-newsletter-form input::placeholder {
    color: #7e8e9c;
}

.footer-newsletter-form input:focus {
    outline: none;
    border-color: rgba(201, 169, 110, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.footer-newsletter-form button {
    flex: 0 0 auto;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    background: var(--hero-gold);
    color: #0a0a0a;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.footer-newsletter-form button:hover {
    background: #d4b87e;
}

.footer-newsletter-msg {
    margin: 12px 0 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.footer-newsletter-msg.is-success {
    color: var(--hero-gold);
}

.footer-newsletter-msg.is-error {
    color: #f0a3a3;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
}

.footer-copy {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-legal {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-body);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--hero-gold);
}

.footer-top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-top-link svg {
    width: 15px;
    height: 15px;
}

.footer-top-link:hover {
    color: var(--hero-gold);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand,
    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .site-footer-inner {
        padding: 40px 18px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
