@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --color-primary: #1A2E1F;
    /* Deep Forest Green */
    --color-secondary: #D4AF37;
    /* Warm Gold / Light Wood */
    --color-bg: #F5F5F0;
    /* Warm Off-White / Cream */
    --color-text: #2D2D2D;
    /* Dark Gray */
    --color-text-light: #666666;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
}

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

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.section-dark {
    background-color: var(--color-primary);
    color: #fff;
}

.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.text-center {
    text-align: center;
}

/* Typography components */
.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #ba952c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--color-primary);
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: rgba(26, 46, 31, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.logo span {
    color: var(--color-secondary);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition-smooth);
}

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

.nav-link:hover {
    color: var(--color-secondary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 25, 17, 0.8) 0%, rgba(15, 25, 17, 0.3) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 700px;
    color: #fff;
}

.hero-subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.9s forwards;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content .section-title {
    margin-bottom: 2rem;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal Gallery Extensions */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-primary);
    border: none;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 8px;
    /* Rounded square */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-nav-btn:hover {
    background: #fff;
    color: var(--color-secondary);
    transform: translateY(-50%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

#modalPrevBtn {
    left: 1rem;
}

#modalNextBtn {
    right: 1rem;
}

.modal-dots-container {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.modal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.modal-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Forms */
.form-wrapper {
    background: #fff;
    padding: 4rem;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    color: var(--color-text);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.contact-form .form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1.5px solid #eaeaea;
    border-radius: 6px;
    background-color: #fcfcfc;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    background-color: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Honeypot */
.honey-trap {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}

/* Alerts / Errors */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    font-weight: 500;
}

.alert-success {
    background-color: #f1f8e9;
    color: #33691e;
    border-left: 4px solid #7cb342;
}

.alert-error {
    background-color: #fbe9e7;
    color: #bf360c;
    border-left: 4px solid #ff7043;
}

.error-msg {
    color: #e53935;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        /* Zmniejszono odstęp pomiedzy textem a karuzela w O Nas */
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Menu Variables */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #mainNav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-primary);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 999;
    }

    #mainNav.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.2rem;
        word-wrap: break-word;
        /* Zapobiega ucinaniu tekstu */
    }

    .hero-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding: 1.5rem !important;
        /* Mniejszy padding dla okienka Hero na mobilce */
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        box-sizing: border-box;
        /* Zapobiega wylewaniu sie za ekran */
    }
}

@media (max-width: 576px) {
    .section {
        padding: 4rem 0 2rem 0;
        /* Zmniejszono gigantyczne paddingi sekcji na tel */
    }

    #rooms .text-center {
        margin-bottom: 2rem !important;
    }

    .form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}