/* css/style.css */

/* Custom scrollbar for premium feel */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #fff8f1;
}
::-webkit-scrollbar-thumb {
  background: #8e706d;
  border-radius: 10px;
}

body {
  background-color: #fff8f1;
  color: #1e1b15;
  font-family: "Inter", sans-serif;
  position: relative;
}

.font-headline {
  font-family: "Noto Serif", serif;
}

.font-label {
  font-family: "Manrope", sans-serif;
}

.text-primary {
  color: #a61d21 !important;
}

.bg-primary {
  background-color: #a61d21 !important;
}

.text-on-primary {
  color: #ffffff !important;
}

/* Navbar */
.custom-navbar {
  background-color: rgba(250, 250, 249, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 0.75rem 2rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 992px) {
  .custom-navbar {
    border-radius: 1rem;
  }
}

.navbar-brand {
  font-family: "Noto Serif", serif;
  font-weight: 700;
  color: #a61d21 !important;
  letter-spacing: -0.05em;
  font-size: 1.5rem;
}

.nav-link {
  color: #57534e !important;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #a61d21 !important;
}

.contact-info a {
  color: #a61d21;
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Home Section */
#home {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Expanded white photo backgrounds keep complete plates within the hero. */
#homeCarousel .carousel-item img {
  background-color: #fff;
  transform: scale(1.1);
}

@media (max-aspect-ratio: 1/1) {
  #homeCarousel .carousel-item img {
    object-fit: contain;
    transform: scale(1.55);
  }
}

@media (min-aspect-ratio: 2/1) {
  #homeCarousel .carousel-item img {
    object-fit: contain;
  }
}

/* Larger desktop displays need a closer crop of the expanded photos. */
@media (min-width: 1600px) and (min-aspect-ratio: 4/3) {
  #homeCarousel .carousel-item img {
    transform: scale(1.45);
  }
}

