/* ------------------------------------------- GLOBAL RESET -------------------------------------------*/
* {
  box-sizing: border-box;
}

/* ------------------------------------------- BASE STRUCTURE -------------------------------------------*/
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: "Segoe UI", sans-serif;
  color: #fff;
  font-size: 18px;
  background-image: linear-gradient(to top, #333, #111);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

html {
  overflow-y: scroll;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  flex: 1;
}

footer {
  box-sizing: border-box;
  background-color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Remove outer border on the whole catering menu */
.menu-section {
  border: none; /* no box */
  margin-bottom: 2rem;
  overflow: visible;
}

/* Keep horizontal line between rows */
.menu-header,
.menu-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #ccc; /* horizontal lines */
  box-sizing: border-box; /* ensure padding + border inside */
}

/* Remove bottom border on last row so no extra line */
.menu-row:last-child {
  border-bottom: none;
}

/* Vertical borders only on the right side of cells, except last cell */
.menu-header > div,
.menu-row > div {
  border-right: 1px solid #ccc;
  padding: 0 8px;
  box-sizing: border-box;
}

/* Remove right border on last column cells */
.menu-header > div:last-child,
.menu-row > div:last-child {
  border-right: none;
}

.page-wrapper,
.nav-container,
.container,
.footer-inline,
.footer-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.menu-image img {
  width: 115%; /* make image bigger */
  max-width: none; /* remove any max-width limit */
  display: block;
  margin: 0 auto;
  padding: 0;
  position: relative;
  left: 50%; /* move image 50% to the right */
  transform: translateX(
    -50%
  ); /* pull image back left by 50% of its own width */
}

.menu-header,
.menu-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  align-items: center;
  padding: 5px 1;
}

.menu-header {
  font-weight: bold;
  border-bottom: 3px solid #ccc;
  color: white;
  margin: 0;
  margin-top: 0;
}

.price-notice {
  text-align: center;
  font-weight: bold;
  margin: 1em 0;
  font-size: 18px; /* Adjust size here */
}

.hr5 {
  border-bottom: 3px solid #ccc;
  color: white;
}

.size-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.size-label {
  font-size: 1rem;
}

.size-desc {
  font-size: 0.8rem;
  font-weight: normal;
  color: #ccc;
}

.dish-name {
  flex: 1;
  font-size: 1.25rem;
}

.dish-price {
  text-align: right;
  width: 100%;
  color: #ccc;
  font-size: 1.25rem;
}

.catering-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.catering-text {
  position: relative;
  z-index: 1;
}

.note-overlay {
  position: absolute;
  top: -40px;
  right: 60px; /* Adjust as needed */
  width: 230px; /* Resize as needed */
  transform: rotate(8deg);
  z-index: 2;
  pointer-events: none; /* So it doesn’t block clicks */
}

.note-image {
  flex: 1 1 35%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.note-image img {
  max-width: 100%;
  height: auto;
  border: none;
}

/* ------------------------------------------- MAIN CONTENT -------------------------------------------*/
main {
  flex: 1; /* grow to fill available space */
  max-width: 900px;
  margin: auto;
  padding: 2.5rem 1.5rem;
  font-size: 1.5rem;
  line-height: 1.6;
}

main {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

main.visible {
  opacity: 1;
  transform: translateY(0);
}

.main-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FOOTER */
footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 1.2rem 0;
  font-size: 1rem;
  flex-shrink: 0;
  width: 100%;
}

.footer-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 1.5rem;
}

.footer-inline img {
  width: 20px;
  height: auto;
}

footer p {
  margin: 0;
  font-size: 16px;
}

/* LOGO */
.logo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  width: 300px;
}

.social-icons img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/*------------------------------------------- NAVIGATION BAR -------------------------------------------*/
nav {
  background-color: #222;
  width: 100%; /* avoid 100vw */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: center;
  padding: 0;
}

