/* === Zmienne CSS === */
:root {
    --primary-blue: #2A4B7C;
    --accent-gold: #C5A47E;
    --light-beige: #F8F5F2;
    --dark-text: #333333;
    --light-gray: #e4e4e4;
    --medium-gray: #34495e;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}


/* === Reset stylów i ustawienia globalne === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease; /* Globalna animacja przejść */
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    color: var(--dark-text);
    line-height: 1.6;
    font-size: 16px;
}

/* === Nagłówek strony === */
.main-header {
    height: 100vh;
    color: white;
    position: relative;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8),
                 4px 4px 6px rgba(0, 0, 0, 0.9),
                 6px 6px 8px rgba(0, 0, 0, 1.9);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* === Nawigacja === */
.main-nav {
    background-color: transparent;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    color: white;
    background-color: transparent;
    padding: 3rem;
    border-radius: 5px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Hamburger menu (widoczne na urządzeniach mobilnych) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
}

.hamburger .bar {
    width: 50px;
    height: 5px;
    background: rgb(15, 8, 8);
    margin: 6px 0;
    display: block;
}

/* === Sekcja powitalna === */
.welcome-section {
    padding: 6rem 0;
    background-color: var(--light-beige);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.amenity {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.amenity i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* === Sekcja pokoi === */
.rooms-section {
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 5vw, 2rem);
    background-color: var(--light-gray);
}

.rooms-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.room {
    display: flex;
    align-items: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, var(--white) 0%, rgba(248, 245, 242, 0.3) 100%);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 16px;
    box-shadow: 0 4px 8px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(197, 167, 126, 0.1);
}

.room:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px var(--shadow-medium);
    border-color: rgba(197, 167, 126, 0.2);
}

.room:nth-of-type(even) {
    flex-direction: row-reverse;
}

.room-image {
    flex: 1;
    margin: 0 20px;
    max-width: 40%;
}

.room-image img {
    width: 100%;
    border-radius: 10px;
}

.room-description {
    flex: 2;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.room-description h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.room-description p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--medium-gray);
    line-height: 1.7;
    font-weight: 400;
}

.room-buttons {
    display: flex;
    gap: 15px;
    margin-top: clamp(1rem, 3vw, 1.5rem);
    flex-wrap: wrap;
}

/* Sekcja szczegółów pokoju (ukryta domyślnie) */
.room-details {
    display: none;
    margin-top: clamp(1.5rem, 4vw, 2rem);
    padding: clamp(1.5rem, 4vw, 2rem);
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.8) 0%, rgba(248, 245, 242, 0.6) 100%);
    border-radius: 12px;
    border: 1px solid rgba(197, 167, 126, 0.2);
    animation: slideDown 0.4s ease;
}

.room-details.active {
    display: block;
}

.room-details h4 {
    margin-top: 10px;
}

.room-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 10px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.room-gallery img {
    width: 100%;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 2px solid transparent;
}

.room-gallery img:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 12px 30px var(--shadow-medium);
    border-color: var(--accent-gold);
}

.room-prices {
    margin-top: 10px;
}

.room-prices ul {
    list-style: none;
    padding: 0;
}

.room-prices li {
    margin-bottom: 5px;
}

/* === Sekcja galerii === */
.gallery-section {
    padding: 50px 20px;
    background-color: var(--light-gray);
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.gallery-container {
    margin-bottom: 50px;
}

.gallery-container h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-align: center;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.image-gallery img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 2px solid transparent;
}

.image-gallery img:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 12px 30px var(--shadow-medium);
    border-color: var(--accent-gold);
}

/* === Modal (wyświetlanie zdjęć) === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: 100px auto 20px auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    animation: zoomIn 0.6s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbbbbb;
    text-decoration: none;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: #ffffff;
    font-weight: bold;
    font-size: 40px;
    user-select: none;
    -webkit-user-select: none;
    transform: translateY(-50%);
    transition: color 0.3s;
    z-index: 1001;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover {
    color: #dddddd;
}

/* === Sekcja kontaktowa === */
.contact-section {
    padding: 50px 20px;
    background-color: var(--light-gray);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    color: #34495e;
    line-height: 1.6;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: block;
}

.contact-item h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-gold);
}

.contact-info i {
    color: var(--primary-blue);
    margin-right: 10px;
}

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

.reservation-form {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.map {
    margin-top: 20px;
}

#kontakt:target {
    background-color: #f0f8ff;
    padding-top: 20px;
}

#formularz:target {
    animation: highlight 2s ease;
}

/* === Przyciski === */

.cta-offer {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #D4AF8A 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 167, 126, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cta-offer:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(197, 167, 126, 0.4);
    background: linear-gradient(135deg, #D4AF8A 0%, var(--accent-gold) 100%);
}

.cta-gallery {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #D4AF8A 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 167, 126, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cta-gallery:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(197, 167, 126, 0.4);
    background: linear-gradient(135deg, #D4AF8A 0%, var(--accent-gold) 100%);
}

.cta-contact {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #D4AF8A 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 167, 126, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cta-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(197, 167, 126, 0.4);
    background: linear-gradient(135deg, #D4AF8A 0%, var(--accent-gold) 100%);
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.btn:hover {
    background-color: #1a252f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.details-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.details-btn:hover {
    background-color: #1a252f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.reserve-btn {
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.reserve-btn:hover {
    background-color: #45a049;
}

/* === Stopka === */
.main-footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a3a5c 100%);
    color: var(--white);
    padding: clamp(2rem, 5vw, 3rem) 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-content p:first-child {
    font-weight: 500;
    font-size: 1rem;
}

/* === Animacje === */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
    }
    to {
        transform: scale(1);
    }
}

@keyframes highlight {
    0% {
        background-color: rgba(255, 255, 0, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

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

/* === Responsywność === */
@media only screen and (min-width: 769px) {
    .main-header {
        background: url('/images/baner.jpg') center/cover;
        background-attachment: fixed;
    }
}

@media only screen and (max-width: 768px) {
    .main-header {
        background-attachment: scroll;
    }

    .section-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: auto;
        background: transparent;
        padding: 20px 0;
        text-align: left;
    }

    .nav-links.active {
        display: flex;
        padding-left: 30px;
        flex-direction: column;
        gap: 15px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(21px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-13px) rotate(-45deg);
    }

    .main-nav {
        height: 70px;
    }

    .room {
        flex-direction: column;
    }

    .room:nth-of-type(even) {
        flex-direction: column;
    }

    .room-image {
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    .room-description {
        padding: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 30px 10px;
    }

    .contact-section h2 {
        font-size: 2rem;
    }

    .contact-info {
        font-size: 1rem;
    }

    .image-gallery img {
        width: 100%;
        height: auto;
    }
}