/* Cosmopol Karaoke Club - Global Styles */

:root {
  --c-bg: #0A0A0A;
  --c-surface: #1E1E1E;
  --c-card: #2A2A2A;
  --c-text: #FFFFFF;
  --c-muted: #9EA3A8;
  --c-accent: #E01919;
  --radii: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --gap: 16px;
  --maxw: 1200px;
  --speed: 200ms;
}

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  padding-top: 80px; /* Space for fixed header */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Header - Always visible with fixed positioning */
.site-header {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 32px;
  position: fixed; /* Fixed positioning keeps navbar always visible */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000; /* High z-index to stay above all content */
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add scroll state styling */
.site-header.scrolled {
  padding: 12px 32px;
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(224, 25, 25, 0.2);
}

.site-header.scrolled .logo {
  font-size: 1.5rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: 3px;
  position: relative;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
}

.logo:hover {
  color: var(--c-accent);
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(224, 25, 25, 0.5);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--c-text);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--c-accent);
  transform: translateY(-1px);
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
}

.nav a:not(.btn) {
  background: transparent;
}

.nav a:not(.btn):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav a:not(.btn):active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.97);
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 20px;
  right: 20px;
  width: calc(100% - 40px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:not(.btn):hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav a:not(.btn).active {
  color: #fff;
  background: rgba(224, 25, 25, 0.15);
  font-weight: 700;
}

.nav a:not(.btn).active::after {
  opacity: 1;
  transform: scaleX(1);
  background: var(--c-accent);
}

.nav a:not(.btn).active:hover {
  background: rgba(224, 25, 25, 0.2);
}

.nav a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform var(--speed), box-shadow var(--speed);
  text-align: center;
}

.btn-accent {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(224, 25, 25, .6);
}

.btn-accent:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 24px 4px rgba(224, 25, 25, .4);
}

.btn-accent:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 0 12px 2px rgba(224, 25, 25, .3);
  transition: all 0.1s ease;
}

.btn-accent:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 4px;
}

.btn-secondary {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid #333;
}

.btn-secondary:hover {
  background: var(--c-card);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  background: var(--c-surface);
  border-color: var(--c-accent);
  transition: all 0.1s ease;
}

/* Cards */
.card {
  background: var(--c-card);
  border-radius: var(--radii);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform var(--speed);
}

.card:hover {
  transform: translateY(-4px);
}

.card-tilt {
  transition: transform var(--speed);
}

.card-tilt:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
  background: linear-gradient(135deg, rgba(224, 25, 25, 0.1) 0%, rgba(10, 10, 10, 0.9) 100%),
              url('/assets/img/hero-bg.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224, 25, 25, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero h1 {
  margin-bottom: 16px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  color: var(--c-muted);
  position: relative;
  z-index: 1;
}

.hero .btn {
  position: relative;
  z-index: 1;
}

/* Tonight Banner */
.tonight {
  background: var(--c-surface);
  padding: 32px 0;
  text-align: center;
  border-top: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
}

.tonight h2 {
  color: var(--c-accent);
  margin-bottom: 8px;
}

/* Sections */
section {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--c-muted);
  font-size: 1.125rem;
}

/* Carousel */
.carousel {
  padding: 48px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
  background: var(--c-surface);
  border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--c-accent);
  border-radius: 4px;
}

.carousel-item {
  min-width: 280px;
  scroll-snap-align: start;
}

/* What's On Horizontal Scroll */
.whats-on-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 0 24px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--c-accent) var(--c-surface);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.whats-on-scroll::-webkit-scrollbar {
  height: 8px;
}

.whats-on-scroll::-webkit-scrollbar-track {
  background: var(--c-surface);
  border-radius: 4px;
}

.whats-on-scroll::-webkit-scrollbar-thumb {
  background: var(--c-accent);
  border-radius: 4px;
  transition: background var(--speed);
}

.whats-on-scroll::-webkit-scrollbar-thumb:hover {
  background: #c01515;
}

.whats-on-card {
  flex: 0 0 360px;
  background: var(--c-card);
  border-radius: var(--radii);
  overflow: hidden;
  transition: all var(--speed);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.whats-on-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--speed);
  z-index: 1;
}

.whats-on-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(224, 25, 25, 0.3);
}

.whats-on-card:hover::before {
  opacity: 1;
}

.whats-on-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--c-surface);
}

.whats-on-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.whats-on-card:hover .whats-on-card-image img {
  transform: scale(1.08);
}

.whats-on-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.whats-on-card-content h3 {
  font-size: 1.25rem;
  margin: 0 0 4px 0;
  color: var(--c-text);
  line-height: 1.3;
}

.whats-on-card-content .event-time {
  color: var(--c-accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.whats-on-card-content .event-description {
  color: var(--c-muted);
  font-size: 0.875rem;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.whats-on-card-content .btn {
  margin-top: auto;
  width: 100%;
}

.event-date-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--c-accent);
  color: #fff;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(224, 25, 25, 0.3);
}

/* Menu Items */
.menu-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.menu-tab {
  padding: 12px 24px;
  background: var(--c-surface);
  border: none;
  color: var(--c-text);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--speed), color var(--speed);
}

.menu-tab:hover {
  background: var(--c-card);
}

