/* ============================================
   Rhineland Deli — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

/* Geometric Background Decorations */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 184, 48, 0.06) 0%, transparent 70%);
    top: -100px;
    right: -150px;
}

.geo-circle--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(232, 184, 48, 0.04) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
}

.geo-square {
    position: absolute;
    border: 2px solid rgba(232, 184, 48, 0.1);
    pointer-events: none;
    transform: rotate(45deg);
}

.geo-square--1 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 5%;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.geo-triangle--1 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(232, 184, 48, 0.05);
    top: 60%;
    right: 8%;
}

.geo-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(232, 184, 48, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

.geo-dots--1 {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 45%;
}

/* Navigation */
.nav {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e8b830;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #f5c563 !important;
}

/* Mobile Nav */
.nav-mobile {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    position: relative;
}

.nav-line {
    transition: all 0.3s ease;
}

.nav-toggle.active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Buttons */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f5c563 0%, #e8b830 100%);
    color: #0a1628;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 184, 48, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 184, 48, 0.4);
    background: linear-gradient(135deg, #ffd970 0%, #f5c563 100%);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: #f5c563;
    color: #f5c563;
    transform: translateY(-2px);
}

/* Section Padding */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Floating Card Animation */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Marquee */
.marquee-strip {
    position: relative;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    flex-shrink: 0;
}

/* Menu Cards */
.menu-card {
    opacity: 1;
}

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

.menu-card-img {
    transition: transform 0.5s ease;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }
}

.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    transition: transform 0.6s ease;
}

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

/* Gallery item sizing */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-item:nth-child(4) {
    grid-column: span 1;
}

@media (max-width: 768px) {
    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    .gallery-item:nth-child(2) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Input Fields */
.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    width: 100%;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-field:focus {
    outline: none;
    border-color: #e8b830;
    background: rgba(232, 184, 48, 0.05);
    box-shadow: 0 0 0 3px rgba(232, 184, 48, 0.1);
}

.input-field:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero specific */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(15, 33, 64, 0.8) 50%, transparent 100%);
    z-index: 0;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(232, 184, 48, 0.3);
    color: white;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #e8b830;
    outline-offset: 2px;
}
