/*
 * Stacksole footer: base styles + premium/responsive layer.
 *
 * Part 1 is the footer's base CSS. It used to live inside the Elementor
 * "Footer Five" template (post 5489), but the <style> tag around it was
 * stripped on save, so the CSS printed on the page as text. It now lives
 * here, where it can't be stripped.
 *
 * Part 2 (further down) is the premium + responsive layer. Every rule there
 * is scoped to `.site-footer .ss-footer` so it out-ranks Part 1.
 */

/* =====================================================================
   PART 1: BASE FOOTER STYLES (moved out of the template's HTML widget)
   ===================================================================== */
.site-footer { padding: 0 !important; margin: 0 !important; background: transparent !important; }
.site-footer > .elementor { width: 100%; }

.ss-footer {
    --ss-blue: #1269E8;
    --ss-blue-dark: #0B4DB8;
    --ss-bg: #07111f;
    --ss-border: rgba(255,255,255,.10);
    --ss-text: #f4f7fb;
    --ss-muted: #9aa8ba;
    background:
        radial-gradient(circle at 12% 0%, rgba(18,105,232,.14), transparent 32%),
        radial-gradient(circle at 88% 10%, rgba(18,105,232,.08), transparent 28%),
        var(--ss-bg);
    color: var(--ss-text);
    font-family: inherit;
    width: 100%;
}

.ss-footer *, .ss-footer *::before, .ss-footer *::after { box-sizing: border-box; }

.ss-footer-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.ss-footer-trust {
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--ss-border);
}

.ss-trust-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 24px;
    color: #8fa0b4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.ss-trust-line {
    width: 48px;
    height: 1px;
    background: rgba(255,255,255,.16);
}

.ss-trust-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ss-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.ss-trust-item:hover {
    transform: translateY(-2px);
    border-color: rgba(18,105,232,.35);
    background: rgba(18,105,232,.07);
}

.ss-trust-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(18,105,232,.12);
    border: 1px solid rgba(18,105,232,.22);
    color: #7db8ff;
    font-size: 11px;
    font-weight: 800;
}

.ss-trust-item strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.ss-trust-item span {
    display: block;
    color: var(--ss-muted);
    font-size: 12px;
    line-height: 1.45;
}

.ss-footer-main { padding: 52px 0 40px; }

.ss-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.9fr 1.35fr;
    gap: 40px;
    align-items: start;
}

.ss-footer-logo {
    display: inline-block;
    margin-bottom: 18px;
    text-decoration: none;
}

.ss-footer-logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    /* The logo is a black-on-white JPG (no transparency). A plain brightness(0) invert(1)
       turns every pixel white, which draws a solid white bar. Instead: invert so the
       white background goes black and the lettering goes white, hue-rotate so the blue
       diamond stays blue, and screen-blend so the black disappears into the footer. */
    filter: invert(1) hue-rotate(180deg);
    mix-blend-mode: screen;
}

.ss-footer-description {
    max-width: 380px;
    margin: 0 0 22px;
    color: var(--ss-muted);
    font-size: 14px;
    line-height: 1.75;
}

.ss-footer-contact {
    display: grid;
    gap: 12px;
}

.ss-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e4ebf3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease;
}

.ss-contact-item:hover { color: #fff; }

.ss-contact-item small {
    display: block;
    margin-bottom: 2px;
    color: #7d8da3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.ss-contact-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: #7db8ff;
}

.ss-contact-icon svg { width: 18px; height: 18px; }

.ss-footer-social { margin-top: 24px; }

.ss-social-title {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
}

.ss-social-list { display: flex; gap: 10px; flex-wrap: wrap; }

.ss-social-list a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: #a8b6c7;
    text-decoration: none;
    transition: all .22s ease;
}

.ss-social-list a:hover {
    background: var(--ss-blue);
    border-color: var(--ss-blue);
    color: #fff;
    transform: translateY(-2px);
}

.ss-social-list svg { width: 17px; height: 17px; }

.ss-footer-heading {
    margin: 0 0 18px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.1px;
}

.ss-desktop-links {
    display: grid;
    gap: 12px;
}

.ss-desktop-links a,
.ss-footer-links a {
    color: var(--ss-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    transition: color .2s ease, transform .2s ease;
}

.ss-desktop-links a:hover,
.ss-footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

.ss-footer-accordion { display: none; }

.ss-footer-accordion summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding: 16px 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--ss-border);
}

.ss-footer-accordion summary::-webkit-details-marker { display: none; }

.ss-footer-accordion summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #8fa0b4;
    font-size: 18px;
    font-weight: 400;
}

