/* 
* The Hunger Station - Custom Styles
* A beautiful, responsive restaurant website
*/

/* Global Styles */
:root {
  --primary-color: #e94822;
  --secondary-color: #f2a51a;
  --light-color: #f7f4e9;
  --dark-color: #222222;
  --gray-color: #f5f5f5;
  --accent-color: #4a8d7c;
}

/* Adding global link styles */
footer a,
.contact-card a {
  text-decoration: none;
}

footer a:hover,
.contact-card a:hover {
  text-decoration: underline;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.section-title {
  position: relative;
  color: var(--dark-color);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.text-center .section-title:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../maincourse-pasta-white-sauce.jpg');
  background-size: cover;
  background-position: center;
  padding: 8rem 0;
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../maincourse-pasta-red-sauce.jpg');
  background-size: cover;
  background-position: center;
}

/* Cards & Shadows */
.card {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.menu-item .card-img-top {
  height: 200px;
  object-fit: cover;
}

.team-card .card-img-top {
  height: 250px;
  object-fit: cover;
}

.object-cover {
  object-fit: cover;
}

.gallery-img {
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

/* Feature Icons */
.feature-icon, .value-icon, .contact-icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  background-color: rgba(233, 72, 34, 0.1);
  border-radius: 50%;
  margin: 0 auto;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 0;
}

.timeline:before {
  content: '';
  position: absolute;
  height: 100%;
  width: 2px;
  background-color: var(--primary-color);
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  width: calc(50% - 30px);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
}

.timeline-content:before {
  content: '';
  position: absolute;
  top: 15px;
  width: 20px;
  height: 2px;
  background-color: var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-content:before {
  left: -20px;
}

.timeline-item:nth-child(even) .timeline-content:before {
  right: -20px;
}

/* Menu Page */
.menu-nav .nav-link {
  border-radius: 2rem;
  margin: 0 0.25rem;
  padding: 0.5rem 1.5rem !important;
}

.menu-nav .nav-link.active {
  background-color: var(--primary-color);
  color: white !important;
}

/* Contact Page */
.hours-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #eee;
}

.hours-list li:last-child {
  border-bottom: none;
}

.delivery-app-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--dark-color);
}

.social-icons a {
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Accordion */
.accordion-button:not(.collapsed) {
  background-color: rgba(233, 72, 34, 0.1);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(233, 72, 34, 0.5);
}

/* Media Queries for Responsive Design */
@media (max-width: 991.98px) {
  .timeline:before {
    left: 40px;
  }
  
  .timeline-dot {
    left: 40px;
  }
  
  .timeline-content {
    width: calc(100% - 70px);
    margin-left: 70px !important;
  }
  
  .timeline-content:before {
    left: -20px !important;
    right: auto !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 6rem 0;
  }
  
  .gallery-img {
    height: 150px;
  }
  
  .menu-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }
  
  .menu-nav .nav-link {
    white-space: nowrap;
  }
}

/* Custom Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeInUp {
  animation-name: fadeInUp;
}

/* Adding Primary Color Text and Background Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Map Container */
.map-container {
  height: 200px;
  overflow: hidden;
}

/* Fix for darker background in page headers */
.text-white {
  color: white !important;
}

/* Menu Item Price Badge - Hidden */
.badge.bg-primary {
  display: none;
}