.site-footer {
    --footer-bg: #071428;
    --footer-text: rgba(255, 255, 255, 0.88);
    --footer-muted: rgba(255, 255, 255, 0.62);
    --footer-accent: var(--brand-accent, #c59d5f);
    --footer-accent-soft: rgba(197, 157, 95, 0.14);
    --footer-border: rgba(255, 255, 255, 0.08);
    position: relative;
    margin-top: 3rem;
    background: var(--footer-bg);
    color: var(--footer-text);
}

.pre-footer-why ~ .site-footer,
.pre-footer-cta ~ .site-footer {
    margin-top: 0;
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.5rem 1rem 2.5rem;
}

@media (min-width: 1024px) {
    .site-footer__inner {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem 2rem;
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
        gap: 2rem 1.75rem;
    }
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

.site-footer__logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.site-footer__logo {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
    flex-shrink: 0;
}

.site-footer__brand-text {
    min-width: 0;
}

.site-footer__company-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.25;
}

.site-footer__tagline {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--footer-accent);
    letter-spacing: 0.02em;
}

.site-footer__description {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--footer-muted);
    max-width: 22rem;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    overflow: hidden;
    border-radius: 9999px;
    border: 1px solid rgba(197, 157, 95, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: var(--footer-accent);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-footer__social-link:hover {
    background: var(--footer-accent-soft);
    border-color: rgba(197, 157, 95, 0.65);
    transform: translateY(-1px);
}

.site-footer__social-icon,
.site-footer__social-link svg {
    display: block;
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem;
    max-height: 1rem;
    flex-shrink: 0;
    fill: currentColor;
}

.site-footer__social-text {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.site-footer__social-text--line {
    font-size: 0.58rem;
    letter-spacing: 0;
}

.site-footer__social-material {
    font-size: 1rem !important;
    line-height: 1;
}

.site-footer__copyright {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.site-footer__heading {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.site-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.site-footer__links a {
    color: var(--footer-muted);
    font-size: 0.875rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.site-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--footer-muted);
}

.site-footer__contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__contact-item a:hover {
    color: #fff;
}

.site-footer__contact-icon {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    color: var(--footer-accent);
    font-size: 1.15rem;
    line-height: 1;
}

.site-footer__newsletter-text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--footer-muted);
}

.site-footer__newsletter-message {
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
}

.site-footer__newsletter-message.is-success {
    color: #86efac;
}

.site-footer__newsletter-message.is-error {
    color: #fca5a5;
}

.site-footer__newsletter-form {
    display: grid;
    gap: 0.65rem;
}

.site-footer__newsletter-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.55rem;
    background: #fff;
    color: #0f172a;
    padding: 0.72rem 0.85rem;
    font-size: 0.875rem;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-footer__newsletter-input:focus {
    border-color: rgba(197, 157, 95, 0.65);
    box-shadow: 0 0 0 3px rgba(197, 157, 95, 0.18);
}

.site-footer__newsletter-submit {
    width: 100%;
    border: 0;
    border-radius: 0.55rem;
    background: var(--footer-accent);
    color: #fff;
    padding: 0.78rem 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.site-footer__newsletter-submit:hover:not(:disabled) {
    filter: brightness(1.05);
}

.site-footer__newsletter-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
    .site-footer {
        margin-top: 2rem;
    }

    .pre-footer-why ~ .site-footer,
    .pre-footer-cta ~ .site-footer {
        margin-top: 0;
    }

    .site-footer__inner {
        padding: 2.25rem 1rem 1.25rem;
    }

    .site-footer__grid {
        gap: 0;
    }

    /* Flatten brand so copyright can sit after newsletter */
    .site-footer__brand {
        display: contents;
    }

    .site-footer__logo-wrap {
        order: 1;
        padding-bottom: 1.25rem;
        border-bottom: 1px solid var(--footer-border);
    }

    .site-footer__description {
        order: 2;
        padding: 1.1rem 0;
        max-width: none;
        font-size: 0.84rem;
    }

    .site-footer__social {
        order: 3;
        padding-bottom: 1.25rem;
        margin-bottom: 0.25rem;
        border-bottom: 1px solid var(--footer-border);
    }

    .site-footer__copyright {
        order: 99;
        margin: 1.5rem 0 0;
        padding-top: 1.25rem;
        border-top: 1px solid var(--footer-border);
        font-size: 0.72rem;
        text-align: center;
    }

    .site-footer__col {
        order: 10;
        border-bottom: 1px solid var(--footer-border);
    }

    .site-footer__col--services {
        order: 11;
    }

    .site-footer__col--useful {
        order: 12;
    }

    .site-footer__col--contact {
        order: 13;
    }

    .site-footer__newsletter {
        order: 20;
        border-bottom: 0;
        padding-top: 0.35rem;
    }

    .site-footer__accordion {
        display: block;
    }

    .site-footer__accordion-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin: 0;
        padding: 1rem 0;
        list-style: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .site-footer__accordion-summary::-webkit-details-marker {
        display: none;
    }

    .site-footer__accordion-summary .site-footer__heading {
        margin: 0;
    }

    .site-footer__accordion-chevron {
        flex-shrink: 0;
        font-size: 1.35rem;
        line-height: 1;
        color: var(--footer-accent);
        transition: transform 0.2s ease;
    }

    .site-footer__accordion[open] .site-footer__accordion-chevron {
        transform: rotate(180deg);
    }

    .site-footer__accordion-body {
        padding-bottom: 1rem;
    }

    .site-footer__links {
        gap: 0;
    }

    .site-footer__links a {
        display: flex;
        align-items: center;
        min-height: 2.75rem;
        padding: 0.35rem 0;
        font-size: 0.9rem;
    }

    .site-footer__contact-list {
        gap: 0.15rem;
        padding-bottom: 0.25rem;
    }

    .site-footer__contact-item {
        min-height: 2.75rem;
        align-items: center;
        font-size: 0.9rem;
    }

    .site-footer__newsletter-text {
        margin-bottom: 0.85rem;
        font-size: 0.84rem;
    }

    .site-footer__newsletter-form {
        gap: 0.75rem;
    }

    .site-footer__newsletter-input {
        min-height: 2.85rem;
        font-size: 16px; /* prevent iOS zoom */
    }

    .site-footer__newsletter-submit {
        min-height: 2.85rem;
        padding: 0.85rem 1rem;
    }
}

@media (min-width: 1024px) {
    .site-footer__accordion > summary {
        list-style: none;
        pointer-events: none;
        cursor: default;
    }

    .site-footer__accordion > summary::-webkit-details-marker {
        display: none;
    }

    .site-footer__accordion-chevron {
        display: none;
    }
}
