/* --------------------- BASE --------------------- */
body {
  background: #F0F8EA;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

h1 {
  font-family: 'Oswald', sans-serif;
}

/* --------------------- HEADER --------------------- */
header {
  background: #ffffff;
  color: #000000;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0.6em 0; /* slightly smaller by default */
  transition: all 0.4s ease-in-out; /* smoother animation */
  box-shadow: none;
}

/* When scrolled */
header.scrolled {
  background: #ffffff; /* slightly darker */
  padding: 0.3em 0; /* smoothly shrinks a bit */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  opacity: 0.97;
  transition: all 0.4s ease-in-out;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 2%;
  width: 100%;
  box-sizing: border-box;
}




/* --------------------- LOGO --------------------- */
.logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem; /* smaller for navbar */
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
  letter-spacing: 1px;
  margin: 0;
}

.logo span {
  color: #990000; /* blue theme */
  font-weight: 700;
}

@media (min-width: 700px) {
  .logo {
    font-size: 1.6rem; /* slightly larger on desktop */
  }
}

@media (max-width: 699px) {
  .logo {
    font-size: 1.2rem; /* even smaller on mobile */
    text-align: center;
  }
}



/* --------------------- SITE NAV --------------------- */
.site-nav {
  position: fixed;
  top: 0;
  right: -250px; /* hidden offscreen */
  height: 100%;
  width: 250px;
  background: #464655;
  z-index: 1000;
  transition: right 0.4s ease;
  padding-top: 2em;
}

.site-nav.open {
  right: 0; /* slide in */
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  border-bottom: 1px solid #575766;
}

.site-nav li:last-child {
  border-bottom: none;
}

/* --------------------- LINK STYLES WITH UNDERLINE --------------------- */
.site-nav a {
  display: inline-block; /* match text width */
  position: relative;    /* needed for pseudo-element */
  padding: 1em 0;        /* vertical padding only */
  text-decoration: none;
  color: #000000;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 50%;            /* start at center */
  bottom: 0;
  width: 0%;            /* initial width */
  height: 2px;          /* underline thickness */
  background-color: #990000;
  transition: all 0.3s ease;
  transform: translateX(-50%); /* center underline */
}

.site-nav a:hover::after {
  width: 100%;           /* expand to text width */
}

.order-btn:hover::after{
  background-color: #00000000;
}

/* --------------------- CLOSE BUTTON --------------------- */
.close-nav {
  font-size: 1.5rem;
  color: #EBEBD3;
  text-align: right;
  padding: 0 1em 1em 0;
  cursor: pointer;
}

/* --------------------- HAMBURGER --------------------- */
.menu-toggle {
  display: block;
  cursor: pointer;
  z-index: 1100;
}

/* middle line */
.hamburger {
  width: 25px;
  height: 3px;
  background: #000000;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}

/* top and bottom lines */
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background: #000000;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* --------------------- DESKTOP --------------------- */
@media (min-width: 800px) {
  
  .menu-toggle,
  .close-nav {
    display: none; /* hide hamburger and X */
  }

  .site-nav {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 0;
    right: 0;
    transition: none;
  }

  .site-nav ul {
    display: flex;
    flex-direction: row;
    margin-left: 200px;
    
  }

  .site-nav li {
    border: none;
    margin: 0 0.5em; /* spacing between links */
  }

  .site-nav a {
    padding: 0.5em 0; /* smaller padding for desktop */
    color: #000;
  }
}

/* --------------------- MOBILE COLORS --------------------- */
@media (max-width: 799px){
    .site-nav a{
        color: white;
        margin-left: 20px;
    }

    .order-btn{
      margin-top: 10px;
      margin-left: 15px !important;
      
    }
}

/* --------------------- HERO --------------------- */
.hero {
  width: 100%;
  height: 80vh; /* adjust height as needed */
  position: relative;
  background: url('img/hero2.png') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* adjust opacity for darkness */
  z-index: 1;
}

.hero-logo {
  position: relative;
  z-index: 2; /* ensures logo is above overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.hero-logo img {
  width: 480px; /* desktop size */
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Mobile adjustments */
@media (max-width: 700px) {
  .hero-logo img {
    width: 380px; /* larger logo on mobile */
    max-width: 95%;
  }
}



/* --------------------- HERO MESSAGE --------------------- */
.hero-message {
  width: 90%;
  max-width: 90%;
  margin: 2em auto; /* spacing above and below */
  text-align: center;
  font-size: 1.2rem; /* adjust for readability */
  line-height: 1.6;
  padding: 5px;
}

@media (max-width: 700px) {
  .hero-message {
    font-size: 1rem; /* slightly smaller on mobile */
    margin: 1.5em auto;
  }
}


/* --------------------- ABOUT SECTION --------------------- */
.about {
  background: #ffffff;
  padding: 4em 2%;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2em;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 400px;
}

.about-text h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1em;
  color: #990000;
  text-transform: uppercase;
}

.about-text p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #464655;
}