nav a {
  flex: 1;
  padding: 15px 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ccc;
  border-bottom: 4px solid transparent;
  text-align: center;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  user-select: none;
}

nav a:hover {
  color: white;
  background-color: #222;
  border-bottom-color: #777;
}

/* Style for nav links */
nav a {
  flex: 1;
  padding: 15px 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ccc;
  border-bottom: 4px solid transparent;
  text-align: center;
  transition: color 0.3s ease, background-color 0.3s ease,
    border-bottom-color 0.3s ease;
  letter-spacing: 0.05em;
  user-select: none;
  box-sizing: border-box;
}

/* Hover effect */
nav a:hover {
  color: white;
  background-color: #222;
  border-bottom-color: #777;
}

/* Active nav link */
nav a.active {
  background-color: #222;
  border-bottom: 4px solid white;
  box-shadow: 0 -4px 8px rgba(255, 255, 255, 0.6);
  color: white;
  font-weight: 700;
  position: relative;
  z-index: 10;
}

/* Divider between nav links */
nav a:not(:last-child) {
  position: relative;
}

nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  border-right: 1px solid #ccc; /* divider line */
  pointer-events: none;
}

/* Hide right-side divider */
nav a.no-divider-right::after {
  display: none !important;
}

nav a.no-divider-left::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  border-left: 1px solid #ccc; /* divider line on left */
  pointer-events: none;
}

/* To hide left divider */
nav a.no-divider-left::before {
  display: none !important;
}

@media (max-width: 480px) {
  nav a {
    padding-right: 10px; /* add space to the right of text */
  }

  /* Optionally reduce padding-left if needed */
  nav a {
    padding-left: 10px;
  }
}

/* ------------------------------------------- HEADINGS -------------------------------------------*/
h2 {
  color: #eee;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.smaller-text {
  font-size: 1.125rem; /* or smaller like 1rem or 0.95rem */
  line-height: 1.5;
}

/* LISTS */
ul {
  list-style: square;
  padding-left: 2rem;
}

/* HEADER SECTION */
header {
  background: #111;
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
}

header h1 {
  font-size: 1.2rem;
  font-weight: normal;
  color: white;
  margin: 0;
}

/* WELCOME SECTIONS */
.welcome-row,
.welcome-row-reverse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.5rem 0;
  gap: 2rem;
  flex-wrap: wrap;
}

.welcome-row-reverse {
  flex-direction: row-reverse;
}

.welcome-row img,
.welcome-row-reverse img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.welcome-text {
  flex: 1;
  color: white;
  font-size: 1.125rem;
}

.welcome-text h3 {
  font-size: 1.5rem;
  color: #eee;
  margin-bottom: 0.5rem;
}

/* ------------------------------------------- MENU GALLERY -------------------------------------------*/
.gallery-section {
  overflow-x: auto;
  padding: 0 1rem;
}

.gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.gallery img {
  height: auto;
  width: auto;
  max-width: 80vw;
  max-height: 40vh;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 8px;
}

/* CAROUSEL */
.carousel-wrapper {
  position: relative;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
}

.carousel {
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-track img {
  width: 900px;
  max-width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  max-height: 500px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* CAROUSEL BUTTONS */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none; /* Removes background */
  border: none; /* Removes border */
  font-size: 2.5rem;
  color: white; /* Arrow color */
  padding: 0 15px;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 0 8px rgba(0, 0, 0, 1);
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

.carousel-btn:hover {
  color: black; /* Optional hover effect */
  background: none;
}

.carousel-dots {
  text-align: center;
}

.carousel-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 3px;
  background-color: grey;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
  background-color: white;
  box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.7);
}

