/* ============================================
   Riviera Coffee & Sandwich Shop
   Classic & Elegant Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --navy-900: #0a1628;
    --navy-800: #0f2140;
    --navy-700: #162d54;
    --navy-600: #1e3a6e;
    --navy-500: #254780;
    
    --gold-500: #D4AF37;
    --gold-400: #E5C158;
    --gold-300: #F0D078;
    --gold-200: #F5DC9A;
    --gold-100: #FBEBBF;
    
    --cream-50: #FAF8F5;
    --cream-100: #F5F0E8;
    --cream-200: #EDE5D8;
    
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --text-white: #f5f5f5;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.1);
    --shadow-lg: 0 10px 40px rgba(10, 22, 40, 0.15);
    --shadow-xl: 0 20px 60px rgba(10, 22, 40, 0.2);
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.938rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}

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

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

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--navy-900);
}

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

.btn-outline:hover {
    background: var(--navy-800);
    color: var(--text-white);
}

/* --- Section Labels --- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy-800);
    margin-bottom: 24px;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 48px;
}

.section-subtitle-light {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--gold-500);
}

.logo-light {
    color: var(--text-white);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--gold-500);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--gold-500);
    color: var(--navy-900) !important;
    font-weight: 700 !important;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.813rem;
    transition: all var(--transition-base) !important;
}

.nav-cta:hover {
    background: var(--gold-400) !important;
    color: var(--navy-900) !important;
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy-900);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.85) 0%,
        rgba(15, 33, 64, 0.75) 50%,
        rgba(10, 22, 40, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.813rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

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

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--gold-500);
    border-radius: 8px;
    z-index: -1;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1.063rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-800);
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: var(--gold-500);
    flex-shrink: 0;
}

/* ============================================
   MENU
   ============================================ */
.menu {
    padding: 120px 0;
    background: var(--navy-800);
    position: relative;
}

.menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.menu-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all var(--transition-base);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(212, 175, 55, 0.3);
}

.menu-card-image {
    overflow: hidden;
    height: 220px;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.menu-card-content {
    padding: 32px;
    text-align: left;
}

.menu-card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold-500);
    margin-bottom: 12px;
}

.menu-card-content p {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.menu-list li {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 20px;
    position: relative;
}

.menu-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--gold-500);
    border-radius: 50%;
}

.menu-note {
    text-align: center;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-note p {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.visit-text {
    font-size: 1.063rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 40px;
}

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

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

.contact-item svg {
    width: 28px;
    height: 28px;
    color: var(--gold-500);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--navy-800);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 0.938rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.contact-item a:hover {
    color: var(--gold-500);
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    background: var(--navy-700);
    padding: 60px 40px;
    text-align: center;
    color: var(--text-white);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.map-placeholder svg {
    width: 56px;
    height: 56px;
    color: var(--gold-500);
}

.map-placeholder p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.btn-map {
    margin-top: 8px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy-900);
    padding: 80px 0 0;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

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

.footer-brand p {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--gold-500);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
}

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

/* ============================================
   SCROLL REVEAL (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid {
        gap: 48px;
    }

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

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

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

    .about-image img {
        height: 400px;
    }

    .about-accent {
        display: none;
    }

    .about-features {
        flex-wrap: wrap;
        gap: 20px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .about,
    .menu,
    .visit {
        padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }
}