.about-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto; /* ensures image never squishes */
  max-width: 470px; /* optional: cap the image width */
  border-radius: 10px;
  object-fit: cover; /* keeps aspect ratio even if container changes */
  margin-top: 70px;
}

/* --------------------- RESPONSIVE --------------------- */
@media (max-width: 700px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-image {
    margin-top: -5em;
  }

  .about-image img {
    width: 90%; /* gives space around the image */
    height: auto;
    max-width: none;
  }
}


/* --------------------- PRODUCTS SECTION --------------------- */
.products {
  background: #F0F8EA;
  text-align: center;
  padding: 4em 2%;
}

.products h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  color: #990000;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 items per row on large screens */
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.product {
  background: #f8f8f8;
  border: 2px solid #e0e0e0; /* light gray outline */
  border-radius: 10px;
  padding: 2em 1em;
  transition: all 0.3s ease;
}

.product:hover {
  background: #990000;
  border-color: #990000; /* border blends with hover color */
  color: #fff;
  transform: translateY(-5px);
}

.product i {
  font-size: 2.5rem;
  color: #990000;
  margin-bottom: 0.5em;
  transition: color 0.3s ease;
}

.product:hover i {
  color: #fff;
}

.product h3 {
  text-transform: uppercase;
  margin-bottom: 0.5em;
}

.product p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #464655;
}

.product:hover p {
  color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
  .products-container {
    grid-template-columns: repeat(4, 1fr); /* 4 per row on slightly smaller screens */
  }
}

@media (max-width: 1000px) {
  .products-container {
    grid-template-columns: repeat(3, 1fr); /* 3 per row on medium screens */
  }
}

@media (max-width: 700px) {
  .products {
    padding: 3em 1em;
  }

  .products h1 {
    font-size: 1.8rem;
  }

  .products-container {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on small screens */
  }

  .product {
    padding: 1.5em;
  }
}

@media (max-width: 480px) {
  .products-container {
    grid-template-columns: 1fr; /* 1 per row on mobile */
  }
}


/* --------------------- CERTIFIED SECTION --------------------- */
.certified {
  background: #5d5d5d;  /* gray background */
  padding: 4em 2%;
}

.certified-container {
  display: flex;
  justify-content: center;  /* center flex items horizontally */
  align-items: center;      /* center flex items vertically */
  max-width: 1200px;
  margin: 0 auto;
  gap: 2em;                 /* space between images */
  flex-wrap: nowrap;         /* stay side by side until breakpoint */
}

/* Flex items */
.certified-left,
.certified-right {
  flex: 1 1 auto;           /* grow and shrink freely */
  display: flex;
  justify-content: center;   /* center images inside flex items */
}

/* Images */
.certified-left img,
.certified-right img {
  width: 100%;              /* fills flex item and scales */
  max-width: 450px;         /* cap for large screens */
  height: auto;
  border-radius: 10px;
  border: 8px solid #000000; /* kosher image border */
}

/* Remove border for logo */
.certified-left img {
  border: none;
  max-width: 500px;         /* make both images same relative size */
}

/* Stack vertically on small screens and scale */
@media (max-width: 440px) {
  .certified-container {
    flex-direction: column;
    gap: 1em;
  }

  .certified-left img,
  .certified-right img {
    width: 80%;             /* scale with screen */
    max-width: none;        /* remove cap to allow shrinking */
  }
}




/* =======================
   LOCATION & HOURS SECTION
======================= */
.location-hours {
  background: #f8f8f8;
  padding: 4em 2%;
  position: relative;
  z-index: 2; /* ensures it's above other sections */
}

.location-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2em;
  flex-wrap: nowrap; /* keep them side by side */
  box-sizing: border-box;
}

/* MAP (left) */
.map {
  flex: 1 1 55%;
  min-height: 450px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* INFO (right) */
.location-info {
  flex: 1 1 45%;
  background: #fff;
  border-radius: 10px;
  padding: 2em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: #990000;
  margin-bottom: -0.5em;
  text-transform: uppercase;
}

.location-info .address {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5em;
  line-height: 1.6;
}

.location-info .address a {
  color: #990000;
  text-decoration: none;
  font-weight: 600;
}

.hours-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2em;
}

