/*
=====================================================================
AMIABLE USA - PREMIUM THEME (header, footer, language switcher)
Loaded after amiable-global.css on every page.
=====================================================================
*/

:root {
    --ux-ink: #0d1726;
    --ux-navy: #0a1424;
    --ux-navy-2: #111f36;
    --ux-ivory: #f7f4ee;
    --ux-stone: #ece6db;
    --ux-line: #e5dfd3;
    --ux-muted: #5b6676;
    --ux-red: #e11d25;
    --ux-red-deep: #a8121a;
    --ux-gold: #8bb32e; /* logo green (was gold #b8975a) */
    --ux-gold-soft: #bcd977; /* light logo green (was #d9c39a) */
    --ux-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --ux-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
    --ux-ease: cubic-bezier(.22, .61, .36, 1);
    --ux-wrap: 1440px;
    --amiable-header-h: 84px;
}

html.ux-nav-locked { overflow: hidden; }

/* Scroll reveal (data-rv is set by the footer script, removed after the animation) */
main { overflow-x: clip; }

[data-rv] {
    opacity: 0 !important;
    transform: translate3d(-70px, 0, 0) !important;
    transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.16, 1, .3, 1) !important;
    transition-delay: var(--rv-delay, 0s) !important;
}

[data-rv="right"] { transform: translate3d(70px, 0, 0) !important; }
[data-rv="up"] { transform: translate3d(0, 46px, 0) !important; }
[data-rv="down"] { transform: translate3d(0, -40px, 0) !important; }
[data-rv="zoom"] { transform: scale(.92) !important; }
@media (max-width: 640px) {
    [data-rv] { transform: translate3d(-36px, 0, 0) !important; }
    [data-rv="right"] { transform: translate3d(36px, 0, 0) !important; }
    [data-rv="up"] { transform: translate3d(0, 30px, 0) !important; }
    [data-rv="down"] { transform: translate3d(0, -26px, 0) !important; }
    [data-rv="zoom"] { transform: scale(.95) !important; }
}
@media (prefers-reduced-motion: reduce) {
    [data-rv] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
[data-rv].rv-in { opacity: 1 !important; transform: none !important; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ------------------------------------------------------------------
   HEADER
------------------------------------------------------------------ */

.ux-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(13, 23, 38, .07);
    font-family: var(--ux-sans);
    transition: box-shadow .35s var(--ux-ease), background .35s var(--ux-ease);
}

.ux-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ux-red) 0%, var(--ux-red) 18%, var(--ux-gold) 18%, var(--ux-gold) 19%, transparent 19%);
}

.ux-header.is-scrolled {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 34px rgba(10, 20, 36, .08);
}

.ux-header-inner {
    width: min(var(--ux-wrap), calc(100% - 48px));
    margin: 0 auto;
    min-height: var(--amiable-header-h);
    display: flex;
    align-items: center;
    gap: 28px;
    transition: min-height .35s var(--ux-ease);
}

.ux-header.is-scrolled .ux-header-inner { min-height: 70px; }

.ux-brand { flex: none; display: block; }
.ux-brand img { display: block; width: auto; height: 50px; transition: height .35s var(--ux-ease); }
.ux-header.is-scrolled .ux-brand img { height: 44px; }

.ux-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.ux-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 0;
    background: none;
    color: var(--ux-ink);
    font: 600 14.5px/1 var(--ux-sans);
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .25s var(--ux-ease);
}

.ux-nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--ux-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s var(--ux-ease);
}

.ux-nav-link:hover,
.ux-nav-link:focus-visible,
.ux-nav-link.is-active { color: var(--ux-red); outline: none; }

.ux-nav-link:hover::after,
.ux-nav-link:focus-visible::after,
.ux-nav-link.is-active::after { transform: scaleX(1); }

.ux-nav-link svg { width: 15px; height: 15px; transition: transform .3s var(--ux-ease); }
.ux-products.is-open .ux-products-trigger svg { transform: rotate(180deg); }

/* Products panel */
.ux-products { position: relative; }

.ux-products-panel {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    width: 560px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--ux-line);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(10, 20, 36, .16);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity .25s var(--ux-ease), transform .25s var(--ux-ease), visibility .25s;
}

.ux-products-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    height: 20px;
}

.ux-products.is-open .ux-products-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (hover: hover) and (min-width: 1181px) {
    .ux-products:hover .ux-products-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .ux-products:hover .ux-products-trigger svg { transform: rotate(180deg); }
}

.ux-product-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    color: var(--ux-ink);
    text-decoration: none;
    transition: background .25s var(--ux-ease);
}

.ux-product-item:hover,
.ux-product-item:focus-visible { background: var(--ux-ivory); outline: none; }

.ux-product-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--ux-ivory);
    border: 1px solid var(--ux-line);
    color: var(--ux-red);
    transition: background .25s var(--ux-ease), color .25s var(--ux-ease), border-color .25s var(--ux-ease);
}

