/* ============================================
   CARPI'S — Classic & Elegant Café/Bar Website
   Palette: Burgundy (#7B2D3B) + Blush (#F5E6E0)
   Fonts: Cormorant Garamond (serif) + Raleway (sans)
============================================ */

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

:root {
    --burgundy: #7B2D3B;
    --burgundy-deep: #5C1F2B;
    --burgundy-light: #9A3D4E;
    --blush: #F5E6E0;
    --blush-light: #FBF5F2;
    --blush-mid: #E8D0C8;
    --cream: #FDF8F5;
    --dark: #1A0F12;
    --dark-soft: #2D1C20;
    --text-primary: #1A0F12;
    --text-secondary: #5C4046;
    --text-muted: #8A6870;
    --text-light: #F5E6E0;
    --white: #FFFFFF;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    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 var(--spacing-md);
}

/* ============================================
   HEADER
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(253, 248, 245, 0.97);
    box-shadow: 0 2px 24px rgba(26, 15, 18, 0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--burgundy);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--burgundy);
    border-radius: 50%;
    line-height: 1;
}

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

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-list a {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--burgundy);
    background: rgba(123, 45, 59, 0.06);
}

.nav-cta {
    background: var(--burgundy) !important;
    color: var(--text-light) !important;
    border-radius: var(--radius-md) !important;
    margin-left: 0.5rem;
    padding: 0.5rem 1.25rem !important;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--burgundy-deep) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    width: 22px;
    height: 14px;
    position: relative;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--burgundy);
    transition: var(--transition);
}

.hamburger::before { top: 0; }
.hamburger span { top: 50%; transform: translateY(-50%); }
.hamburger::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 50%;
}
.nav-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 50%;
}

/* ============================================
   HERO
============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 15, 18, 0.88) 0%,
        rgba(92, 31, 43, 0.72) 50%,
        rgba(26, 15, 18, 0.60) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px var(--spacing-md) 80px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: var(--spacing-lg);
    align-items: center;
    width: 100%;
}

.hero-content {
    color: var(--text-light);
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blush-mid);
    margin-bottom: var(--spacing-sm);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.hero-headline em {
    font-style: italic;
    color: var(--blush);
}

.hero-sub {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 230, 224, 0.8);
    max-width: 480px;
    margin-bottom: var(--spacing-md);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.hero-image-col {
    position: relative;
}

.hero-img-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
    aspect-ratio: 3/4;
}

.hero-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-accent-badge {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: var(--burgundy);
    color: var(--text-light);
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(245, 230, 224, 0.5);
    animation: float 2.5s ease-in-out infinite;
    z-index: 1;
}

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

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--burgundy-deep);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1.5px solid rgba(245, 230, 224, 0.4);
}

.btn-secondary:hover {
    border-color: var(--text-light);
    background: rgba(245, 230, 224, 0.08);
    color: var(--white);
}

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

.btn-light:hover {
    background: var(--blush);
    color: var(--burgundy-deep);
    transform: translateY(-2px);
}

/* ============================================
   SECTION COMMON
============================================ */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--spacing-sm);
}

.section-eyebrow-light {
    color: var(--blush-mid);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

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

/* ============================================
   ABOUT
============================================ */
.about {
    padding: var(--spacing-2xl) 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image-col {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(26, 15, 18, 0.1);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 7/8;
}

.about-img-accent {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(26, 15, 18, 0.15);
    border: 4px solid var(--cream);
}

.about-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/2;
}

.about-text-col {
    padding: var(--spacing-md) 0;
}

.about-text-col p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: var(--spacing-sm);
}

.about-features {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.feature-item svg {
    color: var(--burgundy);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.feature-item strong {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.125rem;
}

.feature-item span {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   MENU
============================================ */
.menu {
    position: relative;
    padding: var(--spacing-2xl) 0;
    overflow: hidden;
}

.menu-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.menu-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-bg-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 15, 18, 0.92) 0%,
        rgba(92, 31, 43, 0.88) 100%
    );
}

.menu-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.menu-intro {
    font-size: 1.0625rem;
    font-weight: 300;
    color: rgba(245, 230, 224, 0.75);
    max-width: 560px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.8;
}