.menu-tab.active {
  background: var(--c-accent);
  color: #fff;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid var(--c-surface);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-info h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.menu-item-info p {
  color: var(--c-muted);
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.menu-item-price {
  font-weight: 700;
  color: var(--c-accent);
  font-size: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  background: var(--c-surface);
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 4px;
  color: var(--c-muted);
}

/* Cocktail Cards */
.cocktail-card {
  background: var(--c-card);
  border-radius: var(--radii);
  padding: 24px;
  transition: transform var(--speed), box-shadow var(--speed);
}

.cocktail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.cocktail-name {
  color: var(--c-accent);
  margin-bottom: 8px;
}

.cocktail-description {
  color: var(--c-muted);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.cocktail-price {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

/* ============================
   EVENTS – GRID LAYOUT
   ============================ */

   .events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  
  /* Tablet */
  @media (max-width: 900px) {
    .events-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Mobile */
  @media (max-width: 600px) {
    .events-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* Card itself */
  .event-card {
    background: var(--c-card);
    border-radius: var(--radii);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: transform var(--speed), box-shadow var(--speed);
  }
  
  .event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.55);
  }
  
  /* Optional image support */
  .event-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }
  
  /* Content block */
  .event-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  /* Date badge */
  .event-date-badge {
    display: inline-block;
    background: var(--c-accent);
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 700;
  }
  
  /* Title */
  .event-card-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
  }
  
  /* Description */
  .event-card-content p {
    color: var(--c-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: auto;
  }
  
  /* Button */
  .event-card-content .btn {
    margin-top: 16px;
    width: 100%;
  }
  

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
}

label {
  display: block;
  margin-bottom: 24px;
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  margin-top: 8px;
  background: var(--c-surface);
  border: 1px solid #333;
  border-radius: 8px;
  color: var(--c-text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--speed);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(224, 25, 25, 0.1);
}

/* Footer */
.site-footer {
  background: var(--c-surface);
  padding: 48px 24px 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--c-accent);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--speed);
}

.footer-section a:hover {
  color: var(--c-text);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #333;
  color: var(--c-muted);
  font-size: 0.875rem;
}

/* Animations */
[reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

[reveal].in {
  opacity: 1;
  transform: none;
}

/* Neon glow effect */
.neon-glow {
  text-shadow: 0 0 10px rgba(224, 25, 25, 0.5),
               0 0 20px rgba(224, 25, 25, 0.3),
               0 0 30px rgba(224, 25, 25, 0.2);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  [reveal] {
    opacity: 1;
    transform: none;
  }
}




/* Additional body scroll lock when menu is open */
body:has(.nav[aria-expanded="true"]) {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  /* Mobile event card - keeps horizontal layout but more compact */
  .event-card {
    flex-direction: row;
    gap: 0;
  }
  
  .event-date {
    width: auto;
    min-width: 80px;
    max-width: 80px;
    padding: 16px 12px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
  
  .event-date-day {
    font-size: 2rem;
    margin-bottom: 2px;
  }
  
  .event-date-month {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }
  
  .event-info {
    padding: 16px;
    flex: 1;
  }
  
  .event-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }
  
  .event-info p {
    font-size: 0.875rem;
    margin-bottom: 8px;
  }
  
  .event-info .btn {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .event-pill {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 32px 0;
  }
  
  /* What's On cards on small mobile */
  .whats-on-card {
    flex: 0 0 280px;
  }
  
  .whats-on-card-image {
    height: 160px;
  }
}

/* Tablet optimisation */
@media (min-width: 601px) and (max-width: 900px) {
  .event-date {
    min-width: 90px;
    padding: 20px 16px;
  }
  
  .event-date-day {
    font-size: 2.5rem;
  }
  
  .event-info {
    padding: 20px;
  }
  
  .event-info h3 {
    font-size: 1.375rem;
  }
}

/* =============================================
   MOBILE RESPONSIVE CONTACT PAGE
   ============================================= */

/* Collapse 2-column layout on mobile */
@media (max-width: 768px) {
  .grid.grid-2 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Map iframe: reduce tall height on phones */
  iframe {
    height: 320px !important;
  }

  /* 3-column “Getting Here” becomes stacked */
  .grid.grid-3 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Contact header text */
  .section-header h1 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  /* Cards breathing room */
  .card {
    padding: 20px !important;
  }

  /* Buttons full width */
  .btn,
  .btn-secondary,
  .btn-accent {
    width: 100%;
    text-align: centre;
  }

  /* Social buttons spacing */
  .card a.btn {
    width: 100%;
  }

  /* Footer layout */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .site-footer ul li {
    margin-bottom: 4px;
  }
}

/* Extra-small devices */
@media (max-width: 480px) {
  /* Reduce padding */
  section {
    padding: 32px 0 !important;
  }

  .card {
    font-size: 0.9375rem;
  }

  /* Smaller map */
  iframe {
    height: 260px !important;
  }

  /* Tighten the Getting Here text */
  .grid.grid-3 h3 {
    font-size: 0.95rem;
  }
}


/* MOBILE NAV – UNIVERSAL WORKING VERSION */
@media (max-width: 900px) {

  body {
    padding-top: 0 !important;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 20002;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
  }

  /* MOBILE MENU – COVER FULL SCREEN, NO OVERFLOW */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;              /* full true viewport width */
    height: 100vh;             /* full true viewport height */
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;

    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;

    z-index: 20001;
  }

  /* OPEN STATE – FULLY OPAQUE, ENABLED */
  .nav[aria-expanded="true"] {
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    font-size: 1.6rem;
    padding: 12px 24px;
    text-align: center;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20003;
    background: rgba(10,10,10,0.90);
    backdrop-filter: blur(8px);
  }

  /* LOCK PAGE WHEN MENU OPEN */
  body:has(.nav[aria-expanded="true"]) {
    overflow: hidden;
  }
}

/* Fix invisible header on Events page */
.events-page-section {
  padding-top: 120px; /* ensures it clears fixed header */
}

