/* Match homepage's content gutters (.home-shell) on inner pages using Bootstrap's .container.
   Bootstrap's own 15px .container padding is left untouched — .row relies on it (negative
   margin of -15px) to align column content with the container edge. Only width/max-width is
   adjusted so that the visible column content (container edge + 15px) lands at the same 60px
   (desktop) / 20px (mobile) the homepage uses. */
.container {
    width: min(1350px, calc(100% - 90px));
    max-width: none;
}

@media (max-width: 599.98px) {
    .container {
        width: calc(100% - 10px);
    }
}

/* Shared header geometry for every page using the site navigation.
   z-index raised above the mobile drawer/backdrop (10001/10000) and the floating
   WhatsApp/chatbot widgets (9999) — .nav-bar creates its own stacking context
   (position + z-index), so the drawer nested inside it (z-index: 10001) only ranks
   against its own siblings; without this, the whole header layer still composited
   at its old z-index: 1030, well below the backdrop, which silently blocked every
   click on the open mobile drawer (including the Services accordion toggle). */
.nav-bar {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10010;
    width: 100%;
    min-height: 116px;
    border: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

.nav-bar > .container-lg {
    width: min(1320px, calc(100% - 72px));
    max-width: 1320px;
    margin-inline: auto;
    padding: 0 !important;
}

.nav-bar .navbar {
    display: flex;
    width: 100%;
    height: 116px;
    min-height: 116px;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    background: transparent !important;
    box-sizing: border-box;
}

.nav-bar .navbar-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0 auto 0 0;
    padding: 0;
    line-height: 0;
}

.nav-bar .navbar-brand img {
    display: block;
    width: auto;
    height: 100px;
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

.nav-bar .navbar-toggler {
    display: none;
}

.nav-bar .navbar-collapse {
    display: flex !important;
    flex: 0 0 auto;
    flex-basis: auto;
    flex-grow: 0;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

/* The mobile drawer header (cloned logo + close button) is injected into
   #navbarCollapse by js/main.js on every page load, regardless of viewport.
   It must stay hidden at desktop — otherwise the cloned logo's full intrinsic
   size (no mobile-only sizing applied) inflates the flex row's width and pushes
   the real nav links off-screen, which is what was actually breaking the
   Services dropdown. The mobile media query below turns it back on. */
.mobile-nav__header {
    display: none;
}

.nav-bar .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin: 0 0 0 auto !important;
    padding: 0;
    list-style: none;
}

.nav-bar .navbar-nav .nav-link {
    padding: 12px 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, text-decoration-color .2s ease;
}

.nav-bar .navbar-dark .navbar-nav .nav-link:hover,
.nav-bar .navbar-dark .navbar-nav .nav-link:focus,
.nav-bar .navbar-dark .navbar-nav .nav-link.active {
    color: #FDAC53 !important;
}

.nav-bar .navbar-dark .navbar-nav .nav-link.active {
    font-weight: 600;
}

.nav-bar .dropdown-menu {
    min-width: 200px;
    margin: 8px 0 0;
    padding: 6px 0;
    border: 1px solid #e5dfd6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(32, 30, 27, .12);
}

/* Invisible bridge over the 8px gap between the "Services" link and the menu, so the
   pointer never leaves the dropdown while travelling to an item (otherwise mouseleave
   fires and the menu closes before an item can be selected). */
.nav-bar .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-bar .dropdown-item {
    padding: 8px 16px;
    color: #5e5a55;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background-color .15s ease, color .15s ease;
}

.nav-bar .dropdown-item:hover,
.nav-bar .dropdown-item:focus,
.nav-bar .dropdown-item.active {
    background: #fbf8f3;
    color: #b96513;
}

.nav-bar .dropdown-toggle:focus,
.nav-bar .dropdown-toggle:focus-visible,
.nav-bar .dropdown-toggle:active {
    outline: none !important;
    box-shadow: none !important;
}

.nav-bar a:focus-visible,
.nav-bar button:focus-visible {
    outline: 3px solid #FDAC53;
    outline-offset: 3px;
}

/* The homepage keeps its warm paper surface and dark navigation. */
body.home-page .nav-bar {
    background: transparent;
}

body.home-page .nav-bar .navbar-dark .navbar-nav .nav-link {
    color: #ffffff;
}

body.home-page .nav-bar .navbar-dark .navbar-nav .nav-link:hover,
body.home-page .nav-bar .navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff !important;
}

