.site-header-container {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.site-header-row {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-header-brand {
    flex: 0 0 auto;
    display: inline-flex;
    border-radius: 9999px;
}

.site-header-navigation {
    flex: 0 0 auto;
}

.header-mobile-navigation {
    display: block;
}

.site-header-actions {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 0.125rem;
    direction: rtl;
}

.header-icon-button {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid transparent;
    border-radius: 9999px;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-icon-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.header-icon-button:focus-visible,
.site-header-brand:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.header-icon-button svg,
.header-menu-button svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke-width: 1.8;
}

.header-account-button {
    width: 2.5rem;
}

.header-account-label {
    display: none;
    white-space: nowrap;
}

.site-header-badge {
    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.9);
}

.desktop-header-nav > a,
.desktop-header-nav > div > button {
    position: relative;
}

.desktop-header-nav {
    gap: 1rem;
    white-space: nowrap;
}

.desktop-header-nav > a::after,
.desktop-header-nav > div > button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.25rem;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 180ms ease;
}

.desktop-header-nav > a:hover::after,
.desktop-header-nav > div > button:hover::after {
    width: 100%;
}

@media (min-width: 640px) {
    .site-header-container {
        padding-inline: 1.5rem;
    }

    .site-header-actions {
        gap: 0.25rem;
    }
}

@media (min-width: 960px) {
    .site-header-row {
        min-height: 5rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        column-gap: 1rem;
        direction: rtl;
    }

    .site-header-brand {
        grid-column: 1;
        justify-self: start;
    }

    .site-header-navigation {
        grid-column: 2;
        justify-self: center;
    }

    .desktop-header-nav {
        display: flex;
    }

    .header-mobile-navigation {
        display: none;
    }

    .site-header-actions {
        grid-column: 3;
        justify-self: end;
        margin-inline-start: 0;
    }
}

@media (min-width: 960px) and (max-width: 1199px) {
    .site-header-row {
        column-gap: 1rem;
    }

    .desktop-header-nav {
        gap: 1rem;
        font-size: .9rem;
    }

    .header-icon-button,
    .header-account-button {
        width: 2.35rem;
        height: 2.35rem;
    }
}

