/* ========================================
   YAEL COHEN CULTURE — Shared Design System
   Premium Bridal Couture
   ======================================== */

/* --- Design Tokens --- */
:root {
    /* Colors — Luxury Bridal Palette */
    --color-primary: #8c6a5d;
    --color-primary-light: rgba(140, 106, 93, 0.08);
    --color-primary-glow: rgba(140, 106, 93, 0.2);
    --color-primary-dark: #6b4f44;
    --color-accent: #b8a089;
    --color-gold: #c9a96e;
    --color-gold-light: #f0e6d3;
    --color-champagne: #f0ebe1;
    --color-cream: #faf8f5;
    --color-terracotta: #c9826d;
    --color-bg-light: #f9f7f4;
    --color-bg-dark: #1a1614;
    --color-text: #1a1614;
    --color-text-muted: #6b645e;
    --color-text-light: #a39e97;
    --color-border: rgba(0, 0, 0, 0.06);
    --color-border-light: rgba(255, 255, 255, 0.12);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-dark: rgba(26, 22, 20, 0.65);
    --glass-blur: 20px;
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-border-dark: rgba(140, 106, 93, 0.08);

    /* Typography */
    --font-display: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-hebrew: 'Heebo', 'Assistant', 'Segoe UI', sans-serif;
    --font-hebrew-serif: 'Frank Ruhl Libre', Georgia, serif;
    --tracking-mega: 0.35em;
    --tracking-wide: 0.2em;
    --tracking-normal: 0.1em;

    /* Typography Scale */
    --text-hero: clamp(3.5rem, 8vw, 7rem);
    --text-display: clamp(2.5rem, 5vw, 4rem);
    --text-title: clamp(1.5rem, 3vw, 2.25rem);
    --line-height-tight: 1.15;
    --line-height-snug: 1.3;
    --line-height-relaxed: 1.7;

    /* Spacing */
    --section-padding: clamp(5rem, 10vw, 10rem);
    --section-gap: clamp(3rem, 6vw, 5rem);
    --container-max: 80rem;
    --container-padding: clamp(1.25rem, 4vw, 3rem);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(140, 106, 93, 0.12);
    --shadow-gold: 0 0 20px rgba(201, 169, 110, 0.2);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-luxury: cubic-bezier(0.09, 0.29, 0.24, 0.96);
    --duration-fast: 200ms;
    --duration-normal: 400ms;
    --duration-slow: 700ms;
    --duration-slower: 1000ms;
    --duration-luxury: 600ms;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* --- Base Reset & Defaults --- */
/* NOTE: Element resets MUST be inside @layer base so that
   Tailwind v4 utility classes (in @layer utilities) can override them.
   Unlayered styles always beat layered styles in the CSS cascade. */

@layer base {
    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    ::selection {
        background: rgba(140, 106, 93, 0.15);
        color: var(--color-text);
    }

    body {
        font-family: var(--font-display);
        color: var(--color-text);
        background: var(--color-bg-light);
        line-height: 1.6;
        overflow-x: hidden;
    }

    /* RTL support */
    body.is-rtl {
        direction: rtl;
    }

    /* Brand name always stays LTR even in RTL mode */
    [dir="ltr"] {
        direction: ltr !important;
        unicode-bidi: isolate !important;
    }
    body.is-rtl .brand-ltr {
        direction: ltr;
        unicode-bidi: isolate;
    }

    img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    button {
        cursor: pointer;
        border: none;
        background: none;
        font-family: inherit;
    }
}

/* --- Custom Cursor --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--color-text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s var(--ease-out-expo),
                opacity 0.3s ease;
    mix-blend-mode: difference;
    opacity: 0;
}

.cursor-dot.visible {
    opacity: 1;
}

.cursor-dot.hovering {
    transform: scale(5);
    background: rgba(255, 255, 255, 0.5);
}

@media (pointer: coarse) {
    .cursor-dot { display: none; }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--color-primary);
    opacity: 0.6;
    z-index: 99999;
    transition: width 0.08s linear;
    will-change: width;
}

/* --- Glassmorphism --- */
.glass-light {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.glass-dark {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-dark);
}

.glass-nav {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav.scrolled {
    background: rgba(250, 248, 245, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

/* --- Scroll Reveal Animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s var(--ease-out-expo),
                transform 0.5s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* --- Ken Burns Effect --- */
.ken-burns img {
    transition: transform 10s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.ken-burns:hover img {
    transform: scale(1.04);
}

/* Auto Ken Burns (for hero) */
.ken-burns-auto img {
    animation: kenBurnsAuto 25s ease-in-out infinite alternate;
}

@keyframes kenBurnsAuto {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-0.5%, -0.5%); }
}

/* --- Shine Overlay Effect --- */
.img-shine {
    position: relative;
    overflow: hidden;
}

.img-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s var(--ease-out-expo);
    pointer-events: none;
    z-index: 2;
}

.img-shine:hover::after {
    left: 120%;
}

/* --- Text Shadows --- */
.text-shadow {
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.text-shadow-sm {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(140, 106, 93, 0.3); }
    50% { box-shadow: 0 0 25px 5px rgba(140, 106, 93, 0.12); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes loaderBar {
    0% { width: 0; margin-left: 0; }
    50% { width: 100%; margin-left: 0; }
    100% { width: 0; margin-left: 100%; }
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes clipReveal {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(212, 175, 55, 0.2); }
    50% { border-color: rgba(212, 175, 55, 0.6); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* --- Utility Classes --- */
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 2.5s ease-in-out infinite; }
.animate-shimmer {
    background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.08) 50%, transparent 75%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}
.animate-spin { animation: spin 0.8s linear infinite; }
.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Font Variant */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* --- Page Loader --- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    transition: opacity 1s var(--ease-out-expo),
                visibility 1s var(--ease-out-expo);
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: var(--tracking-mega);
    color: var(--color-cream);
    font-weight: 300;
}

.loader-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

/* --- Magnetic Button --- */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-out-expo);
}

.magnetic-btn:active {
    transform: scale(0.97) !important;
}

/* --- Link Underline Animation --- */
.link-hover {
    position: relative;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--color-primary);
    transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo);
}

