/* ==========================================
   1. RESET & BAZĂ
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    width: 100%; height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: #000;
    overscroll-behavior-y: none;
    transition: background-color 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   2. NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 1000;
    pointer-events: none;
}

.navbar > * {
    pointer-events: auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: color 0.3s ease;
}
.logo-text b { color: #b08d57; font-weight: 500; }

body.menu-open .logo-text {
    color: #1a1a1a;
    text-shadow: none;
}

/* ==========================================
   3. BUTON MENIU (HAMBURGER)
   ========================================== */
.menu-toggle {
    width: 32px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

body.menu-open .menu-line {
    background-color: #1a1a1a;
    box-shadow: none;
}

body.menu-open .menu-line:first-child {
    transform: translateY(9px) rotate(45deg);
}

body.menu-open .menu-line:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================
   4. MENIU FULLSCREEN OVERLAY
   ========================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e6dfd1;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 30px 50px;
}

/* ==========================================
   5. LISTA DE LINK-URI DIN MENIU
   ========================================== */
.menu-list {
    list-style: none;
    margin-bottom: auto;
}

.menu-list li {
    overflow: hidden;
}

.menu-list a {
    display: flex;
    align-items: baseline;
    gap: 15px;
    font-size: 2rem;
    font-weight: 500;
    color: #1a1a1a;
    padding: 12px 0;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.6s ease,
                color 0.3s ease;
}

.menu-list a::before {
    content: attr(data-number);
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
    letter-spacing: 1px;
}

.menu-list a:hover {
    color: #666;
}

body.menu-open .menu-list a {
    transform: translateY(0);
    opacity: 1;
}

body.menu-open .menu-list li:nth-child(1) a { transition-delay: 0.1s; }
body.menu-open .menu-list li:nth-child(2) a { transition-delay: 0.15s; }
body.menu-open .menu-list li:nth-child(3) a { transition-delay: 0.2s; }
body.menu-open .menu-list li:nth-child(4) a { transition-delay: 0.25s; }
body.menu-open .menu-list li:nth-child(5) a { transition-delay: 0.3s; }
body.menu-open .menu-list li:nth-child(6) a { transition-delay: 0.35s; }

/* ==========================================
   6. FOOTER MENIU (CONTACT & SOCIAL)
   ========================================== */
.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

body.menu-open .menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.menu-contact p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 10px;
}

.menu-contact a {
    display: block;
    font-size: 0.85rem;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.menu-social {
    display: flex;
    gap: 20px;
}

.menu-social a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    transition: color 0.3s ease;
}

.menu-social a:hover {
    color: #1a1a1a;
}

/* ==========================================
   7. SLIDER WRAPPER
   ========================================== */
.slider-wrapper {
    position: relative;
    width: 100vw; height: 100vh;
}

.screen-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 100;
    pointer-events: none;
}

/* ==========================================
   8. SLIDE & POZE — FIX ÎNCADRARE
   ========================================== */
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
}

.slide.active,
.slide.animating-out,
.slide.animating-in {
    display: block;
}

.screen-half {
    position: absolute;
    width: 100%;
    height: 50%;
    overflow: hidden;
    will-change: transform;
}

.screen-half.top { top: 0; }
.screen-half.bottom { bottom: 0; }

/* FIX: pozele se afișează integral, ancorate corect per jumătate */
.bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    /* Default-uri mai sigure decât 'top'/'bottom' — păstrează mobila în cadru
       chiar și pe imagini fără override explicit mai jos. */
    background-position: center 45%;
}

.screen-half.top .bg-img    { background-position: center 40%; }
.screen-half.bottom .bg-img { background-position: center 55%; }

/* ==========================================
   OVERRIDE-URI PER POZĂ — tunate pentru a păstra mobila esențială
   în cadru când imaginea e crop-uită la 50vh înălțime (≈3.5:1).
   Cum funcționează: Y% din `background-position: center Y%` indică ce
   parte din ÎNĂLȚIMEA imaginii rămâne vizibilă (0% = sus, 100% = jos).
   ========================================== */

/* — BUCĂTĂRIE — */
.img-top-bucatarie {
    background-image: url('Bucatarii/image00043.webp');
    background-position: center 50%;
}
.img-bottom-bucatarie {
    background-image: url('bucatarie2.jpeg');
    background-position: center 42%;          /* LED + marmură + counter */
}

/* — HOL — */
.img-top-hol {
    background-image: url('hol.jpg');
    background-position: center 55%;          /* dulapuri + accent auriu */
}
.img-bottom-hol {
    background-image: url('hol2.jpeg');
    background-position: center 42%;          /* reflexie oglinzi cu bucătărie */
}

/* — LIVING — */
.img-top-living {
    background-image: url('living2.jpg');
    background-position: center 45%;          /* bibliotecă verde cu arcade */
}
.img-bottom-living {
    background-image: url('living3.jpg');
    background-position: center 38%;          /* panou marmură + lambriu lemn */
}

/* — BAIE — */
.img-top-baie {
    background-image: url('baie1.jpg');
    background-position: center 42%;          /* coloană lemn + lavoar */
}
.img-bottom-baie {
    background-image: url('Baie/image00039.webp');
    background-position: center 50%;
}

/* — DORMITOR — */
.img-top-dormitor {
    background-image: url('dormitor1.jpg');
    background-position: center 70%;          /* pat + culoar (esențial jos) */
}
.img-bottom-dormitor {
    background-image: url('dormitor2.jpg');
    background-position: center 55%;          /* birou + dulap + lampi */
}