@media (min-width: 1024px) {
    .site-header-container {
        padding-inline: 2rem;
    }

    .site-header-row {
        column-gap: 1.5rem;
    }

    .site-header-actions {
        gap: 0.375rem;
    }

    .desktop-header-nav {
        gap: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .header-account-button {
        width: auto;
        min-width: 2.5rem;
        padding-inline: 0.7rem;
        gap: 0.45rem;
    }

    .header-account-label {
        display: inline;
    }
}

@media (max-width: 390px) {
    .site-header-container {
        padding-inline: 0.625rem;
    }

    .site-header-row {
        gap: 0;
    }

    .header-icon-button,
    .header-account-button {
        width: 2.25rem;
        height: 2.25rem;
    }
}

.site-footer { color: #334155; }
.site-footer-rule { height: 1px; background: #334155; }
.site-footer-inner { padding-top: 1.75rem; padding-bottom: 1.25rem; }
.site-footer-main { display: grid; grid-template-columns: minmax(12rem, .9fr) minmax(0, 2fr) 7rem; align-items: center; gap: 2rem; }
.site-footer-brand { display: inline-flex; align-items: center; gap: .875rem; width: fit-content; }
.site-footer-logo { width: 4.5rem; height: 4.5rem; flex: none; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(15, 23, 42, .1)); }
.site-footer-brand-copy { display: grid; gap: .2rem; }
.site-footer-brand-copy strong { color: #0f172a; font-size: 1.05rem; }
.site-footer-brand-copy span { color: #64748b; font-size: .75rem; }
.site-footer-contact-grid { display: grid; grid-template-columns: minmax(10rem, .75fr) minmax(14rem, 1.25fr); gap: 1.5rem; padding-inline: 2rem; border-inline: 0; }

.site-footer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    line-height: 1.6;
    padding: .25rem 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    transition: color 180ms ease;
}

.site-footer-item:hover { border-color: transparent; box-shadow: none; transform: none; }
.site-footer-item-copy { display: grid; min-width: 0; }
.site-footer-label { color: #64748b; font-size: .72rem; }
.site-footer-item-copy a { color: #1e293b; overflow-wrap: anywhere; transition: color 160ms ease; }
.site-footer-item-copy a:hover { color: #000; }
.site-footer-channel { color: #1e293b; transition: color 160ms ease; }
.site-footer-channel:hover { color: #000; }

.site-footer-icon-shell {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.25rem;
    color: #fff;
    background: #0f172a;
    border: 1px solid #0f172a;
    border-radius: 9999px;
}

.site-footer-icon-shell svg {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 1.8;
}

.site-footer-social-link {
    color: #475569;
    transition: color 160ms ease, transform 160ms ease;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.site-footer-social-link:hover {
    color: #0f172a;
    transform: translateY(-1px);
}

.site-footer-social-link:hover .site-footer-icon-shell {
    color: #fff;
    background: #334155;
    border-color: #334155;
}

.site-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.5rem; padding-top: 0; border-top: 0; font-size: .8rem; }
.site-footer-socials, .site-footer-legal { display: flex; align-items: center; gap: 1rem; }
.site-footer-legal { color: #64748b; direction: ltr; unicode-bidi: isolate; }
.site-footer-copyright { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: .3rem; direction: ltr; unicode-bidi: isolate; isolation: isolate; white-space: nowrap; }
.site-footer-legal a:not(.site-footer-trust) { text-decoration: underline; text-underline-offset: 3px; }
.site-footer-policy-links { display: flex; align-items: center; gap: .75rem; color: #64748b; direction: rtl; white-space: nowrap; }
.site-footer-policy-links a { text-decoration: underline; text-underline-offset: 3px; transition: color 160ms ease; }
.site-footer-policy-links a:hover { color: #0f172a; }
.site-footer-trust-wrap { display: grid; justify-items: center; gap: .35rem; color: #64748b; font-size: .68rem; text-align: center; }
.site-footer-trust { position: relative; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; }
.site-footer-trust-fallback { display: grid; place-items: center; gap: .15rem; width: 4rem; height: 4rem; color: #0f172a; border: 1px solid #cbd5e1; border-radius: .75rem; background: #fff; }
.site-footer-trust-fallback svg { width: 1.45rem; height: 1.45rem; }
.site-footer-trust-fallback strong { font-size: .65rem; }
.site-footer-trust img { position: absolute; inset: .25rem; display: block; width: 4rem; height: 4rem; object-fit: contain; }

@media (min-width: 768px) and (max-width: 1023px) {
    .site-footer-main { grid-template-columns: 1fr auto; gap: 1.5rem; }
    .site-footer-contact-grid { grid-column: 1 / -1; grid-row: 2; padding-inline: 0; padding-top: 1.25rem; border-inline: 0; border-top: 1px solid #e2e8f0; }
}

@media (max-width: 767px) {
    .site-footer-inner { padding-top: 1.5rem; }
    .site-footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
    .site-footer-brand { margin-inline: auto; text-align: right; }
    .site-footer-contact-grid { grid-template-columns: 1fr; width: 100%; gap: 1rem; padding-inline: 0; padding-block: 1.25rem; border-inline: 0; border-block: 1px solid #e2e8f0; }
    .site-footer-address { align-items: flex-start; }
    .site-footer-bottom { flex-direction: column; text-align: center; }
    .site-footer-legal { gap: .625rem; }
    .site-footer-trust-wrap { grid-template-columns: auto auto; align-items: center; justify-content: center; }
}

@media (max-width: 359px) {
    .site-footer-brand-copy { display: none; }
    .site-footer-item { padding: .75rem; }
    .site-footer-socials { gap: .75rem; }
}

/* Compact, single-row footer.
   Keep this for genuinely wide screens only; at laptop widths the combined
   brand, contact details and legal links cannot fit without being clipped. */
@media (min-width: 1440px) {
    .site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 2vw, 2rem); padding-top: 1.25rem; padding-bottom: 1.25rem; }
    .site-footer-main { display: flex; align-items: center; flex: 1 1 auto; gap: clamp(.9rem, 1.7vw, 1.75rem); min-width: 0; }
    .site-footer-brand { flex: 0 0 auto; gap: .625rem; }
    .site-footer-logo { width: 3.25rem; height: 3.25rem; }
    .site-footer-brand-copy strong { font-size: .875rem; white-space: nowrap; }
    .site-footer-contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; flex: 1 1 auto; gap: clamp(.55rem, 1vw, 1rem); min-width: 0; padding-inline: clamp(.4rem, .8vw, .75rem); border-inline: 0; }
    .site-footer-item { width: 100%; justify-content: center; padding-inline: clamp(.45rem, .8vw, .8rem); font-size: .8rem; white-space: nowrap; }
    .site-footer-contact-grid > .site-footer-item + .site-footer-item { border-inline-start: 0; }
    .site-footer-address { min-width: 0; }
    .site-footer-address a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .site-footer-icon-shell { width: 2rem; height: 2rem; flex-basis: 2rem; }
    .site-footer-icon-shell svg { width: 1rem; height: 1rem; }
    .site-footer-trust-wrap { flex: 0 0 auto; display: block; }
    .site-footer-trust { width: 3.25rem; height: 3.25rem; }
    .site-footer-trust-fallback { width: 3.25rem; height: 3.25rem; border-radius: .65rem; }
    .site-footer-trust-fallback svg { width: 1.15rem; height: 1.15rem; }
    .site-footer-trust img { inset: 0; width: 3.25rem; height: 3.25rem; }
    .site-footer-bottom { flex: 0 0 auto; margin: 0; padding: 0; gap: .9rem; white-space: nowrap; }
    .site-footer-socials { gap: .4rem; }
    .site-footer-social-link .site-footer-icon-shell { width: 2rem; height: 2rem; flex-basis: 2rem; }
    .site-footer-legal { font-size: .7rem; }
}

@media (max-width: 1023px) {
    .site-footer-main { grid-template-columns: 1fr auto; gap: 1rem; }
    .site-footer-brand { margin-inline: 0; }
    .site-footer-contact-grid { grid-column: 1 / -1; grid-row: 2; }
    .site-footer-bottom { justify-content: center; }
}

@media (max-width: 639px) {
    .site-footer-inner { padding-inline: 1rem; }
    .site-footer-logo { width: 3.25rem; height: 3.25rem; }
    .site-footer-brand-copy strong { font-size: .875rem; }
    .site-footer-contact-grid { padding-block: 1rem; }
    .site-footer-item { font-size: .8rem; }
    .site-footer-bottom { flex-direction: row; flex-wrap: wrap; justify-content: space-between; width: 100%; gap: .75rem 1rem; }
    .site-footer-socials { gap: .5rem; }
    .site-footer-legal { width: 100%; justify-content: center; font-size: .7rem; }
}