.carousel-shadow {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.footer-inline a {
  color: #d46a6a;
  text-decoration: none;
}

.footer-inline a:hover {
  color: #b55151;
  text-decoration: underline;
}

form {
  max-width: 100%;
}

input,
textarea {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

button {
  background-color: #d46a6a;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: #b55151;
}

/* ------------------------------------------- CONTACT PAGE INFO -------------------------------------------*/
.contact-container {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: flex-start; /* keeps boxes aligned at the top */
}

.contact-info {
  flex: 0 0 300px; /* fixed width */
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #1a1a1a;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form {
  flex: 1 1 0; /* allows growing/shrinking, but independent of .contact-info */
  min-width: 0;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #1a1a1a;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  margin-top: 0;
  color: #ff6b6b; /* your soft red */
}

h4 {
  font-size: 22px;
}

.hours-section {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #1a1a1a;
  border: 1px solid #ffffff;
  border-radius: 8px;
}

.hours-section h3 {
  margin-bottom: 0.5rem;
  margin-top: 0rem;
  font-size: 25px;
  color: #ff6b6b;
}

.hours-section p {
  font-size: 22px;
  margin-bottom: 0.5rem;
}

.hours-list {
  list-style-type: none;
  padding: 0;
  font-size: 20px;
}

.hours-list li {
  margin-bottom: 0.25rem;
}

.hours-list .open-day {
  font-weight: bold;
  color: #ff6b6b;
  display: inline-block;
  width: 90px;
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1;
}

.contact-info a {
  color: #ff6b6b;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 15px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 5px;
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* include padding/border in width calc */
  margin-bottom: 10px;
}

.contact-form button {
  margin-top: 20px;
  padding: 10px;
  background-color: #b74141;
  color: white;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #942f2f; /* a darker soft red */
}

#formStatus {
  margin-top: 15px;
  font-weight: bold;
  color: white;
}

.contact-form textarea {
  resize: vertical;
  max-height: 400px;
  min-height: 200px;
}

.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

#popupNotification {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #1a1a1a;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 9999;
}

#popupNotification.show {
  opacity: 1;
  pointer-events: auto;
}

input:focus,
textarea:focus {
  outline: 2px solid #b74141;
  outline-offset: 2px;
}

/* Mobile first */
.contact-container {
  display: flex;
  flex-direction: column; /* Stack on mobile */
  gap: 20px;
}

.contact-info,
.contact-form {
  background-color: #222;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

/* Desktop override */
@media (min-width: 601px) {
  .contact-container {
    flex-direction: row; /* Side by side on desktop */
    align-items: flex-start; /* Let each box control its height */
  }

  .contact-info {
    flex: 0 0 auto; /* Fixed height and width */
    width: 300px; /* Optional: fixed width */
  }

  .contact-form {
    flex: 1; /* Grow to fill remaining space */
  }
}

/* ------------------------------------------- CATERING MOBILE WRAPPING -------------------------------------------*/

@media (max-width: 600px) {
  .catering-wrapper {
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .note-overlay {
    width: 100px;
    top: -40px;
    right: -10px;
    max-width: 60px;
  }

  .menu-header,
  .menu-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px; /* Adjust fixed widths for price columns */
    gap: 0; /* Remove gap to avoid line breaks */
    align-items: center;
    border-bottom: 1px solid #ccc; /* Horizontal row border */
    box-sizing: border-box;
    padding: 8px 6px;
  }

  .menu-row:last-child {
    border-bottom: none; /* No border on last row */
  }

  /* Vertical borders on grid items except last */
  .menu-header > div,
  .menu-row > div {
    border-right: 1px solid #ccc;
    padding: 0 6px;
    box-sizing: border-box;
  }

  .menu-header > div:last-child,
  .menu-row > div:last-child {
    border-right: none; /* Remove right border on last col */
  }

  /* Dish name styling */
  .dish-name {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal; /* Allow wrapping */
    font-size: 1rem;
  }

  /* Sizes and prices text alignment and sizing */
  .size-column,
  .dish-price {
    text-align: right;
    white-space: nowrap; /* Keep prices on one line */
    font-size: 0.85rem;
  }

  .size-label,
  .size-desc {
    display: block;
    white-space: nowrap;
    font-size: 0.7rem;
    color: #ccc;
  }

  .menu-section {
    margin-bottom: 15px;
  }

  .price-notice {
    font-size: 0.7rem;
    padding: 0 5px;
  }

  /* Contact container stacking on mobile */
  .contact-container {
    flex-direction: column;
  }
}

/* ------------------------------------------- BACK TO TOP BUTTON -------------------------------------------*/
#backToTop {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  display: none; /* Hidden by default */
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, bottom 0.3s ease;

  /* Flexbox centering */
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  background-color: #444;
}

