/* ============================================
   Esquire's — Atlantic City Café & Bar
   Classic & Elegant Design System
   ============================================ */

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

:root {
    --navy-950: #0a1628;
    --navy-900: #1a2744;
    --navy-800: #243660;
    --navy-700: #2e4570;
    --gold-500: #c9a84c;
    --gold-400: #d4b76a;
    --gold-300: #e0c987;
    --gold-200: #e8d9a8;
    --cream-50: #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #ebe4d6;
    --charcoal-900: #1a1a1a;
    --charcoal-700: #2d2d2d;
    --charcoal-600: #4a4a4a;
    --charcoal-500: #6b6b6b;
    --charcoal-400: #8a8a8a;
    --white: #ffffff;
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --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.12);
}

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

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

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

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

ul {
    list-style: none;
}

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

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

.text-gold {
    color: var(--gold-500);
}

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

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

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

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 0.9375rem;
}

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 16px;
}

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

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--charcoal-500);
    max-width: 560px;
    line-height: 1.8;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.97);
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-letter {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--gold-500);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--white);
    letter-spacing: 0.04em;
}

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

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-cta {
    padding: 10px 24px;
    border: 1px solid var(--gold-500);
    color: var(--gold-500) !important;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: var(--gold-500);
    color: var(--navy-950) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        url('https://images.pexels.com/photos/5864548/pexels-photo-5864548.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') 
        center center / cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 40, 0.82) 0%,
        rgba(26, 39, 68, 0.78) 50%,
        rgba(10, 22, 40, 0.88) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 0 24px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 24px;
}

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

.hero-headline .text-gold {
    font-style: italic;
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-details {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
}

.hero-detail svg {
    color: var(--gold-500);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

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

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

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

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

.about-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.about-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold-500);
    border-radius: 4px;
    z-index: -1;
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--charcoal-600);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-500);
    border-radius: 50%;
    color: var(--gold-500);
}

.about-feature h4 {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.about-feature p {
    font-size: 0.9375rem;
    color: var(--charcoal-500);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ---------- Menu ---------- */
.menu {
    padding: 120px 0;
    background-color: var(--navy-900);
}

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

.menu .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
    margin-right: auto;
}

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

.menu-tab {
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-tab:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.menu-tab.active {
    background-color: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--navy-950);
}

.menu-grid {
    display: block;
}

.menu-panel {
    display: none;
}

.menu-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-header h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 4px;
}

.menu-item-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
}

.menu-note {
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 40px;
    font-style: italic;
}

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

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

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

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

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

.gallery-item--large {
    grid-column: span 7;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 5;
    grid-row: span 1;
}

.gallery-item:nth-child(3) {
    grid-column: span 5;
    grid-row: span 1;
}

.gallery-item:nth-child(4) {
    grid-column: span 6;
    grid-row: span 1;
}

.gallery-item:nth-child(5) {
    grid-column: span 6;
    grid-row: span 1;
}

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

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

.visit-info {
    display: flex;
    flex-direction: column;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 40px 0;
    flex: 1;
}

.visit-detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.visit-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-500);
    border-radius: 50%;
    color: var(--gold-500);
}

.visit-detail h4 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.visit-detail p {
    font-size: 0.9375rem;
    color: var(--charcoal-600);
    line-height: 1.7;
}

.visit-detail a {
    color: var(--gold-500);
    transition: var(--transition);
}

.visit-detail a:hover {
    color: var(--gold-400);
    text-decoration: underline;
}

.visit-map {
    border-radius: 4px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-lg);
}

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

/* ---------- Footer ---------- */
.footer {
    background-color: var(--navy-950);
    padding: 80px 0 0;
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-top: 20px;
    max-width: 300px;
}

.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(--gold-500);
    margin-bottom: 20px;
}

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

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

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

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

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

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

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

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

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }
    
    .gallery-grid {
        grid-template-rows: repeat(2, 240px);
    }
    
    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--navy-950);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        font-size: 0.9375rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrapper img {
        height: 400px;
    }
    
    .about-image-accent {
        top: -12px;
        left: -12px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px 200px;
    }
    
    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(2) {
        grid-column: span 1;
    }
    
    .gallery-item:nth-child(3) {
        grid-column: span 1;
    }
    
    .gallery-item:nth-child(4) {
        grid-column: span 1;
    }
    
    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
    
    .hero-details {
        flex-direction: column;
        gap: 12px;
    }
    
    .menu-tabs {
        gap: 6px;
    }
    
    .menu-tab {
        padding: 10px 18px;
        font-size: 0.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 220px);
    }
    
    .gallery-item--large,
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

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