/* ============================================
   Cafe Kissler - Premium Cafe-Bakery Design System
   ============================================ */

/* === CSS Variables === */
:root {
    /* Colors - Warm Cafe Palette */
    --color-primary: #8B4513;
    --color-primary-light: #A0522D;
    --color-primary-dark: #5D2E0C;
    --color-secondary: #D4A574;
    --color-accent: #F5DEB3;
    --color-gold: #C9A962;

    /* Background Colors */
    --bg-cream: #FFF8F0;
    --bg-warm: #FDF5E6;
    --bg-white: #FFFFFF;
    --bg-dark: #2C1810;

    /* Text Colors */
    --text-dark: #2C1810;
    --text-medium: #5D4037;
    --text-light: #8D6E63;
    --text-white: #FFFFFF;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(44, 24, 16, 0.85) 0%, rgba(93, 46, 12, 0.75) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 248, 240, 0.95) 100%);
    --gradient-gold: linear-gradient(135deg, #C9A962 0%, #E8D5A3 50%, #C9A962 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.08);
    --shadow-md: 0 4px 20px rgba(44, 24, 16, 0.12);
    --shadow-lg: 0 8px 40px rgba(44, 24, 16, 0.16);
    --shadow-glow: 0 0 30px rgba(201, 169, 98, 0.3);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-medium);
}

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

a:hover {
    color: var(--color-primary-light);
}

/* === Navbar === */
.navbar-custom {
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    background: rgba(44, 24, 16, 0.98);
}

.navbar-custom .navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold) !important;
    letter-spacing: 0.5px;
}

.navbar-custom .navbar-brand:hover {
    color: var(--color-accent) !important;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--color-gold) !important;
    background: rgba(201, 169, 98, 0.1);
}

.navbar-custom .btn-outline-light {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.navbar-custom .btn-outline-light:hover {
    background: var(--color-gold);
    color: var(--text-dark);
}

/* Mobile hamburger menu */
.navbar-custom .navbar-toggler {
    border: 2px solid #C9A962 !important;
    background-color: rgba(201, 169, 98, 0.15) !important;
    padding: 0.5rem 0.75rem;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C9A962' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.4) !important;
    outline: none;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-switcher a {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--color-gold);
    background: rgba(201, 169, 98, 0.15);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* === Buttons === */
.btn-primary-custom {
    background: var(--gradient-gold);
    color: var(--text-dark);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--text-dark);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

/* === Sections === */
.section {
    padding: var(--space-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title h2 {
    margin-bottom: var(--space-sm);
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    margin: var(--space-md) auto;
    border-radius: var(--radius-full);
}

/* === Cards === */
.card-custom {
    background: var(--gradient-card);
    border: 1px solid rgba(201, 169, 98, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 98, 0.3);
}

.card-custom img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-custom:hover img {
    transform: scale(1.05);
}

.card-body-custom {
    padding: var(--space-md);
}

.card-title-custom {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.125rem;
}

/* === Menu Section === */
.menu-category {
    margin-bottom: var(--space-xl);
}

.menu-category-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-primary);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-secondary);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-sm) 0;
    border-bottom: 1px dashed var(--color-secondary);
}

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

.menu-item-info {
    flex: 1;
    padding-right: var(--space-md);
}

.menu-item-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.menu-item-description {
    font-size: 0.875rem;
    color: var(--text-light);
}

.menu-item-prices {
    text-align: right;
    white-space: nowrap;
}

.menu-item-price {
    font-weight: 700;
    color: var(--color-primary);
}

.menu-item-amount {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
}

/* === Category Tabs === */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--color-secondary);
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-tab:hover,
.category-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--text-white);
}

/* === About Section === */
.about-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
}

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

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.rating-badge .rating-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-display);
}

.rating-badge .rating-info {
    text-align: left;
}

.rating-badge .rating-stars {
    color: var(--color-gold);
}

.rating-badge .rating-source {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* === Gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

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

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

/* === Testimonials === */
.testimonial-card {
    background: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(201, 169, 98, 0.1);
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    opacity: 0.5;
    margin-bottom: var(--space-sm);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: var(--space-md);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
}

/* === Contact Section === */
.contact-card {
    background: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(201, 169, 98, 0.1);
    height: 100%;
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.5rem;
    color: var(--text-dark);
}

.contact-card h4 {
    margin-bottom: var(--space-sm);
}

.hours-table {
    width: 100%;
    text-align: left;
}

.hours-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

.hours-table td:last-child {
    text-align: right;
    font-weight: 600;
}

/* === Map === */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--color-secondary);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    display: block;
}

/* === Footer === */
footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--space-xl) 0 var(--space-lg);
}

footer a {
    color: var(--color-gold);
}

footer a:hover {
    color: var(--color-accent);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-gold);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* === Badge: Too Good To Go === */
.tgtg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #046a38 0%, #069c55 100%);
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
}

.tgtg-badge i {
    font-size: 1.25rem;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease both;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

/* Staggered animations */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

/* === Responsive === */
@media (max-width: 991px) {
    .hero {
        min-height: 80vh;
        background-attachment: scroll;
    }

    .navbar-custom .lang-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .menu-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .menu-item-prices {
        text-align: left;
    }

    .category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .category-tab {
        flex-shrink: 0;
    }
}

/* === Utility Classes === */
.bg-cream {
    background-color: var(--bg-cream);
}

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

.bg-dark {
    background-color: var(--bg-dark);
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-gold {
    color: var(--color-gold) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

.text-medium {
    color: var(--text-medium) !important;
}

/* Light text for dark backgrounds */
.text-light,
.bg-dark p,
.bg-dark .lead,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-dark a:not(.btn) {
    color: var(--color-gold) !important;
}

.mb-section {
    margin-bottom: var(--space-2xl);
}