body.home-page .nav-bar .navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    text-decoration-line: underline;
    text-decoration-color: #FDAC53;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

body.home-page .nav-bar .dropdown-menu {
    border-color: #e5dfd6;
    background: #fff;
    box-shadow: 0 14px 32px rgba(32, 30, 27, .12);
}

body.home-page .nav-bar .dropdown-item {
    color: #5e5a55;
}

body.home-page .nav-bar .dropdown-item:hover,
body.home-page .nav-bar .dropdown-item:focus,
body.home-page .nav-bar .dropdown-item.active {
    background: #fbf8f3;
    color: #b96513;
}

@media (max-width: 991.98px) {
    .nav-bar {
        min-height: 96px;
    }

    .nav-bar > .container-lg {
        width: calc(100% - 40px);
        max-width: none;
    }

    .nav-bar .navbar {
        height: auto;
        min-height: 96px;
        flex-wrap: wrap;
        padding: 0;
    }

    .nav-bar .navbar-brand {
        height: 96px;
    }

    .nav-bar .navbar-brand img {
        height: 80px;
        max-width: 160px;
        max-height: 80px;
    }

    .nav-bar .navbar-toggler {
        display: inline-flex;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .42);
        border-radius: 8px;
        color: #fff;
        background: transparent;
    }

    .nav-bar .navbar-toggler-icon {
        display: block;
        width: 24px;
        height: 18px;
        background-image: linear-gradient(currentColor, currentColor),
            linear-gradient(currentColor, currentColor),
            linear-gradient(currentColor, currentColor);
        background-repeat: no-repeat;
        background-position: 0 0, 0 8px, 0 16px;
        background-size: 24px 2px;
    }

    /* Right-side sliding navigation drawer (replaces the old vertical dropdown). */
    .nav-bar .navbar-collapse {
        display: block !important;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        z-index: 10001;
        width: 85vw;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        flex: none;
        margin: 0;
        padding: 0 0 env(safe-area-inset-bottom);
        border-top: none;
        background: #fbf8f3;
        box-shadow: -6px 0 28px rgba(0, 0, 0, .22);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .28s;
    }

    .nav-bar .navbar-collapse.show {
        visibility: visible;
        transform: translateX(0);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0s;
    }

    @media (prefers-reduced-motion: reduce) {
        .nav-bar .navbar-collapse {
            transition: none;
        }
    }

    .mobile-nav__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 20px 20px;
        border-bottom: 1px solid #e5dfd6;
    }

    .mobile-nav__logo img {
        display: block;
        height: 40px;
        width: auto;
        max-width: 140px;
        object-fit: contain;
    }

    .mobile-nav__close {
        display: flex;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid #e5dfd6;
        border-radius: 8px;
        background: transparent;
        color: #201e1b;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .nav-bar .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin: 0 !important;
        padding: 8px 0 24px;
    }

    .nav-bar .navbar-nav .nav-link {
        min-height: 48px;
        padding: 13px 20px !important;
        color: #201e1b;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
        white-space: normal;
        border-bottom: 1px solid #efe9e0;
    }

    .nav-bar .navbar-dark .navbar-nav .nav-link.active {
        color: #b96513 !important;
        text-decoration: none;
    }

    /* Services accordion. */
    .nav-bar .nav-item.dropdown > .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
        transition: transform .2s ease;
    }

    .nav-bar .nav-item.dropdown.is-expanded > .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .nav-bar .dropdown-menu {
        display: block;
        position: static;
        float: none;
        clear: both;
        width: 100%;
        min-width: 0;
        max-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: none;
        background: #f3efe7;
        box-shadow: none;
        opacity: 1;
        transition: max-height .25s ease;
    }

    .nav-bar .nav-item.dropdown.is-expanded > .dropdown-menu {
        max-height: 420px;
    }

    .nav-bar .dropdown-item {
        padding: 11px 20px 11px 34px;
        min-height: 44px;
        display: flex;
        align-items: center;
        color: #5e5a55;
        font-size: 14.5px;
        font-weight: 600;
        white-space: normal;
        border-bottom: 1px solid #ebe5db;
    }

    .nav-bar .dropdown-item:last-child {
        border-bottom: none;
    }

    .nav-bar .dropdown-item:hover,
    .nav-bar .dropdown-item:focus,
    .nav-bar .dropdown-item.active {
        background: #ece4d6;
        color: #b96513;
    }

    /* Dark backdrop behind the open drawer. */
    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgba(10, 10, 10, .55);
        opacity: 0;
        visibility: hidden;
        transition: opacity .28s ease, visibility 0s linear .28s;
    }

    .mobile-nav-backdrop.show {
        opacity: 1;
        visibility: visible;
        transition: opacity .28s ease, visibility 0s linear 0s;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    body.home-page .nav-bar {
        position: relative;
        background: #fbf8f3;
    }

    body.home-page .nav-bar .navbar-toggler {
        border-color: #e5dfd6;
        color: #201e1b;
    }

    body.home-page .nav-bar .navbar-nav .nav-link,
    body.home-page .nav-bar .navbar-dark .navbar-nav .nav-link {
        color: #201e1b;
    }

    body.home-page .nav-bar .navbar-dark .navbar-nav .nav-link.active {
        color: #b96513 !important;
    }

    body.home-page .nav-bar .dropdown-item {
        color: #5e5a55;
    }
}

