/* --- 1. VARIABILE & RESET MODERN --- */
:root {
    /* Paleta de culori - Refugiul Sidor */
    --color-blue-deep: #0D2C54;   /* Albastru Lipovenesc Închis - pentru Text/Headings */
    --color-blue-vibrant: #2E86AB;/* Albastru Azur - pentru Accente/Butoane */
    --color-blue-soft: #eef5f9;   /* Albastru foarte pal - pentru fundaluri subtile */
    --color-sand: #F1E8D9;        /* Bej Stuf - fundal secundar */
    --color-white: #ffffff;
    --color-text-body: #4a5568;   /* Gri închis, mai blând decât negrul pur */
    
    /* Tipografie */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spatieri & UI */
    --radius-sm: 8px;
    --radius-md: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Text mai clar pe Mac/iOS */
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3 { 
    font-family: var(--font-heading); 
    color: var(--color-blue-deep); 
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 2rem; text-align: center; position: relative; display: inline-block; width: 100%;}
/* Linie decorativă sub titluri */
h2::after {
    content: ''; display: block; width: 60px; height: 3px; 
    background: var(--color-blue-vibrant); margin: 1rem auto 0; border-radius: 2px;
}
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; font-weight: 700; }
p { margin-bottom: 1.5rem; font-size: 1.05rem; }

/* --- 3. NAVIGATIE (Glassmorphism) --- */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); /* Efectul de sticlă */
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    transition: padding 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--color-blue-deep);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}
.logo i { color: var(--color-blue-vibrant); }

nav ul { display: flex; gap: 2.5rem; align-items: center; }
nav a { 
    font-weight: 600; font-size: 0.95rem; color: var(--color-blue-deep); 
    position: relative;
}
/* Hover effect fin la meniu */
nav a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background-color: var(--color-blue-vibrant);
    transition: var(--transition);
}
nav a:hover::after { width: 100%; }

/* Selector Limba */
.lang-select-wrapper { margin-left: 0.5rem; }
select.lang-select {
    padding: 6px 12px;
    border: 1px solid rgba(46, 134, 171, 0.3);
    border-radius: 20px;
    background: transparent;
    color: var(--color-blue-deep);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    outline: none;
    font-size: 0.85rem;
    transition: var(--transition);
}
select.lang-select:hover { border-color: var(--color-blue-vibrant); background: var(--color-blue-soft); }

.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--color-blue-deep); }

/* --- 4. HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 600px;
    /* Overlay gradient mai modern */
    background: linear-gradient(180deg, rgba(13, 44, 84, 0.3) 0%, rgba(13, 44, 84, 0.7) 100%), 
                url('./hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Fixed face probleme pe mobil uneori, scroll e mai safe */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
    margin-top: 0;
}

.hero-content { max-width: 800px; animation: fadeUp 1s ease-out; }
.hero-content h1 { color: var(--color-white); text-shadow: 0 2px 10px rgba(0,0,0,0.3); margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2.5rem; font-weight: 400; }

/* Butoane Modernizate */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--color-blue-vibrant);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(46, 134, 171, 0.4);
}
.btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(46, 134, 171, 0.5);
    background-color: #257091; 
}
.btn.secondary { background: transparent; border-color: var(--color-blue-deep); color: var(--color-blue-deep); box-shadow: none;}
.btn.secondary:hover { background: var(--color-blue-deep); color: white; border-color: var(--color-blue-deep); }

/* --- 5. SECTIUNI & POVESTE --- */
section { padding: 6rem 5%; }
.bg-sand { background-color: var(--color-sand); }

.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.story-img { position: relative; }
.story-img img { 
    border-radius: var(--radius-md); 
    box-shadow: var(--shadow-md); 
    transition: var(--transition);
}
.story-img:hover img { transform: scale(1.02); box-shadow: var(--shadow-hover); }

