/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --color-bg: #0f0f0f;
    --color-surface: #171717;
    --color-surface-light: #222222;
    --color-gold: #cfaa71;
    --color-gold-hover: #e0be84;
    --color-white: #ffffff;
    --color-text: #b0b0b0;
    --font-heading: 'Cinzel', serif;
    --font-text: 'Montserrat', sans-serif;
}

/* Reset & Lenis */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; background-color: var(--color-bg); }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
    font-family: var(--font-text); color: var(--color-text); line-height: 1.8;
    overflow-x: hidden; -webkit-font-smoothing: antialiased; background-color: var(--color-bg);
    cursor: none;
}

/* Particles Canvas */
#particles-canvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1; pointer-events: none; opacity: 0.8;
}

/* Custom Cursor */
.cursor-dot {
    width: 6px; height: 6px; background-color: var(--color-gold);
    position: fixed; top: 0; left: 0; border-radius: 50%; z-index: 10000;
    pointer-events: none; transform: translate(-50%, -50%);
}
.cursor-outline {
    width: 40px; height: 40px; border: 1px solid rgba(207, 170, 113, 0.5);
    position: fixed; top: 0; left: 0; border-radius: 50%; z-index: 9999;
    pointer-events: none; transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-outline.hover-active {
    width: 70px; height: 70px; background-color: rgba(207, 170, 113, 0.1); border-color: transparent;
}

/* Typography */
h1, h2, h3, h4, .logo { font-family: var(--font-heading); font-weight: 400; color: var(--color-white); max-width: 100%; }
.h1 { font-size: clamp(2.5rem, 8vw, 7rem); line-height: 1.1; letter-spacing: 0.05em; text-transform: uppercase; }
.h2 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.2; margin-bottom: 2rem; letter-spacing: 0.02em; }
.h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 1rem; color: var(--color-gold); }
.subtitle { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--color-gold); margin-bottom: 1.5rem; display: block; font-weight: 600; }
p { margin-bottom: 1.5rem; font-size: 1.05rem; max-width: 100%; }

/* GSAP Helper Classes */
.visibility-hidden { visibility: hidden; }
.line-wrapper { overflow: hidden; display: inline-block; vertical-align: bottom; }
.line-content { display: inline-block; }

/* Utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%; position: relative; z-index: 10; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 5%; text-align: center; position: relative; z-index: 10; }

/* Header */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 2rem 5%; transition: padding 0.5s ease, background 0.5s ease;
    display: flex; justify-content: space-between; align-items: center;
}
.header.scrolled {
    padding: 1rem 5%; background: rgba(15,15,15,0.95);
    backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo { font-size: 1.8rem; text-decoration: none; display: flex; flex-direction: column; line-height: 1; letter-spacing: 0.1em; cursor: none; }
.logo span { font-size: 0.6rem; font-family: var(--font-text); color: var(--color-gold); letter-spacing: 0.5em; margin-top: 5px; }

.nav-desktop { display: flex; gap: 3rem; }
.nav-link {
    color: var(--color-white); text-decoration: none; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.2em; position: relative;
    padding-bottom: 0.5rem; transition: 0.3s; cursor: none;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 1px; background: var(--color-gold); transition: 0.4s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--color-gold); }

/* Buttons */
.btn {
    display: inline-block; padding: 1.2rem 3rem;
    border: 1px solid var(--color-gold); background: transparent;
    color: var(--color-gold); font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.2em; text-decoration: none; cursor: none;
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--color-gold); transition: all 0.4s ease; z-index: -1;
}
.btn:hover { color: var(--color-bg); }
.btn:hover::before { left: 0; }
.btn-solid { background: var(--color-gold); color: var(--color-bg); }
.btn-solid::before { background: var(--color-white); }
.btn-solid:hover { color: var(--color-bg); }

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; gap: 6px; z-index: 1001; cursor: none; }
.menu-toggle span { width: 30px; height: 1px; background: var(--color-white); transition: 0.4s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15,15,15,0.98); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
    transform: translateY(-100%); transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1); z-index: 999;
}
.mobile-nav.active { transform: translateY(0); }
.mobile-nav a { font-family: var(--font-heading); font-size: 2.5rem; color: var(--color-white); text-decoration: none; cursor: none; }
@media (max-width: 768px) { .nav-desktop { display: none; } .menu-toggle { display: flex; } }

/* Hero GSAP Parallax */
.hero-wrapper {
    position: relative; height: 100vh; min-height: 800px; width: 100vw; overflow: hidden;
}
.hero-image {
    position: absolute; top: -10%; left: 0; width: 100%; height: 120%;
    object-fit: cover; z-index: -2;
}
.hero-overlay {
    position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,15,0.2) 0%, rgba(15,15,15,0.95) 100%); z-index: -1;
}
.hero-content {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; width: 100%; padding: 0 5%; z-index: 10;
}
.hero-scroll-indicator {
    position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    opacity: 0.6; z-index: 10;
}
.hero-scroll-indicator span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.hero-scroll-indicator .line { width: 1px; height: 40px; background: var(--color-gold); }

