/*
Theme Name: Willa Wiktoria
Theme URI: https://willawiktoria.com
Description: Modern theme for Willa Wiktoria guesthouse in Bukowina Tatrzanska
Author: Willa Wiktoria
Version: 2.0
Text Domain: wiktoria
*/

:root {
    --color-primary: #2c1810;
    --color-accent: #8b6914;
    --color-warm: #d4a843;
    --color-light: #faf8f5;
    --color-bg: #ffffff;
    --color-text: #3a3a3a;
    --color-muted: #7a7a7a;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }

/* ===== NAVIGATION ===== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.site-nav.transparent {
    background: transparent;
    border-bottom-color: transparent;
}

.site-nav.transparent .nav-link { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.site-nav.transparent .nav-logo { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

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

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-primary); margin: 5px 0; transition: 0.3s; }
.site-nav.transparent .nav-toggle span { background: #fff; }

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.15) 50%,
        rgba(0,0,0,0.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    background: var(--color-warm);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-cta:hover { background: var(--color-accent); transform: translateY(-2px); }

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    opacity: 0.7;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 2rem;
}

.section--alt { background: var(--color-light); }

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-desc {
    max-width: 650px;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 1.05rem;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image { border-radius: 4px; overflow: hidden; }
.about-image img { width: 100%; height: 500px; object-fit: cover; }

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.about-text p { margin-bottom: 1rem; color: var(--color-muted); }

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.about-feature svg { flex-shrink: 0; color: var(--color-accent); }

/* ===== ROOMS ===== */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.room-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.room-card:hover { transform: translateY(-4px); box-shadow: 0 8px 40px rgba(0,0,0,0.1); }

.room-gallery {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.room-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.room-gallery img.active { opacity: 1; }

.room-gallery-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.room-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.room-gallery-dot.active { background: #fff; }

.room-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.room-card:hover .room-gallery-arrow { opacity: 1; }
.room-gallery-arrow.prev { left: 0.75rem; }
.room-gallery-arrow.next { right: 0.75rem; }

.room-info { padding: 2rem; }

.room-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.room-capacity {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.room-amenity {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    background: var(--color-light);
    border-radius: 20px;
    color: var(--color-muted);
}

.room-price {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.room-price strong {
    font-size: 1.3rem;
    color: var(--color-primary);
}

/* ===== AMENITIES SECTION ===== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.amenity-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.amenity-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light);
    border-radius: 50%;
    color: var(--color-accent);
}

.amenity-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.amenity-desc {
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 0.75rem;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 6px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.05); }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

/* ===== LOCATION ===== */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.location-map {
    border-radius: 4px;
    overflow: hidden;
    height: 450px;
}

.location-map iframe, .location-map #map-container {
    width: 100%;
    height: 100%;
}

.location-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.location-detail {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.location-detail svg { flex-shrink: 0; color: var(--color-accent); margin-top: 2px; }
.location-detail p { color: var(--color-muted); font-size: 0.95rem; }
.location-detail strong { color: var(--color-text); }

.distances {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.distances h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.distance-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--color-muted);
    border-bottom: 1px solid #f0f0f0;
}

.distance-item span:last-child { font-weight: 600; color: var(--color-text); }

/* ===== RULES ===== */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.rule-card {
    padding: 2rem;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.rule-card h4 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rule-card p, .rule-card li {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.8;
}

.rule-card ul { list-style: none; }
.rule-card li::before { content: "- "; color: var(--color-accent); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.7);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .nav-logo { color: #fff; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--color-warm); }

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .about-grid,
    .location-grid { grid-template-columns: 1fr; }

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

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

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

    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }

    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 0.5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }

    .section { padding: 4rem 1.25rem; }

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

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

    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .gallery-item.wide, .gallery-item.tall { grid-column: auto; grid-row: auto; }

    .hero-title { font-size: 2.5rem; }
}
