/* ==========================================================================
   Real Consulting — floating pill navbar
   Self-contained module. All rules scoped under .rcnav, plus the hero
   clearance block that lets the bar float over each page's first section.
   ========================================================================== */

:root {
    --rcnav-bg: #0d1424;
    --rcnav-bg-soft: #141c30;
    --rcnav-line: rgba(255, 255, 255, .09);
    --rcnav-text: rgba(255, 255, 255, .68);
    --rcnav-text-hi: #ffffff;
    --rcnav-accent: #ee690c;
    --rcnav-accent-2: #ff8c34;
    --rcnav-height: 64px;
    --rcnav-offset: 18px;
    --rcnav-radius: 999px;
    /* Room the floating bar takes over the top of a hero. Page heroes add this
       to their own top padding so their content never sits under the bar. */
    --rcnav-clearance: calc(var(--rcnav-height) + (var(--rcnav-offset) * 2));
}

.rcnav,
.rcnav *,
.rcnav *::before,
.rcnav *::after {
    box-sizing: border-box;
}

.rcnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: var(--rcnav-offset) 16px;
    pointer-events: none;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rcnav__container {
    position: relative;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.rcnav__shell {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    max-width: 100%;
    pointer-events: auto;
    background: var(--rcnav-bg);
    border: 1px solid var(--rcnav-line);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(6, 12, 26, .18);
    transition: border-radius .35s cubic-bezier(.4, 0, .2, 1),
                box-shadow .3s ease,
                background .3s ease;
}

.rcnav:not(.is-panel-open) .rcnav__shell {
    border-radius: var(--rcnav-radius);
}

.rcnav.is-scrolled .rcnav__shell {
    box-shadow: 0 16px 40px rgba(6, 12, 26, .3);
}

/* the little tab under the pill when the panel is open */
.rcnav__container::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 44px;
    height: 11px;
    margin-left: 6px;
    background: var(--rcnav-bg);
    border: 1px solid var(--rcnav-line);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    opacity: 0;
    transition: transform .3s ease, opacity .25s ease;
    pointer-events: none;
}

.rcnav.is-panel-open .rcnav__container::after {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
}

/* --------------------------------------------------------------- top bar */

.rcnav__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: var(--rcnav-height);
    padding: 0 10px 0 16px;
}

.rcnav__brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 10px 0 0;
    line-height: 0;
}

.rcnav__brand img {
    height: 22px;
    width: auto;
    display: block;
}

.rcnav__nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rcnav__item {
    position: relative;
    display: flex;
}

.rcnav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    color: var(--rcnav-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .1px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.rcnav__link:hover,
.rcnav__link:focus-visible {
    color: var(--rcnav-text-hi);
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
}

.rcnav__link.is-active {
    color: var(--rcnav-text-hi);
}

.rcnav__link.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--rcnav-accent);
}

.rcnav__item .rcnav__link.is-active::after {
    left: 14px;
    right: 28px;
}

.rcnav__link--drop .rcnav__chev {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    transition: transform .3s ease;
}

.rcnav__link--drop[aria-expanded="true"] {
    color: var(--rcnav-text-hi);
}

.rcnav__link--drop[aria-expanded="true"] .rcnav__chev {
    transform: rotate(180deg);
}

.rcnav__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 22px;
}

.rcnav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rcnav-accent) 0%, var(--rcnav-accent-2) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(238, 105, 12, .32);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.rcnav__cta:hover,
.rcnav__cta:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(238, 105, 12, .42);
}

/* ---------------------------------------------------------------- burger */

.rcnav__burger {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
}

.rcnav__burger span {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s ease, opacity .2s ease;
}

.rcnav__burger span:nth-child(1) { top: 15px; }
.rcnav__burger span:nth-child(2) { top: 20px; }
.rcnav__burger span:nth-child(3) { top: 25px; }

.rcnav.is-menu-open .rcnav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.rcnav.is-menu-open .rcnav__burger span:nth-child(2) { opacity: 0; }
.rcnav.is-menu-open .rcnav__burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* -------------------------------------------------------- services panel */

.rcnav__panel {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
}

