@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

/* ==========================================================================
   L'Oben Premium — Shared Design Layer
   Loaded on every page after the inline base styles.
   Brand tokens stay untouched: gold #CFA861 / #E2C88F / #A68241,
   dark #1A1A1A, cream #FAF8F5, support #C9A24D, #5F2D24.
   ========================================================================== */

:root {
    --gold: #CFA861;
    --gold-light: #E2C88F;
    --gold-dark: #A68241;
    --gold-deep: #C9A24D;
    --dark: #1A1A1A;
    --cream: #FAF8F5;
    --ease-premium: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --------------------------------------------------------------------------
   1. Typography & base rhythm
   -------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
    /* Keep anchor targets clear of the fixed navbar */
    scroll-padding-top: 150px;
    -webkit-text-size-adjust: 100%;
}

/* menu.html has an extra sticky category bar below the navbar */
html.menu-page {
    scroll-padding-top: 200px;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Fixes the broken '"Playfair Display"' declaration in the inline styles:
   headings were silently falling back to the default serif. */
h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

h1, h2 {
    letter-spacing: 0.015em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

::selection {
    background: rgba(207, 168, 97, 0.28);
    color: #1A1A1A;
}

/* --------------------------------------------------------------------------
   2. Missing utility used by menu.html and other scroll rows
   -------------------------------------------------------------------------- */

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Slim, brand-toned scrollbars elsewhere (desktop) */
@media (pointer: fine) {
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
    ::-webkit-scrollbar-track {
        background: #F3EFE9;
    }
    ::-webkit-scrollbar-thumb {
        background: rgba(207, 168, 97, 0.45);
        border-radius: 5px;
        border: 2px solid #F3EFE9;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(166, 130, 65, 0.65);
    }
}

/* --------------------------------------------------------------------------
   3. Accessible, on-brand focus states
   -------------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid rgba(207, 168, 97, 0.9);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. Navigation refinements
   -------------------------------------------------------------------------- */

/* Desktop nav links: quiet, spaced, boutique-style small caps */
nav .hidden.lg\:flex > a {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.7rem;
    color: #3d3d3d;
    padding-bottom: 2px;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: color 0.3s ease, background-size 0.4s var(--ease-premium);
}

nav .hidden.lg\:flex > a:hover {
    color: #CFA861;
    background-size: 100% 1px;
}

/* Active page link keeps its gold underline treatment */
nav .hidden.lg\:flex > a.text-gold {
    color: #A68241;
}

/* Mobile dropdown: calmer rhythm and a hairline between items */
#mobile-menu > div > a {
    padding: 0.35rem 0;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   5. Buttons & CTAs
   -------------------------------------------------------------------------- */

.btn-gold {
    background-image: linear-gradient(150deg, #D8B472 0%, #CFA861 55%, #BC9451 100%);
    letter-spacing: 0.06em;
    box-shadow: 0 2px 10px rgba(166, 130, 65, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-gold:hover {
    background-image: linear-gradient(150deg, #CFA861 0%, #B18C48 60%, #A68241 100%);
}

.btn-outline-gold {
    letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   6. Cards — products, categories, blog, gift packages
   -------------------------------------------------------------------------- */

.product-card {
    border-radius: 0.85rem;
}

.product-card .rounded,
.product-card .rounded-lg {
    border-radius: 0.55rem;
}

.product-card h2,
.product-card h3 {
    letter-spacing: 0.02em;
}

/* Unify the supporting line under product names into one quiet tone
   (some pages used gold, some gray — this reads calmer and more premium) */
.product-card p {
    color: #8a8378;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.blog-card,
.gift-card {
    transition: transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium), border-color 0.5s var(--ease-premium);
    border: 1px solid rgba(207, 168, 97, 0.12);
}

.blog-card:hover,
.gift-card:hover {
    transform: translateY(-4px);
    border-color: rgba(207, 168, 97, 0.3);
    box-shadow: 0 18px 38px rgba(166, 130, 65, 0.12);
}

/* --------------------------------------------------------------------------
   7. FAQ / accordion (details–summary) polish
   -------------------------------------------------------------------------- */

details > summary {
    list-style: none;
    user-select: none;
    transition: color 0.3s ease;
}

details > summary::-webkit-details-marker {
    display: none;
}

details {
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

details[open] {
    border-color: rgba(207, 168, 97, 0.35) !important;
    box-shadow: 0 10px 30px rgba(166, 130, 65, 0.08);
}

details[open] > summary {
    color: #A68241;
}

details > div {
    animation: accordionFade 0.45s var(--ease-premium);
}

@keyframes accordionFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   8. Editorial reading experience — blog articles, legal, SEO copy
   (Tailwind CDN ships without the typography plugin, so .prose was inert)
   -------------------------------------------------------------------------- */

.prose {
    line-height: 1.85;
}

.prose p {
    margin-bottom: 1.1em;
}

.prose h2,
.prose h3 {
    letter-spacing: 0.01em;
    line-height: 1.35;
    margin-top: 2.2em;
    margin-bottom: 0.7em;
    color: #1A1A1A;
}

.prose h2:first-child,
.prose h3:first-child {
    margin-top: 0;
}

.prose strong {
    color: #1A1A1A;
    font-weight: 600;
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(207, 168, 97, 0.5);
    transition: text-decoration-color 0.3s ease, color 0.3s ease;
}

.prose a:hover {
    text-decoration-color: #A68241;
}

.prose ul,
.prose ol {
    margin: 1em 0 1.4em;
    padding-left: 1.4em;
}

.prose li {
    margin-bottom: 0.45em;
}

.prose blockquote {
    border-left: 3px solid rgba(207, 168, 97, 0.6);
    padding-left: 1.2em;
    font-style: italic;
    color: #555;
    margin: 1.6em 0;
}

/* --------------------------------------------------------------------------
   9. Menu page — sticky category bar, price rows
   -------------------------------------------------------------------------- */

.menu-subnav {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px -18px rgba(26, 26, 26, 0.25);
}

.menu-subnav a {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    padding: 0.3rem 0;
    color: #4a4a4a;
}

.menu-subnav a:hover {
    color: #CFA861;
}

/* Fade the right edge on mobile so the row reads as scrollable */
@media (max-width: 767.98px) {
    .menu-subnav-scroll {
        -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 32px), transparent 100%);
        mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 32px), transparent 100%);
        padding-right: 2rem;
    }
}

/* Prices: keep digits aligned and steady */
.menu-item-row > span {
    font-variant-numeric: lining-nums tabular-nums;
}

/* On small screens keep name + dotted leader + price on a single elegant line
   (markup stacks them; this restores the classic menu row).
   Doubled class beats Tailwind's runtime-injected utilities. */
@media (max-width: 639.98px) {
    .menu-item-row.menu-item-row {
        flex-direction: row;
        align-items: baseline;
        gap: 0.6rem;
    }

    .menu-item-row.menu-item-row > div {
        display: block;
        flex-grow: 1;
        margin-left: 0.35rem;
        margin-right: 0.35rem;
    }

    .menu-item-row.menu-item-row > span {
        align-self: baseline;
    }
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */

input::placeholder,
textarea::placeholder {
    color: #a89f92;
    letter-spacing: 0.02em;
}

input,
textarea,
select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(207, 168, 97, 0.12);
}

/* --------------------------------------------------------------------------
   11. Footer & map
   -------------------------------------------------------------------------- */

footer a {
    transition: color 0.3s ease;
}

footer iframe {
    filter: saturate(0.85) contrast(1.02);
    border-radius: 0.5rem;
}

footer .shadow-inner {
    border: 1px solid rgba(207, 168, 97, 0.15);
}

/* --------------------------------------------------------------------------
   12. Media & motion safety
   -------------------------------------------------------------------------- */

img,
video {
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   13. Premium refinement pass (2026-07-11)
   Pure CSS, no markup changes. Selectors that fight Tailwind CDN utilities
   use extra specificity (doubled/compound classes) because the CDN sheet is
   injected at the end of <head> and would otherwise win on source order.
   ========================================================================== */

/* --- 13.1 Ornamental gold dividers -------------------------------------------
   The flat 2px gold bar becomes a soft transparent→gold→transparent hairline
   with a small gem at the centre that fades in after the draw animation. */

.bg-gold.mx-auto {
    background-color: transparent;
    background-image: linear-gradient(90deg,
        transparent 0%,
        var(--gold) 22%,
        var(--gold-light) 50%,
        var(--gold) 78%,
        transparent 100%);
    border-radius: 2px;
    position: relative;
    overflow: visible;
}

.bg-gold.mx-auto::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--gold-light);
    border-radius: 1px;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 0 2px var(--cream), 0 0 10px rgba(207, 168, 97, 0.55);
    opacity: 0;
    transition: opacity 0.5s ease 0.35s;
}

/* animations.js adds .revealed when the divider scrolls into view */
.bg-gold.mx-auto.revealed::after {
    opacity: 1;
}

/* --- 13.2 Category / cover tiles — depth scrim, gold frame, hover underline -- */

/* Bottom scrim adds depth under the centred title without moving it */
.group .absolute.inset-0.bg-black\/20 {
    background-image: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 32%,
        rgba(20, 15, 10, 0.38) 100%);
}

/* Hairline gold frame that lights up on hover (category images only) */
.group .overflow-hidden.rounded-lg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(226, 200, 143, 0);
    transition: box-shadow 0.5s var(--ease-premium);
}

.group:hover .overflow-hidden.rounded-lg::before {
    box-shadow: inset 0 0 0 1px rgba(226, 200, 143, 0.5);
}

/* Centred title: quiet tracking + a gold underline that grows on hover */
.group .absolute.inset-0 h3 {
    position: relative;
    padding-bottom: 0.55rem;
    letter-spacing: 0.05em;
}

.group .absolute.inset-0 h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold-light);
    transform: translateX(-50%);
    transition: width 0.5s var(--ease-premium);
}