.ss-footer-accordion[open] summary::after {
    content: "−";
    color: #fff;
    background: rgba(18,105,232,.18);
}

.ss-footer-links {
    display: grid;
    gap: 0;
    padding: 8px 0 4px;
}

.ss-footer-links a {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.ss-office-grid {
    display: grid;
    gap: 14px;
}

.ss-office-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    transition: border-color .25s ease, background .25s ease;
}

.ss-office-card:hover {
    border-color: rgba(18,105,232,.32);
    background: rgba(18,105,232,.06);
}

.ss-office-flag {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    font-size: 22px;
}

.ss-office-content { min-width: 0; flex: 1; }

.ss-office-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ss-office-country {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ss-office-badge {
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(18,105,232,.14);
    color: #7db8ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
}

.ss-office-label {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.ss-office-card address {
    margin: 8px 0 0;
    color: var(--ss-muted);
    font-size: 12px;
    line-height: 1.65;
    font-style: normal;
}

.ss-footer-bottom { border-top: 1px solid var(--ss-border); }

.ss-footer-bottom-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.ss-footer-bottom p {
    margin: 0;
    color: #7b8b9f;
    font-size: 12px;
    line-height: 1.5;
}

.ss-footer-bottom p strong { color: #a8b6c7; }

.ss-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #5f7084;
    font-size: 12px;
}

.ss-footer-bottom-links a {
    color: #8b9aad;
    text-decoration: none;
    transition: color .2s ease;
}

.ss-footer-bottom-links a:hover { color: #fff; }

@media (max-width: 1100px) {
    .ss-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .ss-footer-company { grid-column: 1 / -1; }
    .ss-footer-locations { grid-column: 1 / -1; }
    .ss-office-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .ss-footer-container { width: min(100% - 32px, 100%); }
    .ss-footer-trust { padding: 28px 0 22px; }
    .ss-trust-items { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ss-trust-item { min-height: 64px; padding: 12px; gap: 10px; }
    .ss-trust-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: 10px; }
    .ss-trust-item strong { font-size: 12px; }
    .ss-trust-item span { font-size: 11px; }
    .ss-footer-main { padding: 36px 0 24px; }
    .ss-footer-grid { display: block; }
    .ss-footer-company {
        padding-bottom: 22px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--ss-border);
    }
    .ss-footer-description { max-width: none; font-size: 13px; }
    .ss-desktop-heading, .ss-desktop-links { display: none !important; }
    .ss-footer-accordion { display: block; }
    .ss-footer-locations { padding-top: 6px; }
    .ss-footer-locations > .ss-footer-heading { margin: 18px 0 14px; }
    .ss-office-grid { grid-template-columns: 1fr; }
    .ss-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 16px 0;
    }
}

@media (max-width: 480px) {
    .ss-trust-items { grid-template-columns: 1fr; }
    .ss-trust-heading { font-size: 10px; letter-spacing: 1.6px; }
    .ss-footer-logo img { height: 34px; }
}

/* =====================================================================
   PART 2: PREMIUM + RESPONSIVE LAYER
   ===================================================================== */

/* ---------- Base: depth, texture, rendering ---------- */
.site-footer .ss-footer {
	--ss-blue-soft: #7db8ff;
	--ss-glow: rgba(18, 105, 232, .45);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Hairline glow along the top edge */
.site-footer .ss-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(125, 184, 255, .7) 50%, transparent);
	z-index: 1;
	pointer-events: none;
}

/* Faint blueprint grid that fades out toward the middle */
.site-footer .ss-footer::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent 75%);
	pointer-events: none;
}

/* Fluid side gutters (never below 16px each side, never above 32px) */
.site-footer .ss-footer .ss-footer-container {
	width: min(1240px, calc(100% - clamp(32px, 6vw, 64px)));
}

/* ---------- Logo ---------- */
/* The HTML hard-codes 160x40, but the real logo is ~5.75:1, so size it by width. */
.site-footer .ss-footer .ss-footer-logo img {
	width: 200px;
	max-width: 100%;
	height: auto;
}

@media (max-width: 480px) {
	.site-footer .ss-footer .ss-footer-logo img {
		width: 176px;
	}
}

/* ---------- Trust bar ---------- */
.site-footer .ss-footer .ss-footer-trust {
	background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent);
}

.site-footer .ss-footer .ss-trust-line {
	background: linear-gradient(90deg, transparent, rgba(125, 184, 255, .45));
}

.site-footer .ss-footer .ss-trust-line:last-child {
	transform: scaleX(-1);
}