.menu-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.menu-category {
    background: rgba(253, 248, 245, 0.06);
    border: 1px solid rgba(245, 230, 224, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    backdrop-filter: blur(8px);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: rgba(123, 45, 59, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--blush);
}

.category-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(245, 230, 224, 0.07);
}

.category-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-list li span:first-child {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--blush);
}

.category-list li span:last-child {
    font-size: 0.8125rem;
    color: rgba(245, 230, 224, 0.5);
    text-align: right;
    flex-shrink: 0;
}

.menu-note {
    font-size: 0.875rem;
    color: rgba(245, 230, 224, 0.45);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

/* ============================================
   GALLERY
============================================ */
.gallery {
    padding: var(--spacing-2xl) 0;
    background: var(--blush-light);
}

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

.gallery .section-title {
    margin-bottom: var(--spacing-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: var(--spacing-sm);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(123, 45, 59, 0);
    transition: var(--transition);
}

.gallery-item:hover::after {
    background: rgba(123, 45, 59, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item--large {
    grid-column: 1 / 8;
    grid-row: 1 / 2;
    aspect-ratio: 4/3;
}

.gallery-item:not(.gallery-item--large):not(.gallery-item--wide) {
    aspect-ratio: 4/3;
}

.gallery-item--wide {
    grid-column: 6 / 13;
    grid-row: 2 / 3;
    aspect-ratio: 8/3;
}

/* ============================================
   VISIT
============================================ */
.visit {
    padding: var(--spacing-2xl) 0;
    background: var(--cream);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.visit-info {
    padding-right: var(--spacing-md);
}

.visit-intro {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: var(--spacing-md);
}

.visit-details {
    margin-bottom: var(--spacing-md);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(123, 45, 59, 0.1);
}

.detail-item dt {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy);
    min-width: 80px;
}

.detail-item dd {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.detail-item dd a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.detail-item dd a:hover {
    color: var(--burgundy);
}

.visit-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.visit-map {
    position: relative;
    background: var(--blush);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    z-index: 1;
    padding: var(--spacing-md);
}

.map-placeholder svg {
    color: var(--burgundy);
    margin-bottom: var(--spacing-sm);
    opacity: 0.6;
}

.map-placeholder p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.map-link {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--burgundy);
    border-bottom: 1px solid var(--burgundy);
    padding-bottom: 2px;
    transition: var(--transition);
}

.map-link:hover {
    color: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
}

.map-accent {
    position: absolute;
    top: 50%;
    right: -2rem;
    transform: translateY(-50%);
    color: var(--burgundy);
    opacity: 0.1;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background: var(--dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo-word,
.footer-brand .logo-mark {
    color: var(--blush);
}

.footer-brand .logo-mark {
    border-color: var(--blush);
}

.footer-brand p {
    font-size: 0.9375rem;
    color: rgba(245, 230, 224, 0.5);
    line-height: 1.7;
    margin-top: var(--spacing-sm);
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blush-mid);
    margin-bottom: var(--spacing-sm);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    font-size: 0.9375rem;
    color: rgba(245, 230, 224, 0.55);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--blush);
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(245, 230, 224, 0.55);
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(245, 230, 224, 0.55);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 224, 0.08);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 230, 224, 0.3);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr 320px;
        gap: var(--spacing-md);
    }

    .about-grid {
        gap: var(--spacing-md);
    }

    .menu-categories {
        gap: var(--spacing-sm);
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(253, 248, 245, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: var(--spacing-md);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
    }

    .nav-list a {
        padding: 1rem;
        font-size: 1rem;
    }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: var(--spacing-sm);
        text-align: center;
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }

    .hero-image-col {
        display: none;
    }

    .hero-headline {
        max-width: 100%;
    }

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

    .about-img-accent {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: var(--spacing-sm);
    }

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

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

    .gallery-item--large {
        grid-column: 1 / -1;
    }

    .gallery-item--wide {
        grid-column: 1 / -1;
    }

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

    .visit-info {
        padding-right: 0;
    }

    .visit-map {
        min-height: 320px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-2xl: 5rem;
    }

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

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .visit-actions {
        flex-direction: column;
    }

    .visit-actions .btn {
        width: 100%;
        justify-content: center;
    }

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

    .gallery-item--large,
    .gallery-item--wide {
        grid-column: 1;
    }
}
