html { scroll-behavior: smooth; }
.hero-section { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; background: #1a2a32; }
.hero-video,
.hero-fallback-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.hero-video { z-index: 1; }
.hero-fallback-img { z-index: 0; }
.hero-video.is-ready { opacity: 1; }
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.42) 0%,
        rgba(15, 23, 42, 0.22) 35%,
        rgba(15, 23, 42, 0.45) 58%,
        rgba(15, 23, 42, 0.72) 78%,
        rgba(15, 23, 42, 0.88) 100%
    );
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 6.5rem 1.5rem 6.5rem;
    max-width: 52rem;
}
.hero-content h1 {
    color: #fff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hero-content p {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, backdrop-filter .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(244,246,243,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(30,41,59,.06); }
.site-header .nav-link { color: #1e293b; transition: color .2s; }

.site-header.scrolled .nav-link, .site-header.scrolled .logo-text { color: #1e293b; }
.site-header .logo-text { text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.site-header.scrolled .logo-text { text-shadow: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.service-card { transition: transform .35s ease, box-shadow .35s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(13,148,136,.15); }
#back-to-top { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 40; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #0D9488; color: #fff; border: none; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; box-shadow: 0 4px 14px rgba(13,148,136,.35); }
#back-to-top.show { opacity: 1; visibility: visible; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; }
@media (max-width: 768px) {
    .hamburger { display: flex; color: #1e293b; }
    .site-header.scrolled .hamburger { color: #1e293b; }
    nav ul { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; background: rgba(244,246,243,.98); padding: 1rem 1.5rem; gap: .5rem; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
    nav ul.show { display: flex; }
    nav ul .nav-link { color: #1e293b !important; text-shadow: none; }
    .hero-content { padding: 5.5rem 1.25rem 5rem; }
}
/* Prefer still on reduced motion / data-saver; video hidden when not playable */
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
}
.hidden { display: none !important; }
.form-message:not(.hidden) { display: block; }