@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --primary-wood: #6b4226;
  --secondary-wood: #8b5a2b;
  --cream-light: #fff8f0;
  --cream-dark: #f5ebdd;
  --copper-accent: #b08d57;
  --forest-green: #2e5a44;
  --dark-text: #2d1e16;
  --body-bg: #fffbf7;
}

html,
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--body-bg);
  color: var(--dark-text);
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.tracking-wider {
  letter-spacing: 0.1em !important;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--cream-light);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary-wood);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-wood);
}

/* Custom Text & BG Utilities */
.text-primary-wood {
  color: var(--primary-wood);
}
.text-secondary-wood {
  color: var(--secondary-wood);
}
.text-copper {
  color: var(--copper-accent);
}
.text-forest {
  color: var(--forest-green);
}
.text-cream-light {
  color: var(--cream-light);
}
.text-cream-dark {
  color: var(--cream-dark);
}
.bg-cream-light {
  background-color: var(--cream-light);
}
.bg-cream-dark {
  background-color: var(--cream-dark);
}
.bg-primary-wood {
  background-color: var(--primary-wood);
}
.bg-secondary-wood {
  background-color: var(--secondary-wood);
}

.filter-white {
  filter: brightness(0) invert(1);
}

/* Footer Link Colors */
footer a {
  color: var(--cream-light) !important;
  transition: all 0.3s ease-in-out;
}
footer a:hover {
  color: var(--copper-accent) !important;
  transform: scale(1.2);
}

/* Buttons styling */
.btn-rustic-primary {
  background-color: var(--primary-wood);
  color: var(--cream-light);
  border: 1px solid var(--primary-wood);
  transition: all 0.3s ease;
  font-weight: 500;
}
.btn-rustic-primary:hover {
  background-color: var(--secondary-wood);
  color: #fff;
  border-color: var(--secondary-wood);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(107, 66, 38, 0.2);
}

.btn-rustic-secondary {
  background-color: transparent;
  color: var(--primary-wood);
  border: 2px solid var(--primary-wood);
  transition: all 0.3s ease;
  font-weight: 500;
}
.btn-rustic-secondary:hover {
  background-color: var(--primary-wood);
  color: var(--cream-light);
  transform: translateY(-2px);
}

.btn-rustic-accent {
  background-color: var(--copper-accent);
  color: #fff;
  border: 1px solid var(--copper-accent);
  transition: all 0.3s ease;
}
.btn-rustic-accent:hover {
  background-color: var(--secondary-wood);
  color: #fff;
  border-color: var(--secondary-wood);
  transform: translateY(-2px);
}

.btn-grab {
  background-color: #00b14f;
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}
.btn-grab:hover {
  background-color: #009643;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 177, 79, 0.25);
}

.btn-gofood {
  background-color: #00aa13;
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}
.btn-gofood:hover {
  background-color: #008f10;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 170, 19, 0.25);
}

/* Navbar scroll transition */
.navbar-custom {
  transition: all 0.4s ease-in-out;
  padding: 15px 0;
  background-color: transparent;
}
.navbar-custom.scrolled {
  background-color: rgba(45, 30, 22, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
}
.navbar-custom .nav-link {
  color: var(--cream-light) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}
.navbar-custom .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--copper-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: 80%;
}
.navbar-custom .nav-link:hover {
  color: var(--copper-accent) !important;
}
.navbar-custom.scrolled .navbar-brand {
  color: var(--cream-light) !important;
}
.navbar-custom .navbar-brand {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff !important;
  transition: color 0.3s ease;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(45, 30, 22, 0.6) 0%,
    rgba(45, 30, 22, 0.85) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-subtitle {
  font-family: "Cormorant Garamond", serif;
  color: var(--copper-accent);
  font-style: italic;
  font-size: 1.5rem;
}

/* Organic shapes and Dividers */
.rustic-divider {
  width: 80px;
  height: 3px;
  background-color: var(--copper-accent);
  margin: 20px auto;
  border-radius: 2px;
}
.rustic-divider-left {
  width: 60px;
  height: 3px;
  background-color: var(--copper-accent);
  margin: 15px 0;
  border-radius: 2px;
}

/* Section padding */
.section-padding {
  padding: 100px 0;
}

/* Cards & Hover Animations */
.rustic-card {
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(107, 66, 38, 0.05);
  transition: all 0.3s ease;
}
.rustic-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(107, 66, 38, 0.12);
  border-color: var(--copper-accent);
}
.rustic-card-img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.rustic-card:hover .rustic-card-img {
  transform: scale(1.05);
}

/* Gallery styles */
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(107, 66, 38, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* Testimoni styling */
.testimoni-card {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--copper-accent);
}