.group:hover .absolute.inset-0 h3::after {
    width: 2.5rem;
}

/* --- 13.3 Product cards — framed gallery look ------------------------------- */

.product-card .overflow-hidden {
    position: relative;
}

/* Inset gold hairline + gentle bottom vignette so photos read as framed */
.product-card .overflow-hidden::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(207, 168, 97, 0.16),
                inset 0 -34px 30px -26px rgba(60, 42, 15, 0.3);
}

/* --- 13.4 Refined "YENİ" badge --------------------------------------------- */

.product-card .absolute.top-2.right-2.bg-gold {
    z-index: 3;
    background-image: linear-gradient(135deg, rgba(216, 180, 114, 0.95), rgba(188, 148, 81, 0.95));
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(166, 130, 65, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* --- 13.5 On-brand gold that also passes WCAG AA --------------------------- */
/* #C9A24D on white was only 2.4:1. #A16207 keeps the warm gold tone at 4.9:1.
   Scoped to headings + the light-weight form intro so product-card subtitles
   (already unified to a calm grey in §6) are left untouched. */

.font-serif.text-\[\#C9A24D\],
.text-\[\#C9A24D\].font-light {
    color: #A16207;
}

/* --- 13.6 Metallic sheen sweep on gold buttons ----------------------------- */

.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 42%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease-premium);
    pointer-events: none;
}

.btn-gold:hover::after {
    left: 120%;
}

/* --- 13.7 Footer gold accent + lazy-image placeholder ---------------------- */

footer {
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(207, 168, 97, 0.5), transparent);
}