/* Hero Booking Bar (Glassmorphism) */
.hero-booking-bar {
    margin-top: 4rem; background: rgba(15, 15, 15, 0.4); backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem; display: inline-flex; flex-wrap: wrap; gap: 2rem; align-items: flex-end;
    border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.booking-input { display: flex; flex-direction: column; text-align: left; min-width: 160px; }
.booking-input label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-gold); margin-bottom: 0.8rem; }
.booking-input input, .booking-input select {
    background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white); font-family: var(--font-text); font-size: 1.1rem; padding-bottom: 0.5rem;
    outline: none; cursor: none; transition: 0.3s;
}
.booking-input input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); cursor: none; }
.booking-input input:focus, .booking-input select:focus { border-bottom-color: var(--color-gold); }
.booking-input select option { background: var(--color-bg); color: var(--color-white); }
.hero-booking-bar .btn { padding: 1rem 2.5rem; margin-bottom: 0.1rem; }
@media (max-width: 900px) {
    .hero-booking-bar { flex-direction: column; width: 100%; align-items: stretch; gap: 1.5rem; }
    .booking-input { min-width: 100%; }
}

/* Content Sections */
.content-section { padding: 8rem 0; position: relative; background: var(--color-bg); z-index: 5; }

/* Split Parallax with GSAP */
.split-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; background: var(--color-surface);
    align-items: stretch; position: relative; z-index: 5;
}
.split-image-container { overflow: hidden; position: relative; height: 100%; min-height: 50vh; }
.split-image-container img { position: absolute; top: -15%; left: 0; width: 100%; height: 130%; object-fit: cover; transition: transform 0.8s ease; }
.split-wrapper:hover .split-image-container img { transform: scale(1.05); }
.split-content { padding: 6rem 8%; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
@media (max-width: 900px) {
    .split-wrapper { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .split-image-container { height: 50vh; min-height: 50vh; }
    .split-content { padding: 4rem 5%; }
    .reverse-mobile .split-image-container { order: -1; }
}

/* GSAP Image Clip Reveal */
.img-reveal-container { overflow: hidden; position: relative; }
.img-reveal-overlay { position: absolute; inset: 0; background: var(--color-bg); z-index: 2; transform-origin: bottom; }

/* Rooms layout */
.room-detailed { margin-bottom: 10rem; position: relative; z-index: 5; }
.room-gallery { height: 70vh; overflow: hidden; position: relative; width: 90%; margin-left: auto; }
.room-gallery img { width: 100%; height: 130%; object-fit: cover; position: absolute; top: -15%; left: 0; transition: transform 1s ease; }
.room-detailed:hover .room-gallery img { transform: scale(1.03); }
.room-gallery.left { margin-left: 0; margin-right: auto; }

.room-info-box {
    background: var(--color-surface); padding: 5rem; width: 65%; position: relative;
    z-index: 10; box-shadow: 0 30px 60px rgba(0,0,0,0.8); margin-top: -10rem; transition: transform 0.5s ease;
}
.room-detailed:hover .room-info-box { transform: translateY(-10px); }
.room-gallery.left + .room-info-box { margin-left: auto; }

.amenities-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.amenities-list li { list-style: none; display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.amenities-list li::before { content: '✦'; color: var(--color-gold); }
.price-tag { font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-gold); margin-bottom: 2rem; display: block; }

@media (max-width: 1024px) {
    .room-gallery { width: 100%; height: 50vh; }
    .room-info-box { width: 95%; margin: -5rem auto 0; padding: 3rem 2rem; }
    .amenities-list { grid-template-columns: 1fr; }
}

/* Feature Grid with 3D Tilt Hover */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; margin-top: 4rem; perspective: 1000px; }
.feature-card { 
    padding: 3rem; background: var(--color-surface); 
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    border-top: 2px solid transparent; transform-style: preserve-3d;
    text-align: center; /* Wyśrodkowanie ikon i napisów */
}
.feature-card:hover { 
    border-color: var(--color-gold); transform: translateY(-10px) rotateX(5deg) rotateY(5deg); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.feature-card p { font-size: 0.95rem; line-height: 1.7; color: var(--color-text); }
.feature-card .h3 { margin-bottom: 1.5rem; } /* Usunięto white-space: nowrap i dodano margines */
.feature-icon { font-size: 2.5rem; margin-bottom: 1.5rem; display: flex; justify-content: center; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Contact Form */
.contact-form input, .contact-form textarea {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--color-white); font-family: var(--font-text); font-size: 1rem; padding: 1rem 0; margin-bottom: 2rem;
    outline: none; transition: 0.3s; cursor: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--color-gold); }

/* Footer */
footer { position: relative; z-index: 10; background: #000; padding: 6rem 5% 3rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4rem; margin-bottom: 4rem; text-align: left; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { color: var(--color-gold); margin-bottom: 1.5rem; letter-spacing: 0.2em; font-size: 0.9rem; text-transform: uppercase; }
.footer-col p, .footer-col a { color: var(--color-text-muted); text-decoration: none; font-size: 0.95rem; transition: 0.3s; line-height: 2; display: block; cursor: none; }
.footer-col a:hover { color: var(--color-white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; font-size: 0.8rem; margin-top: 4rem; }

/* Text Pages (Polityka, Regulamin, Kariera) */
.text-page-content { padding: 10rem 5% 5rem; max-width: 900px; margin: 0 auto; }
.text-page-content h2 { margin-top: 3rem; margin-bottom: 1rem; color: var(--color-white); }
.text-page-content p { margin-bottom: 1.5rem; }
.text-page-content ul { margin-left: 2rem; margin-bottom: 2rem; }
.text-page-content ul li { margin-bottom: 0.5rem; }

/* Touch Device Adjustments (Hide Custom Cursor) */
@media (pointer: coarse) {
    .cursor-dot, .cursor-outline { display: none !important; }
    body, a, button, input, textarea, select, .btn, .logo, .nav-link, .menu-toggle, .footer-col a { cursor: auto !important; }
}
