/* ═══════════════════════════════════════════════════════
   HOTEL DEVANG — SHARED PREMIUM NAVIGATION STYLES
   Indian traditional details | Split Center Logo | Mobile Circular Reveal
   ════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --crimson: #880000;
    --crimson-dark: #5c0000;
    --crimson-light: #b22222;
    --gold: #caa035;
    --gold-light: #ffd700;
    --gold-pale: rgba(202, 160, 53, 0.12);
    --white: #ffffff;
}

/* Body scroll lock when mobile menu open */
body.menu-open {
    overflow: hidden !important;
}

/* ─── HEADER BASE ─── */
header {
    position: fixed !important;
    width: 100% !important;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    padding: 0.35rem 0 !important;
    /* Solid brand red with a subtle traditional Indian Jaali (lattice) watermark pattern */
    background-color: var(--crimson) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30,0 L60,30 L30,60 L0,30 Z' fill='none' stroke='%23caa035' stroke-width='0.5' opacity='0.15'/%3E%3Cpath d='M0,0 L60,60 M60,0 L0,60' fill='none' stroke='%23caa035' stroke-width='0.25' opacity='0.08'/%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23ffd700' opacity='0.2'/%3E%3C/svg%3E") !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.25) !important;
    transition:
        top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.5s ease !important;
    box-sizing: border-box !important;
}

/* Traditional Indian scalloped temple arch border — always visible */
header::before {
    content: '' !important;
    position: absolute !important;
    bottom: -6px !important; left: 0 !important; right: 0 !important;
    height: 8px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='8' viewBox='0 0 20 8'%3E%3Cpath d='M0,1 Q10,7 20,1' fill='none' stroke='%23caa035' stroke-width='1.2'/%3E%3Cpath d='M0,1 L20,1' fill='none' stroke='%23ffd700' stroke-width='0.8'/%3E%3Ccircle cx='10' cy='4' r='1.2' fill='%23ffd700'/%3E%3C/svg%3E") !important;
    background-repeat: repeat-x !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 1001 !important;
}

header::after { content: none !important; }

/* Scrolled state: slightly more compact padding */
header.scrolled {
    padding: 0.2rem 0 !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.35) !important;
}

header.scrolled::before { opacity: 1 !important; }


/* ─── SPLIT NAV — 3 column grid ─── */
nav.split-nav {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    padding: 0 2.5rem !important;
    gap: 0.5rem !important;
    height: auto !important;
    box-sizing: border-box !important;
    justify-content: stretch !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ─── LEFT & RIGHT LINK LISTS ─── */
.nav-left,
.nav-right {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    gap: 0 !important;
}

.nav-left  { justify-content: flex-end !important; }
.nav-right { justify-content: flex-start !important; }

/* Nav link items */
.nav-left  > li > a,
.nav-right > li > a {
    display: inline-block !important;
    padding: 0.25rem clamp(0.55rem, 0.85vw, 1.05rem) !important;
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
    font-family: 'Jost', sans-serif !important;
    font-size: clamp(0.68rem, 0.78vw, 0.82rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    position: relative !important;
    transition: color 0.35s ease !important;
}

/* Thin gold underline sweep from center */
.nav-left  > li > a::after,
.nav-right > li > a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: clamp(0.55rem, 0.85vw, 1.05rem) !important;
    right: clamp(0.55rem, 0.85vw, 1.05rem) !important;
    height: 1px !important;
    background: linear-gradient(90deg, #caa035, #ffd700, #caa035) !important;
    transform: scaleX(0) !important;
    transform-origin: center !important;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.nav-left  > li > a:hover,
.nav-right > li > a:hover {
    color: #ffd700 !important;
}

.nav-left  > li > a:hover::after,
.nav-right > li > a:hover::after {
    transform: scaleX(1) !important;
}

/* Active link */
.nav-left  > li > a.active,
.nav-right > li > a.active {
    color: #ffd700 !important;
    font-weight: 500 !important;
    letter-spacing: 0.16em !important;
}

.nav-left  > li > a.active::after,
.nav-right > li > a.active::after {
    transform: scaleX(1) !important;
}

/* Vertical dividers between links */
.nav-left  > li:not(:first-child)::before,
.nav-right > li:not(:first-child)::before {
    content: '' !important;
    display: inline-block !important;
    width: 1px !important;
    height: 10px !important;
    background: rgba(202,160,53,0.25) !important;
    vertical-align: middle !important;
}

/* ─── CENTER LOGO ─── */
.nav-center-logo {
    text-align: center !important;
    flex-shrink: 0 !important;
    padding: 0 0.8rem !important;
}

.nav-center-logo > a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    text-decoration: none !important;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.nav-center-logo > a:hover {
    transform: translateY(-3px) !important;
}

/* Logo image ring */
.logo-img-wrap {
    position: relative !important;
    display: inline-block !important;
}

.logo-img-wrap img {
    display: block !important;
    height: 48px !important;
    width: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1.5px solid rgba(202, 160, 53, 0.65) !important;
    box-shadow:
        0 0 0 4px rgba(202, 160, 53, 0.1),
        0 4px 16px rgba(0,0,0,0.45) !important;
    transition:
        height 0.5s ease,
        width 0.5s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease !important;
}

.nav-center-logo > a:hover .logo-img-wrap img {
    border-color: #ffd700 !important;
    box-shadow:
        0 0 0 7px rgba(202, 160, 53, 0.18),
        0 10px 32px rgba(0,0,0,0.5) !important;
}

/* Pulsing outer ring */
.logo-img-wrap::after {
    content: '' !important;
    position: absolute !important;
    inset: -6px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(202, 160, 53, 0.2) !important;
    animation: logoPulse 3s ease-in-out infinite !important;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1);   opacity: 0.6; }
    50%       { transform: scale(1.06); opacity: 0.2; }
}

/* Scrolled logo: shrink */
header.scrolled .logo-img-wrap img {
    height: 36px !important;
    width: 36px !important;
}

header.scrolled .logo-img-wrap::after { display: none !important; }

/* Logo text block */
.logo-text-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    line-height: 1 !important;
}