/* Custom Testimonial Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-wood);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  background-size: 45% 45%;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: var(--secondary-wood);
  transform: scale(1.1);
}

/* Text-Based Menu Board Styles */
.menu-board {
  background-color: #261d19; /* Deep espresso charcoal */
  color: #fff8f0;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(45, 30, 22, 0.15);
  border: 3px double var(--copper-accent);
}
.menu-board-header {
  border-bottom: 2px solid var(--copper-accent);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.menu-board-header h4 {
  color: var(--cream-light) !important;
}
.menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(176, 141, 87, 0.2);
  transition: all 0.2s ease;
}
.menu-item-row:last-child {
  border-bottom: none;
}
.menu-item-row:hover {
  background-color: rgba(176, 141, 87, 0.05);
  padding-left: 8px;
  padding-right: 8px;
}
.menu-item-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--cream-light);
  font-size: 1.15rem;
}
.menu-item-dots {
  flex-grow: 1;
  border-bottom: 1px dotted rgba(176, 141, 87, 0.3);
  margin: 0 15px;
  position: relative;
  top: -4px;
}
.menu-item-prices {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  color: var(--copper-accent);
  font-size: 1.15rem;
  display: flex;
  gap: 30px;
}
.price-val {
  width: 60px;
  text-align: center;
}
.price-header {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--copper-accent);
  display: flex;
  gap: 30px;
}
.price-header-val {
  width: 60px;
  text-align: center;
}

/* Smooth Tab Pane Transition */
.tab-content {
  position: relative;
}
.tab-content > .tab-pane {
  display: block !important;
  visibility: hidden;
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0.35s ease;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 1;
}
.tab-content > .tab-pane.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
  z-index: 2;
}

/* Contacts & Forms */
.form-rustic .form-control {
  background-color: var(--cream-light);
  border: 1px solid var(--cream-dark);
  color: var(--dark-text);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}
.form-rustic .form-control:focus {
  background-color: #fff;
  border-color: var(--primary-wood);
  box-shadow: 0 0 0 3px rgba(107, 66, 38, 0.15);
}

/* Info Cards */
.info-card {
  border-left: 4px solid var(--copper-accent);
  background-color: var(--cream-light);
  padding: 20px;
  border-radius: 0 10px 10px 0;
}

/* Contact Icon Box & Cards */
.rustic-contact-card {
  background-color: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  box-shadow: 0 4px 15px rgba(107, 66, 38, 0.02);
  text-align: left;
  cursor: pointer;
}
.rustic-contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(107, 66, 38, 0.08);
  border-color: var(--copper-accent);
}
.rustic-contact-card a {
  transition: color 0.3s ease;
}
.rustic-contact-card:hover a {
  color: var(--copper-accent) !important;
}
.contact-icon-box {
  width: 50px;
  height: 50px;
  background-color: var(--primary-wood);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.rustic-contact-card:hover .contact-icon-box {
  background-color: var(--secondary-wood);
  transform: scale(1.05);
}
.contact-icon-box i {
  color: var(--copper-accent);
  font-size: 1.3rem;
}
.contact-icon-box img {
  transition: transform 0.3s ease;
}
.rustic-contact-card:hover .contact-icon-box img {
  transform: scale(1.1);
}

/* Feature Icon Box */
.feature-icon-box {
  width: 56px;
  height: 56px;
  background-color: var(--primary-wood);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon-box i {
  color: var(--copper-accent);
  font-size: 1.4rem;
}

/* Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--body-bg);
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-transition-overlay::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--primary-wood);
  border-radius: 50%;
  animation: spinTransition 0.8s linear infinite;
}
body.page-loaded .page-transition-overlay {
  opacity: 0;
  visibility: hidden;
}
.page-transition-overlay.fade-in {
  opacity: 1;
  visibility: visible;
}

@keyframes spinTransition {
  to {
    transform: rotate(360deg);
  }
}

/* Fade in animations */
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

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

/* Responsive Media Queries */
@media (max-width: 991.98px) {
  .navbar-custom {
    padding: 12px 0;
    /* Background transition handled dynamically by JS scroll class */
  }

  /* When scrolled, apply full header background */
  .navbar-custom.scrolled {
    background-color: rgba(45, 30, 22, 0.95) !important;
  }

  /* Beautiful container for expanded mobile menu */
  .navbar-custom .navbar-collapse {
    background-color: rgba(45, 30, 22, 0.98);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid rgba(176, 141, 87, 0.15); /* Copper accent border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }

  /* Mobile nav links styling */
  .navbar-custom .nav-link {
    padding: 10px 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    display: block;
  }

  .navbar-custom .nav-link:last-child {
    border-bottom: none;
  }

  .navbar-custom .nav-link::after {
    display: none; /* Hide hover underline line on mobile */
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 150px 0 80px 0;
  }
  .hero-section h1 {
    font-size: 2.2rem !important;
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .section-padding {
    padding: 60px 0;
  }
  .testimoni-card {
    padding: 20px;
  }
}

/* Navbar Logo Styling */
.navbar-brand img {
  border-radius: 10%;
  object-fit: contain;
}
