/* Public layout styles — extracted from public-layout.blade.php.
   Kept as a static stylesheet (not inline) so the Blade template stays small
   enough for Livewire's morph-aware compilation and so the CSS is cacheable. */

/* Partner logos sidebar */
.logos-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 120px;
    z-index: 40;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right: 1px solid #e2e8f0;
    overflow: hidden;
}
.logos-sidebar .sidebar-header {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
    background: #06325A;
}
.logos-sidebar .sidebar-header span {
    color: #C8A951;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
/* Viewport that masks the scrolling track */
.logos-viewport {
    position: relative;
    height: calc(100vh - 75px);
    overflow: hidden;
    /* Fade the top & bottom edges so logos appear/disappear softly */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
/* The track holds two copies of the logo list and scrolls up forever.
   Movement is driven by JS (based on a persistent timestamp) so it never
   resets across Livewire SPA navigations. */
.logos-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
    .logos-viewport { overflow-y: auto; }
}
.logo-slot {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background-color 0.2s;
}
.logo-slot:hover { background-color: rgba(6, 50, 90, 0.06); }
.logo-slot img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    transition: transform 0.25s ease;
    display: block;
    margin: 0 auto;
    filter: grayscale(35%);
    opacity: 0.9;
}
.logo-slot:hover img {
    transform: scale(1.12);
    filter: grayscale(0%);
    opacity: 1;
}
/* Floating name bubble (rendered at document level so it is never clipped) */
#logo-bubble {
    position: fixed;
    left: 0;
    top: 0;
    max-width: 220px;
    background: #06325A;
    color: #fff;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(6, 50, 90, 0.35);
}
#logo-bubble.is-visible {
    opacity: 1;
    transform: translateX(0);
}
/* Little arrow pointing left toward the logo */
#logo-bubble::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #06325A;
}

@media (min-width: 1024px) {
    .sidebar-offset { margin-left: 120px; }
}
@media (max-width: 1023px) {
    .logos-sidebar { display: none; }
}

/* ============ Animations & polish ============ */
html { scroll-behavior: smooth; }

/* Scroll-reveal: hidden until in view */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* Entrance keyframes (hero) */
@keyframes ge-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: none; }
}
@keyframes ge-fade-down {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes ge-zoom-in {
    from { opacity: 0; transform: scale(1.06); }
    to   { opacity: 1; transform: scale(1); }
}
.ge-anim-down { animation: ge-fade-down 0.8s cubic-bezier(0.16,1,0.3,1) both; }
.ge-anim-up   { animation: ge-fade-up 0.9s cubic-bezier(0.16,1,0.3,1) both; }
.ge-anim-zoom { animation: ge-zoom-in 1.4s ease-out both; }
.ge-delay-1 { animation-delay: 0.15s; }
.ge-delay-2 { animation-delay: 0.30s; }
.ge-delay-3 { animation-delay: 0.45s; }
.ge-delay-4 { animation-delay: 0.60s; }

/* Reusable hover lift for cards */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px -16px rgba(6, 50, 90, 0.35);
}

/* Animated gradient underline accent */
.accent-underline { position: relative; }

/* Back-to-top button */
#back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    width: 46px;
    height: 46px;
    border-radius: 9999px;
    background: #06325A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(6, 50, 90, 0.35);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}
#back-to-top:hover { background: #C8A951; transform: translateY(-3px); }

/* Nav link underline grow on hover */
.nav-underline { position: relative; }
.nav-underline::after {
    content: '';
    position: absolute;
    left: 12px; right: 12px; bottom: 6px;
    height: 2px;
    background: #C8A951;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-underline:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .ge-anim-up, .ge-anim-down, .ge-anim-zoom { animation: none !important; }
}
