/* ========================================
   OFF THE RAILS SPORTS PUB
   Clean Minimalist · Plum & Amber
   ======================================== */

/* --- CSS Variables --- */
:root {
    --plum-deep: #2D1B35;
    --plum: #4A2C5A;
    --plum-light: #6B3F7A;
    --plum-muted: #8B5A8B;
    --plum-pale: #F3EDF7;
    --plum-bg: #FAF7FC;
    
    --amber: #D4920B;
    --amber-light: #E8A825;
    --amber-glow: #F5C04A;
    --amber-pale: #FFF8E7;
    
    --text-dark: #1A1A2E;
    --text-body: #3D3D5C;
    --text-muted: #7A7A9A;
    --text-light: #B8B8D0;
    
    --white: #FFFFFF;
    --off-white: #FEFCFF;
    --border: #EDE8F2;
    --border-light: #F5F0FA;
    
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(45, 27, 53, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 27, 53, 0.08);
    --shadow-lg: 0 8px 40px rgba(45, 27, 53, 0.12);
    --shadow-xl: 0 16px 60px rgba(45, 27, 53, 0.16);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-body);
    background: var(--off-white);
    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;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.15;
    letter-spacing: 0.01em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--amber);
    color: var(--white);
    border: 1.5px solid var(--amber);
}

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

.btn-outline {
    background: transparent;
    color: var(--plum);
    border: 1.5px solid var(--plum);
}

.btn-outline:hover {
    background: var(--plum);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 16px;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-weight: 300;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 252, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--plum-deep);
}

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

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

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-body);
    transition: color var(--transition);
    position: relative;
}

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

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

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

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

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--plum-deep);
    transition: all var(--transition);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(254, 252, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 8px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-body);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: color var(--transition);
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover {
    color: var(--plum);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--off-white);
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum-muted);
    margin-bottom: 32px;
    padding: 8px 16px;
    border: 1px solid var(--border);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--amber);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    color: var(--plum-deep);
    margin-bottom: 24px;
    line-height: 1.05;
}

.text-gradient {
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 480px;
    font-weight: 300;
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
}

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

.hero-image {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 0;
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--amber);
    z-index: -1;
}

/* Floating Stat Cards */
.stat-card {
    position: absolute;
    background: var(--white);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 3;
}

.stat-card--1 {
    top: 40px;
    left: -40px;
}

.stat-card--2 {
    bottom: 120px;
    left: -30px;
}

.stat-card--3 {
    bottom: 40px;
    right: -20px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--plum-deep);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Hero Decorative */
.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, var(--plum-pale) 0%, transparent 60%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-line {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 44, 90, 0.1) 0%, transparent 60%);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

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

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--plum-deep);
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

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

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

.menu-tab {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 24px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    background: var(--white);
}

.menu-tab:hover {
    color: var(--plum);
    border-color: var(--plum-light);
}

.menu-tab.active {
    color: var(--white);
    background: var(--plum);
    border-color: var(--plum);
}

.menu-content {
    max-width: 900px;
    margin: 0 auto;
}

.menu-category {
    display: none;
    animation: fadeIn 0.4s ease;
}

.menu-category.active {
    display: block;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.menu-item {
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.menu-item-info {
    padding-left: 16px;
}

.menu-item-name {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--plum-deep);
    font-weight: 400;
}

.menu-item-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

.menu-note {
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--white);
    border-left: 2px solid var(--amber);
}

.menu-note p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.menu-cta {
    text-align: center;
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.menu-cta p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

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

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 27, 53, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-overlay span {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item--large {
    grid-column: span 5;
}

.gallery-item--tall {
    grid-column: span 3;
    grid-row: span 2;
}

/* ========================================
   EVENTS
   ======================================== */
.events {
    padding: 120px 0;
    background: var(--plum-deep);
    position: relative;
    overflow: hidden;
}

.events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(107, 63, 122, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.events .section-header {
    position: relative;
    z-index: 1;
}

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

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

.events .section-subtitle {
    color: var(--plum-muted);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.event-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 146, 11, 0.3);
    transform: translateY(-4px);
}

.event-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.event-day {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
}

.event-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

.event-content h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.event-content p {
    font-size: 0.875rem;
    color: var(--plum-muted);
    line-height: 1.7;
    font-weight: 300;
}

.event-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    border: 1px solid rgba(212, 146, 11, 0.3);
    padding: 4px 10px;
}

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

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

.visit-info .section-title {
    text-align: left;
}

.visit-info .section-subtitle {
    text-align: left;
    margin: 0 0 48px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

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

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--amber);
}

.contact-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--plum-deep);
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

.contact-text a {
    color: var(--plum);
    transition: color var(--transition);
}

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

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

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

.map-container {
    width: 100%;
    height: 100%;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--plum-deep);
    padding: 80px 0 40px;
}

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

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--plum-muted);
    font-weight: 300;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 20px;
    font-weight: 400;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--plum-muted);
    transition: color var(--transition);
    font-weight: 300;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--plum-muted);
    font-weight: 300;
}

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

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

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

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-visual {
        max-width: 500px;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .stat-card--1 {
        left: 0;
    }
    
    .stat-card--2 {
        left: 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .visit-map {
        height: 350px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .stat-card {
        padding: 14px 18px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-card--1 {
        top: 20px;
        left: -10px;
    }
    
    .stat-card--2 {
        bottom: 80px;
        left: -10px;
    }
    
    .stat-card--3 {
        bottom: 20px;
        right: -10px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item--large {
        grid-column: span 2;
    }
    
    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .stat-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 12px;
    }
    
    .hero-visual {
        display: flex;
        flex-direction: column;
    }
    
    .menu-categories {
        gap: 6px;
    }
    
    .menu-tab {
        padding: 10px 16px;
        font-size: 0.7rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item--large {
        grid-column: span 1;
    }
}
