@font-face {
  font-family: 'Qomariah Arabic';
  src: url('../font/qomariah-arabic.regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

h1 {
  font-family: 'Qomariah Arabic', serif;
  font-weight: 700;
  font-size: 4.5rem !important;
  font-style: italic;
}

.title-font {
  font-family: 'Qomariah Arabic', serif;
  font-weight: 700;
  font-size: 4.5rem !important;
  font-style: italic;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Custom Navbar Styles */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  transition: all 0.3s ease;
  min-height: 10vh;
}

.navbar > .container {
  min-height: 10vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.navbar-brand img,
.brand-hover {
  max-height: 100px;
  width: auto !important;
  object-fit: contain;
}

.purple-gradient {
  background: linear-gradient(135deg, #3a3347 0%, #5c275c 100%);
}

.navbar-brand {
  transition: transform 0.3s ease, color 0.3s ease;
}

.brand-hover:hover {
  transform: translateY(-2px);
  color: var(--bs-body-color) !important;
}

.nav-link-custom {
  color: rgba(var(--bs-body-color-rgb), 0.85) !important;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bs-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-custom:hover {
  color: var(--bs-body-color) !important;
  transform: translateY(-2px);
}

.nav-link-custom:hover::after {
  width: 80%;
}

.nav-link-custom.active {
  color: var(--bs-body-color) !important;
}

.nav-link-custom.active::after {
  width: 80%;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Footer Styles */
.footer-custom {
  color: var(--bs-body-color);
  border-top: 1px solid var(--bs-gray-700) !important;
}

.footer-link {
  color: rgba(var(--bs-body-color-rgb), 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--bs-primary);
}

/* Menu Page Styles */
.menu-type-header {
  display: inline-block;
  padding: 0.5rem 2rem;
  padding-bottom: 0.75rem;
  font-size: 2rem;
  font-weight: 600;
}

.menu-item-card {
  text-align: center;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bs-primary), transparent);
  transition: width 0.3s ease;
}

.menu-item-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bs-primary), transparent);
  transition: width 0.3s ease;
}

.menu-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.menu-item-card:hover::before,
.menu-item-card:hover::after {
  width: 80%;
}

.menu-item-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  color: var(--bs-body-color);
  border-bottom: 2px solid var(--bs-secondary);
  display: inline-block;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.menu-item-card:hover .menu-item-name {
  border-bottom-color: var(--bs-primary) !important;
  letter-spacing: 1px;
}

.menu-item-description {
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.menu-set-items {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.menu-bundle-info {
  margin-bottom: 0.75rem;
}

.menu-item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-secondary);
  margin-top: 1rem;
  margin-bottom: 0;
}

.menu-subtitle {
  display: inline-block;
  font-size: 1rem;
  color: var(--bs-secondary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
}

.allergen-item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

/* Fade-in on scroll animation */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(-30px);
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Hero Section - Base Styles */
.hero-section {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

/* Home Page Hero - Full Height */
.hero-section.hero-home {
  height: 90vh;
  background-image: url('../img/hero-2.jpg');
}

/* Page Banner Hero - Shorter */
.hero-section.hero-banner {
  min-height: 400px;
  max-height: 500px;
  padding: 3rem 0;
}

.hero-section.hero-menu {
  background-image: url('../img/menu-hero.jpg');
}

.hero-section.hero-event {
  background-image: url('../img/event-hero.jpg');
  background-size: cover;
  background-position: bottom;
}

.hero-content-card {
  background-color: rgba(33, 33, 33, 0.92);
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Smaller card for banners */
.hero-banner .hero-content-card {
  padding: 2rem 1.5rem;
  max-width: 600px;
}

.hero-logo {
  max-width: 450px;
  width: 100%;
  height: auto;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--bs-body-color);
}

.hero-cta-buttons .btn {
  min-width: 200px;
}

/* Hero title/subtitle for banner pages */
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
    padding: 3rem 0;
  }

  .hero-section.hero-home {
    min-height: auto;
  }

  .hero-section.hero-banner {
    min-height: 350px;
    padding: 2rem 0;
  }

  .hero-content-card {
    padding: 2rem 1.5rem;
  }

  .hero-banner .hero-content-card {
    padding: 1.5rem 1rem;
  }

  .hero-logo {
    max-width: 300px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta-buttons .btn {
    min-width: 160px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Mobile navbar fixes */
  .navbar-brand img,
  .brand-hover {
    max-width: 200px !important;
    max-height: 60px;
  }

  .navbar-collapse {
    background-color: inherit;
    margin-left: -12px;
    margin-right: -12px;
    padding: 1rem 12px;
  }
}

/* Validation Summary Styling */
.validation-summary-errors {
  padding: 0;
  margin: 0;
  list-style: none;
}

.validation-summary-errors li {
  position: relative;
  padding-left: 1.75rem;
}

.validation-summary-errors li::before {
  content: '\f06a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
}