.rcnav.is-panel-open .rcnav__panel {
    max-height: 640px;
    opacity: 1;
}

.rcnav__panel-inner {
    padding: 2px 14px 16px;
}

.rcnav__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rcnav__card {
    min-width: 0;
    display: block;
    padding: 20px 18px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    background: var(--rcnav-bg-soft);
    text-align: center;
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.rcnav__card:hover,
.rcnav__card:focus-visible {
    transform: translateY(-2px);
    text-decoration: none;
    border-color: rgba(255, 255, 255, .14);
}

.rcnav__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 50%;
    color: #fff;
}

.rcnav__card-icon svg {
    width: 24px;
    height: 24px;
}

.rcnav__card-title {
    display: block;
    margin: 0 0 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.rcnav__card-text {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

/* per-service tints */
.rcnav__card--consultancy { background: #171d3a; }
.rcnav__card--consultancy .rcnav__card-icon { background: #4560e8; }
.rcnav__card--support { background: #12261d; }
.rcnav__card--support .rcnav__card-icon { background: #22a06b; }
.rcnav__card--dev { background: #2a1d10; }
.rcnav__card--dev .rcnav__card-icon { background: #ee690c; }
.rcnav__card--swsupport { background: #2a1526; }
.rcnav__card--swsupport .rcnav__card-icon { background: #cc4fa0; }

.rcnav__card.is-active {
    border-color: rgba(255, 255, 255, .28);
}

.rcnav__panel-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 18px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--rcnav-line);
}

.rcnav__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .5);
    font-size: 12.5px;
    text-decoration: none;
}

.rcnav__meta svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    opacity: .8;
}

a.rcnav__meta:hover {
    color: #fff;
    text-decoration: none;
}

.rcnav__legal {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.rcnav__legal a {
    color: rgba(255, 255, 255, .45);
    font-size: 12.5px;
    text-decoration: none;
    transition: color .2s ease;
}

.rcnav__legal a:hover,
.rcnav__legal a.is-active {
    color: #fff;
    text-decoration: none;
}

/* ----------------------------------------------------- hero clearance */
/* The bar floats over the first section of every page. Theme heroes (from
   main.css) get their clearance here; the service pages handle it in their
   own css/pages/*.css using --rcnav-clearance. */

/* The theme sizes these banners at 250px; the bar now sits inside them, so
   they grow by the same amount to keep the visible band beneath it. */
.breadcrumb-area {
    min-height: calc(250px + var(--rcnav-clearance));
    padding-top: var(--rcnav-clearance);
}

.slider-area .slider-bg {
    padding-top: var(--rcnav-clearance);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1199px) {
    .rcnav__link { padding: 9px 11px; }
    .rcnav__actions { margin-left: 12px; }
}

@media (max-width: 991px) {
    :root {
        --rcnav-height: 56px;
        --rcnav-offset: 10px;
    }

    .rcnav { padding-left: 12px; padding-right: 12px; }

    .rcnav__container { display: block; }
    .rcnav__container::after { display: none; }

    /* One shape in every state: a softly rounded glass card, never an oval.
       (The desktop pill radius must not leak in here — at this height a
       999px radius turns the open menu into an ellipse that clips it.) */
    .rcnav__shell,
    .rcnav:not(.is-panel-open) .rcnav__shell,
    .rcnav:not(.is-panel-open):not(.is-menu-open) .rcnav__shell {
        display: flex;
        width: 100%;
        border-radius: 18px;
        background: rgba(13, 20, 36, .93);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
        backdrop-filter: blur(16px) saturate(160%);
        border-color: rgba(255, 255, 255, .08);
        box-shadow: 0 8px 24px rgba(6, 12, 26, .18);
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }
    .rcnav__shell::-webkit-scrollbar { display: none; }

    /* The shell is a height-capped flex column; without this the bar would
       be squeezed when the services panel opens, and the panel would slide
       up over the last links. Content keeps its size and the shell scrolls. */
    .rcnav__bar,
    .rcnav__panel { flex-shrink: 0; }

    .rcnav.is-scrolled .rcnav__shell { background: rgba(13, 20, 36, .97); }

    .rcnav.is-menu-open .rcnav__shell {
        border-radius: 22px;
        background: #0d1424;
        box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    }

    /* Page behind the open menu dims; tapping it closes the menu. */
    .rcnav::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(4, 8, 18, .55);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .3s ease, visibility .3s ease;
    }
    .rcnav.is-menu-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    html:has(.rcnav.is-menu-open) { overflow: hidden; }

    /* ---------------------------------------------------------- bar */
    /* The bar wraps onto a second line for the links. Lines are packed to
       the top, and the brand is given the full bar height, so the first line
       is exactly --rcnav-height tall and everything on it sits dead centre
       (otherwise flexbox shares the spare height with the empty links line
       and the row rides a few pixels high). */
    .rcnav__bar {
        flex-wrap: wrap;
        align-content: flex-start;
        height: auto;
        min-height: var(--rcnav-height);
        padding: 0 8px 0 16px;
        row-gap: 0;
        column-gap: 8px;
    }

    .rcnav__brand {
        order: 1;
        padding: 0;
        height: var(--rcnav-height);
    }
    .rcnav__brand img { height: 19px; }

    .rcnav__actions {
        order: 2;
        margin-left: auto;
        margin-right: 0;
    }

    .rcnav__cta {
        height: 38px;
        padding: 0 16px;
        border-radius: 12px;
        font-size: 13.5px;
        box-shadow: none;
    }
    .rcnav__cta:hover,
    .rcnav__cta:focus-visible {
        transform: none;
        box-shadow: none;
    }

    /* Two-line burger, no filled circle; morphs into an X. */
    .rcnav__burger {
        display: block;
        order: 3;
        margin-left: 0;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, .14);
        transition: background .2s ease, border-color .2s ease;
    }
    .rcnav.is-menu-open .rcnav__burger {
        background: rgba(255, 255, 255, .06);
        border-color: rgba(255, 255, 255, .2);
    }
    .rcnav__burger span {
        left: 10px;
        width: 18px;
        transition: transform .35s cubic-bezier(.4, 0, .2, 1), width .35s ease, opacity .2s ease;
    }
    .rcnav__burger span:nth-child(1) { top: 14px; }
    .rcnav__burger span:nth-child(2) { display: none; }
    .rcnav__burger span:nth-child(3) { top: 22px; width: 11px; }
    .rcnav.is-menu-open .rcnav__burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
    .rcnav.is-menu-open .rcnav__burger span:nth-child(3) { width: 18px; transform: translateY(-4px) rotate(-45deg); }

    /* --------------------------------------------------------- links */
    .rcnav__nav {
        order: 4;
        flex: 0 0 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .4s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, padding .3s ease;
    }

    .rcnav.is-menu-open .rcnav__nav {
        max-height: 420px;
        opacity: 1;
        margin-top: 2px;
        padding: 6px 0 8px;
        border-top: 1px solid var(--rcnav-line);
    }

    .rcnav__item { display: block; }

    .rcnav__link {
        width: 100%;
        justify-content: space-between;
        padding: 17px 4px;
        border-radius: 0;
        border-bottom: 1px solid var(--rcnav-line);
        font-family: "Kanit", "Montserrat", sans-serif;
        font-size: 21px;
        font-weight: 500;
        letter-spacing: -.01em;
        color: rgba(255, 255, 255, .86);
    }
    .rcnav__nav > a.rcnav__link:last-child,
    .rcnav__nav > .rcnav__item:last-child .rcnav__link { border-bottom: 0; }

    .rcnav__link:hover,
    .rcnav__link:focus-visible { background: transparent; color: #fff; }

    /* Arrow on plain links (the Services toggle keeps its chevron) */
    .rcnav__nav > a.rcnav__link::after,
    .rcnav__nav > a.rcnav__link.is-active::after {
        content: "";
        position: static;
        width: 8px;
        height: 8px;
        margin-right: 6px;
        border-radius: 0;
        background: none;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: rotate(45deg);
        opacity: .35;
        display: block;
    }
    .rcnav__link--drop .rcnav__chev { width: 16px; height: 16px; opacity: .6; }

    .rcnav__link.is-active,
    .rcnav__link--drop.is-active { color: var(--rcnav-accent-2); background: transparent; }
    .rcnav__item .rcnav__link.is-active::after { display: none; }

    /* Links arrive one after another when the menu opens. */
    .rcnav__nav > * {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
    }
    .rcnav.is-menu-open .rcnav__nav > * { opacity: 1; transform: none; }
    .rcnav.is-menu-open .rcnav__nav > :nth-child(1) { transition-delay: .06s; }
    .rcnav.is-menu-open .rcnav__nav > :nth-child(2) { transition-delay: .11s; }
    .rcnav.is-menu-open .rcnav__nav > :nth-child(3) { transition-delay: .16s; }
    .rcnav.is-menu-open .rcnav__nav > :nth-child(4) { transition-delay: .21s; }

    /* ------------------------------------------------ services cards */
    .rcnav__panel-inner { padding: 4px 12px 14px; }

    .rcnav__grid { grid-template-columns: 1fr; gap: 8px; }

    .rcnav__card {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 14px;
        padding: 12px 14px;
        text-align: left;
        border-radius: 14px;
    }

    .rcnav__card-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        align-self: center;
    }

    .rcnav__card-title {
        grid-column: 2;
        align-self: end;
    }

    .rcnav__card-text {
        grid-column: 2;
        align-self: start;
    }

    .rcnav__card-icon svg { width: 19px; height: 19px; }
    .rcnav__card-title { font-size: 14.5px; }
    .rcnav__card-text { font-size: 12.5px; }

    .rcnav__panel-foot { justify-content: flex-start; }
}

/* Tablets: the four services side by side in two columns. */
@media (min-width: 560px) and (max-width: 991px) {
    .rcnav__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 400px) {
    .rcnav__brand img { height: 17px; }
    .rcnav__cta { height: 36px; padding: 0 13px; font-size: 12.5px; }
    .rcnav__link { font-size: 19px; padding: 15px 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .rcnav *,
    .rcnav__shell,
    .rcnav__container::after {
        transition-duration: .01ms !important;
    }
}

/* Very narrow phones (e.g. folded devices): keep logo, Contact and the
   burger on one row. */
@media (max-width: 339px) {
    .rcnav__bar { padding: 0 6px 0 12px; column-gap: 6px; }
    .rcnav__brand img { height: 14px; }
    .rcnav__cta { height: 34px; padding: 0 10px; font-size: 12px; }
    .rcnav__burger { width: 36px; height: 36px; }
    .rcnav__burger span { left: 8px; }
}

/* The theme's .btn has a dark circle that grows to fill the button on hover.
   Touch screens have no hover, so the circle just sat on the first letters. */
@media (hover: none) {
    .btn::before { display: none; }
    .btn:active::before { display: none; }
}


/* ------------------------------------------------ mobile section rhythm
   The theme spaces every section with 60–150px utility classes, top and
   bottom, so on a phone two stacked sections left up to ~260px of empty
   band. Below 768px they all collapse to one comfortable step. */
@media (max-width: 767px) {
    .pt-60,
    .pt-65,
    .pt-70,
    .pt-75,
    .pt-80,
    .pt-85,
    .pt-90,
    .pt-95,
    .pt-100,
    .pt-105,
    .pt-110,
    .pt-115,
    .pt-120,
    .pt-125,
    .pt-130,
    .pt-135,
    .pt-140,
    .pt-145,
    .pt-150 {
        padding-top: 48px !important;
    }
    .pb-60,
    .pb-65,
    .pb-70,
    .pb-75,
    .pb-80,
    .pb-85,
    .pb-90,
    .pb-95,
    .pb-100,
    .pb-105,
    .pb-110,
    .pb-115,
    .pb-120,
    .pb-125,
    .pb-130,
    .pb-135,
    .pb-140,
    .pb-145,
    .pb-150 {
        padding-bottom: 48px !important;
    }
    .faq-area,
    .contact-area {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    .faq-area .section-title.mb-50,
    .contact-area .section-title.mb-50 {
        margin-bottom: 24px !important;
    }
}