/* ------------------------------------------- RESPONSIVE STYLES -------------------------------------------*/
@media (max-width: 600px) {
  /* Base font size downscale */
  body,
  html,
  .page-wrapper {
    font-size: 14px;
  }

  .logo {
    max-width: 90%;
    height: auto;
    margin-bottom: 1rem;
  }

  header,
  nav,
  footer {
    width: 100%;
    background-color: #111;
  }

  .container,
  .nav-container,
  .footer-inline {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  nav {
    background-color: #222;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  footer {
    background-color: #111;
    color: #ccc;
    text-align: center;
    padding: 1.2rem 0;
  }

  /* Scale headings & text */
  header h1 {
    font-size: 1rem;
  }

  main h2 {
    font-size: 1.3rem;
  }

  main h3 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  nav a {
    font-size: 1rem;
  }

  footer p {
    font-size: 0.9rem;
  }

  /* Gallery tweaks */
  .gallery {
    flex-wrap: nowrap; /* No wrapping */
    overflow-x: auto; /* Enable horizontal scroll */
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    gap: 0.5rem;
  }

  .gallery img {
    aspect-ratio: 4 / 3;
    max-width: 85vw;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
    scroll-snap-align: center;
  }
}

@media (min-width: 601px) {
  .logo {
    max-width: 600px; /* or 200px, tweak as needed */
    margin-bottom: 2rem;
  }
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  /* Stack vertically */
  .welcome-row,
  .welcome-row-reverse {
    flex-direction: column !important; /* force column */
  }

  /* Always show text first */
  .welcome-row .welcome-text,
  .welcome-row-reverse .welcome-text {
    order: 1;
  }

  /* Always show image second */
  .welcome-row img,
  .welcome-row-reverse img {
    order: 2;
    margin-top: 1rem; /* some spacing above image */
  }
}

@media (max-width: 768px) {
  /* Increase "Our Menu" heading size only on menu.html */
  .menu-page h2 {
    font-size: 2rem; /* Bigger size */
  }

  /* New: reduce list items font size */
  .menu-page main ul li {
    font-size: 1.2rem;
    line-height: 1.3;
  }
}

@media (max-width: 768px) {
  .page-wrapper main h2 {
    font-size: 2.2rem; /* Increase heading size */
  }

  .page-wrapper main p {
    font-size: 1.2rem !important; /* Reduce paragraph size, override inline */
    line-height: 1.4;
  }
}

/* ------------------------------------------- ABOUT ME IMAGE ADJUSTMENT -------------------------------------------*/

.about-main {
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
}
.about-kitchen-img {
  float: right;
  width: 350px;
  max-width: 45vw;
  margin: 0 0 24px 32px;
  border-radius: 14px;
  box-shadow: 0 4px 18px #0003;
  display: block;
}
@media (max-width: 750px) {
  .about-kitchen-img {
    float: none;
    display: block;
    margin: 0 auto 24px auto;
    width: 100%;
    max-width: 100%;
  }
}

/*  image click enlargement thing idk man */

.certification {
  max-width: 250px;
  max-height: 200px;
}

.enlarged {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 90%;
  max-height: 90%;
  transform: translate(-50%, -50%) scale(1.5);
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.overlay {
  /* adds a dark background when clicked on idk it sounded cool */
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* background: rgba(0, 0, 0, 0.8); */
  z-index: 999;
}
