/*
 * Custom stylesheet for the Lwano Grill Space website.
 *
 * This file contains all the CSS rules needed to style the site without
 * relying on external frameworks. It defines a colour palette, fonts,
 * layout utilities, navigation styles, responsive design breakpoints,
 * component classes for cards and sections, as well as form styling.
 * The styles aim to recreate the look and feel of the original Tailwind
 * design while ensuring that all CSS is separate from the HTML.
 */

/* Root variables for easy theming */
:root {
  --primary: #ed1c24;
  --secondary: #fbb03b;
  --bg-dark: #1b2c26;
  --bg-dark-alpha50: rgba(27, 44, 38, 0.5);
  --bg-dark-alpha80: rgba(27, 44, 38, 0.8);
  --bg-dark-alpha95: rgba(27, 44, 38, 0.95);
  --bg-white-5: rgba(255, 255, 255, 0.05);
  --bg-white-10: rgba(255, 255, 255, 0.10);
  --text-base: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-muted2: rgba(255, 255, 255, 0.6);
  --radius-sm: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
}

/* Reset some default styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Epilogue', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

/* Utility classes */
.hidden {
  display: none !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

/* Container limits width and centres content */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header and navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background-color: var(--bg-dark-alpha80);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bg-white-10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--text-base);
}

/* Desktop navigation */
.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-base);
  position: relative;
  padding: 0.25rem 0;
}
.nav a:hover {
  color: var(--primary);
}

.nav .active {
  color: var(--primary);
}

/* CTA button visible on desktop */
.cta-button {
  display: none;
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease-in-out;
}
.cta-button:hover {
  background-color: #c4121c;
}

/* Mobile navigation toggle button */
.mobile-menu-button {
  display: inline-block;
  background: none;
  border: none;
  color: var(--text-base);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile menu overlay */
.mobile-menu {
  /* Overlay covers the entire viewport on mobile */
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark-alpha95);
  z-index: 40;
  padding: 2rem 1rem;
  overflow-y: auto;
  /* Center contents within the overlay */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu .close-btn {
  font-size: 2rem;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  /* Position the close button in the top-right corner */
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.mobile-menu nav {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.mobile-menu nav a {
  font-size: 1.25rem;
  color: var(--text-base);
}
.mobile-menu nav a:hover {
  color: var(--primary);
}

/* Show desktop nav and CTA on wider screens */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .mobile-menu-button {
    display: none;
  }
  .cta-button {
    display: inline-block;
  }
}

/* Hero section */
.hero {
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 6rem 1rem;
  position: relative;
  color: #ffffff;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-subtitle {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  /* Centralize the group horizontally on all viewports */
  justify-content: center;
}
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-buttons {
    flex-direction: row;
  }
}

/* Generic button styles */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-lg);
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
}
.button-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.button-primary:hover {
  background-color: #c4121c;
}
.button-secondary {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.button-secondary:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}
.section-subtitle {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  text-align: center;
}

/* Cards and grid layouts */
.cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background-color: var(--bg-white-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  /* Smooth zoom transition for better presentation */
  transition: transform 0.3s ease;
}
.card-content {
  padding: 1rem;
}
.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.card-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

/* Gallery styles */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  /* Smooth zoom transition for better presentation */
  transition: transform 0.3s ease;
}

/* Zoom images slightly on hover for cards and gallery items */
.card-img:hover,
.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Events cards */
.event-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 260px;
}
.event-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
}
.event-card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1rem;
  z-index: 1;
}
.event-card .info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.event-card .info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Form styles */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
form label {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}
form input,
form select,
form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-white-10);
  background-color: var(--bg-white-5);
  color: var(--text-base);
  font-size: 0.875rem;
}
form input::placeholder,
form textarea::placeholder {
  color: var(--text-muted2);
}
form textarea {
  min-height: 120px;
  resize: vertical;
}
form .form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--bg-white-10);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer .footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}
.footer .footer-links a:hover {
  color: var(--primary);
}
.footer .footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted2);
}

/* Menu category tabs */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--bg-white-10);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}
.menu-tabs a {
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-base);
  background-color: transparent;
  border-radius: var(--radius-lg);
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.menu-tabs a.active,
.menu-tabs a:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Gallery filter buttons */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.gallery-filter button {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  background-color: var(--bg-white-5);
  color: var(--text-base);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.gallery-filter button:hover,
.gallery-filter button.active {
  background-color: var(--primary);
  color: #ffffff;
}

/* Additional utility classes to replace inline styles */

/* Logo sizes */
.logo-large {
  height: 2rem;
  width: auto;
}
.logo-small {
  height: 1.5rem;
  width: auto;
}

/* Text alignment helpers */
.text-center {
  text-align: center;
}

/* Margin helpers */
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mt-1-5 {
  margin-top: 1.5rem;
}

/* Flexbox helper to center children horizontally */
.justify-center {
  display: flex;
  justify-content: center;
}

/* Alternative section styling for darker backgrounds */
.section-alt {
  background-color: var(--bg-dark-alpha80);
  border-top: 1px solid var(--bg-white-10);
}

/* Circular icon container for cards */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  background-color: rgba(237, 28, 36, 0.2);
  color: var(--primary);
  margin: 0 auto 1rem;
}

/* Override grid layouts for single column or wider cards */
.cards-single {
  grid-template-columns: 1fr;
}
.cards-wide {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Flex orientation helpers */
.card-flex-column {
  display: flex;
  flex-direction: column;
}
.flex-1 {
  flex: 1;
}

/* Map container styling */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.iframe-map {
  width: 100%;
  height: 350px;
  border: 0;
}

/* Social icon container */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.icon-link {
  color: var(--primary);
}

/* Section title variant for primary colour */
.section-title-primary {
  color: var(--primary);
}

/* Radio button group */
.radio-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Button that spans full width */
.btn-block {
  display: block;
  width: 100%;
}

/* Contact page grid */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Form wrapper for the reservations page */
.form-wrapper {
  background-color: var(--bg-white-5);
  border: 1px solid var(--bg-white-10);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
  .form-wrapper {
    padding: 2.5rem;
  }
}

/* Home page hero background image */
.hero-home {
  /* Apply the same gradient overlay and background image used inline on the home page */
  background-image: linear-gradient(rgba(27, 44, 38, 0.6), rgba(27, 44, 38, 0.9)), url('hero_bg.png');
  background-size: cover;
  background-position: center;
}