.ux-product-icon svg { width: 22px; height: 22px; }
.ux-product-item:hover .ux-product-icon { background: var(--ux-red); border-color: var(--ux-red); color: #fff; }
.ux-product-title { font: 600 14px/1.35 var(--ux-sans); }
.ux-product-arrow { color: var(--ux-gold); transform: translateX(-4px); opacity: 0; transition: .25s var(--ux-ease); }
.ux-product-item:hover .ux-product-arrow { opacity: 1; transform: none; }

/* Actions */
.ux-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.ux-linkedin {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--ux-line);
    color: var(--ux-ink);
    transition: .25s var(--ux-ease);
}

.ux-linkedin svg { width: 16px; height: 16px; }
.ux-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }

.ux-lang { position: relative; }

.ux-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--ux-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ux-ink);
    font: 600 13.5px/1 var(--ux-sans);
    cursor: pointer;
    transition: border-color .25s var(--ux-ease);
}

.ux-lang-trigger:hover { border-color: var(--ux-gold); }
.ux-lang-trigger svg { width: 17px; height: 17px; flex: none; }
.ux-lang-trigger .ux-lang-chevron { width: 14px; height: 14px; }

.ux-lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 210px;
    max-height: 340px;
    overflow: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--ux-line);
    border-radius: 14px;
    box-shadow: 0 24px 56px rgba(10, 20, 36, .16);
}

.ux-lang-menu[hidden] { display: none; }

.ux-lang-menu button,
.ux-lang-float-menu button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--ux-ink);
    font: 500 14px/1.3 var(--ux-sans);
    text-align: left;
    cursor: pointer;
}

.ux-lang-menu button:hover,
.ux-lang-float-menu button:hover { background: var(--ux-ivory); color: var(--ux-red); }

/* Mobile toggle */
.ux-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--ux-navy);
    cursor: pointer;
    position: relative;
}

.ux-menu-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s var(--ux-ease), opacity .2s;
}

.ux-menu-toggle span:nth-child(1) { top: 15px; }
.ux-menu-toggle span:nth-child(2) { top: 21px; right: 18px; }
.ux-menu-toggle span:nth-child(3) { top: 27px; }
.ux-header.menu-open .ux-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ux-header.menu-open .ux-menu-toggle span:nth-child(2) { opacity: 0; }
.ux-header.menu-open .ux-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ux-nav-backdrop { display: none; }

@media (max-width: 1320px) {
    .ux-nav-link { padding: 10px 10px; font-size: 14px; }
    .ux-nav-link::after { left: 10px; right: 10px; }
}

@media (max-width: 1180px) {
    /* backdrop-filter would make the header the containing block for the fixed nav panel */
    .ux-header,
    .ux-header.is-scrolled { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .ux-menu-toggle { display: block; }
    .ux-actions { margin-left: auto; }

    .ux-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        width: min(380px, 88vw);
        margin: 0;
        padding: 96px 22px 32px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        background: #fff;
        box-shadow: -30px 0 60px rgba(10, 20, 36, .18);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .4s var(--ux-ease), visibility .4s;
    }

    .ux-header.menu-open .ux-nav { transform: none; visibility: visible; }
    .ux-header .ux-actions { position: relative; z-index: 3; }

    .ux-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1;
        background: rgba(10, 20, 36, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .35s var(--ux-ease), visibility .35s;
    }

    .ux-header.menu-open .ux-nav-backdrop { opacity: 1; visibility: visible; }

    .ux-nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 16px 4px;
        border-bottom: 1px solid var(--ux-line);
        font-size: 16px;
    }

    .ux-nav-link::after { left: 4px; right: auto; width: 26px; bottom: -1px; transform-origin: left; }

    .ux-products-panel {
        position: static;
        width: auto;
        grid-template-columns: 1fr;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s var(--ux-ease);
    }

    .ux-products.is-open .ux-products-panel { transform: none; max-height: 420px; padding: 8px 0; }
    .ux-products-panel::before { display: none; }
    .ux-product-item { padding: 10px 6px; }
    .ux-product-arrow { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
    .ux-header-inner { width: calc(100% - 32px); gap: 12px; }
    .ux-brand img, .ux-header.is-scrolled .ux-brand img { height: 38px; }
    .ux-lang-label, .ux-lang-trigger .ux-lang-chevron { display: none; }
    .ux-lang-trigger { width: 40px; padding: 0; justify-content: center; }
    .ux-actions { gap: 8px; }
}

/* ------------------------------------------------------------------
   CONTACT CTA BAND (above footer)
------------------------------------------------------------------ */

.ux-cta {
    position: relative;
    padding: 0 24px;
    background: linear-gradient(to bottom, transparent 50%, var(--ux-navy) 50%);
    font-family: var(--ux-sans);
}

.ux-cta-card {
    position: relative;
    overflow: hidden;
    width: min(var(--ux-wrap), 100%);
    margin: 0 auto;
    padding: 44px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px 40px;
    flex-wrap: wrap;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 90% -20%, rgba(255, 255, 255, .18), transparent 45%),
        linear-gradient(120deg, #c9141c 0%, #a8121a 55%, #7d0d13 100%);
    box-shadow: 0 30px 70px rgba(125, 13, 19, .3);
}

