.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.glass {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.glass-dark {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.text-gradient {
    background: linear-gradient(120deg, #0f6d63 0%, #1a8a7d 45%, #b98f43 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animated hamburger -> X */
.hamburger {
    position: relative;
    display: block;
    width: 22px;
    height: 16px;
}

.hamburger span {
    position: absolute;
    left: 0;
    height: 2px;
    width: 100%;
    background: #0a4b44;
    border-radius: 2px;
    transition: transform .35s cubic-bezier(.65, .05, .36, 1), opacity .2s ease, top .35s cubic-bezier(.65, .05, .36, 1);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 7px;
}

.hamburger span:nth-child(3) {
    top: 14px;
}

body.menu-open .hamburger span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

body.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}

body.menu-open .hamburger span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

/* Mobile menu panel + staggered links */
.mobile-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .menu-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}

.mobile-menu.is-open .menu-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.is-open .menu-item:nth-child(1) {
    transition-delay: .10s;
}

.mobile-menu.is-open .menu-item:nth-child(2) {
    transition-delay: .16s;
}

.mobile-menu.is-open .menu-item:nth-child(3) {
    transition-delay: .22s;
}

.mobile-menu.is-open .menu-item:nth-child(4) {
    transition-delay: .28s;
}

.mobile-menu.is-open .menu-item:nth-child(5) {
    transition-delay: .34s;
}

.mobile-menu.is-open .menu-item:nth-child(6) {
    transition-delay: .42s;
}

/* Scroll-reveal for smooth section transitions */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* Hero benefit bullets — scroll-driven highlight (one active at a time) */
.hero-bullet {
    margin-bottom: .6rem;
    opacity: 1;
    transition: opacity .45s ease;
}

.hero-bullet .hb-card {
    transition: background-color .45s ease, border-color .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease;
}

.hero-bullet .hb-icon {
    transition: background-color .45s ease, color .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}

.hero-bullet .hb-text {
    color: rgba(23, 35, 31, .62);
    transition: color .45s ease;
}

.hero-bullet.active {
    opacity: 1;
}

.hero-bullet.active .hb-card {
    background: rgba(15, 109, 99, 0.847);
    border-color: rgba(15, 109, 99, .22);
    transform: translateX(6px);
    box-shadow: 0 12px 32px -14px rgba(10, 75, 68, .28);
}

.hero-bullet.active .hb-icon {
    background: #ebfffd;
    color: #022d2a;
    transform: scale(1.2);
}

.hero-bullet.active .hb-text {
    color: #ffffff;
    font-weight: 500;
}

/* Sticky bottom registration bar */
.sticky-cta {
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
}

.sticky-cta.hide {
    transform: translateY(130%);
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        scroll-behavior: auto !important;
    }

    .mobile-menu,
    .mobile-menu .menu-item,
    .hamburger span {
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-bullet,
    .hero-bullet .hb-card,
    .hero-bullet .hb-icon,
    .hero-bullet .hb-text {
        transition-duration: .01ms !important;
    }

    .hero-bullet.active .hb-card {
        transform: none;
    }
}