.logo-ornament {
    font-size: 0.45rem !important;
    color: rgba(202,160,53,0.55) !important;
    letter-spacing: 0 !important;
    flex-shrink: 0 !important;
}

.logo-name {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(0.8rem, 0.95vw, 1rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    color: #caa035 !important;
    white-space: nowrap !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55) !important;
    transition: letter-spacing 0.4s ease !important;
}

.nav-center-logo > a:hover .logo-name {
    letter-spacing: 0.32em !important;
}

header.scrolled .logo-name {
    font-size: clamp(0.72rem, 0.86vw, 0.9rem) !important;
    letter-spacing: 0.2em !important;
}

/* ─── HAMBURGER (desktop hidden) ─── */
.menu-toggle {
    display: none !important;
    flex-direction: column !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 6px !important;
    z-index: 10002 !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    touch-action: manipulation !important;    /* removes 300ms tap delay on iOS */
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
    outline: none !important;
}

.menu-toggle span {
    display: block !important;
    height: 1.5px !important;
    background: #ffd700 !important;
    border-radius: 2px !important;
    transition: all 0.45s cubic-bezier(0.77, 0, 0.18, 1) !important;
    transform-origin: center !important;
}

.menu-toggle span:nth-child(1) { width: 30px !important; position: static !important; }
.menu-toggle span:nth-child(2) { width: 18px !important; margin-left: auto !important; position: static !important; }
.menu-toggle span:nth-child(3) { width: 30px !important; position: static !important; }

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg) !important;
    width: 30px !important;
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) translateX(-10px) !important;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg) !important;
    width: 30px !important;
}

/* Mobile-only elements hidden on desktop */
.mobile-overlay { display: none; }

/* ─── FULL-SCREEN MOBILE OVERLAY NAV ─── */
.mobile-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    z-index: 9999 !important;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30,0 L60,30 L30,60 L0,30 Z' fill='none' stroke='%23caa035' stroke-width='0.5' opacity='0.15'/%3E%3Cpath d='M0,0 L60,60 M60,0 L0,60' fill='none' stroke='%23caa035' stroke-width='0.25' opacity='0.08'/%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23ffd700' opacity='0.2'/%3E%3C/svg%3E"),
        linear-gradient(150deg, #880000 0%, #5c0000 50%, #2c0000 100%) !important;
    display: flex !important;
    /* Use flex-start so the logo is never pushed behind the close button */
    align-items: flex-start !important;
    justify-content: center !important;
    /* Circular reveal from hamburger */
    -webkit-clip-path: circle(0% at calc(100% - 44px) 44px) !important;
    clip-path: circle(0% at calc(100% - 44px) 44px) !important;
    opacity: 0 !important;
    -webkit-transition: opacity 0.5s ease,
                        -webkit-clip-path 0.7s cubic-bezier(0.77, 0, 0.18, 1),
                        clip-path 0.7s cubic-bezier(0.77, 0, 0.18, 1) !important;
    transition: opacity 0.5s ease,
                -webkit-clip-path 0.7s cubic-bezier(0.77, 0, 0.18, 1),
                clip-path 0.7s cubic-bezier(0.77, 0, 0.18, 1) !important;
    pointer-events: none !important;
    visibility: hidden !important;
    /* KEY FIX: Use overflow-y: auto only (not 'hidden' first) so content scrolls on tiny screens */
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    /* Padding-top keeps content below the absolute close button (54px + 1.4rem gap) */
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
}

