/* ========================================
   Bar Mario — Clean Minimalist Italian
   Burgundy + Blush Palette
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --burgundy: #722F37;
    --burgundy-dark: #5A252C;
    --burgundy-light: #8B3A42;
    --blush: #F5E6E0;
    --blush-light: #FBF7F5;
    --blush-mid: #EDE0D8;
    --cream: #FAF8F6;
    --charcoal: #2C2C2C;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #7A7A7A;
    --white: #FFFFFF;
    --border: #E8E0DC;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    --nav-height: 80px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ---------- Typography ---------- */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

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

.btn-primary:hover {
    background-color: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
}

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

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

.btn-text {
    background: none;
    color: var(--text-dark);
    padding: 14px 0;
    border: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.btn-text:hover {
    color: var(--burgundy);
}

.btn-full {
    width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background-color: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 64px;
    box-shadow: 0 1px 0 var(--border);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--burgundy);
}

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

.nav-menu a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--burgundy);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--burgundy);
}

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

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

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

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

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

/* Mobile menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-overlay ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-menu-overlay a {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.mobile-menu-overlay a:hover {
    color: var(--burgundy);
}

.mobile-res-btn {
    margin-top: 16px;
    font-family: var(--font-sans) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 32px;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background-color: var(--cream);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    padding-right: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--text-dark);
    margin: 16px 0 24px;
    letter-spacing: -0.02em;
}

.accent-text {
    color: var(--burgundy);
    font-style: italic;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 440px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-image {
    position: relative;
}

.hero-img-wrapper {
    overflow: hidden;
    position: relative;
}

.hero-img-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.hero-accent-line {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--burgundy);
    opacity: 0.3;
    z-index: -1;
}

/* ---------- About ---------- */
.about {
    padding: 140px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-col img {
    width: 100%;
    height: auto;
    aspect-ratio: 5/6;
    object-fit: cover;
}

.about-content-col {
    padding-left: 20px;
}

.about-content-col p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 20px;
    font-weight: 300;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--burgundy);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background-color: var(--border);
}

/* ---------- Menu Preview ---------- */
.menu-preview {
    padding: 140px 0;
    background-color: var(--blush);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.menu-category h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--burgundy);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.menu-list li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dish-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-dark);
}

.dish-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.6;
}

.menu-footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.menu-footer p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 300;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 140px 0;
    background-color: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* ---------- Visit ---------- */
.visit {
    padding: 140px 0;
    background-color: var(--white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.hours-block {
    margin-top: 48px;
}

.hours-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.hours-list .day {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 400;
}

.hours-list .time {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 300;
}

.visit-map {
    border: 1px solid var(--border);
    overflow: hidden;
}

.visit-map iframe {
    width: 100%;
    height: 400px;
    display: block;
}

/* ---------- Contact ---------- */
.contact {
    padding: 140px 0;
    background-color: var(--burgundy);
    color: var(--white);
}

.contact .eyebrow {
    color: var(--blush);
}

.contact .section-title {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 48px;
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item .icon {
    color: var(--blush);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item .label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.contact-item .value {
    font-size: 1rem;
    color: var(--white);
    font-weight: 300;
    line-height: 1.6;
}

.contact-item a.value {
    transition: color 0.3s ease;
}

.contact-item a.value:hover {
    color: var(--blush);
}

/* Form */
.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: var(--blush);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background-color: var(--burgundy);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.success-icon {
    color: var(--blush);
    margin-bottom: 24px;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* ---------- Footer ---------- */
.footer {
    padding: 80px 0 40px;
    background-color: var(--charcoal);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 1.8;
}

.footer-links h4,
.footer-hours h4 {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-hours p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 1.9;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .visit-grid,
    .contact-grid {
        gap: 48px;
    }
    
    .menu-categories {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        order: 1;
    }
    
    .hero-image {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-content-col {
        padding-left: 0;
    }
    
    .about-image-col {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .menu-categories {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .stat-divider {
        display: none;
    }
}

/* ---------- Accessibility: Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .gallery-item img {
        transition: none;
    }
}
