html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.hero-background {
    background-image: url('../../assets/images/hero-bg.webp');
    mix-blend-mode: luminosity;
    /* Slow, gentle drift: the photo zooms and pans a little, back and forth */
    animation: hero-drift 28s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes hero-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

/* Hero text fades up one piece at a time on page load.
   Uses the separate `translate` property so it never clashes with the badge's tilt. */
.hero-copy > * {
    animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.10s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.40s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.55s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.70s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.85s; }

@keyframes hero-rise {
    from { opacity: 0; translate: 0 18px; }
    to   { opacity: 1; translate: 0 0; }
}

/* Phones and tablets: show the whole photo as a banner at the top of the hero (not cropped),
   tinted blue like on desktop and fading smoothly into the blue where the text starts
   (the fade begins low, at 78% of the photo's height, so most of the picture stays clear). */
@media (max-width: 1023px) {
    .hero-background { background-image: url('../../assets/images/hero-bg-mobile.webp'); }
    .hero-section { padding-top: calc(100vw * 768 / 1376 - 1.25rem) !important; }
    .hero-background {
        bottom: auto !important;
        height: auto !important;
        aspect-ratio: 1376 / 768;
        opacity: 0.6 !important;   /* same blue-tinted look as desktop, a little stronger so the photo reads */
        animation: none;
        -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    }
}

/* Visitors who ask their device for less motion get a still hero */
@media (prefers-reduced-motion: reduce) {
    .hero-background, .hero-copy > * { animation: none; }
}

.welcome-marquee {
    animation: welcome-marquee 14s linear infinite;
    will-change: transform, opacity;
}

.welcome-marquee:hover {
    animation-play-state: paused;
    color:azure;
    cursor: pointer;
}

@keyframes welcome-marquee {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-marquee {
        animation: none;
    }
}

.badge-polygon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.flag-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.15));
}

/* Base state transition (smooth hover in & out) */
.trust-item i {
    transition: transform 0.3s ease;
}

/* Transform state on hover */
.trust-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 767px) {
    body {
        padding-bottom: 4rem;
    }
}
/* Eyebrow labels above section titles: a slightly deeper blue so the small text is easy to read on the light grey background */
.text-eyebrow-blue { color: #0063B8; }