/* — DRESSING — */
.img-top-dressing {
    background-image: url('dressing3.jpg');
    background-position: center 50%;          /* dulap alb + candelabru */
}
.img-bottom-dressing {
    background-image: url('Dressing/pozik1 (51).webp');
    background-position: center 50%;
}

/* ==========================================
   ÎNCADRARE DESKTOP — pe ecrane late jumătățile sunt ≈3.5:1, deci fiecare
   poză are nevoie de poziționare proprie ca să se vadă esențialul (mobila).
   Pe mobil (jumătăți aproape pătrate) rămâne genericul 40%/55% care arată bine.
   Specificitatea (.screen-half.top .bg-img.img-...) bate regula generică.
   Y%: 0% = partea de sus a pozei, 100% = partea de jos.
   ========================================== */
@media (min-width: 769px) {
    .screen-half.top    .bg-img.img-top-bucatarie    { background-position: center 60%; }
    .screen-half.bottom .bg-img.img-bottom-bucatarie { background-position: center 45%; }
    .screen-half.top    .bg-img.img-top-hol          { background-position: center 55%; }
    .screen-half.bottom .bg-img.img-bottom-hol       { background-position: center 45%; }
    .screen-half.top    .bg-img.img-top-living       { background-position: center 48%; }
    .screen-half.bottom .bg-img.img-bottom-living    { background-position: center 40%; }
    .screen-half.top    .bg-img.img-top-baie         { background-position: center 45%; }
    .screen-half.bottom .bg-img.img-bottom-baie      { background-position: center 50%; }
    .screen-half.top    .bg-img.img-top-dormitor     { background-position: center 68%; }
    .screen-half.bottom .bg-img.img-bottom-dormitor  { background-position: center 55%; }
    .screen-half.top    .bg-img.img-top-dressing     { background-position: center 50%; }
    .screen-half.bottom .bg-img.img-bottom-dressing  { background-position: center 50%; }
}

/* ==========================================
   9. CHENARUL CENTRAL (LINK)
   ========================================== */
.split-card-wrapper {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 450px;
    height: 180px;
    overflow: hidden;
    z-index: 15;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.split-card-wrapper:active {
    transform: translate(-50%, -50%) scale(0.98);
}

.card-half {
    position: absolute;
    width: 100%;
    height: 50%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e6dfd1;
    will-change: transform;
}

.top-card {
    top: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.bottom-card {
    bottom: 0;
}

/* ==========================================
   10. LOGICA ANIMAȚIILOR SLIDER
   ========================================== */
body.swipe-up .slide.animating-out { z-index: 20; }
body.swipe-up .slide.animating-in { z-index: 10; }

body.swipe-up .slide.animating-out .screen-half.top { animation: openTop 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards; }
body.swipe-up .slide.animating-out .screen-half.bottom { animation: openBottom 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards; }
body.swipe-up .slide.animating-out .top-card { animation: openTop 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards; }
body.swipe-up .slide.animating-out .bottom-card { animation: openBottom 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards; }

body.swipe-down .slide.animating-out { z-index: 10; }
body.swipe-down .slide.animating-in { z-index: 20; }

body.swipe-down .slide.animating-in .screen-half.top { animation: closeTop 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards; }
body.swipe-down .slide.animating-in .screen-half.bottom { animation: closeBottom 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards; }
body.swipe-down .slide.animating-in .top-card { animation: closeTop 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards; }
body.swipe-down .slide.animating-in .bottom-card { animation: closeBottom 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards; }

/* ==========================================
   11. KEYFRAMES
   ========================================== */
@keyframes openTop { to { transform: translateY(-100%); } }
@keyframes openBottom { to { transform: translateY(100%); } }
@keyframes closeTop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
@keyframes closeBottom {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ==========================================
   12. STIL TEXT (PREMIUM)
   ========================================== */
.card-content { display: flex; flex-direction: column; }
.project-title {
    font-size: 1.4rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 4px; color: #1a1a1a;
}
.project-details {
    font-size: 0.7rem; font-weight: 500;
    display: flex; gap: 15px; text-transform: uppercase;
    letter-spacing: 1.5px; color: #666; width: 100%;
}
.card-logo {
    font-size: 1.5rem; font-weight: 700; color: rgba(0,0,0,0.1);
}

/* ==========================================
   13. INDICATOR NAVIGARE (DOTS)
   ========================================== */
.slide-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.slide-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.slide-dot.active {
    background-color: rgba(255, 255, 255, 0.95);
    height: 20px;
    border-radius: 2px;
}

body.menu-open .slide-indicator {
    opacity: 0;
}

/* ==========================================
   14. HINT SWIPE (prima vizită)
   ========================================== */
.swipe-hint {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.swipe-hint.hidden {
    opacity: 0;
}

.swipe-hint-arrow {
    width: 1px;
    height: 30px;
    background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
    animation: swipeArrow 1.8s ease-in-out infinite;
}

.swipe-hint-text {
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

@keyframes swipeArrow {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-8px); opacity: 0.4; }
}
.wood-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; 
    z-index: 9999; 

    /* Folosim un filtru care forțează culorile spre maro închis */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='wood'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.15 0.01' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0.39 0 0 0 0.26 0.27 0 0 0 0.18 0.16 0 0 0 0.11 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23wood)'/%3E%3C/svg%3E");
    
    /* Fundalul general - am pus un maro foarte transparent și cald */
    background-color: rgba(101, 67, 33, 0.1); 
    
    /* 'multiply' va face ca liniile maro să se imprime peste site-ul tău */
    mix-blend-mode: multiply; 
    
    /* Ajustează aici cât de vizibil să fie totul (0.1 e discret, 0.4 e intens) */
    opacity: 0.4; 
}