/*
Theme Name: Mount Heritage
Description: Custom theme for Mount Heritage Bar & Grill
Author: Your Name
Version: 1.0
*/

/* Variables */
:root {
  --primary: #ff6b35;
  --primary-dark: #e85d2a;
  --secondary: #ffd100;
  --dark: #222;
  --light: #f8f8f8;
  --font-main: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Playfair Display", serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

h2 {
  font-family: "Lobster", sans-serif !important;
  font-weight: 400;
  font-style: normal;
  font-size: 3rem !important;
}

img {
  max-width: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
  background-color: var(--dark);
  color: white;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  top: 0;
  left: 0;
  transition: padding 0.3s ease, background 0.3s ease;
}

.mobile-menu-logo {
  display: none;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: auto;
  height: auto;
  max-width: 70px;
}

@media screen and (max-width: 768px) {
  .logo {
    max-width: 50px;
  }
}

.logo span {
  color: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 30px;
}

nav a {
  color: white;
  font-weight: 500;
  position: relative;
}

nav a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

nav a:hover:after {
  width: 100%;
}

.mobile-menu {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
}

#hero-logo {
  height: 100%;
  width: 100%;
  max-width: 500px;
}

@media screen and (max-width: 768px) {
  #hero-logo {
    max-width: 250px;
  }
}

.hero-container::before {
  background-color: #000;
  width: 100%;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-secondary {
  background: transparent;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--dark);
}

section {
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
  overflow-x: hidden;
}

/* About Section */
.about {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  display: inline-block;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 60%;
  height: 3px;
  background: var(--primary);
  bottom: -10px;
  left: 20%;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-img {
  flex: 1;
  overflow: hidden;
  transform: rotate(-20deg);
}

.about-img img {
  max-width: 450px;
  height: auto;
  transition: transform 0.5s ease;
  margin: auto;
}

@media screen and (max-width: 768px) {
  .about-img img {
    max-width: 250px;
    transform: rotate(0deg);
  }
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: #555;
}

/* Menu Section */
.menu {
  padding: 100px 0;
  background-color: #f5f5f5;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.menu-tab {
  padding: 10px 20px;
  background: white;
  border-radius: 30px;
  margin: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.menu-tab.active,
.menu-tab:hover {
  background: var(--primary);
  color: white;
}

.menu-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.menu-item {
  overflow: hidden;
  transition: all 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.menu-item-img {
  height: 200px;
  overflow: hidden;
}

.menu-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-item:hover .menu-item-img img {
  transform: scale(1.1);
}

.menu-item-content {
  padding: 20px;
}

.menu-item-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  align-items: center;
}

.menu-item-title h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.menu-item-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.menu-item-desc {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.menu-item-tag {
  display: inline-block;
  padding: 5px 10px;
  background: var(--secondary);
  color: var(--dark);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Special Offers Section */
.special-offers {
  background: url("fries-falling.png") center/cover no-repeat;
  padding: 100px 0;
  position: relative;
}

.special-offers::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.special-offers .container {
  position: relative;
  z-index: 1;
}

.special-offers .section-title {
  position: relative;
  z-index: 1;
}

/* Contact Section */
.contact {
  padding: 100px 0;
}

.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.contact-icon {
  color: var(--primary);
  font-size: 1.2rem;
  margin-right: 15px;
  margin-top: 5px;
}

.contact-text h4 {
  margin-bottom: 5px;
}

.contact-form {
  flex: 1;
}

@media (max-width: 768px) {
  .contact-info {
    max-height: 660px !important;
  }

  .contact-form iframe {
    width: 100% !important;
    height: 300px;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--primary);
  bottom: 0;
  left: 0;
}

.footer-column p,
.footer-column li {
  color: #bbb;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
}

.footer-column a {
  color: #bbb;
}

.footer-column a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  font-size: 0.9rem;
}

/* Menu Categories Styling */
.menu-category {
  margin-bottom: 50px;
}

.category-title {
  color: white;
  background: var(--primary);
  padding: 10px 20px;
  border-radius: 8px 8px 0 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  border: 4px solid #000;
}

.category-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Custom menu item styles */
.food-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.food-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f8f8f8;
}

.food-item-number {
  background: var(--primary);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.food-item-price {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

.food-item-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.food-item-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.food-item-desc {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 10px;
  flex-grow: 1;
}

.food-item-notes {
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
  }

  .header-container {
    padding: 0 20px;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Update mobile nav styles */
  nav {
    position: fixed;
    top: 0;
    right: -80%; /* Start offscreen to the right */
    width: 80%; /* Take up 80% of screen width */
    height: 100vh; /* Full viewport height */
    background: var(--dark);
    padding: 30px;
    transition: right 0.3s ease; /* Change from left to right transition */
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* Higher than header */
    overflow-y: auto; /* Allow scrolling if menu is tall */
  }

  .mobile-menu-logo {
    display: block;
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 20px;
  }

  .mobile-menu-logo img {
    max-width: 120px;
  }

  nav {
    padding-bottom: 100px;
  }

  nav.active {
    right: 0; /* Slide in from right */
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
    padding-top: 60px; /* Space for header */
  }

  nav li {
    margin-left: 0;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .mobile-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
  }
}

#events {
  padding: 100px 0;
  position: relative;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.event-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-card-image {
  position: relative;
  height: 100%;
  max-height: 400px;
  overflow: hidden;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
}

.event-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff5722; /* adjust for type */
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.event-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.event-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.event-card-description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.event-card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

.event-card-meta i {
  margin-right: 5px;
}

.facebook-button-container {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.facebook-button {
  font-size: 1.2rem;
}

.event-card-button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.08);
  max-width: fit-content;
}

.event-card-button:hover,
.event-card-button:focus {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.events-grid:has(> .event-card:only-child) {
  justify-items: center;
}

.events-grid:has(> .event-card:only-child) .event-card {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}