.mobile-overlay.active {
    -webkit-clip-path: circle(160% at calc(100% - 44px) 44px) !important;
    clip-path: circle(160% at calc(100% - 44px) 44px) !important;
    opacity: 1 !important;
    pointer-events: all !important;
    visibility: visible !important;          /* make fully interactive when open */
}

/* Ambient gold radial glows */
.mobile-overlay::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        radial-gradient(ellipse 70% 50% at 15% 85%, rgba(202,160,53,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 70% at 85% 15%, rgba(202,160,53,0.06) 0%, transparent 70%) !important;
    pointer-events: none !important;
}

/* Close Button (X in circle) */
.overlay-close {
    position: absolute !important;
    top: 1.4rem !important;
    right: 1.4rem !important;
    width: 54px !important;          /* larger tap target on mobile */
    height: 54px !important;
    border: 1px solid rgba(202,160,53,0.45) !important;
    border-radius: 50% !important;
    background: transparent !important;
    cursor: pointer !important;
    z-index: 10002 !important;
    transition: border-color 0.35s ease, background 0.35s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
    outline: none !important;
    /* Ensure button is always tappable on top of overlay content */
    pointer-events: all !important;
}

.overlay-close:hover {
    border-color: #ffd700 !important;
    background: rgba(202,160,53,0.12) !important;
    transform: rotate(90deg) !important;
}

.overlay-close span {
    position: absolute !important;
    width: 20px !important;
    height: 1.5px !important;
    background: #ffd700 !important;
    border-radius: 2px !important;
    transition: background 0.3s ease !important;
}

.overlay-close span:nth-child(1) { transform: rotate(45deg) !important; }
.overlay-close span:nth-child(2) { transform: rotate(-45deg) !important; }

/* Content wrapper */
.overlay-content {
    text-align: center !important;
    position: relative !important;
    z-index: 1 !important;
    /* Horizontal padding only — vertical padding handled by the overlay's own padding-top */
    padding: 0 2.5rem 2rem !important;
    max-width: 500px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Overlay logo */
.overlay-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    opacity: 0 !important;
    transform: translateY(-18px) !important;
    transition: opacity 0.5s ease 0.25s, transform 0.5s cubic-bezier(0.22,1,0.36,1) 0.25s !important;
}

.mobile-overlay.active .overlay-logo {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.overlay-logo img {
    height: 64px !important;
    width: 64px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1.5px solid rgba(202,160,53,0.6) !important;
    box-shadow: 0 0 30px rgba(202,160,53,0.18), 0 6px 24px rgba(0,0,0,0.5) !important;
}

.overlay-logo-name {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(1.1rem, 5vw, 1.4rem) !important;
    font-weight: 700 !important;
    color: #caa035 !important;
    letter-spacing: 0.28em !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5) !important;
}

/* Thin gold divider under logo */
.overlay-rule {
    width: 40px !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, #caa035, transparent) !important;
    margin: 0 auto !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease 0.35s, width 0.6s ease 0.35s !important;
}

.mobile-overlay.active .overlay-rule {
    opacity: 1 !important;
    width: 80px !important;
}

/* Overlay nav links */
.overlay-links {
    list-style: none !important;
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
}

.overlay-links li {
    opacity: 0 !important;
    transform: translateY(22px) !important;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1) !important;
    border-bottom: 1px solid rgba(202,160,53,0.08) !important;
}

.overlay-links li:first-child { border-top: 1px solid rgba(202,160,53,0.08) !important; }

