/* Design System & Variables */
:root {
    --color-sage: #9CAF88;
    --color-sand: #E8DCCA;
    --color-coffee: #5C4033;
    --color-terracotta: #D6764B;
    --color-bg: #FAF9F6;
    --color-text: #2C2C2C;
    --font-header: 'Prata', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-header);
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

ul {
    list-style: none;
}

/* Navigation - Glassmorphism */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 100px;
    width: auto;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-terracotta);
}

.lang-btn {
    background: var(--color-coffee);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--color-terracotta);
}

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(45, 45, 45, 0.1), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Atmosphere Grid */
.atmosphere-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.atmos-box {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
}

.atmos-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s;
}

.atmos-box:hover img {
    transform: scale(1.05);
}

.atmos-box.wide {
    grid-column: span 2;
    height: 350px;
}

/* Common Section Layout */
section {
    padding: 4rem 5%;
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-coffee);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--color-sage);
    font-style: italic;
}

/* Menu Section */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.menu-category {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.menu-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.menu-category h3 {
    font-size: 2rem;
    border-bottom: 2px solid var(--color-sand);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-terracotta);
}

.menu-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    position: relative;
    transition: var(--transition);
}

.menu-list li:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--color-sand);
    transition: var(--transition);
}

.menu-list li:hover:after {
    width: 100px;
    background: var(--color-terracotta);
}

.item-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--color-coffee);
    margin-bottom: 2px;
}

.item-desc {
    font-size: 0.88rem;
    color: #7a7a7a;
    max-width: 90%;
}

.item-price {
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-terracotta);
    margin-top: 0.4rem;
    letter-spacing: 0.05em;
}

.rotating-menu {
    background: var(--color-sand);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

/* About & Catering Card Style */
.about-section,
.catering-section {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.about-image img,
.catering-img-row img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.catering-img-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

/* Info Section */
.info-section {
    background-color: var(--color-sand);
    margin: 4rem 0 0 0;
    max-width: 100%;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

.address {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-link {
    display: inline-block;
    color: var(--color-terracotta);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    border-bottom: 1px solid transparent;
}

.map-link:hover {
    border-bottom: 1px solid var(--color-terracotta);
}

.status-badge {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.status-badge.open {
    color: #4CAF50;
}

.status-badge.closed {
    color: #f44336;
}

.hours-card h2 {
    margin-bottom: 1rem;
}

.hours-list li {
    margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 5% 1rem;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    background: transparent !important;
}

.gallery-section * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.instagram-cta {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    padding: 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: relative;
    z-index: 5;
}

.insta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.2);
}

.insta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.4);
    color: white;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Language Swapping Logic (Handled by JS for attributes) */
body.lang-en .sv-only {
    display: none;
}

body.lang-sv .en-only {
    display: none;
}

/* Footer */
.main-footer {
    padding: 8rem 5% 4rem;
    background-color: var(--color-coffee);
    color: #FAF9F6;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-logo {
    margin-top: -7rem;
    margin-bottom: 0rem;
}

.footer-logo-img {
    height: 200px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-content p {
    opacity: 0.7;
    max-width: 400px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-terracotta);
    z-index: 2000;
}

/* Custom Selection Color */
::selection {
    background: var(--color-sage);
    color: white;
}

@media (max-width: 767px) {
    .glass-nav {
        padding: 0.5rem 0;
    }

    .nav-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-link h2 {
        font-size: 1.4rem;
        text-align: center;
    }

    .nav-links {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .menu-section {
        max-width: 1400px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .menu-category.lunch {
        grid-column: span 1;
    }

    .menu-category {
        padding: 3rem;
    }

    .atmosphere-grid {
        grid-template-columns: repeat(3, 1fr);
        height: 450px;
    }

    .atmos-box.wide {
        grid-column: span 1;
        height: 100%;
    }

    .about-section {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .about-image,
    .about-content {
        flex: 2;
    }

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