/* --- 6. CAZARE (Cards) --- */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}
.room-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.room-img { height: 280px; overflow: hidden; position: relative; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.room-card:hover .room-img img { transform: scale(1.08); }

.room-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.room-content h3 { display: flex; align-items: center; justify-content: space-between; }

/* Eticheta NOU */
.badge { 
    background: var(--color-blue-vibrant); color: white; 
    padding: 4px 10px; border-radius: 20px; 
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
}

.room-icons { 
    display: flex; gap: 15px; margin: auto 0 0; padding-top: 1.5rem;
    border-top: 1px solid #eee; color: var(--color-blue-vibrant); font-size: 1.1rem; 
}
.room-icons i { 
    background: var(--color-blue-soft); padding: 8px; border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.room-card:hover .room-icons i { background: var(--color-blue-vibrant); color: white; }

/* --- 7. EXPERIENCE / DELTAVENTURE --- */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.exp-col { padding: 5rem; color: white; display: flex; flex-direction: column; justify-content: center; }
.exp-blue { background-color: var(--color-blue-deep); position: relative; overflow: hidden; }
/* Pattern subtil pe fundalul albastru */
.exp-blue::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 20%);
    pointer-events: none;
}

.exp-img { 
    background: url('gaste.jpg?text=Gradina+si+Gaste'); 
    background-size: cover; background-position: center; min-height: 400px; 
}

/* --- 8. FOOTER --- */
footer {
    background-color: var(--color-blue-deep);
    color: rgba(255,255,255,0.7);
    padding: 5rem 5% 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-col h3 { color: white; margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: white; transform: translateX(5px); }

.social-links { margin-top: 1.5rem; display: flex; gap: 1rem; }
.social-links a { 
    font-size: 1.5rem; color: white; opacity: 0.8; transition: var(--transition); 
}
.social-links a:hover { opacity: 1; transform: translateY(-3px); color: var(--color-blue-vibrant); }

.copyright { 
    text-align: center; border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 2rem; font-size: 0.9rem; opacity: 0.6; 
}

/* --- 9. RESPONSIVE (MOBILE) --- */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    .story-container { grid-template-columns: 1fr; gap: 3rem; }
    .story-text { order: 2; }
    .story-img { order: 1; }
    .experience-grid { grid-template-columns: 1fr; }
    .exp-col { padding: 3rem 2rem; }
    .exp-img { min-height: 250px; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    nav { position: absolute; top: 100%; left: 0; width: 100%; }
    nav ul {
        display: none;
        flex-direction: column;
        background: white;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }
    nav ul.active { display: flex; animation: slideDown 0.3s ease-out; }
    .hero-content h1 { font-size: 2.2rem; }
    section { padding: 4rem 5%; }
}

/* Animatii */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FIX BUTON DELTAVENTURE --- */
.btn.btn-white {
    background-color: var(--color-white);
    color: var(--color-blue-deep) !important; /* !important asigură culoarea textului */
    border: 2px solid var(--color-white);
}

.btn.btn-white:hover {
    background-color: var(--color-sand); /* Bej deschis la hover */
    border-color: var(--color-sand);
    color: var(--color-blue-deep) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- GDPR COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Ascuns initial */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(13, 44, 84, 0.95); /* Albastru închis semi-transparent */
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 9999;
    transition: bottom 0.5s ease-out;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-banner a {
    color: var(--color-blue-vibrant); /* Albastru deschis */
    text-decoration: underline;
}

.cookie-banner button {
    white-space: nowrap;
    background: white;
    color: var(--color-blue-deep);
    border: none;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
}

.cookie-banner button:hover {
    background: var(--color-sand);
    transform: translateY(-2px);
}

/* Clasa pentru a afișa bannerul */
.cookie-banner.show {
    bottom: 20px;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}


/* --- GALERIE FOTO (Grid Modern) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: 250px; /* Înălțime standard pentru rânduri */
    grid-auto-flow: dense; /* Umple golurile automat */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Taie imaginea ca să umple pătratul fără să se deformeze */
    transition: transform 0.5s ease;
}

/* Efect Hover: Zoom fin */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Clase speciale pentru imagini mai mari (doar pe Desktop) */
@media (min-width: 768px) {
    .item-large {
        grid-column: span 2;
        grid-row: span 2;
    }
    .item-wide {
        grid-column: span 2;
    }
    .item-tall {
        grid-row: span 2;
    }
}

/* Pe mobil, toate imaginile sunt una sub alta sau 2 pe rând */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 coloană pe mobil */
        grid-auto-rows: 300px;
    }
    .item-large, .item-wide, .item-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}