/* The desktop homepage header overlays the dark hero image. */
@media (min-width: 992px) {
    body.home-page .nav-bar .navbar-nav .nav-link,
    body.home-page .nav-bar .navbar-dark .navbar-nav .nav-link {
        color: #FFFFFF !important;
    }

    body.home-page .nav-bar .navbar-nav .nav-link:hover:not(.active),
    body.home-page .nav-bar .navbar-nav .nav-link:focus:not(.active) {
        color: #FDAC53 !important;
    }

    body.home-page .nav-bar .navbar-dark .navbar-nav .nav-link.active {
        color: #FFFFFF !important;
        text-decoration-color: #FDAC53;
    }

    body.home-page .nav-bar .dropdown-toggle::after {
        border-top-color: #FFFFFF;
    }
}

/* ============================================================
   Shared premium footer — used across all public pages
   ============================================================ */
.site-footer {
    background: #171615;
    color: rgba(255, 255, 255, .72);
    font-family: 'Raleway', sans-serif;
}

.site-footer__wrap {
    width: min(1320px, calc(100% - 48px));
    margin-inline: auto;
    padding: 56px 0 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 40px;
}

.site-footer__col h5 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
}

.site-footer__col a {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    text-decoration: none;
    transition: color .15s ease;
}

.site-footer__col a:hover,
.site-footer__col a:focus {
    color: #FDAC53;
    text-decoration: none;
}

.site-footer__col--brand p {
    margin: 14px 0 18px;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer__logo {
    display: inline-block;
    line-height: 0;
}

.site-footer__logo img {
    display: block;
    height: 100px;
    width: auto;
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    object-position: left center;
}

.site-footer__social {
    display: flex;
    gap: 10px;
}

.site-footer__social a {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus {
    border-color: #FDAC53;
    background: #FDAC53;
    color: #171615;
}

.site-footer__contact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer__contact i {
    margin-top: 3px;
    color: #FDAC53;
    font-size: 13px;
    flex-shrink: 0;
}

.site-footer__contact a {
    margin: 0;
    color: rgba(255, 255, 255, .72);
}

.site-footer__contact a:hover,
.site-footer__contact a:focus {
    color: #FDAC53;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
}

.site-footer__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, .55);
}

.site-footer__bottom p a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}

.site-footer__bottom > a {
    color: rgba(255, 255, 255, .78);
    font-weight: 600;
    text-decoration: none;
}

.site-footer__bottom > a:hover,
.site-footer__bottom > a:focus,
.site-footer__bottom p a:hover {
    color: #FDAC53;
}

@media (max-width: 767.98px) {
    .site-footer__wrap {
        width: calc(100% - 40px);
        padding-top: 44px;
    }

    .site-footer__logo img {
        height: 80px;
        max-height: 80px;
        max-width: 160px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        padding-bottom: 32px;
    }

    .site-footer__col--brand,
    .site-footer__col:nth-child(4) {
        grid-column: 1 / -1;
    }

    .site-footer__col--brand {
        order: 1;
    }

    .site-footer__col:nth-child(2) {
        order: 2;
    }

    .site-footer__col:nth-child(3) {
        order: 3;
    }

    .site-footer__col:nth-child(4) {
        order: 4;
    }

    .site-footer__col h5 {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .site-footer__col a {
        font-size: 13.5px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__col--brand {
        grid-column: 1 / -1;
    }
}
