/* Hero decorative background */
.hero-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
}
.hero-pattern::after {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 800px; height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254,210,1,0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Nav scroll state – subtle shadow only, colour stays blue */
.nav-scrolled { box-shadow: 0 2px 16px rgba(0,9,148,0.18); }

/* Mobile nav */
@media (max-width: 1023px) {
    #navLinks { display: none; }
    #navLinks.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: #000994;
        z-index: 999;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 8px 32px rgba(0,0,0,0.25);
        padding: 4px 0;
    }
}

/* Nav link hover underline */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: #fed201;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
    border-radius: 2px;
}
.nav-link:hover::after { transform: scaleX(1); }

/* Service card top accent on hover */
.service-card { position: relative; overflow: hidden; }
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #000994;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s;
}
.service-card:hover::before { transform: scaleX(1); }

/* Burger animation */
.burger-open .burger-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-open .burger-bar:nth-child(2) { opacity: 0; }
.burger-open .burger-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero entrance animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeInDown 0.5s ease 0.1s both; }
.anim-2 { animation: fadeInDown 0.5s ease 0.22s both; }
.anim-3 { animation: fadeInDown 0.5s ease 0.34s both; }
.anim-4 { animation: fadeInDown 0.5s ease 0.46s both; }
.anim-5 { animation: fadeInDown 0.5s ease 0.58s both; }

/* Scroll fade-up */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Why grid mosaic */
.why-grid { gap: 2px; background: rgba(255,255,255,0.07); border-radius: 14px; overflow: hidden; }
.why-card  { background: rgba(0,9,148,0.55); transition: background 0.2s; }
.why-card:hover { background: rgba(255,255,255,0.06); }

/* Cookie consent banner slide-up / slide-down */
@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner { animation: cookieSlideUp 0.3s ease both; }
.cookie-banner--hide { animation: cookieSlideUp 0.3s ease reverse both; }

/* Calculator category button active state */
.calc-cat-btn.is-active {
    border-color: #000994;
    color: #000994;
    background: rgba(0,9,148,0.06);
}
