/* ==========================================================================
   BriskBrain — Site-wide skin
   Loaded on every frontend page by layouts/app.blade.php: design tokens,
   the shared header/footer, and smooth scrolling. Page sections live in
   home.css (scoped to .bb-home).
   ========================================================================== */

/* Brand palette: one navy + one orange accent. Every stylesheet (style.css,
   home.css, landing.css) points at these tokens — don't add new hex values.
   Orange is for accents only (buttons, links, icons, highlights); never use it
   as a large block or blend it into navy.
     --bb-accent         bright orange: fills, icons, anything on navy
     --bb-accent-hover   hover/pressed state of the bright orange
     --bb-accent-strong  text-safe orange on light backgrounds (5.1:1 on white)
     --bb-accent-soft    pale orange tint for light backgrounds */
:root {
    --bb-navy: #16172f;
    --bb-navy-2: #2a2d5a;
    --bb-navy-deep: #0f1024;
    --bb-ink: #16172f;
    --bb-text: #585a6e;
    --bb-muted: #8b8c9c;
    --bb-cream: #fbf8f4;
    --bb-cream-2: #f6f1ea;
    --bb-white: #ffffff;
    --bb-line: rgba(22, 23, 47, 0.08);
    --bb-accent: #f68712;
    --bb-accent-hover: #e2740a;
    --bb-accent-strong: #b85400;
    --bb-accent-soft: #fff4e8;
    --bb-accent-on-dark: #f68712;
    /* Single-hue gradient: stays orange end to end, no muddy midpoint. */
    --bb-grad: linear-gradient(100deg, #e57200 0%, var(--bb-accent) 100%);
    --bb-grad-navy: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-navy-2) 100%);
    --bb-grad-soft: linear-gradient(135deg, rgba(246, 135, 18, 0.12), rgba(246, 135, 18, 0.04));
    --bb-font: 'Plus Jakarta Sans', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bb-radius: 22px;
    --bb-radius-lg: 30px;
    --bb-shadow-sm: 0 1px 2px rgba(22, 23, 47, 0.04), 0 6px 18px -6px rgba(22, 23, 47, 0.08);
    --bb-shadow-md: 0 18px 40px -18px rgba(22, 23, 47, 0.28);
    --bb-shadow-lg: 0 30px 70px -24px rgba(22, 23, 47, 0.35);
    --bb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* On navy, the text-safe orange is too dark and looks muddy: swap in the
   brighter one inside dark sections. */
html.bb-site header .header-top,
html.bb-site footer.footer,
.bb-contact__info,
.bb-history__panel {
    --bb-accent-strong: var(--bb-accent-on-dark);
}

/* --------------------------------------------------------------------------
   Shared header
   -------------------------------------------------------------------------- */
html.bb-site header .header-top {
    background: var(--bb-navy);
    font-family: var(--bb-font);
}

html.bb-site header .header-top a,
html.bb-site header .header-top i {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 13px;
    transition: color 0.25s;
}

html.bb-site header .header-top a:hover,
html.bb-site header .header-top a:hover i {
    color: #fff !important;
}

html.bb-site header .header-top ul li {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html.bb-site header .main-header {
    background: rgba(251, 248, 244, 0.86);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid transparent;
    font-family: var(--bb-font);
    transition: box-shadow 0.4s, border-color 0.4s, background 0.4s;
}

/* Keep dropdowns above the page content before the header turns fixed
   (custom.css only gives .fixed-header a z-index) */
html.bb-site header .main-header:not(.fixed-header) {
    position: relative;
    z-index: 111;
}

html.bb-site header .main-header.fixed-header {
    background: rgba(255, 255, 255, 0.86);
    border-bottom-color: var(--bb-line);
    box-shadow: 0 10px 30px -18px rgba(22, 23, 47, 0.35);
    animation: bbSlideDown 0.5s var(--bb-ease);
}

html.bb-site header .navbar-light .navbar-nav > li {
    text-transform: none;
}

html.bb-site header .navbar-expand-lg .navbar-nav .nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: var(--bb-ink);
}

html.bb-site header .navbar-expand-lg .navbar-nav .nav-link:hover,
html.bb-site header .navbar-expand-lg .navbar-nav .nav-link:focus {
    color: var(--bb-accent-strong);
}

/* Current page */
html.bb-site header .navbar-nav > .nav-item.active > .nav-link {
    color: var(--bb-accent-strong);
}

html.bb-site header .dropdown-menu .inner {
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--bb-line);
    box-shadow: 0 24px 50px -18px rgba(22, 23, 47, 0.3);
}

html.bb-site header .dropdown-menu .dropdown-item {
    border-radius: 10px;
    padding: 9px 14px;
    font-family: var(--bb-font);
    font-weight: 500;
    color: var(--bb-ink);
}