.site-footer .ss-footer .ss-trust-item {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.site-footer .ss-footer .ss-trust-item:hover {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 32px -16px var(--ss-glow);
}

.site-footer .ss-footer .ss-trust-icon {
	background: linear-gradient(135deg, rgba(18, 105, 232, .3), rgba(18, 105, 232, .08));
}

/* ---------- Headings ---------- */
.site-footer .ss-footer .ss-footer-heading {
	position: relative;
	padding-bottom: 14px;
	letter-spacing: .01em;
}

.site-footer .ss-footer .ss-footer-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, #1269e8, var(--ss-blue-soft));
}

/* ---------- Links ---------- */
.site-footer .ss-footer .ss-desktop-links a {
	display: block;
	width: fit-content;
	padding-bottom: 2px;
	/* !important: the site's Additional CSS pins these links to 13px with !important */
	font-size: 14px !important;
	background: linear-gradient(var(--ss-blue-soft), var(--ss-blue-soft)) 0 100% / 0 1px no-repeat;
	transition: color .2s ease, transform .2s ease, background-size .3s ease;
}

.site-footer .ss-footer .ss-desktop-links a:hover {
	background-size: 100% 1px;
}

.site-footer .ss-footer .ss-footer-bottom-links a {
	transition: color .2s ease;
}

/* Keyboard focus that is actually visible */
.site-footer .ss-footer a:focus-visible,
.site-footer .ss-footer summary:focus-visible {
	outline: 2px solid var(--ss-blue-soft);
	outline-offset: 3px;
	border-radius: 6px;
}

/* ---------- Contact + social ---------- */
.site-footer .ss-footer .ss-contact-item:hover .ss-contact-icon {
	background: rgba(18, 105, 232, .16);
	border-color: rgba(18, 105, 232, .4);
}

.site-footer .ss-footer .ss-social-list a:hover {
	box-shadow: 0 10px 22px -10px var(--ss-glow);
}

/*
 * The icon tiles render empty in the template's markup, so draw the icons
 * with CSS masks. The :not(:has(svg)) guard means this steps aside
 * automatically if real inline SVGs are ever added back to the template.
 */
.site-footer .ss-footer .ss-contact-icon:not(:has(svg))::before,
.site-footer .ss-footer .ss-social-list a:not(:has(svg))::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: var(--ss-icon) center / contain no-repeat;
	mask: var(--ss-icon) center / contain no-repeat;
}

.site-footer .ss-footer .ss-contact-item:not([href^="tel:"]) .ss-contact-icon {
	--ss-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.site-footer .ss-footer .ss-contact-item[href^="tel:"] .ss-contact-icon {
	--ss-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.site-footer .ss-footer .ss-social-list a[aria-label="Facebook"] {
	--ss-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E");
}

.site-footer .ss-footer .ss-social-list a[aria-label="Instagram"] {
	--ss-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cpath d='M17.5 6.5h.01'/%3E%3C/svg%3E");
}

.site-footer .ss-footer .ss-social-list a[aria-label="LinkedIn"] {
	--ss-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E");
}

/* ---------- Office cards ---------- */
.site-footer .ss-footer .ss-office-card {
	background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
	transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.site-footer .ss-footer .ss-office-card:hover {
	transform: translateY(-2px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 34px -18px var(--ss-glow);
}

.site-footer .ss-footer .ss-office-flag {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.site-footer .ss-footer .ss-office-card address {
	/* !important: the site's Additional CSS pins addresses to 12px with !important */
	font-size: 13px !important;
}

/* Small caption text was ~4.4:1; lift it for readability */
.site-footer .ss-footer .ss-office-label {
	color: #8a9bb0;
}

/* ---------- Bottom bar ---------- */
.site-footer .ss-footer .ss-footer-bottom {
	background: rgba(0, 0, 0, .18);
	padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ---------- Tablet and below: trust cards go 2 x 2 ---------- */
/* The template keeps four columns down to 768px, which is cramped at tablet widths. */
@media (max-width: 1024px) {
	.site-footer .ss-footer .ss-trust-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Phones: compact stacked tiles instead of four long rows ---------- */
@media (max-width: 480px) {
	.site-footer .ss-footer .ss-trust-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: 14px;
	}
}

/* ---------- Respect reduced-motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	.site-footer .ss-footer *,
	.site-footer .ss-footer *::before,
	.site-footer .ss-footer *::after {
		transition: none !important;
		animation: none !important;
	}

	.site-footer .ss-footer .ss-trust-item:hover,
	.site-footer .ss-footer .ss-office-card:hover,
	.site-footer .ss-footer .ss-social-list a:hover,
	.site-footer .ss-footer .ss-desktop-links a:hover {
		transform: none !important;
	}
}