.mobile-overlay.active .overlay-links li:nth-child(1)  { opacity:1 !important; transform:none !important; transition-delay:0.20s !important; }
.mobile-overlay.active .overlay-links li:nth-child(2)  { opacity:1 !important; transform:none !important; transition-delay:0.26s !important; }
.mobile-overlay.active .overlay-links li:nth-child(3)  { opacity:1 !important; transform:none !important; transition-delay:0.32s !important; }
.mobile-overlay.active .overlay-links li:nth-child(4)  { opacity:1 !important; transform:none !important; transition-delay:0.38s !important; }
.mobile-overlay.active .overlay-links li:nth-child(5)  { opacity:1 !important; transform:none !important; transition-delay:0.44s !important; }
.mobile-overlay.active .overlay-links li:nth-child(6)  { opacity:1 !important; transform:none !important; transition-delay:0.50s !important; }
.mobile-overlay.active .overlay-links li:nth-child(7)  { opacity:1 !important; transform:none !important; transition-delay:0.56s !important; }
.mobile-overlay.active .overlay-links li:nth-child(8)  { opacity:1 !important; transform:none !important; transition-delay:0.62s !important; }
.mobile-overlay.active .overlay-links li:nth-child(9)  { opacity:1 !important; transform:none !important; transition-delay:0.68s !important; }

