/* ============================================
   LuchaCubano — Classic & Elegant Cuban Restaurant
   Palette: Plum (#4A2C3F / #7B4A63 / #C49A8A) + Amber (#D4A574 / #E8C9A0)
   Fonts: Playfair Display (headings) + Lato (body)
   ============================================ */

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

:root {
    --plum-dark: #2D1B26;
    --plum-deep: #4A2C3F;
    --plum-mid: #7B4A63;
    --plum-light: #C49A8A;
    --plum-pale: #F2E6E2;
    --amber-dark: #8B6914;
    --amber: #D4A574;
    --amber-light: #E8C9A0;
    --cream: #FDF8F5;
    --cream-dark: #F5EDE8;
    --text-dark: #1A0F14;
    --text-mid: #4A3F44;
    --text-light: #7B6B72;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(45, 27, 38, 0.08);
    --shadow-md: 0 4px 20px rgba(45, 27, 38, 0.12);
    --shadow-lg: 0 8px 40px rgba(45, 27, 38, 0.16);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--plum-deep);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius);
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 16px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(45, 27, 38, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196, 154, 138, 0.15);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(45, 27, 38, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--amber-light);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo-icon {
    color: var(--amber);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: rgba(232, 201, 160, 0.8);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--amber-light);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-menu-btn[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(45, 27, 38, 0.75) 0%,
        rgba(74, 44, 63, 0.65) 50%,
        rgba(45, 27, 38, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    padding-bottom: 60px;
    width: 100%;
}

.hero-inner {
    max-width: 720px;
    padding: 40px 0;
}

.hero-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

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

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(242, 230, 226, 0.85);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(232, 201, 160, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--amber), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--amber);
    color: var(--plum-dark);
    border-color: var(--amber);
}

.btn-primary:hover {
    background: var(--amber-light);
    border-color: var(--amber-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(232, 201, 160, 0.5);
}

.btn-secondary:hover {
    background: rgba(232, 201, 160, 0.1);
    border-color: var(--amber-light);
    transform: translateY(-2px);
}

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

/* ============================================
   SECTION COMMON
   ============================================ */
.section-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-dark);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--plum-dark);
    margin-bottom: 20px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--cream);
}

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

.about-images {
    position: relative;
}

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

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.about-signature {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.signature {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--plum-mid);
}

.signature-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--plum-light), transparent);
}

/* ============================================
   MENU
   ============================================ */
.menu {
    padding: 120px 0;
    background: var(--plum-dark);
}

.menu-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.menu-header .section-tag {
    color: var(--amber);
}

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

.menu-header .menu-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(242, 230, 226, 0.7);
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.menu-cat-btn {
    background: transparent;
    border: 1px solid rgba(196, 154, 138, 0.3);
    color: rgba(232, 201, 160, 0.7);
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-cat-btn:hover,
.menu-cat-btn.active {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--plum-dark);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.menu-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(196, 154, 138, 0.12);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(196, 154, 138, 0.25);
    transform: translateY(-2px);
}

.menu-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.menu-item-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.menu-item-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum-dark);
    background: var(--amber);
    padding: 3px 10px;
    border-radius: 100px;
}

.menu-item-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(242, 230, 226, 0.65);
}

.menu-note {
    text-align: center;
    margin-top: 48px;
    font-size: 0.85rem;
    color: rgba(242, 230, 226, 0.45);
    font-style: italic;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    padding: 120px 0;
    background: var(--cream-dark);
}

.gallery-header {
    text-align: center;
    margin-bottom: 48px;
}

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

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: auto;
}

.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.05);
}

/* ============================================
   EVENTS
   ============================================ */
.events {
    padding: 120px 0;
    background: var(--cream);
}

.events-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.events-content .section-tag {
    color: var(--amber-dark);
}

.events-content .section-title {
    color: var(--plum-dark);
}

.events-intro {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-mid);
    margin-bottom: 40px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(196, 154, 138, 0.15);
    transition: var(--transition);
}

.event-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding-right: 20px;
    border-right: 1px solid rgba(196, 154, 138, 0.25);
}

.event-day {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum-mid);
    line-height: 1;
}

.event-name {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber-dark);
    margin-top: 4px;
}

.event-details {
    flex: 1;
}

.event-details p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.event-details p:first-child {
    font-weight: 700;
    color: var(--text-dark);
}

.events-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.events-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 120px 0;
    background: var(--plum-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info .section-tag {
    color: var(--amber);
}

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

.contact-intro {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(242, 230, 226, 0.7);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 36px;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 165, 116, 0.15);
    border-radius: var(--radius);
    color: var(--amber);
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
    color: rgba(242, 230, 226, 0.65);
    line-height: 1.6;
}

.contact-item a {
    color: var(--amber);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--amber-light);
}

.map-link {
    display: inline-flex;
}

/* Contact Form */
.contact-form-wrap {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(196, 154, 138, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form-wrap h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 201, 160, 0.7);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(196, 154, 138, 0.25);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(242, 230, 226, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--amber);
    background: rgba(255, 255, 255, 0.08);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: var(--radius);
    color: #81C784;
    font-size: 0.9rem;
    margin-top: 16px;
}

.form-success svg {
    flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1A0F14;
    color: rgba(242, 230, 226, 0.6);
    padding: 64px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(242, 230, 226, 0.6);
    transition: var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--amber);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(196, 154, 138, 0.12);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(242, 230, 226, 0.35);
    text-align: center;
}

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

/* Default visible state for reduced-motion or no-JS */
.reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .events-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-img-secondary {
        right: 0;
        bottom: -24px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(45, 27, 38, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        border-bottom: 1px solid rgba(196, 154, 138, 0.15);
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-form-wrap {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .about,
    .menu,
    .gallery,
    .events,
    .contact {
        padding: 80px 0;
    }
    
    .menu-categories {
        gap: 6px;
    }
    
    .menu-cat-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
}
