/* 
   Tradizionale - Luxury Italian Restaurant Demo
   Design Concept: Quiet Luxury, Minimalist, High-End
*/

:root {
    /* Refined Color Palette */
    --color-primary: #1a1a1a; /* Deep Charcoal */
    --color-bg: #fdfcf9; /* Off-White/Cream */
    --color-accent: #c5a059; /* Muted Gold */
    --color-text: #2d2d2d;
    --color-text-light: #6b6b6b;
    --color-white: #ffffff;
    
    /* Elegant Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spacing & Transitions */
    --spacing-lg: 120px;
    --transition-subtle: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.85; /* Increased for better readability */
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    font-size: 1.1rem; /* Slightly larger base font */
    font-weight: 400;
}

.container {
    max-width: 1200px; /* Wider for better content flow */
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 140px 0; /* More white space between sections */
}

/* Typography Enhancements */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.08em; /* Slightly more spacing */
    color: var(--color-primary);
    line-height: 1.2;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--color-accent);
    margin: 20px auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: var(--transition-subtle);
    border: none;
    border-radius: 0; /* Square buttons for luxury feel */
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition-subtle);
    background: transparent;
}

header.scrolled {
    background: #000000; /* Set background to black when scrolled */
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-white); /* Default white for transparent state */
    transition: var(--transition-subtle);
}

.demo-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 0;
    vertical-align: middle;
    margin-left: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.6;
}

header.scrolled .logo h1 {
    color: #cccccc; /* Light gray when scrolled */
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--color-white); /* Default white for transparent state */
    text-decoration: none;
    transition: var(--transition-subtle);
}

header.scrolled .nav-links a {
    color: #cccccc; /* Light gray when scrolled */
}

.nav-links a:hover {
    color: var(--color-accent);
}

header.scrolled .nav-links a:hover {
    color: var(--color-white);
}

/* Hero Section - Simple & Bold */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('../../bilder/unsplash/unsplash_1514362545857-3bc16c4c7d1b.webp') center/cover no-repeat;
    color: var(--color-white);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Menu Section - Clean Typography */
.menu-categories {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 80px;
}

.category-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-light);
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: var(--transition-subtle);
}

.category-btn.active, .category-btn:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
    row-gap: 40px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.menu-item-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    letter-spacing: 0.02em;
}

.menu-item-info p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-accent);
}

/* Gallery - Minimalist Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    height: 350px;
    overflow: hidden;
    background-color: #eee;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-subtle);
    filter: grayscale(20%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Forms - Clean & Minimal */
.reservation-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

input, select, textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--color-primary);
    transition: var(--transition-subtle);
}

input:focus, textarea:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
}

/* Footer - Dark & Sophisticated */
footer {
    background-color: #111;
    color: #999;
    padding: 100px 0 50px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

footer h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.75rem;
}

/* Mobile Navigation Toggle (Minimalist Hamburger) */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    z-index: 2000;
}

.mobile-nav-toggle span {
    width: 30px;
    height: 1px;
    background: var(--color-white); /* Default white for visibility on hero */
    transition: var(--transition-subtle);
}

header.scrolled .mobile-nav-toggle span {
    background: #cccccc; /* Light gray when scrolled */
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
    transform: translateY(-4.5px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 30px 0;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.1em;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .container { padding: 0 30px; }
    section { padding: 100px 0; }
    .hero-content h1 { font-size: 3.5rem; }
    .menu-grid { column-gap: 40px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-nav-toggle { display: flex; }
    .section-title { font-size: 2.2rem; margin-bottom: 40px; }
    .menu-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}


