/* ============================================================
   SILVER ROCK WEBSITE V1.7 — OBEROI-INSPIRED WHITE NAVIGATION
   The separate dark utility bar from the reference is intentionally
   omitted. This file is loaded last so the new navigation stays isolated
   from the legacy .navbar rules in style.css.
   ============================================================ */

:root {
    --sr-nav-accent: #d97816;
    --sr-nav-text: #66645f;
    --sr-nav-dark: #27231f;
    --sr-nav-border: #e8e5df;
    --sr-nav-height: 102px;
}

html {
    scroll-padding-top: calc(var(--sr-nav-height) + 10px);
}

body.sr-drawer-open {
    overflow: hidden;
}

/* Main white navigation */
.ober-nav {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--sr-nav-height);
    z-index: 12000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--sr-nav-border);
    box-shadow: 0 3px 16px rgba(35, 28, 21, 0.08);
    transition: height .25s ease, box-shadow .25s ease, background .25s ease;
}

.ober-nav.scrolled {
    height: 88px;
    background: rgba(255, 255, 255, 0.995);
    box-shadow: 0 7px 24px rgba(35, 28, 21, 0.12) !important;
}

.ober-nav-inner {
    width: min(100%, 1640px);
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(22px, 3.6vw, 64px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(18px, 2.5vw, 44px);
}

.ober-nav-group {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.1vw, 40px);
}

.ober-nav-left {
    justify-content: flex-start;
}

.ober-nav-right {
    justify-content: flex-end;
}

.ober-menu-toggle {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--sr-nav-dark);
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s ease;
}

.ober-menu-toggle:hover,
.ober-menu-toggle:focus-visible {
    background: #f5f2ed;
    outline: none;
}

.ober-menu-toggle span {
    display: block;
    width: 29px;
    height: 1.5px;
    background: #4c4944;
    transition: transform .25s ease, opacity .2s ease;
}

.ober-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--sr-nav-text);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(.82rem, .82vw, .98rem);
    font-weight: 400;
    letter-spacing: .035em;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s ease;
}

.ober-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--sr-nav-accent);
    transform: translateX(-50%);
    transition: width .25s ease;
}

.ober-link:hover,
.ober-link:focus-visible,
.ober-link.active,
.ober-link[aria-current='page'] {
    color: var(--sr-nav-accent);
    outline: none;
}

.ober-link:hover::after,
.ober-link:focus-visible::after,
.ober-link.active::after,
.ober-link[aria-current='page']::after {
    width: 24px;
}

.ober-logo {
    width: clamp(145px, 11vw, 190px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 8px 0;
    text-decoration: none;
}

.ober-logo img {
    width: 100%;
    height: 100%;
    max-height: 82px;
    object-fit: contain;
    filter: none;
    transition: max-height .25s ease;
}

.ober-nav.scrolled .ober-logo img {
    max-height: 70px;
}

.ober-book-btn {
    min-width: 122px;
    min-height: 45px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sr-nav-accent);
    border-radius: 5px;
    background: var(--sr-nav-accent);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(217, 120, 22, .18);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ober-book-btn:hover,
.ober-book-btn:focus-visible {
    background: #bc6310;
    border-color: #bc6310;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(217, 120, 22, .26);
    outline: none;
}

/* Left slide-out navigation copied from the reference interaction */
.ober-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 19990;
    background: rgba(20, 18, 16, .34);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.ober-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.ober-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20000;
    width: min(350px, 88vw);
    height: 100dvh;
    overflow-y: auto;
    background: #f5f5f4;
    border-right: 1px solid #dedbd6;
    box-shadow: 14px 0 35px rgba(0, 0, 0, .18);
    transform: translateX(-103%);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}

.ober-drawer.open {
    transform: translateX(0);
}

.ober-drawer-head {
    height: 94px;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4e2de;
    background: #fafafa;
}

.ober-drawer-brand {
    width: 132px;
    height: 74px;
    object-fit: contain;
}

