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

:root {
    --primary-color: #2E4733;
    /* Deep, elegant green */
    --primary-light: #4A6E51;
    --secondary-color: #9C7A4A;
    /* Sophisticated Bronze/Brown */
    --secondary-light: #BCA379;
    --accent-color: #D4AF37;
    /* Subtle Gold */
    --bg-color: #F8F5F0;
    /* Warm Beige */
    --bg-card: #FFFFFF;
    /* White for cards */
    --text-main: #3E3B38;
    /* Soft Black/Dark Brown */
    --text-muted: #7A7570;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --shadow-soft: 0 10px 40px rgba(46, 71, 51, 0.08);
    --shadow-hover: 0 20px 50px rgba(156, 122, 74, 0.15);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    padding-top: 160px;
    /* Adjusted for taller navbar */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.georgia {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Navbar: Premium Glassmorphism */
.navbar {
    background-color: rgba(248, 245, 240, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(156, 122, 74, 0.1);
    transition: var(--transition);
}

.navbar-brand img {
    transition: var(--transition);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.2px;
    margin: 0 10px;
    padding: 15px 0;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 5px;
    left: 50%;
    background-color: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

/* Split Navbar Adjustments */
@media (min-width: 992px) {
    .navbar {
        height: 160px;
        display: flex;
        align-items: center;
    }

    .navbar-logo {
        height: 130px !important;
        transition: all 0.3s ease;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 20px 20px;
        padding: 20px;
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}



/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    margin-top: 10px;
    animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.dropdown-item {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    padding: 10px 25px;
    color: var(--text-main);
    transition: var(--transition);
    font-weight: 400;
}

.dropdown-item:hover {
    background-color: rgba(156, 122, 74, 0.05);
    color: var(--secondary-color);
    padding-left: 30px;
}

/* Page Title (Hero) & Home Carousel Curve */
.page-title,
#homeCarousel {
    position: relative;
    overflow: hidden;
}

.page-title::after,
#homeCarousel::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-color);
    clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%);
    z-index: 20;
    border: none;
}

.page-title {
    background: linear-gradient(rgba(46, 71, 51, 0.75), rgba(46, 71, 51, 0.85)), url('../images/slider/slide5.jpg') center/cover;
    height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: -160px;
    padding-top: 160px;
    margin-bottom: 80px;
}

.page-title h1 {
    font-size: 4.5rem;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.page-title p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-light);
}

/* Typography & Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--primary-color);
    display: inline-block;
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Content Blocks & Cards */
.card-custom,
.zestaw,
.menu-item-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 40px 30px;
    transition: var(--transition);
    border: 1px solid rgba(156, 122, 74, 0.05);
    height: 100%;
}

.card-custom:hover,
.zestaw:hover,
.menu-item-container:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(156, 122, 74, 0.2);
}

/* Menu Specific */
.menu-category {
    margin-bottom: 5rem;
}

.menu-item {
    border-bottom: 1px solid rgba(156, 122, 74, 0.15);
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    transition: var(--transition);
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: var(--border-radius-md);
    border-bottom-color: transparent;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.menu-item-price {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.2rem;
    min-width: 90px;
    text-align: right;
}

.menu-item-weight {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 60px;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nasze Menu Grid Overhaul */
.menu-item-container {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.menu-item-container a {
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 2;
}

.menu-item-container img {
    max-width: 90px;
    height: auto;
    margin-bottom: 25px;
    transition: var(--transition);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
    background: transparent !important;
}

.menu-item-container:hover img {
    transform: scale(1.1) rotate(2deg);
}

.menu-item-container h1 {
    font-size: 1.8rem;
    margin: 0;
    transition: var(--transition);
    color: var(--primary-color);
}

.menu-item-container:hover h1 {
    color: var(--secondary-color);
}

.menu-item-container .grid3column,
.menu-item-container .grid3columnbig {
    width: 100%;
    float: none;
    margin: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.menu-item-container .grid3columnbig br {
    display: none;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #E8E5DF;
    border-top: none;
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -29px;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--primary-color);
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    z-index: 10;
}

.footer h4 {
    color: var(--secondary-light);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer i {
    color: var(--secondary-light);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
}

.border-top.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Contact Page Specific Styles */
.card-custom h2 {
    color: var(--primary-color) !important;
}

.icon-box i,
.card-custom i.fas {
    color: var(--secondary-color) !important;
}

.icon-box {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(156, 122, 74, 0.08);
    border-radius: 50%;
    flex-shrink: 0;
}

.tracking-wide {
    letter-spacing: 1px;
}

.border-dashed {
    border-style: dashed !important;
}

/* Backward compatibility for old layout (Legacy overrides) */
.grid1column {
    width: 100%;
    margin-bottom: 40px;
}

.grid2column {
    width: 48%;
    float: left;
    margin-right: 4%;
    margin-bottom: 40px;
}

/* Premium Card Style for the 3 main boxes */
.grid3column:not(.menu-item-container .grid3column) {
    width: 30%;
    float: left;
    margin-right: 5%;
    margin-bottom: 40px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(156, 122, 74, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid3column:not(.menu-item-container .grid3column):hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.grid4column {
    width: 22%;
    float: left;
    margin-right: 4%;
    margin-bottom: 40px;
}

.grid3columnbig {
    width: 65%;
    float: left;
    margin-right: 5%;
    margin-bottom: 40px;
}

.lastcolumn {
    margin-right: 0 !important;
}

.clearfix {
    clear: both;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nag {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* Buttons Overhaul */
.rock-button,
.btn-custom {
    display: inline-block;
    background: var(--secondary-color);
    color: white !important;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(156, 122, 74, 0.3);
}

.rock-button:hover,
.btn-custom:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 71, 51, 0.4);
}

/* Pokoje List Overhaul */
ul.pokoje {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

ul.pokoje li {
    padding: 15px 20px;
    margin-bottom: 10px;
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.05rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

ul.pokoje li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

ul.pokoje li::before {
    content: "\f00c";
    /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Table overrides for zestawy */
.table-borderless td {
    vertical-align: middle;
    padding: 12px 5px;
}

.table-borderless td strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    body {
        padding-top: 100px;
    }

    .page-title {
        margin-top: -100px;
        padding-top: 100px;
        height: 40vh;
    }

    .page-title h1 {
        font-size: 3rem;
    }

    .navbar-brand img {
        height: 60px !important;
    }
}

@media (max-width: 768px) {

    .grid2column,
    .grid3column,
    .grid4column,
    .grid3columnbig {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }

    .menu-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-item-price {
        align-self: flex-end;
        margin-top: 10px;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }
}