/* Warm placeholder so lazy images fade in over cream, not a white gap */
img[loading="lazy"] {
    background-color: #F3EFE9;
}

/* ==========================================================================
   14. Mobile experience — quick-action bar, touch feedback, tap ergonomics
   (2026-07-11). Elevates the phone experience without changing any layout.
   ========================================================================== */

/* Snappier taps, no 300ms delay, no accidental pull-to-refresh */
html {
    -webkit-tap-highlight-color: rgba(207, 168, 97, 0.15);
}

body {
    overscroll-behavior-y: contain;
}

a, button, summary, [role="button"],
input, textarea, select,
.product-card, .group {
    touch-action: manipulation;
}

/* --- 14.1 Persistent mobile quick-action bar ------------------------------- */
/* Shown < md (element also carries Tailwind's md:hidden). */

.loben-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(207, 168, 97, 0.28);
    box-shadow: 0 -6px 24px -12px rgba(26, 26, 26, 0.25);
    padding-bottom: env(safe-area-inset-bottom);
}

.loben-mobilebar::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(207, 168, 97, 0.55), transparent);
}

.loben-mobilebar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    padding: 8px 4px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease;
}

.loben-mobilebar a:active {
    background: rgba(207, 168, 97, 0.12);
}

.loben-mobilebar svg {
    width: 22px;
    height: 22px;
    color: var(--gold-dark);
}