.overlay-links a {
    display: block !important;
    padding: 0.7rem 1rem !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    /* Responsive font: smaller on tiny phones, larger on tablets */
    font-size: clamp(1.1rem, 5vw, 1.55rem) !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.80) !important;
    text-decoration: none !important;
    letter-spacing: 0.1em !important;
    transition: color 0.3s ease, letter-spacing 0.35s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.overlay-links a::after {
    content: '' !important;
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(10px) !important;
    width: 6px !important;
    height: 6px !important;
    border-right: 1px solid rgba(202,160,53,0.5) !important;
    border-top: 1px solid rgba(202,160,53,0.5) !important;
    rotate: 45deg !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.overlay-links a:hover {
    color: #ffd700 !important;
    letter-spacing: 0.16em !important;
}

.overlay-links a:hover::after {
    opacity: 1 !important;
    transform: translateY(-50%) translateX(0) !important;
}

.overlay-links a.active {
    color: #ffd700 !important;
    font-weight: 600 !important;
}

/* Overlay Book CTA */
.overlay-book-cta {
    display: inline-block !important;
    padding: 0.9rem 2.8rem !important;
    border: 1px solid rgba(202,160,53,0.6) !important;
    color: #caa035 !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 2px !important;
    opacity: 0 !important;
    transform: translateY(18px) !important;
    transition:
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        opacity 0.5s ease 0.74s,
        transform 0.5s cubic-bezier(0.22,1,0.36,1) 0.74s !important;
    position: relative !important;
    overflow: hidden !important;
}

.mobile-overlay.active .overlay-book-cta {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.overlay-book-cta:hover {
    background: rgba(202,160,53,0.12) !important;
    border-color: #ffd700 !important;
    color: #ffd700 !important;
}


/* ─── RESPONSIVE NAV ─── */
@media (max-width: 1024px) {
    /* Show hamburger, hide split nav lists */
    .menu-toggle { display: flex !important; }
    .nav-left, .nav-right { display: none !important; }

    /* Mobile overlay: hidden by default, display state controlled by JS */
    .mobile-overlay { display: none; }

    /* Shrink the split nav to logo + hamburger only */
    nav.split-nav {
        grid-template-columns: 1fr auto !important;
        padding: 0 1.2rem !important;
    }

    /* Logo left-aligned on mobile */
    .nav-center-logo {
        justify-self: start !important;
        padding: 0 !important;
    }

    .nav-center-logo > a {
        flex-direction: row !important;
        gap: 10px !important;
    }

    /* Hamburger placed at end */
    .menu-toggle {
        grid-column: 2 !important;
        justify-self: end !important;
    }

    /* Overlay links: good tap targets for tablets */
    .overlay-links a {
        padding: 0.85rem 1rem !important;
        min-height: 48px !important;
    }

    /* Overlay book CTA */
    .overlay-book-cta {
        padding: 1rem 2.8rem !important;
        min-height: 48px !important;
    }
}

/* ─── WIDE TABLET (769px – 1024px) ─── */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-overlay { padding-top: 5.5rem !important; }
    .overlay-content { padding: 0 3.5rem 2rem !important; max-width: 600px !important; }
    .overlay-links a { font-size: 1.5rem !important; padding: 0.9rem 1rem !important; }
    .overlay-logo img { height: 72px !important; width: 72px !important; }
}

/* ─── TABLET (481px – 768px) ─── */
@media (max-width: 768px) {
    .mobile-overlay { padding-top: 4.5rem !important; }
    .overlay-content { padding: 0 2rem 2rem !important; }
    .overlay-links a { font-size: clamp(1.15rem, 5vw, 1.45rem) !important; padding: 0.75rem 1rem !important; }
    .overlay-logo img { height: 60px !important; width: 60px !important; }
    .overlay-logo-name { font-size: clamp(1rem, 4.5vw, 1.25rem) !important; letter-spacing: 0.2em !important; }
    .overlay-logo { margin-bottom: 1.2rem !important; }
}

/* ─── SMALL PHONE (up to 480px) ─── */
@media (max-width: 480px) {
    /* Overlay: tighter top padding — close btn is 54px + 1rem top = ~3.4rem */
    .mobile-overlay { padding-top: 4rem !important; padding-bottom: 1.5rem !important; }
    .overlay-content { padding: 0 1.5rem 1.5rem !important; }

    /* Smaller logo so it doesn't push content off screen */
    .overlay-logo img { height: 52px !important; width: 52px !important; }
    .overlay-logo { gap: 0.4rem !important; margin-bottom: 1rem !important; }
    .overlay-logo-name { font-size: clamp(0.95rem, 4vw, 1.1rem) !important; letter-spacing: 0.15em !important; }

    /* Compact link rows */
    .overlay-links { margin-bottom: 1rem !important; }
    .overlay-links a { font-size: clamp(1rem, 4.5vw, 1.25rem) !important; padding: 0.65rem 0.8rem !important; min-height: 44px !important; }

    /* CTA button */
    .overlay-book-cta { padding: 0.85rem 2rem !important; font-size: 0.72rem !important; min-height: 44px !important; }

    /* Rule under logo */
    .overlay-rule { margin-bottom: 0.8rem !important; }

    /* Close button: slightly smaller, same position */
    .overlay-close { width: 46px !important; height: 46px !important; top: 1rem !important; right: 1rem !important; }
}

/* ─── TINY PHONE (up to 360px — e.g. Galaxy S, old iPhones) ─── */
@media (max-width: 360px) {
    .mobile-overlay { padding-top: 3.5rem !important; }
    .overlay-logo img { height: 44px !important; width: 44px !important; }
    .overlay-links a { font-size: 1rem !important; padding: 0.55rem 0.8rem !important; }
    .overlay-book-cta { padding: 0.75rem 1.5rem !important; }
}


/* ═══════════════════════════════════════════════════════
   CRITICAL OVERRIDE — Page CSS Conflict Resolution
   Forces hamburger + overlay to work on ALL pages.
   Must stay at the VERY END of nav.css so it wins.
════════════════════════════════════════════════════════ */

/* 1. Ensure header always uses the correct fixed + z-index on every page */
header#mainHeader,
header {
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important; /* Stack ticker and nav vertically */
    align-items: stretch !important;   /* Stretch children to full width */
    padding: 0 !important;             /* Padding moved to ticker & nav wrapper */
    min-height: auto !important;       /* Height determined by children */
    transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

header#mainHeader nav.split-nav,
header nav.split-nav {
    min-height: 60px !important;
    padding: 0.5rem 2.5rem !important;
    box-sizing: border-box !important;
    transition: min-height 0.5s ease, padding 0.5s ease !important;
}

header#mainHeader.scrolled nav.split-nav,
header.scrolled nav.split-nav {
    min-height: 50px !important;
    padding: 0.4rem 2.5rem !important;
}

/* 2. On mobile: force the split-nav grid to show logo + hamburger only */
@media (max-width: 1024px) {

    /* The split-nav must be a 2-col grid on mobile */
    header nav,
    header nav.split-nav {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        align-items: center !important;
        padding: 0.5rem 1.2rem !important; /* Added vertical padding */
        gap: 0.5rem !important;
        width: 100% !important;
    }

    header.scrolled nav,
    header.scrolled nav.split-nav {
        padding: 0.4rem 1.2rem !important; /* Custom padding for scrolled state */
    }

    /* Logo left-aligned and in a row on mobile */
    .nav-center-logo {
        justify-self: start !important;
        padding: 0 !important;
    }

    .nav-center-logo > a {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        text-decoration: none !important;
    }

    .logo-text-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        line-height: normal !important;
    }

    /* Hide ornaments on mobile to fit screen width */
    .logo-ornament {
        display: none !important;
    }

    /* Clean logo name on mobile, no cutting, responsive sizing */
    .logo-name,
    header.scrolled .logo-name {
        font-family: 'Cormorant Garamond', Georgia, serif !important;
        font-size: clamp(0.95rem, 4.5vw, 1.2rem) !important;
        font-weight: 700 !important;
        letter-spacing: 0.1em !important;
        text-transform: uppercase !important;
        color: #caa035 !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hamburger: always visible, correct z-index, no page CSS can hide it */
    #menuToggle,
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 6px !important;
        z-index: 10002 !important;
        position: relative !important;
        width: auto !important;
        height: auto !important;
        grid-column: 2 !important;
        justify-self: end !important;
        /* Remove 300ms tap delay on mobile */
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-appearance: none !important;
        outline: none !important;
    }

    /* Hamburger lines: consistent appearance */
    #menuToggle span,
    .menu-toggle span {
        display: block !important;
        width: 30px !important;
        height: 2px !important;
        background: #ffd700 !important;
        border-radius: 2px !important;
        transition: all 0.4s cubic-bezier(0.77, 0, 0.18, 1) !important;
        transform-origin: center !important;
        position: static !important;
    }

    /* Open state: X shape */
    #menuToggle.open span:nth-child(1),
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }
    #menuToggle.open span:nth-child(2),
    .menu-toggle.open span:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }
    #menuToggle.open span:nth-child(3),
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    /* Hide old-style nav-links drawer — the overlay (#mobileOverlay) is used instead */
    .nav-links {
        display: none !important;
        visibility: hidden !important;
    }

    /* Mobile overlay: hidden by default, display state controlled by JS */
    #mobileOverlay,
    .mobile-overlay {
        display: none;
    }

    /* When overlay is active: show it fully */
    #mobileOverlay.active,
    .mobile-overlay.active {
        -webkit-clip-path: circle(160% at calc(100% - 44px) 44px) !important;
        clip-path: circle(160% at calc(100% - 44px) 44px) !important;
        opacity: 1 !important;
        pointer-events: all !important;
        visibility: visible !important;
    }
}

