/* Visual polish on top of uzit-1.0.290_embed.min.css. Remove the <link> to get the original look back. */
:root {
    --navy: #04243c;
    --navy-2: #2a4c6b;
    --green: #a2c43a;
    --green-2: #c4dc6f;
    --grey: #f4f6f8;
    --shadow: 0 10px 30px rgba(4, 36, 60, .08);
    --shadow-lg: 0 18px 45px rgba(4, 36, 60, .16);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
/* original .wrap used overflow:auto to clear floats; that blocks position:sticky, flow-root clears floats without it */
.wrap { overflow: visible; display: flow-root; box-shadow: 0 0 40px rgba(4, 36, 60, .12); }

/* Sticky, frosted top nav */
.nav-top {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(4, 36, 60, .06), 0 6px 20px rgba(4, 36, 60, .05);
    border-bottom: 0;
}
.nav-top .link-default { position: relative; transition: color .2s; }
.nav-top .link-default::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-top .link-default:hover { color: var(--green); text-decoration: none; }
.nav-top .link-default:hover::after,
.nav-top .link-default.is-active::after { transform: scaleX(1); }

/* Buttons: pill shape with lift */
.btn { border-radius: 999px; padding: 10px 22px; transition: transform .2s, box-shadow .2s, background-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(162, 196, 58, .35); }
.nav-top .btn-primary { background: var(--green); color: #fff; line-height: normal; }
.nav-top .btn-primary:hover { background: var(--navy); box-shadow: 0 8px 20px rgba(4, 36, 60, .25); }

/* Homepage intro: soft gradient glow + floating illustration */
.intro { background: transparent; }
.intro::before {
    content: ""; position: absolute; inset: -40px -10vw 0; z-index: -1;
    background:
        radial-gradient(600px 300px at 15% 20%, rgba(162, 196, 58, .16), transparent 70%),
        radial-gradient(700px 400px at 85% 40%, rgba(142, 180, 203, .22), transparent 70%);
}
.intro h1 { letter-spacing: -.5px; }
.intro mark {
    background: linear-gradient(90deg, var(--green), #6fa83a);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro__image img { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Headings get a small green accent bar */
.content h1 { position: relative; padding-bottom: 18px; }
.content h1::after {
    content: ""; position: absolute; bottom: 0; left: 50%; width: 60px; height: 4px; margin-left: -30px;
    border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--green-2));
}

/* Service / product columns become cards (equal height) */
@media (min-width: 768px) {
    .row.offset-bottom-md { display: flex; flex-wrap: wrap; }
}
.row.offset-bottom-md > [class*="col-"] { margin-bottom: 30px; }
.row.offset-bottom-md > [class*="col-"]::before {
    content: ""; position: absolute; inset: 0 15px; z-index: -1;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.row.offset-bottom-md > [class*="col-"] { padding-top: 30px; padding-bottom: 20px; }
.row.offset-bottom-md > [class*="col-"] > *:not(img):not(a) { padding: 0 20px; }
.row.offset-bottom-md > [class*="col-"]:hover::before { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.row.offset-bottom-md img { transition: transform .4s ease; }
.row.offset-bottom-md > [class*="col-"]:hover img { transform: scale(1.08) rotate(-3deg); }
.content .container { position: relative; z-index: 0; }
.content:not(.content--alt) { background: linear-gradient(180deg, #fff, var(--grey)); }

/* Support step numbers */
.num {
    background: linear-gradient(135deg, var(--green), #6fa83a); color: #fff;
    box-shadow: 0 10px 25px rgba(162, 196, 58, .4);
}

/* Call-to-action band: dark navy gradient */
.content--alt.content--whitespace {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.content--alt.content--whitespace::before {
    content: ""; position: absolute; width: 500px; height: 500px; right: -150px; top: -200px;
    border-radius: 50%; background: radial-gradient(circle, rgba(162, 196, 58, .35), transparent 70%);
}
.content--alt.content--whitespace .content__inner { position: relative; border-bottom: 0; }
.content--alt.content--whitespace h2 { color: #fff; opacity: .85; }
.content--alt.content--whitespace a.huge { color: var(--green); display: inline-block; transition: transform .25s, letter-spacing .25s; }
.content--alt.content--whitespace a.huge:hover { border-bottom: 0; transform: scale(1.04); letter-spacing: 2px; }

/* Footer */
.footer { background: #031a2c; color: rgba(255, 255, 255, .7); }
.footer a { color: rgba(255, 255, 255, .8); }
.footer a:hover { color: var(--green); }
.footer__left img { filter: brightness(0) invert(1); opacity: .8; }

/* Images on Loxone / contact pages */
.content img.img-responsive-max, .content > .container > img { border-radius: 12px; }

/* Scroll reveal (browsers that support scroll-driven animations; others just show content) */
@supports (animation-timeline: view()) {
    .content .container > *, .row > [class*="col-"] {
        animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
    }
    @keyframes reveal { from { opacity: 0; transform: translateY(30px); } }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
