/* Global Styles & Variables */
:root {
    --color-black: #111111;
    /* Keep for text contrast if needed, but main theme is lighter */
    --color-white: #ffffff;
    --color-primary: #f5e6d3;
    /* Warm beige */
    --color-secondary: #8d6e63;
    /* Coffee brown */
    --color-accent: #6d4c41;
    /* Darker brown */
    --color-text: #4e342e;
    /* Dark brown text */
    --color-bg-light: #fff8f0;
    /* Very light cream */
    --font-main: 'Inter', sans-serif;
    --spacing-section: 6rem;
    --header-height: 140px;
    /* Increased for larger logo */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}

body.loaded {
    opacity: 1;
}

/* Header */
header {
    background-color: rgba(255, 248, 240, 0.98);
    /* Light cozy bg */
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--color-secondary);
    height: var(--header-height);
    box-shadow: 0 4px 12px rgba(141, 110, 99, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 40px;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-left {
    justify-content: flex-end;
}

.nav-right {
    justify-content: flex-start;
}

.nav-left a,
.nav-right a {
    text-transform: uppercase;
    font-size: 1.1rem;
    /* Slightly larger nav */
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-accent);
    position: relative;
    white-space: nowrap;
    text-decoration: none;
}

.nav-left a::after,
.nav-right a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s;
}

.nav-left a:hover::after,
.nav-right a:hover::after {
    width: 100%;
}

.logo-center {
    flex: 0 0 320px;
    /* Increased container width */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 55px;
    /* Moved lower as requested to avoid cutoff */
    z-index: 1001;
    /* Ensure above header/hero overlap */
}