.hours-list li {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* BUTTON */
.directions-btn {
  display: inline-block;
  background: #000000;
  color: #EBEBD3;
  padding: 0.7em 1.5em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.directions-btn:hover {
  background: #c6c4c2;
  color: #000;
}

/* RESPONSIVE */
@media (max-width: 850px) {
  .location-container {
    flex-direction: column;
    gap: 1.5em;
    max-width: 100%;
    box-sizing: border-box;
  }

  .map {
    width: 100%;
    min-height: 300px;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
  }

  .map iframe {
    width: 100%;
    height: 400px;
    display: block;
    border: 0;
  }

  .location-info {
    width: 100%;
    padding: 1.5em;
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden; /* prevent horizontal scroll */
  }
}

/* =======================
   FOOTER
======================= */
.site-footer {
  background: linear-gradient(180deg, #2e2d2d 0%, #1f1f1f 100%);
  color: #ebeBD3;
  padding: 3em 1em 1.5em; 
  font-family: 'Montserrat', sans-serif;
  position: relative; /* needed for absolute logo positioning */
}

/* Container for all footer items */
.footer-container {
  display: flex;
  justify-content: space-between; /* Kosher left, social right */
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 1em;
  gap: 2em;
  position: relative;
}

/* Kosher image */
.footer-kosher .kosher-wrapper {
  background: #fff;
  padding: 0.5em 1em;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.footer-kosher .kosher-wrapper img {
  max-width: 110px;
  height: auto;
  display: block;
}

/* Logo in the middle (absolute for perfect centering) */
.footer-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  transform: translate(-50%, -50%); /* vertically center in container */
}

.footer-logo img {
  max-width: 220px;
  height: auto;
  display: block;
}

/* Social icons */
.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 0.5em;
}

.footer-social a {
  display: inline-block;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.footer-social a svg {
  width: 28px;
  height: 28px;
  fill: #ebeBD3;
}

.footer-social a:hover svg {
  fill: #990000;
  transform: scale(1.1);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(235, 235, 211, 0.3);
  margin: 1.5em auto;
  width: 80%;
}

.footer-copy {
  font-size: 0.95rem;
  color: #ccc;
  margin-top: 0.5em;
}

/* RESPONSIVE */
@media (max-width: 850px) {
  .footer-container {
    flex-direction: column; /* stack vertically */
    align-items: center;
    gap: 1.5em;
    position: relative;
  }

  .footer-logo {
    position: static; /* remove absolute positioning for mobile */
    transform: none;
    margin: 0;
  }

  .footer-logo img {
    max-width: 220px;
  }

  .footer-kosher .kosher-wrapper img {
    max-width: 80px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-social a svg {
    width: 24px;
    height: 24px;
  }
}

.footer-copy {
    text-align: center;
}


.order-online {
  background: #F0F8EA;
  padding: 3em 2%;
  text-align: center;
}

.order-online h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  color: #990000;
  margin-bottom: 1em;
  text-transform: uppercase;
}

#pickupForm {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

#pickupForm label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-align: left;
}

#pickupForm input,
#pickupForm textarea,
#pickupForm button {
  padding: 0.8em;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#pickupForm button {
  background: #990000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

#pickupForm button:hover {
  background: #5b0d0d;
}

/* --------------------- MENU MODAL --------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Modal content container */
#menuModal .modal-content {
  background-color: #fff;
  margin: 4% auto;
  border-radius: 10px;
  width: 90%;
  max-width: 650px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  padding: 0; /* we’ll handle inner padding separately */
}

/* Scrollable section for the menu items */
#menuModal .menu-scroll {
  overflow-y: auto;
  padding: 2em;
  flex: 1;
}

/* Modal header */
#menuModal .modal-content h3 {
  margin: 0 0 1em 0;
  color: #990000;
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  text-align: center;
}

/* Close button */
#menuModal .close {
  position: absolute;
  right: 1em;
  top: 0.8em;
  font-size: 1.8rem;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}

#menuModal .close:hover {
  color: #990000;
}

/* Menu sections and items */
#menuModal .menu-section {
  margin-top: 1.5em;
}

#menuModal .menu-section h4 {
  
  color: #222;
  margin-bottom: 0.5em;
  font-size: 1.2rem;
}

#menuModal .menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.4em 0;
}

#menuModal .menu-item label {
  flex: 1;
  text-align: left;
}

#menuModal .menu-item input {
  width: 60px;
  padding: 0.3em;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
}

/* Sticky footer inside modal */
#menuModal .menu-footer {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  padding: 1em 2em;
  text-align: right;
  z-index: 10;
}

/* Total inside sticky footer */
#menuModal .menu-total {
  font-size: 1.2rem;
  font-weight: bold;
  color: #222;
  display: inline-block;
  margin-right: 1em;
}

/* Save order button */
#menuModal #saveOrder {
  display: inline-block;
  background-color: #990000;
  color: #fff;
  border: none;
  padding: 0.7em 1.5em;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

#menuModal #saveOrder:hover {
  background-color: #2a0606;
}

.order-btn {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #990000;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  width: 80px;
  text-align: center;
}

.order-btn:hover {
  background-color: #000000;
}

.about-btn {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.8em 1.8em;
  background: #990000;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}


.about-btn:hover {
  background: #000000;
  
}

.about-image {
  pointer-events: none;
}
