/* 
  Silver Spoon Restaurant - Premium Style 
  Theme: Blue & Silver
*/

:root {
    --bg-color: #024f6d;
    --surface-color: hsl(207, 99%, 35%);
    --surface-hover: #00721c;
    --primary-blue: #1b498f;
    --primary-light: #2e6bd4;
    --accent-silver: #fffb00;
    /* Turned to Gold/Yellow to match Menu */
    --accent-gold: #fcd55c;
    --text-primary: #ffffff;
    --text-secondary: #c2cbd6;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent-silver);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title.left-align {
    text-align: left;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(3, 8, 17, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(3, 8, 17, 0.95);
    padding: 0.8rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-logo {
    height: 70px;
    transition: var(--transition-smooth);
}

.brand-text {
    font-family: 'Playfair Display', serif;
    color: var(--accent-gold);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap; /* Prevent wrapping */
}

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

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-silver);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-silver);
}

.contact-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--accent-silver);
    border-radius: 30px;
    background: transparent;
}

.contact-btn::after {
    display: none;
}

.contact-btn:hover {
    background: var(--accent-silver);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(208, 212, 219, 0.3);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.hamburger {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://www.silverspoon.at/assets/hero_background_food.png');
    background-position: center 89%;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #000;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUpper 1s ease-out;
}

@keyframes fadeInUpper {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-top-text {
    color: var(--accent-gold);
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 6.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: #f0f0f0;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-smooth);
    display: inline-block;
    font-size: 0.9rem;
}

.btn-red {
    background-color: #ff0040;
    color: #fff;
    border: 2px solid #ff0040;
}

.btn-red:hover {
    background-color: #d60036;
    border-color: #d60036;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 64, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

.btn-yellow {
    background-color: var(--accent-gold);
    color: #000;
    border: 2px solid var(--accent-gold);
}

.btn-yellow:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(252, 213, 92, 0.4);
}

/* Services Section */
.services-section {
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--surface-color);
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.service-img {
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-silver);
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Menu Teaser Section */
.menu-section {
    background: linear-gradient(to bottom, var(--bg-color), var(--surface-color));
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.menu-teaser-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.menu-teaser-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-teaser-card:hover .menu-teaser-img {
    transform: scale(1.08);
}

.menu-teaser-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 8, 17, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.menu-teaser-overlay h3 {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.menu-download-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pulse-btn {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(27, 73, 143, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(27, 73, 143, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(27, 73, 143, 0);
    }
}

/* Full Menu Section */
.menu-categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.menu-category {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.menu-category:hover {
    box-shadow: none;
    border-color: transparent;
}

.category-header {
    grid-column: 1 / -1;
    color: var(--accent-gold);
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border-bottom: none;
    position: relative;
    padding-bottom: 0.8rem;
    display: inline-block;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 3px;
    background-color: #ff0040;
}

.menu-item {
    background: #18181a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 0;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.item-id {
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin-right: 0.5rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.item-id::after {
    content: ".";
}

.item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #fff;
    flex-grow: 1;
    font-weight: 600;
    line-height: 1.3;
}

.item-price {
    font-size: 1.25rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-left: 1rem;
    white-space: nowrap;
}

.item-desc {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 0;
    flex-grow: 1;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: auto;
}

/* About Section */
.about-section {
    background-color: var(--bg-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-img {
    transform: translateY(-5px);
}

.image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    z-index: 1;
}

/* Footer Section */
.footer-section {
    background-color: #02050a;
    padding: 4rem 5% 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding: 0 0 3rem 0;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-section h3 {
    color: var(--accent-silver);
    margin-bottom: 1.5rem;
}

.footer-contact p,
.footer-hours p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .brand-logo {
        height: 45px; /* Reduced from 70px */
    }

    .brand-text {
        font-size: 1.4rem; /* Reduced from 2.2rem */
    }

    .hero-section {
        height: auto;
        min-height: 80vh;
        padding-top: 100px; /* Offset for fixed navbar */
    }

    .hero-content {
        padding: 4rem 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(3, 8, 17, 0.98);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        clip-path: circle(0 at top right);
        transition: clip-path 0.5s ease-out;
    }

    .nav-links.active {
        clip-path: circle(150% at top right);
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* --- Cart System Styles --- */
.cart-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 60px;
    padding: 0 1.5rem;
    background: var(--accent-gold);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 5px rgba(252, 213, 92, 0.1);
    transition: var(--transition-smooth);
    border: none;
}

.cart-float-btn:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 0 10px rgba(252, 213, 92, 0.2);
}

.cart-icon {
    font-size: 1.5rem;
}

.cart-total-float {
    font-weight: 800;
    color: #000;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #ff0040;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100%;
    background: rgba(18, 25, 41, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem 4rem; /* More padding at bottom */
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 100vh;
    overflow-y: auto; /* Allow sidebar scrolling if contents are too tall */
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    flex-shrink: 0; /* Prevent shrinking */
}

.cart-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.close-cart {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--accent-gold);
}

.cart-items {
    flex: 1 1 200px; /* Grow to fill space, shrink to 200px minimum if needed */
    overflow-y: auto;
    margin-bottom: 2rem;
    padding-right: 10px;
    min-height: 200px; /* Ensure there's space for dishes */
}

.cart-items::-webkit-scrollbar {
    width: 5px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

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

.cart-item-info h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.cart-item-info p {
    color: var(--accent-gold);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
}

.cart-footer {
    padding-top: 1.5rem;
    padding-bottom: 1rem; /* Extra space below the button */
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#cart-total-price {
    color: var(--accent-gold);
}

.whatsapp-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    padding: 1.2rem;
}

.empty-msg {
    text-align: center;
    color: #777;
    margin-top: 3rem;
    font-style: italic;
}

/* In-Menu Add Button Styles */
.menu-item {
    position: relative;
    padding-bottom: 4.5rem !important;
    /* Space for the button */
}

.add-to-cart-btn {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    background: #00721c;
    /* Success green to stand out */
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.add-to-cart-btn:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(252, 213, 92, 0.3);
}

.add-to-cart-btn .plus-icon {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
    }
}

/* --- Checkout Form Styles --- */
.customer-info-form input:focus,
.customer-info-form textarea:focus {
    border-color: var(--accent-gold) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 10px rgba(252, 213, 92, 0.15) !important;
    outline: none;
}

.customer-info-form input::placeholder,
.customer-info-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}