.logo-circle {
    width: 250px;
    /* ~4x area increase (orig 80px -> 6400 vs 250px -> 62500 approx 10x area, 3x diameter. User said 4x min, assuming size visually) */
    height: 250px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 8px solid var(--color-secondary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Section */
.hero-section {
    height: 85vh;
    /* Taller hero */
    background-image: linear-gradient(rgba(255, 248, 240, 0.1), rgba(255, 248, 240, 0.1)), url('assets/hero_cute_cat_1769118593528.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    /* Below logo */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title-wrapper {
    position: relative;
    display: inline-block;
}

/* Jumping Cat Animation */
.jumping-cat {
    position: absolute;
    top: -80px;
    /* Adjusted for larger text */
    left: 0;
    font-size: 4rem;
    color: var(--color-white);
    animation: jump-across 4s infinite linear;
    z-index: 10;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

@keyframes jump-across {
    0% {
        left: -20%;
        transform: translateY(0) rotate(0deg);
    }

    20% {
        transform: translateY(-50px) rotate(10deg);
    }

    40% {
        transform: translateY(0) rotate(0deg);
    }

    60% {
        transform: translateY(-50px) rotate(-10deg);
    }

    80% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        left: 120%;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 6rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    color: var(--color-white);
    background-color: rgba(141, 110, 99, 0.4);
    /* Brown translucent bg */
    padding: 0.5rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.hero-content p {
    font-size: 1.8rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    font-weight: 500;
}

/* General Sections */
section {
    padding: var(--spacing-section) 0;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-secondary);
}

/* Animations */
.scroll-anim {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation keyframes already defined above */

/* About Section */
.about-section {
    /* Updated background image as requested, with darkening overlay via linear-gradient */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/cat_bg_contact_1769118619591.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    /* Text white on dark bg? Or keep box? */
}

/* Update text box to be more transparent or different since bg is dark? 
   User said "troszke przyciemnione" for the photo. 
   I will keep the content box light but maybe slightly more opaque or leave as is. 
   The previous box was rgba(255, 255, 255, 0.85). This is good contrast. */
.about-content-box {
    background-color: rgba(255, 248, 240, 0.9);
    /* Slightly more opaque beige */
    padding: 5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-content-box p {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Menu */
.section-bg-menu {
    background-color: #fffaf5;
}

.menu-accordion {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    flex-wrap: wrap;
    /* Safety for small screens */
}

.accordion-item {
    flex: 1;
    min-width: 300px;
    border: 2px solid var(--color-primary);
    /* Changed from white to bg-light/beige to avoid "white bar" look */
    background-color: var(--color-bg-light);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    /* For full height if needed */
    flex-direction: column;
}

.accordion-item:hover {
    transform: translateY(-5px);
}

.accordion-header {
    width: 100%;
    padding: 2rem;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: default;
    /* No longer clickable/collapsable */
}

.accordion-header i {
    display: none;
    /* Hide chevron */
}

.accordion-content {
    max-height: none;
    /* Always open */
    display: block;
    /* Ensure background is consistent */
    background-color: var(--color-bg-light);
    flex-grow: 1;
}

.accordion-content .menu-items {
    padding: 2rem;
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px dotted var(--color-primary);
    padding-bottom: 0.8rem;
    font-size: 1.1rem;
    /* Larger font */
    align-items: baseline;
}

.item-name {
    font-weight: 600;
    color: var(--color-accent);
}

.item-price {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1.2rem;
}

/* Gallery - Masonry spacing fixed in previous step */
.gallery-section {
    background-color: var(--color-white);
}

.gallery-masonry {
    display: grid;
    /* Equal spacing request */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Adjusted for mobile */
    gap: 30px;
    /* Explicit equal gap value */
}

.masonry-item img {
    border-radius: 12px;
    transition: transform 0.4s, box-shadow 0.4s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.masonry-item:hover img {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.masonry-item {
    height: 350px;
    overflow: hidden;
}

.masonry-item.big {
    height: 730px;
    /* (350*2) + 30 gap */
}

/* Contact & Footer */
.section-bg-contact {
    background-color: var(--color-bg-light);
    border-top: 5px solid var(--color-primary);
}

.footer-split {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    /* Increased spacing */
    margin-bottom: 5rem;
    justify-content: space-evenly;
    /* Spread evenly */
    text-align: center;
    /* Center align content initially, then adjust */
    align-items: stretch;
    /* Make cards equal height */
}

.footer-left,
.footer-right {
    flex: 1;
    min-width: 400px;
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Flex column to push social icons to bottom */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Headers at top */
}

.footer-right {
    justify-content: space-between;
    /* This pushes bottom element (socials) down */
}

.contact-content-wrapper {
    /* Wrapper for non-social content in right footer to keep them together */
    flex-grow: 1;
    /* Takes available space pushing socials down if needed, or just normal flow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-left h3,
.footer-right h3 {
    font-size: 2.2rem;
    /* Larger headers */
    color: var(--color-secondary);
    border-left: none;
    /* Removed split look for centered card style */
    border-bottom: 4px solid var(--color-secondary);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 2rem;
    width: fit-content;
    align-self: center;
    /* Center header in flex column */
}

.hours-list-footer li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    /* Larger text */
    border-bottom: 1px dotted var(--color-accent);
    padding-bottom: 0.5rem;
    color: var(--color-accent);
}

.contact-details p {
    font-size: 1.4rem;
    /* Larger text */
    color: var(--color-accent);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the icon/text */
    gap: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: auto;
    /* Push to bottom if container has height */
    padding-top: 2rem;
    /* Spacing from email */
}

.social-icons a {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Improved look */
}

.social-icons a:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-5px) scale(1.1);
    /* Added scale for interaction feel */
}

footer.copyright {
    padding: 3rem;
    text-align: center;
    /* Centered */
    font-size: 1.1rem;
    color: var(--color-white);
    background-color: var(--color-secondary);
    border-top: none;
    font-weight: 500;
    letter-spacing: 1px;
}


/* Mobile RWD */
/* Hiding mobile elements on desktop */
.menu-toggle,
.nav-links-mobile {
    display: none;
}

@media (max-width: 1100px) {
    .menu-accordion {
        flex-direction: column;
    }
}

@media (max-width: 900px) {

    /* Header & Nav */
    .nav-container {
        flex-direction: row;
        /* Keep row for logo/burger */
        justify-content: space-between;
        padding: 0 20px;
        height: 70px;
        /* Slightly larger for mobile */
    }

    header {
        height: 70px;
    }

    .desktop-only {
        display: none !important;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--color-accent);
        cursor: pointer;
        z-index: 1002;
        transition: transform 0.3s;
    }

    .menu-toggle.active {
        transform: rotate(90deg);
    }

    .logo-center {
        flex: 0;
        margin: 0;
        top: 0;
        position: static;
        order: -1;
    }

    .logo-circle {
        width: 55px;
        height: 55px;
        border-width: 3px;
    }

    /* Mobile Menu Dropdown - Full Screen Overlay */
    .nav-links-mobile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        /* Fixed to cover whole screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-light);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 998;
    }

    .nav-links-mobile.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links-mobile a {
        padding: 1.5rem;
        text-decoration: none;
        color: var(--color-accent);
        font-weight: 700;
        font-size: 1.8rem;
        text-transform: uppercase;
        width: 100%;
        text-align: center;
        border-bottom: 1px dotted var(--color-primary);
        transition: background 0.3s;
    }

    .nav-links-mobile a:first-child {
        border-top: 1px dotted var(--color-primary);
    }

    /* Sections */
    section {
        padding: 4rem 0;
        /* Reduced padding for mobile */
    }

    h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        padding: 0.5rem 1rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    /* About Us - Compact */
    .about-content-box {
        padding: 2rem 1.5rem;
        margin: 0;
    }

    .about-content-box p {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    /* Gallery - Full width */
    .gallery-masonry {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .masonry-item,
    .masonry-item.big {
        height: 300px;
        /* Fixed height for consistency on mobile */
    }

    /* Contact & Hours - Compact */
    .footer-split {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-left,
    .footer-right {
        padding: 2rem 1.5rem;
        min-width: 0;
        /* Removing fixed min-width */
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--color-primary);
    }

    .hours-list-footer li {
        font-size: 1.1rem;
    }

    /* Email Compression */
    .contact-details p {
        font-size: 1.1rem;
        word-break: break-all;
    }

    .social-icons a {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .footer-left h3,
    .footer-right h3 {
        font-size: 1.8rem;
    }
}