.loben-mobilebar span {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b5f4c;
}

/* --- 14.2 Mobile-only spacing & control ergonomics ------------------------- */

@media (max-width: 767.98px) {
    /* Reserve room so the fixed bar never covers the footer */
    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom));
    }

    /* Fold the standalone floating WhatsApp button into the bar on phones */
    a.fixed[href^="https://wa.me"] {
        display: none !important;
    }

    /* iOS zooms the whole page when focusing an input < 16px — pin to 16px */
    input:not([type="checkbox"]):not([type="radio"]),
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Comfortable 44px touch targets on menu + language switcher + hamburger */
    #mobile-menu > div > a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .m-lang-btn {
        min-height: 44px;
    }

    #mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* --- 14.3 Touch devices never fire :hover — surface premium cues on press -- */

@media (hover: none) {
    .product-card:active {
        transform: translateY(-2px) scale(0.996);
    }

    .btn-gold:active,
    .btn-outline-gold:active {
        transform: translateY(1px) scale(0.99);
    }

    /* Category tiles: show the gold frame + underline on press */
    .group:active .overflow-hidden.rounded-lg::before {
        box-shadow: inset 0 0 0 1px rgba(226, 200, 143, 0.5);
    }

    .group:active .absolute.inset-0 h3::after {
        width: 2.5rem;
    }

    /* And a faint permanent underline hint, since hover is unavailable */
    .group .absolute.inset-0 h3::after {
        width: 1.5rem;
        opacity: 0.6;
    }
}

/* ==========================================================================
   15. Homepage storytelling additions (2026-07-11)
   Heritage marquee, stat counters, Instagram mosaic, scroll progress,
   magnetic CTAs. Marquee/stats/Instagram markup lives only on index.html;
   the progress bar and magnetic-button behaviour are injected site-wide
   by animations.js and only need their styles declared once, here.
   ========================================================================== */

/* --- 15.1 Heritage marquee -------------------------------------------------- */

.loben-marquee {
    background: var(--dark);
    overflow: hidden;
    white-space: nowrap;
}

.loben-marquee-track {
    display: inline-flex;
    width: max-content;
    padding: 0.65rem 0;
    animation: lobenMarquee 42s linear infinite;
}

/* Two identical groups; -50% lands exactly one group over = seamless loop */
.loben-marquee-group {
    display: inline-flex;
    flex-shrink: 0;
    align-items: baseline;
}

.loben-marquee-track span {
    display: inline-block;
    padding: 0 1.1rem;
    color: var(--gold-light);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.loben-marquee-track span[aria-hidden] {
    color: rgba(226, 200, 143, 0.45);
    padding: 0;
    font-size: 0.6rem;
}

.loben-marquee:hover .loben-marquee-track {
    animation-play-state: paused;
}

@keyframes lobenMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .loben-marquee {
        overflow-x: auto;
    }
    .loben-marquee-track {
        animation: none;
    }
    /* Static mode needs the list only once */
    .loben-marquee-group[aria-hidden="true"] {
        display: none;
    }
}