.ober-drawer-close {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #66625d;
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 200;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s ease, color .2s ease;
}

.ober-drawer-close:hover,
.ober-drawer-close:focus-visible {
    background: #ece8e2;
    color: var(--sr-nav-accent);
    outline: none;
}

.ober-drawer-list {
    margin: 0;
    padding: 18px 0 30px;
    list-style: none;
}

.ober-drawer-list li {
    margin: 0;
}

.ober-drawer-link {
    min-height: 52px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #e1dfdb;
    color: #625f5a;
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem;
    font-weight: 400;
    letter-spacing: .005em;
    text-decoration: none;
    transition: padding-left .2s ease, color .2s ease, background .2s ease;
}

.ober-drawer-link::after {
    content: '›';
    color: #aaa59e;
    font-size: 1.2rem;
    font-weight: 300;
}

.ober-drawer-link:hover,
.ober-drawer-link:focus-visible,
.ober-drawer-link.active {
    padding-left: 38px;
    background: #fff;
    color: var(--sr-nav-accent);
    outline: none;
}

.ober-drawer-book {
    margin: 24px 32px 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--sr-nav-accent);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}

/* Keep page content clear of the fixed white header. */
.silver-hero {
    padding-top: var(--sr-nav-height);
}

.silver-hero-content {
    padding-top: 4rem !important;
}

@media (max-width: 1380px) {
    .ober-nav-inner {
        padding-inline: 24px;
        column-gap: 20px;
    }
    .ober-nav-group {
        gap: 20px;
    }
    .ober-link {
        font-size: .8rem;
    }
    .ober-logo {
        width: 148px;
    }
    .ober-book-btn {
        min-width: 105px;
        padding-inline: 17px;
    }
}

@media (max-width: 1120px) {
    .ober-nav-group {
        gap: 14px;
    }
    .ober-link {
        font-size: .72rem;
        letter-spacing: .02em;
    }
    .ober-logo {
        width: 130px;
    }
    .ober-book-btn {
        min-width: 92px;
        padding-inline: 12px;
        font-size: .76rem;
    }
}

/* Tablet and phone: retain the white bar, centered logo, menu and book. */
@media (max-width: 900px) {
    :root {
        --sr-nav-height: 82px;
    }
    .ober-nav,
    .ober-nav.scrolled {
        height: var(--sr-nav-height);
    }
    .ober-nav-inner {
        grid-template-columns: 1fr auto 1fr;
        padding-inline: 14px;
    }
    .ober-nav-left {
        justify-content: flex-start;
    }
    .ober-nav-right {
        justify-content: flex-end;
    }
    .ober-nav-left .ober-link,
    .ober-nav-right .ober-link {
        display: none;
    }
    .ober-logo {
        width: 124px;
        padding-block: 5px;
    }
    .ober-logo img,
    .ober-nav.scrolled .ober-logo img {
        max-height: 68px;
    }
    .ober-book-btn {
        min-width: 88px;
        min-height: 40px;
        padding: 0 14px;
        font-size: .72rem;
    }
    .silver-hero-content {
        padding-top: 0 !important;
    }
}

@media (max-width: 460px) {
    .ober-nav-inner {
        padding-inline: 8px;
    }
    .ober-menu-toggle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .ober-menu-toggle span {
        width: 25px;
    }
    .ober-logo {
        width: 108px;
    }
    .ober-book-btn {
        min-width: 76px;
        min-height: 38px;
        padding-inline: 10px;
        font-size: .66rem;
    }
    .ober-drawer-head {
        height: 82px;
        padding-inline: 20px;
    }
    .ober-drawer-brand {
        width: 112px;
        height: 66px;
    }
    .ober-drawer-link {
        min-height: 50px;
        padding-inline: 24px;
        font-size: .9rem;
    }
    .ober-drawer-book {
        margin-inline: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ober-nav,
    .ober-logo img,
    .ober-drawer,
    .ober-drawer-overlay,
    .ober-link::after {
        transition: none !important;
    }
}