/* ═══════════════════════════════════════════════════════
   MOVING TICKER BAR — PREMIUM REDESIGN
   Matches the crimson + gold navbar aesthetic.
   ════════════════════════════════════════════════════════ */
.ticker-wrap {
    width: 100% !important;
    overflow: hidden !important;
    /* Deep crimson matching the navbar — same Jaali lattice pattern */
    background-color: #6b0000 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20,0 L40,20 L20,40 L0,20 Z' fill='none' stroke='%23caa035' stroke-width='0.4' opacity='0.12'/%3E%3Ccircle cx='20' cy='20' r='1' fill='%23ffd700' opacity='0.18'/%3E%3C/svg%3E") !important;
    /* Two-tone gold shimmer border at the bottom */
    border-bottom: 1px solid rgba(202, 160, 53, 0.55) !important;
    box-shadow: 0 1px 0 rgba(255, 215, 0, 0.15), inset 0 -1px 0 rgba(92, 0, 0, 0.4) !important;
    box-sizing: border-box !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    z-index: 1002 !important;
    pointer-events: none !important;
    position: relative !important;
}

/* Subtle left fade-out mask for elegant text entry */
.ticker-wrap::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important; top: 0 !important; bottom: 0 !important;
    width: 60px !important;
    background: linear-gradient(to right, #6b0000 0%, transparent 100%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* Subtle right fade-out mask */
.ticker-wrap::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important; top: 0 !important; bottom: 0 !important;
    width: 60px !important;
    background: linear-gradient(to left, #6b0000 0%, transparent 100%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.ticker-content {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    animation: ticker-scroll-ltr 52s linear infinite !important;
    will-change: transform !important;
}

.ticker-content span {
    font-family: 'Jost', 'Poppins', 'Noto Sans Gujarati', 'Segoe UI', Tahoma, sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    /* Gold text matching nav links */
    color: rgba(253, 230, 160, 0.92) !important;
    text-shadow: 0 0 12px rgba(202, 160, 53, 0.45), 0 1px 3px rgba(0,0,0,0.6) !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* Decorative divider — lotus/diamond symbol instead of plain pipe */
.ticker-divider {
    color: #caa035 !important;
    font-size: 0.65rem !important;
    font-weight: 400 !important;
    margin: 0 2.2rem !important;
    opacity: 0.7 !important;
    display: inline-block !important;
    text-shadow: 0 0 8px rgba(202, 160, 53, 0.6) !important;
    /* Use a decorative unicode diamond/lotus ornament */
    font-style: normal !important;
    letter-spacing: 0 !important;
}

/* Smooth seamless left-to-right loop animation */
@keyframes ticker-scroll-ltr {
    0%   { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0%, 0, 0); }
}