/* --- 15.2 Stat counters ------------------------------------------------------ */

.loben-stat-num {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

/* --- 15.3 Instagram mosaic --------------------------------------------------- */

.loben-ig-tile {
    background: #F3EFE9;
}

.loben-ig-tile img {
    transition: transform 0.6s var(--ease-premium);
}

.loben-ig-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.45);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.loben-ig-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    margin: auto;
    width: 22px;
    height: 22px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s var(--ease-premium);
    transform: scale(0.8);
    background-color: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.loben-ig-tile:hover img,
.loben-ig-tile:active img {
    transform: scale(1.08);
}

.loben-ig-tile:hover::after,
.loben-ig-tile:active::after {
    opacity: 1;
}

.loben-ig-tile:hover::before,
.loben-ig-tile:active::before {
    opacity: 1;
    transform: scale(1);
}

/* --- 15.4 Scroll progress bar ------------------------------------------------ */

.loben-scrollbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 70;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    pointer-events: none;
}

/* --- 15.5 Magnetic CTA pull (desktop only, applied via JS transform) -------- */

@media (hover: hover) and (pointer: fine) {
    .loben-magnetic {
        transition: transform 0.25s var(--ease-premium);
        will-change: transform;
    }
}

/* ==========================================================================
   §16  Scroll-condensed header + circular progress ring   (2026-07-15)
   On scroll the side nav groups fade, the centre logo grows and a gold
   progress ring appears around it; hovering the header restores the full nav.
   animations.js (§d) toggles .loben-nav-condensed / .loben-nav-hovered and
   drives the ring stroke-dashoffset. Condensed visuals are desktop-only.
   ========================================================================== */

.loben-nav-side {
    transition: opacity 0.45s var(--ease-premium), transform 0.45s var(--ease-premium);
    will-change: opacity, transform;
}

.loben-logo-anchor { position: relative; }

/* White circular backing disc behind the logo (appears only when condensed) —
   gives the floating logo a clean, readable badge over any page content. */
.loben-logo-anchor::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(26, 26, 26, 0.10);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.5s ease, transform 0.6s var(--ease-premium);
}

.loben-logo-wrap {
    display: inline-flex;
    position: relative;
    z-index: 1;
    transform-origin: center center;
    transition: transform 0.55s var(--ease-premium);
}

.loben-nav-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.88) rotate(-8deg);
    transition: opacity 0.5s ease, transform 0.65s var(--ease-premium);
}
.loben-nav-ring circle {
    transition: stroke-dashoffset 0.15s linear;
}

/* Top progress bar cross-fades as the ring takes over (JS sets opacity). */
.loben-scrollbar { transition: opacity 0.45s ease; }