/* About Section */
.chinese-motif {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50c0-15 10-25 25-25s25 10 25 25-10 25-25 25-25-10-25-25zm-50 0c0-15 10-25 25-25s25 10 25 25-10 25-25 25-25-10-25-25z' fill='%23a61d21' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.contact-motif-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 20 L30 80 M70 20 L70 80 M20 40 L80 40 M20 60 L80 60' stroke='%23a61d21' stroke-width='2' fill='none' opacity='0.08'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 200px;
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.object-cover {
  object-fit: cover;
}

.gallery-slider {
  overflow: hidden;
  position: relative;
}

/* image hover zoom effect */
.img-zoom-wrapper {
  overflow: hidden;
}
.img-zoom-wrapper img {
  transition: transform 0.6s ease;
}
.img-zoom-wrapper:hover img,
.img-zoom-wrapper:focus img {
  transform: scale(1.1);
}

img.gallery-item {
  transition: transform 0.6s ease;
}
img.gallery-item:hover {
  transform: scale(1.1);
}

div.gallery-item {
  overflow: hidden;
}
div.gallery-item img {
  transition: transform 0.6s ease;
}
div.gallery-item:hover img {
  transform: scale(1.1);
}

.fixed-order-btn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #a61d21;
  color: white;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 100;
  border-radius: 8px 0 0 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 1.1;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.fixed-order-btn:hover {
  color: white;
  background: #8e181c;
}

.gallery-img-container {
  height: 100%;
  width: 100%;
}

/* Footer Icons */
.fill-current {
  fill: currentColor;
}

footer a svg {
  color: #ffffff !important;
}

/* Swiper Gallery Customization */
.gallery-swiper {
  padding-bottom: 70px !important;
}

.gallery-swiper .swiper-pagination {
  bottom: 10px !important;
}

.gallery-swiper .swiper-pagination-bullet {
  background-color: #d1d5db !important;
  opacity: 1;
  width: 10px !important;
  height: 10px !important;
  margin: 0 4px !important;
  padding: 0 !important;
  border: 7px solid transparent !important;
  background-clip: padding-box !important;
  box-sizing: content-box !important;
  border-radius: 50% !important;
}

.gallery-swiper .swiper-pagination-bullet-active {
  background-color: #a61d21 !important;
}

.gallery-swiper .gallery-item {
  height: 100%;
}

/* Gallery Navigation Buttons */
.gallery-wrapper {
  position: relative;
  padding: 0 80px;
}

.gallery-nav-btn {
  position: absolute;
  top: calc(
    50% - 35px
  ); /* Offset by half the bottom padding to center with the images */
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  color: #a61d21 !important;
  text-decoration: none !important;
}

.gallery-nav-btn:hover {
  transform: translateY(-50%) scale(1.15);
  background: transparent;
  color: #a61d21 !important;
}

.gallery-nav-btn .material-symbols-outlined {
  font-size: 48px;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

@media (max-width: 767px) {
  .gallery-swiper {
    padding-bottom: 20px !important;
  }

  .gallery-swiper .swiper-pagination {
    display: none;
  }
}

@media (max-width: 992px) {
  .gallery-wrapper {
    padding: 0;
  }
  .gallery-nav-btn {
    display: none;
  }
}

/* Decorative Motifs */
#gallery {
  background-color: transparent !important;
}

.gallery-motif-left {
  position: absolute;
  left: 0;
  top: 70%; /* Positioned between Swiper and Recommendations */
  transform: translateY(-50%);
  width: 320px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.contact-motif-bg {
  background-image: url("../images/face.png") !important;
  background-repeat: no-repeat;
  background-position: center left;
  background-size: contain;
  opacity: 1;
}

/* Restaurant information cards */
.restaurant-card-row > [class*="col-"] {
  min-width: 0;
}

.restaurant-info-card {
  position: relative;
  overflow: hidden;
  color: #2a211d;
  background:
    linear-gradient(rgba(255, 253, 244, 0.96), rgba(255, 253, 244, 0.96)),
    radial-gradient(circle at center, #ffffff 0, #efe0cc 100%);
  border: 9px solid #b38d6e;
  border-radius: 0.5rem;
  box-shadow:
    inset 0 0 0 2px rgba(121, 81, 55, 0.52),
    0 14px 34px rgba(69, 48, 36, 0.14);
}

.restaurant-info-card::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(150, 111, 80, 0.45);
  pointer-events: none;
  content: "";
}

.restaurant-info-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.restaurant-info-card--contact .restaurant-info-card__body {
  justify-content: center;
}

.restaurant-info-card--contact .restaurant-card-address {
  margin-bottom: 0;
}

.restaurant-card-logo {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  margin: 0 auto 0.4rem;
}

.restaurant-card-cuisine {
  color: #6b321f;
  font-family: "Noto Serif", serif;
  font-size: clamp(0.92rem, 1.4vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.restaurant-card-phone {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  justify-content: center;
  margin-bottom: 1.35rem;
  color: #a61d21;
  font-family: "Noto Serif", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
}

.restaurant-card-phone a {
  color: inherit;
  text-decoration: none;
}

.restaurant-card-phone a:hover {
  text-decoration: underline;
}

.restaurant-card-address {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1.2rem;
  line-height: 1.35;
}

.restaurant-card-address strong {
  color: #874019;
  font-family: "Noto Serif", serif;
  font-size: 1.2rem;
}

.restaurant-card-address small {
  color: #6b625c;
}

.restaurant-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
}

.restaurant-award {
  display: flex;
  width: clamp(54px, 5.3vw, 68px);
  height: clamp(54px, 5.3vw, 68px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff9df;
  background: linear-gradient(145deg, #d9b45e, #9e742d);
  border: 2px solid #f2dda4;
  border-radius: 50%;
  box-shadow: 0 2px 0 #76531d;
  font-family: "Manrope", sans-serif;
  line-height: 1;
}

.restaurant-award span {
  font-size: clamp(0.38rem, 0.55vw, 0.48rem);
  font-weight: 800;
}

.restaurant-award strong {
  margin-top: 0.18rem;
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
}

.restaurant-card-thanks {
  margin-bottom: 0.8rem;
  color: #74472b;
  font-family: "Noto Serif", serif;
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  line-height: 1.25;
}

.restaurant-card-thanks strong {
  color: #a61d21;
  font-size: 1.2em;
}

.restaurant-card-open {
  margin-bottom: 1rem;
  color: #5e2d1c;
  font-family: "Noto Serif", serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
}

.restaurant-card-open span {
  color: #a61d21;
  font-size: 1.25em;
}

.restaurant-hours-board {
  width: min(100%, 440px);
  margin-bottom: 1rem;
  padding: 0.65rem 1.25rem;
  border: 2px solid #806c5f;
  border-radius: 1.75rem;
}

.restaurant-hours-board div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(128, 108, 95, 0.28);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
}

.restaurant-hours-board div:last-child {
  border-bottom: 0;
}

.restaurant-hours-board span {
  text-align: left;
}

.restaurant-hours-board strong {
  color: #75341f;
  text-align: right;
  white-space: nowrap;
}

.restaurant-card-credit {
  margin: auto 0 0.55rem;
  font-size: 0.86rem;
}

.restaurant-card-service-line {
  margin-bottom: 0.45rem;
  color: #3d662f;
  font-size: clamp(0.98rem, 1.6vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.restaurant-card-gluten {
  margin-bottom: 0;
  color: #a61d21;
  font-family: "Noto Serif", serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 800;
}

@media (max-width: 575px) {
  .restaurant-info-card {
    border-width: 6px;
  }

  .restaurant-info-card__body {
    padding: 1.5rem 1.15rem;
  }

  .restaurant-card-phone span {
    display: none;
  }

  .restaurant-card-phone a {
    width: 100%;
  }

  .restaurant-hours-board {
    padding: 0.6rem 0.85rem;
  }

  .restaurant-hours-board div {
    gap: 0.5rem;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  border: none;
  text-decoration: none !important;
  color: #000000 !important;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: #a61d21;
}

.back-to-top:hover .material-symbols-outlined {
  color: white;
}

.back-to-top .material-symbols-outlined {
  font-size: 32px;
  transition: color 0.3s ease;
}

.rotate-up {
  transform: rotate(90deg);
  display: inline-block;
}

/* Accessibility Improvements */
.carousel-indicators [data-bs-target] {
  width: 10px !important;
  height: 10px !important;
  margin: 0 2px !important;
  padding: 0 !important;
  border: 4px solid transparent !important;
  background-color: #fff !important;
  background-clip: padding-box !important;
  box-sizing: content-box !important;
  border-radius: 50% !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.85) !important;
}
