html {
    scroll-behavior: smooth;
}

.btn-red {
    background: linear-gradient(135deg, #B91C1C 0%, #8b1515 100%);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-red:hover {
    background: linear-gradient(135deg, #8b1515 0%, #B91C1C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
}

.heroSwiper .hero-slide-image {
    transform: scale(1.1);
    transition: transform 1s cubic-bezier(0.2, 0.65, 0.3, 1);
    will-change: transform;
}

.heroSwiper .swiper-slide-active .hero-slide-image {
    animation: hero-image-zoom-out 5s cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

@keyframes hero-image-zoom-out {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: #fff;
}

.gallery-lightbox:not([open]) {
    display: none;
}

.gallery-lightbox[open] {
    animation: gallery-lightbox-enter 0.22s ease-out both;
}

.gallery-lightbox::backdrop {
    background: rgba(3, 8, 16, 0.94);
    backdrop-filter: blur(6px);
}

.gallery-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    display: none;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.58);
    color: #fff;
    backdrop-filter: blur(8px);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox[open] .gallery-lightbox-close,
.gallery-lightbox[open] .gallery-lightbox-prev,
.gallery-lightbox[open] .gallery-lightbox-next {
    display: inline-flex;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: #B91C1C;
}

.gallery-lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.125rem;
}

.gallery-lightbox-prev {
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
}

.gallery-lightbox-prev:hover {
    transform: translateY(-50%);
}

.gallery-lightbox-next {
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
}

.gallery-lightbox-next:hover {
    transform: translateY(-50%);
}

@media (max-width: 639px) {
    .gallery-lightbox {
        width: 100vw;
        height: 100vh;
    }

    .gallery-lightbox-prev {
        left: 0.75rem;
    }

    .gallery-lightbox-next {
        right: 0.75rem;
    }

    .gallery-lightbox-close {
        top: 1rem;
        right: 1rem;
    }
}

@keyframes gallery-lightbox-enter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.offcanvas-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(5, 12, 23, 0.68);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.offcanvas-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.offcanvas-panel {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 70;
    width: min(420px, 90vw);
    overflow-y: auto;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -16px 0 48px rgba(5, 12, 23, 0.2);
}

.offcanvas-panel.is-open {
    transform: translateX(0);
}

body.menu-open {
    overflow: hidden;
}

.team-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 480 / 575;
    object-fit: contain;
    background-color: #f3f4f6;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-hero-copy {
    animation: page-hero-enter 0.75s ease-out both;
}

.interactive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.interactive-card.interactive-card:hover {
    transform: translateY(-6px);
    border-color: rgba(185, 28, 28, 0.28);
    box-shadow: 0 18px 32px rgba(5, 12, 23, 0.12);
}

.team-member-card .team-placeholder {
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.team-member-card.interactive-card:hover .team-placeholder {
    border-color: rgba(212, 175, 55, 0.65);
}

.team-member-card h3 {
    transition: color 0.25s ease;
}

.team-member-card.interactive-card:hover h3 {
    color: #B91C1C;
}

@keyframes page-hero-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }

    .heroSwiper .hero-slide-image {
        transform: none;
        animation: none;
        transition: none;
        will-change: auto;
    }
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: -1rem;
    z-index: 80;
    display: none;
    min-width: 250px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: 0 16px 32px rgba(5, 12, 23, 0.16);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-link {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: 0.25rem;
    color: #0B192C;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus {
    color: #B91C1C;
    background: #f3f4f6;
}
