/* Osteria n.3 – Premium Italian Restaurant, Cape Verde */
/* Designed to surpass Claude's original in beauty & completeness */
/* Fast loading, no React, full interactivity */

:root {
    /* Color Palette – rich, warm, elegant */
    --primary: #c49a6c;
    --primary-dark: #a07c52;
    --primary-light: #e2c4a8;
    --secondary: #2c5530;
    --dark: #1e2a1c;
    --dark-soft: #2d3a2a;
    --light: #fef9f0;
    --light-gray: #f5f0e6;
    --gray: #6b6b6b;
    --white: #ffffff;
    --black: #1a1a1a;
    --gold: #d4af37;
    
    /* Typography */
    --font-head: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 25px 45px rgba(0,0,0,0.15);
    --border-radius: 24px;
    --border-radius-sm: 16px;
}

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

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Section titles */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 700px;
    margin: -0.5rem auto 3rem;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Navigation */
.nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.nav-scrolled {
    background: rgba(30, 42, 28, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-head);
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-scrolled .logo {
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

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

/* Hero Section with Parallax */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1600891964092-4316c288032e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center/cover;
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: fadeUp 1s ease;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeUp 1s ease 0.2s both;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero .btn {
    animation: fadeUp 1s ease 0.4s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--gray);
    line-height: 1.7;
}

.about-img {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

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

/* Menu Page – Rich Cards with Images */
.menu-page-hero {
    height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.menu-page-hero h1 {
    font-size: 4rem;
}

.menu-category {
    margin-bottom: 70px;
}

.menu-category h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.menu-category h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 10px auto 0;
}

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

.menu-card {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.menu-card-img {
    height: 200px;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.menu-card-content {
    padding: 20px;
}

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

.menu-card-header h3 {
    font-size: 1.3rem;
    font-family: var(--font-body);
    font-weight: 600;
}

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

.menu-desc {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 8px;
}

/* Reservation Form */
.reservation-hero {
    height: 40vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.reservation-hero h1 {
    font-size: 3.5rem;
}

.reservation-form {
    max-width: 800px;
    margin: 60px auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0d6c8;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 70px 0;
}

.contact-card {
    background: var(--white);
    padding: 40px 25px;
    text-align: center;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.contact-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contact-card p {
    margin: 8px 0;
    color: var(--gray);
}

.map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links a {
    display: inline-block;
    color: var(--white);
    margin: 0 12px;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Toast confirmation */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2c7a4d;
    color: white;
    padding: 14px 28px;
    border-radius: 60px;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: var(--font-body);
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    section { padding: 70px 0; }
    .hero h1 { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
    .menu-page-hero h1 { font-size: 2.5rem; }
    .reservation-hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .mobile-menu { display: block; }
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
        border-radius: 0 20px 20px 0;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active { left: 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .reservation-form { padding: 30px; }
    .menu-items-grid { grid-template-columns: 1fr; }
    .contact-grid { gap: 25px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.8rem; }
    .btn { padding: 10px 24px; font-size: 0.9rem; }
    .section-title { font-size: 1.8rem; }
}
