/* 
   Rose Osteria 47 - High-End Italian Design System 
*/

:root {
    --color-gold: #c5a059;
    --color-gold-light: #e6c985;
    --color-gold-dark: #9e7e3f;
    --color-charcoal: #1a1a1a;
    --color-charcoal-light: #333333;
    --color-cream: #fdfbf7;
    --color-white: #ffffff;
    --color-text: #4a4a4a;
    --color-text-light: #7a7a7a;
    --color-border: #e0e0e0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --border-radius: 4px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-charcoal);
    font-weight: 700;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-charcoal);
    text-align: center;
    width: 100%;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-gold);
    font-size: 1.2rem;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    width: 60px;
    background-color: var(--color-gold);
    margin: 0 var(--spacing-sm);
    opacity: 0.6;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-charcoal);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-charcoal);
    border-color: var(--color-charcoal);
}

.btn-outline:hover {
    background-color: var(--color-charcoal);
    color: var(--color-white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--color-charcoal);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 24px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold) !important;
}

.btn-nav:hover {
    background-color: var(--color-gold);
    color: var(--color-white) !important;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-charcoal);
    cursor: pointer;
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1473093295043-cdd812d0e601?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero-logo-wrapper {
    margin-bottom: 30px;
    display: inline-block;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--color-gold);
}

.hero-logo {
    height: 120px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 15px;
    color: var(--color-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtext {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.about-section {
    background-color: var(--color-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
}

.menu-section,
.menu-page-section {
    background-color: var(--color-cream);
}

.page-header {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1559339352-11d035aa65de?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.page-header h1 {
    font-size: 4rem;
    color: var(--color-gold);
}

.menu-category-full {
    margin-bottom: var(--spacing-lg);
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.menu-category-full h2 {
    text-align: center;
    color: var(--color-gold-dark);
    margin-bottom: var(--spacing-md);
    font-size: 2.2rem;
    padding-bottom: 15px;
    position: relative;
}

.menu-category-full h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-gold);
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.menu-item {
    margin-bottom: 20px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.item-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-charcoal);
}

.separator {
    flex-grow: 1;
    border-bottom: 2px dotted var(--color-gold-light);
    margin: 0 5px;
}

.item-price {
    font-weight: 700;
    color: var(--color-gold-dark);
    font-size: 1.1rem;
}

.item-desc {
    color: var(--color-text-light);
}

/* Location */
.location-section {
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    padding: var(--spacing-lg);
    background: var(--color-cream);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--color-white);
    border-radius: var(--border-radius);
}

.info-item i {
    font-size: 1.8rem;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}

.features {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.features p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--color-white);
    border-radius: var(--border-radius);
}

.features i {
    margin-right: 12px;
    width: 24px;
}

.features .fa-check {
    color: #28a745;
}

.features .fa-times {
    color: #dc3545;
}

.reservation-box {
    margin-top: 30px;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.reservation-box h3 {
    color: var(--color-white);
    margin-bottom: 15px;
}

.reservation-box p {
    color: var(--color-white);
    margin-bottom: 20px;
}

.reservation-box .btn-primary {
    background-color: var(--color-white);
    color: var(--color-gold-dark);
}

.reservation-box .btn-primary:hover {
    background-color: var(--color-charcoal);
    color: var(--color-white);
}

.map-container {
    min-height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Gallery */
.gallery-section {
    background-color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(197, 160, 89, 0.3);
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }

    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        max-height: 0;
        background-color: var(--color-white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .nav-links.mobile-active {
        max-height: 500px;
        padding: 20px 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid var(--color-border);
    }

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

    .hero {
        background-attachment: scroll;
        min-height: auto;
        padding: 120px 20px 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .hero-logo {
        height: 70px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .section {
        padding: var(--spacing-md) 0;
        text-align: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .page-header {
        min-height: 300px;
        padding: 100px 20px 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-grid,
    .menu-list,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr !important;
    }

    .about-content,
    .menu-category-full,
    .contact-info,
    .info-item {
        text-align: center;
    }

    .info-item {
        flex-direction: column;
    }

    .info-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .container {
        width: 95%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .gallery-item {
        aspect-ratio: 1;
    }
}

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

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