.link-hover:hover::after {
    width: 100%;
    left: 0;
}

/* --- Card Tilt / Hover Effects --- */
.card-hover {
    transition: transform 0.5s var(--ease-out-expo),
                box-shadow 0.5s var(--ease-out-expo);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* Spotlight hover effect container */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* --- Gradient Text --- */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Animated Border --- */
.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold), var(--color-primary));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.border-glow:hover::before {
    opacity: 1;
}

/* --- Floating Label Input --- */
.floating-input {
    position: relative;
}

.floating-input input,
.floating-input textarea {
    width: 100%;
    padding: 1.25rem 0 0.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    outline: none;
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text);
    transition: border-color 0.3s ease;
}

.floating-input label {
    position: absolute;
    top: 1.25rem;
    left: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
    font-weight: 500;
}

.floating-input input:focus ~ label,
.floating-input input:not(:placeholder-shown) ~ label,
.floating-input textarea:focus ~ label,
.floating-input textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.6rem;
    color: var(--color-primary);
    letter-spacing: 0.2em;
}

.floating-input input:focus,
.floating-input textarea:focus {
    border-color: var(--color-primary);
}

/* Input focus line animation */
.floating-input::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.4s var(--ease-out-expo), left 0.4s var(--ease-out-expo);
}

.floating-input:focus-within::after {
    width: 100%;
    left: 0;
}

/* --- Mobile Menu --- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transform: scale(0.9);
    transition: transform 0.5s var(--ease-out-expo);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    z-index: 100000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Zoom button */
.lightbox-zoom {
    position: absolute;
    top: 1.5rem;
    right: 5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 100000;
    pointer-events: auto;
}

.lightbox-zoom:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Zoomed state */
.lightbox.zoomed {
    cursor: grab;
}

.lightbox.zoomed:active {
    cursor: grabbing;
}

.lightbox .img-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 90vw;
    height: 85vh;
}

.lightbox .img-container img {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(140, 106, 93, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 106, 93, 0.3);
}

/* --- Focus Styles (Accessibility) --- */
*:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
    .stagger-children > * {
        opacity: 1;
        transform: none;
    }
    .ken-burns img,
    .ken-burns-auto img {
        animation: none;
        transform: none;
    }
}

/* --- Mobile-First Responsive --- */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem;
    }
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.04) 25%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* --- Gold Divider --- */
.gold-divider {
    width: 40px;
    height: 1px;
    background: var(--color-gold);
}

/* --- Section Label --- */
.section-label {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-mega);
    font-size: 0.65rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

/* --- Pill / Tag --- */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pill-primary {
    background: var(--color-primary);
    color: white;
}

.pill-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pill-outline {
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.pill-outline.active,
.pill-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9990;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-bg-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s var(--ease-out-expo);
}

.whatsapp-btn:hover {
    background: #25D366;
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.35);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 9990;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-out-expo);
    backdrop-filter: blur(8px);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-bg-dark);
}

/* --- Spinner --- */
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(140, 106, 93, 0.12);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ========================================
   ACCESSIBILITY — Israeli Law (WCAG 2.0 AA)
   ======================================== */

/* --- Skip Navigation Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 999999;
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-dark);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}

/* --- Screen Reader Only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- Focus-Within for Gallery Cards (show overlay on keyboard focus) --- */
.gallery-card:focus-within .info-overlay,
.gallery-card:focus .info-overlay {
    opacity: 1;
}

.collection-card:focus-within .explore-arrow,
.collection-card:focus .explore-arrow {
    transform: translateY(0);
    opacity: 1;
}

.collection-card:focus-within .preview-strip,
.collection-card:focus .preview-strip {
    opacity: 1;
    transform: translateY(0);
}

.collection-card:focus-within .card-overlay,
.collection-card:focus .card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.15) 100%);
}

.collection-card:focus-within img,
.collection-card:focus img {
    transform: scale(1.05);
}

.gallery-card:focus-within img,
.gallery-card:focus img {
    transform: scale(1.03);
}

/* --- High Contrast Mode (forced-colors) --- */
@media (forced-colors: active) {
    .glass-nav,
    .lightbox,
    .mobile-menu {
        border: 2px solid CanvasText;
    }

    .gold-divider {
        background: CanvasText;
    }

    .pill {
        border: 1px solid CanvasText;
    }

    .lightbox-nav,
    .lightbox-close,
    .back-to-top,
    .whatsapp-btn {
        border: 2px solid CanvasText;
    }

    .scroll-progress {
        background: Highlight;
    }

    .skip-link {
        border: 2px solid CanvasText;
    }

    .info-overlay {
        background: Canvas;
        opacity: 1;
    }

    *:focus-visible {
        outline: 3px solid Highlight;
    }
}

/* --- Print Styles --- */
@media print {
    .glass-nav,
    .mobile-menu,
    .lightbox,
    .back-to-top,
    .whatsapp-btn,
    .scroll-progress,
    .sticky-cta,
    .skip-link,
    .cursor-dot {
        display: none !important;
    }
}