.ux-cta-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 22px);
    pointer-events: none;
}

.ux-cta-copy, .ux-cta-links { position: relative; z-index: 1; }

.ux-cta-kicker {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ux-cta-title {
    margin: 0;
    font: 500 clamp(28px, 3.4vw, 42px)/1.1 var(--ux-serif);
    letter-spacing: -.01em;
}

.ux-cta-links { display: flex; flex-wrap: wrap; gap: 12px; }

.ux-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px 10px 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, .06);
    transition: background .25s var(--ux-ease), color .25s var(--ux-ease), transform .25s var(--ux-ease);
}

.ux-cta-link:hover { background: #fff; color: var(--ux-red-deep); transform: translateY(-2px); }

.ux-cta-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--ux-red-deep);
}

.ux-cta-icon svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------ */

.ux-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(225, 29, 37, .12), transparent 36%),
        radial-gradient(circle at 100% 100%, rgba(184, 151, 90, .1), transparent 40%),
        var(--ux-navy);
    color: #b9c2cf;
    font-family: var(--ux-sans);
    font-size: 15px;
    line-height: 1.7;
}

.ux-footer-inner { width: min(var(--ux-wrap), calc(100% - 48px)); margin: 0 auto; }

.ux-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr .8fr 1.15fr;
    gap: 48px;
    padding: 84px 0 64px;
}

.ux-footer-brand > a { display: inline-block; margin-bottom: 26px; padding: 14px 20px; border-radius: 14px; background: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.ux-footer-logo { display: block; width: 190px; height: auto; }
.ux-footer-brand p { margin: 0; max-width: 380px; color: #a7b1be; }

.ux-footer-col h3 {
    margin: 6px 0 24px !important;
    color: var(--ux-gold-soft);
    font: 700 12.5px/1.2 var(--ux-sans) !important;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.ux-footer-col h3::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 14px;
    background: var(--ux-red);
}

.ux-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.ux-footer-col ul a {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    color: #d3d9e2;
    text-decoration: none;
    transition: color .25s var(--ux-ease), transform .25s var(--ux-ease);
}

/* Angle icon before each footer page link */
.ux-footer-col ul a::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid var(--ux-red);
    border-right: 1.5px solid var(--ux-red);
    transform: translateY(-1px) rotate(45deg);
    transition: border-color .25s var(--ux-ease);
}

.ux-footer-col ul a:hover { color: #fff; transform: translateX(4px); }
.ux-footer-col ul a:hover::before { border-color: var(--ux-gold-soft); }

.ux-office-line { display: flex; gap: 14px; margin: 0 0 18px; color: #d3d9e2; }
.ux-office-line a { color: #d3d9e2; text-decoration: none; }
.ux-office-line a:hover { color: #fff; }
.ux-sep { color: #4e5b6e; margin: 0 4px; }

.ux-office-icon {
    flex: none;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(217, 195, 154, .35);
    color: var(--ux-gold-soft);
}

.ux-office-icon svg { width: 16px; height: 16px; }

.ux-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }

.ux-footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    flex-wrap: wrap;
    padding: 22px 0;
    font-size: 13.5px;
    color: #8f9aaa;
}

.ux-footer-bottom-row strong { color: #fff; font-weight: 700; }
.ux-footer-bottom-row a { color: #d3d9e2; text-decoration: none; transition: color .2s; }
.ux-footer-bottom-row a:hover { color: var(--ux-red); }

.ux-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ux-legal a[aria-current="page"] { color: #fff; }

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

@media (max-width: 720px) {
    .ux-cta { padding: 0 16px; }
    .ux-cta-card { padding: 34px 26px; }
    .ux-cta-link { width: 100%; font-size: 15px; }
}

@media (max-width: 560px) {
    .ux-footer-inner { width: calc(100% - 32px); }
    .ux-footer-grid { grid-template-columns: 1fr; padding: 64px 0 44px; }
    .ux-footer-bottom-row { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------------
   FLOATING LANGUAGE SWITCHER
------------------------------------------------------------------ */

.ux-lang-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 990;
    font-family: var(--ux-sans);
}

.ux-lang-float-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(10, 20, 36, .9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font: 600 13.5px/1 var(--ux-sans);
    box-shadow: 0 14px 34px rgba(10, 20, 36, .28);
    cursor: pointer;
}

.ux-lang-float-current svg { width: 17px; height: 17px; }
.ux-lang-float-current .ux-lang-float-arrow { width: 13px; height: 13px; color: var(--ux-gold-soft); }

.ux-lang-float-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    min-width: 210px;
    max-height: 340px;
    overflow: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--ux-line);
    border-radius: 14px;
    box-shadow: 0 24px 56px rgba(10, 20, 36, .2);
}

.ux-lang-float-menu[hidden] { display: none; }

@media (max-width: 560px) {
    .ux-lang-float { left: 14px; bottom: 14px; }
    .ux-lang-float-current { height: 40px; padding: 0 13px; }
}
