/*
 * base.css — shared by the Travel and Ultras pages.
 * Keeps the top bar identical to the main page (Bootstrap 3 navbar + Northwell wordmark)
 * and provides the small scroll-reveal utility both sections use.
 */

@font-face {
    font-family: 'Northwell';
    src: url('../../fonts/Northwell.ttf') format('truetype');
    font-display: swap;
}

html { scroll-behavior: smooth; }

body {
    min-width: 300px;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- top bar (same metrics as index.html) ---------- */

:root { --nav-h: 50px; }

.navbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    margin-bottom: 0;
}

.navbar-brand {
    float: none;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 15px;
}

.navbar-brand h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 15vw;
    padding-top: 5px;
    padding-bottom: 5px;
    color: azure;
    font-family: 'Northwell', cursive, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 200 !important;
    line-height: 1.1;
    text-rendering: optimizeLegibility;
    opacity: 0.95;
}

.navbar-nav {
    float: none;
    display: flex;
    justify-content: flex-end;
    margin-right: 10%;
    padding: 0 20px;
}

.navbar-nav > li { float: none; }

@media (max-width: 992px) {
    .navbar-brand h3 { margin-left: 5vw; font-size: 20px; }
    .navbar-nav { margin-right: 2%; }
}

@media (max-width: 800px) {
    .navbar-brand h3 { margin-left: 2vw; font-size: 20px; }
}

@media (max-width: 767px) {
    .navbar-nav { display: block; margin-right: 0; padding: 0; }
}

/* ---------- scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

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

.sr-only-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