html.bb-site header .dropdown-menu .dropdown-item:hover {
    padding-left: 18px;
    background: var(--bb-grad-soft);
    color: var(--bb-accent-strong);
}

html.bb-site header .navbar-right > li > a {
    display: inline-flex;
    align-items: center;
    padding: 14px 26px;
    border-radius: 999px !important;
    background: var(--bb-grad) !important;
    background-size: 160% 100% !important;
    font-family: var(--bb-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 12px 26px -12px rgba(184, 84, 0, 0.65);
    transition: transform 0.35s var(--bb-ease), box-shadow 0.35s var(--bb-ease), background-position 0.5s !important;
}

html.bb-site header .navbar-right > li > a:hover {
    background-position: 100% 0 !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -12px rgba(246, 135, 18, 0.6);
}

@media (min-width: 992px) {
    html.bb-site header .navbar-expand-lg .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 20px;
        right: 20px;
        bottom: 22px;
        height: 2px;
        border-radius: 2px;
        background: var(--bb-grad);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s var(--bb-ease);
    }

    html.bb-site header .navbar-expand-lg .navbar-nav .nav-link.dropdown-toggle::after {
        display: none;
    }

    html.bb-site header .navbar-nav > .nav-item.active > .nav-link::after,
    html.bb-site header .navbar-expand-lg .navbar-nav .nav-link:hover::after {
        transform: scaleX(1);
    }

    html.bb-site header .fixed-header .navbar-nav .nav-link::after {
        bottom: 12px;
    }
}

@media (max-width: 991px) {
    html.bb-site header .navbar-collapse {
        margin: 0 0 16px;
        padding: 10px 16px 18px;
        border-radius: 20px;
        background: #fff;
        border: 1px solid var(--bb-line);
        box-shadow: 0 24px 50px -24px rgba(22, 23, 47, 0.35);
    }

    html.bb-site header .navbar-right {
        padding: 8px 0 0;
    }

    html.bb-site header .navbar-right > li,
    html.bb-site header .navbar-right > li > a {
        width: 100%;
        justify-content: center;
    }
}

html.bb-site a.scroll-top {
    background: var(--bb-grad) !important;
    border-radius: 50% !important;
    box-shadow: 0 12px 26px -10px rgba(184, 84, 0, 0.6);
}

/* --------------------------------------------------------------------------
   Shared footer
   -------------------------------------------------------------------------- */
html.bb-site footer.footer {
    position: relative;
    background: var(--bb-navy-deep);
    font-family: var(--bb-font);
}

html.bb-site footer.footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--bb-grad);
}

html.bb-site footer.footer .top {
    padding: 84px 0 56px;
    background:
        radial-gradient(500px 260px at 100% 0%, rgba(92, 98, 190, 0.18), transparent 70%),
        radial-gradient(500px 260px at 0% 100%, rgba(92, 98, 190, 0.12), transparent 70%);
}

html.bb-site footer.footer h4 {
    font-family: var(--bb-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    border-bottom: 0;
}

html.bb-site footer.footer .navbar-brand {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 16px;
    background: #fff;
}

html.bb-site footer.footer .footertext li {
    margin-bottom: 6px;
}

html.bb-site footer.footer .footertext li a,
html.bb-site footer.footer .contact-sec a,
html.bb-site footer.footer li.address-li p {
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 14px;
    transition: color 0.25s, transform 0.35s var(--bb-ease);
}

html.bb-site footer.footer .footertext li a {
    display: inline-block;
}

html.bb-site footer.footer .footertext li:hover a,
html.bb-site footer.footer .contact-sec a:hover {
    color: #fff !important;
    transform: translateX(3px);
}

html.bb-site footer.footer ul.footertext li i,
html.bb-site footer.footer .contact-sec i {
    color: var(--bb-accent-hover) !important;
}

html.bb-site footer.footer #download-portfolio-btn {
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--bb-grad);
    box-shadow: 0 12px 26px -12px rgba(246, 135, 18, 0.6);
    transition: transform 0.35s var(--bb-ease);
}

html.bb-site footer.footer #download-portfolio-btn a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #fff !important;
    font-weight: 700;
    font-size: 13.5px;
}

html.bb-site footer.footer #download-portfolio-btn:hover {
    transform: translateY(-2px);
}

html.bb-site footer.footer .bottom {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes bbSlideDown {
    from { transform: translate3d(0, -100%, 0); }
    to { transform: none; }
}

/* --------------------------------------------------------------------------
   Smooth scrolling (Lenis)
   -------------------------------------------------------------------------- */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html.bb-site header *,
    html.bb-site footer * {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    html.bb-site header .main-header.fixed-header {
        animation: none;
    }
}