@media (min-width: 1024px) {
    /* Condensed & not hovered: the header bar itself dissolves — only the logo
       and its progress ring float over the page (no white band, border or shadow). */
    .loben-nav-condensed:not(.loben-nav-hovered) {
        background-color: transparent !important;
        box-shadow: none !important;
        border-color: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    .loben-nav-condensed .loben-nav-side {
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }
    .loben-nav-condensed .loben-logo-wrap {
        transform: scale(0.80);
    }
    .loben-nav-condensed .loben-logo-anchor::before {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    .loben-nav-condensed .loben-nav-ring {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    /* Hover over the header restores the full nav (initial state) */
    .loben-nav-condensed.loben-nav-hovered .loben-nav-side {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .loben-nav-condensed.loben-nav-hovered .loben-logo-wrap {
        transform: scale(1);
    }
    .loben-nav-condensed.loben-nav-hovered .loben-logo-anchor::before {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    .loben-nav-condensed.loben-nav-hovered .loben-nav-ring {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.88) rotate(-8deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loben-nav-side,
    .loben-logo-wrap,
    .loben-nav-ring { transition: opacity 0.2s ease; }
    .loben-nav-condensed .loben-logo-wrap { transform: none; }
}

/* Nav labels never wrap (longer RU/EN strings kept on one line so the
   centred logo stays balanced at tighter desktop widths). */
nav .loben-nav-side a,
nav .loben-nav-side button {
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   §17  Menu page — cohesive frosted header + sticky category bar (2026-07-15)
   The floating transparent condensed header (§16) lets scrolling content
   bleed behind the logo, leaving the category sub-nav visually orphaned.
   On the menu page we instead keep a solid frosted header when condensed so
   the two-tier navigation reads as one clean, premium unit.
   -------------------------------------------------------------------------- */

html.menu-page nav.loben-nav-condensed:not(.loben-nav-hovered) {
    background-color: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
    box-shadow: 0 6px 20px -16px rgba(26, 26, 26, 0.22) !important;
    border-bottom-color: rgba(26, 26, 26, 0.06) !important;
}

/* Header is already solid here, so the white disc + ring behind the logo are
   redundant — hide them and simply keep the gently condensed logo. */
html.menu-page nav.loben-nav-condensed .loben-logo-anchor::before,
html.menu-page nav.loben-nav-condensed .loben-nav-ring {
    opacity: 0 !important;
}
html.menu-page nav.loben-nav-condensed .loben-logo-wrap {
    transform: scale(0.9);
}

/* Category bar: soft top hairline, gold active/hover pill for clearer wayfinding */
.menu-subnav a {
    position: relative;
    padding: 0.4rem 0.15rem;
    transition: color 0.3s ease;
}
.menu-subnav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s var(--ease-premium);
}
.menu-subnav a:hover::after,
.menu-subnav a.is-active::after {
    transform: scaleX(1);
}
.menu-subnav a.is-active {
    color: #A68241;
}

/* --------------------------------------------------------------------------
   §18  About page — animated side-by-side brand lockup (2026-07-15)
   -------------------------------------------------------------------------- */

.loben-partner-card {
    transition: box-shadow 0.5s var(--ease-premium), transform 0.5s var(--ease-premium);
}
.loben-partner-card:hover {
    box-shadow: 0 26px 52px -20px rgba(166, 130, 65, 0.30);
    transform: translateY(-3px);
}

.loben-partner-logo {
    display: inline-flex;
    align-items: center;
    transition: transform 0.5s var(--ease-premium), filter 0.5s ease;
    will-change: transform;
}
.loben-partner-logo:hover {
    transform: translateY(-6px) scale(1.07);
    filter: drop-shadow(0 12px 20px rgba(207, 168, 97, 0.38));
}

.loben-partner-x {
    display: inline-flex;
    transition: transform 0.6s var(--ease-premium), color 0.4s ease;
    animation: lobenXpulse 3s ease-in-out infinite;
}
.loben-partner-card:hover .loben-partner-x {
    transform: rotate(180deg) scale(1.25);
    color: var(--gold-dark);
}
@keyframes lobenXpulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .loben-partner-x { animation: none; opacity: 0.7; }
    .loben-partner-logo:hover { transform: none; }
    .loben-partner-card:hover { transform: none; }
}

/* ============================================================
   §16 — HOMEPAGE HERO: Divan cinematic, light treatment (2026-07)
   Giriş koreografisi: wordmark blur-reveal → tagline harf aralığı
   toplanması → overline/divider fade → scroll cue. Yalnız
   prefers-reduced-motion: no-preference'ta çalışır; aksi halde
   statik ve tam opak görünür.
   ============================================================ */
.loben-hero video { will-change: transform; }

@media (prefers-reduced-motion: no-preference) {
    .loben-hero-wordmark {
        opacity: 0;
        filter: blur(8px);
        transform: scale(1.045);
        animation: lobenHeroWordmark 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
    }
    @keyframes lobenHeroWordmark {
        to { opacity: 1; filter: blur(0); transform: scale(1); }
    }

    .loben-hero-tagline {
        opacity: 0;
        letter-spacing: 0.28em;
        animation: lobenHeroTagline 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
    }
    @keyframes lobenHeroTagline {
        to { opacity: 1; letter-spacing: 0.02em; }
    }

    .loben-hero-overline,
    .loben-hero-divider {
        opacity: 0;
        animation: lobenHeroFade 1.2s ease-out 1.15s forwards;
    }
    .loben-hero-cue {
        opacity: 0;
        animation: lobenHeroFade 1.2s ease-out 1.8s forwards;
    }
    @keyframes lobenHeroFade {
        to { opacity: 1; }
    }

    .loben-hero-cue-icon {
        animation: lobenHeroBob 2.6s ease-in-out 3s infinite;
    }
    @keyframes lobenHeroBob {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(7px); }
    }
}

/* §16b — koyu sinema perdesi düzeni: krem tipografi, derinlik
   için yumuşak siyah gölge (ışıma/beyazlık yok) */
.loben-hero-wordmark-glow {
    filter: drop-shadow(0 2px 22px rgba(0, 0, 0, 0.40));
}
.loben-hero-overline,
.loben-hero-tagline {
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}


/* ==========================================================================
   §18 — RTL / Arabic layer
   Aktifleşme: i18n.js lang=ar seçildiğinde <html dir="rtl" lang="ar"> yazar.
   Tipografi: Playfair/Montserrat Arap harfi içermez → El Messiri (başlık) +
   Tajawal (gövde). Arapçada harf arası boşluk (tracking) ligatürleri kırar.
   ========================================================================== */
[dir="rtl"] body {
    font-family: 'Tajawal', 'Montserrat', sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] h5, [dir="rtl"] h6, [dir="rtl"] .font-serif {
    font-family: 'El Messiri', 'Tajawal', serif;
}
[dir="rtl"] * {
    letter-spacing: 0 !important;
}
/* Marquee: animasyon translateX tabanlı — şerit LTR kalsın, içerik akışı bozulmasın */
[dir="rtl"] .loben-marquee {
    direction: ltr;
}
/* Bakü rehberi: zaman çizelgesi çizgisi/noktaları sağa taşınır */
[dir="rtl"] .bkq-tl {
    padding-left: 0;
    padding-right: 1.9rem;
}
[dir="rtl"] .bkq-tl::before {
    left: auto;
    right: 0.55rem;
}
[dir="rtl"] .bkq-tl-item::before {
    left: auto;
    right: -1.9rem;
}
/* Numara rozetleri ve flip ipucu simetrik köşeye */
[dir="rtl"] .bkq-num {
    left: auto;
    right: 0.75rem;
}
[dir="rtl"] .bkq-flip-hint {
    right: auto;
    left: 0.7rem;
}
/* Yatay kaydırma şeritleri: dokunuş yönü doğal kalsın */
[dir="rtl"] .bkq-gallery, [dir="rtl"] .bkq-reel {
    direction: ltr;
}
/* Ağ Şəhər banner degradesi ayna */
[dir="rtl"] .bkq-ws .bg-gradient-to-r {
    background: linear-gradient(to left, rgba(26,26,26,0.8), rgba(26,26,26,0.35), transparent);
}

/* §18 ek — RTL düzeltmeleri (2026-07-18, kullanıcı ekran görüntüsü bulguları) */
/* Tailwind space-x-* fiziksel margin kullanır — RTL'de Tailwind'in kendi
   reverse değişkeniyle yönü çevir (tüm space-x-N varyantlarını tek kural kapsar) */
[dir="rtl"] [class*="space-x-"] > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}
/* Dil switcher ayracı ve boşlukları: sol yerine sağ kenar */
[dir="rtl"] .g-lang-switcher-container {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    border-right: 1px solid rgb(207 168 97 / 0.2);
    padding-right: 1rem;
    margin-right: 1rem;
}
/* Telefon numaraları RTL'de asla aynalanmaz */
[dir="rtl"] a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: isolate;
}
/* Mobil menü girintileri sağdan */
[dir="rtl"] #mobile-menu .pl-3 {
    padding-left: 0;
    padding-right: 0.75rem;
}
