/* =============================================
   style.css — Perceive-RD
   Critical structural CSS loaded BEFORE Tailwind CDN.
   These rules mirror the Tailwind utilities used on
   the navbar so the header renders correctly from the
   very first paint — eliminating FOUC and the blink.
   ============================================= */

/* ---------- Critical Navbar (no Tailwind dependency) ---------- */

#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #f3f4f6;
}

/* Inner flex row */
#site-header > div > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px; /* h-16 */
}
@media (min-width: 768px) {
    #site-header > div > div { height: 70px; }
}

/* Desktop nav: flex on md+, hidden on mobile */
#desktop-nav        { display: none; }
@media (min-width: 768px) {
    #desktop-nav    { display: flex; align-items: center; }
}

/* Hamburger: visible on mobile, hidden on md+ */
#mobile-menu-btn    { display: flex; flex-direction: column;
                      align-items: center; justify-content: center; }
@media (min-width: 768px) {
    #mobile-menu-btn { display: none; }
}

/* Mobile dropdown: hidden by default, shown when .open */
#mobile-menu {
    display: block;       /* keep in flow so max-height works */
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms ease;
    border-top: 1px solid #f3f4f6;
    background: #fff;
}
#mobile-menu.open { max-height: 400px; }
@media (min-width: 768px) {
    #mobile-menu { display: none !important; }
}

/* Fixed-header spacer */
.nav-spacer         { height: 64px; }
@media (min-width: 768px) {
    .nav-spacer     { height: 70px; }
}

/* Scrollbar gutter — prevents fixed navbar from shifting when
   a scrollbar appears / disappears on page content changes. */
html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}




/* ---------- Hero Slider ---------- */
.cover {
    width: 100%;
    height: 260px;          /* mobile default */
}

@media (min-width: 640px)  { .cover { height: 360px; } }
@media (min-width: 768px)  { .cover { height: 460px; } }
@media (min-width: 1024px) { .cover { height: 560px; } }

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.slider img {
    flex: 1 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Dot navigation */
.slider-nav {
    display: flex;
    gap: 0.625rem;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-nav a {
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: rgba(255,255,255,0.55);
    border: 1.5px solid rgba(255,255,255,0.85);
    transition: background-color 220ms ease, transform 220ms ease;
}

.slider-nav a:hover {
    background-color: #fff;
    transform: scale(1.25);
}

/* Auto-scroll: advance every 4 s */
@keyframes autoScroll {
    0%,11%   { scroll-snap-align: start; }
    12.5%    { transform: translateX(100%); }
}