/*
Theme Name: Ubytování u Kocábů
Author: Jan Ráček
Description: Refined WordPress theme for Ubytování u Kocábů
Version: 2.0
*/

@font-face {
    font-family: 'Zapfino';
    src: url('assets/fonts/Zapfino.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

:root {
    --primary-green: #2D5016;
    --accent-gold: #C9A961;
    --deep-wine: #4A1C1C;
    --warm-cream: #F7F3ED;
    --soft-sage: #8B9B7E;
    --charcoal: #2B2B2B;
    --white: #FFFFFF;
    --light-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --medium-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--charcoal);
    overflow-x: hidden;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Zapfino', cursive;
    line-height: 1.3;
    font-weight: normal;
    text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.34);
}

h2 {
    font-size: 3rem;
    color: var(--primary-green);
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-green);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 16px 48px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 2px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--primary-green);
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-green);
}

.btn.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
}

.btn.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

section {
    padding: 120px 0;
}

.section-title {
    margin-bottom: 60px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--light-shadow);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin: 0;
    transform: translateY(80%);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 45px;
}

.nav-menu a {
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--charcoal);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: var(--primary-green);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-green);
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(45, 80, 22, 0.4), rgba(45, 80, 22, 0.6)), url('assets/img/herobg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-attachment: fixed;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 2;
    font-family: 'Segoe UI', sans-serif;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    background-color: var(--white);
    color: var(--primary-green);
    border-color: var(--white);
    font-size: 1rem;
    padding: 18px 55px;
}

.hero .btn:hover {
    background-color: transparent;
    color: var(--white);
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    opacity: 0.7;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 30px;
    }
}

.about {
    background-color: var(--warm-cream);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.8rem;
}

.about-content .btn {
    margin-top: 20px;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--medium-shadow);
    position: relative;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -30px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-gold);
    z-index: 0;
}

.accommodation {
    background-color: var(--white);
}

.accommodation-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.rooms-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.room-card {
    background-color: var(--white);
    padding: 50px 40px;
    border-bottom: 3px solid var(--accent-gold);
    transition: var(--transition);
    box-shadow: var(--light-shadow);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--medium-shadow);
    border-bottom-color: var(--primary-green);
}

.room-card h3 {
    padding-top: 3rem;
}

.accommodation-details {
    text-align: center;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 60px;
    border-radius: 2px;
    margin-top: 40px;
}

.accommodation-details p {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.accommodation-details p:last-of-type {
    margin-bottom: 30px;
}

.accommodation-details .btn {
    background-color: var(--white);
    color: var(--primary-green);
    border-color: var(--white);
}

.accommodation-details .btn:hover {
    background-color: transparent;
    color: var(--white);
}

.features {
    background: linear-gradient(135deg, var(--warm-cream) 0%, var(--white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 40px;
}

.feature-item {
    padding: 40px 30px;
    background-color: var(--white);
    border-bottom: 3px solid var(--soft-sage);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--medium-shadow);
    border-bottom-color: var(--accent-gold);
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    padding-top: 2rem;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.area-section {
    background-color: var(--white);
}

.area-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    align-items: center;
}

.area-image-wrapper {
    position: relative;
}

.area-image {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--medium-shadow);
    position: relative;
    z-index: 1;
}

.area-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

.area-image-wrapper::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100%;
    height: 100%;
    background-color: var(--soft-sage);
    opacity: 0.3;
    z-index: 0;
}

.area-content .btn {
    margin-top: 20px;
}

.gallery {
    background-color: var(--warm-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    height: 720px;
}

.gallery-item:nth-child(4) {
    grid-column: 2 / 4;
    height: 450px;
}

.gallery-item:nth-child(5) {
    grid-column: 1;
    height: 450px;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 43, 43, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-size: 1.1rem;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact {
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    margin-bottom: 80px;
}

.contact-info h3 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.contact-detail {
    margin-bottom: 30px;
    padding-left: 0;
}

.contact-detail p {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--charcoal);
}

.contact-detail span {
    font-size: 0.9rem;
    color: var(--soft-sage);
    font-family: 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.contact-info .btn {
    margin-top: 30px;
}

.contact-form h3 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 25px;
    border: 2px solid var(--warm-cream);
    border-radius: 2px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.contact-form textarea {
    height: 180px;
    resize: vertical;
}

.map-container {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--medium-shadow);
    height: 500px;
}

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

footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--accent-gold);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.footer-col p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    opacity: 0.9;
    transition: var(--transition);
    font-family: 'Segoe UI', sans-serif;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent-gold);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }

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

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .about-layout,
    .area-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image-wrapper::after,
    .area-image-wrapper::before {
        display: none;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .gallery-item:nth-child(1) {
        grid-column: 1 / 3;
        height: 450px;
    }

    .gallery-item:nth-child(4) {
        grid-column: 1 / 3;
        height: 350px;
    }

    .gallery-item:nth-child(5) {
        grid-column: 1;
        height: 350px;
    }

    .gallery-item {
        height: 350px;
    }
}

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

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 80%;
        height: calc(100vh - 80px);
        padding: 40px 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--warm-cream);
    }

    .nav-menu a::after {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 80px 0;
    }

    .section-title {
        padding-top: 2rem;
    }

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

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

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

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: 1;
        height: 300px;
    }

    .gallery-item {
        height: 300px;
    }

    .contact-form h3 {
        padding-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .btn {
        padding: 15px 35px;
    }

    section {
        padding: 60px 0;
    }

    .btn {
        padding: 14px 35px;
        font-size: 0.85rem;
    }

    .logo h1 {
        display: none;
    }
}