* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "RoughlyBegather";
  src: url("../fonts/RoughlyBegather.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Stadella";
  src: url("../fonts/Stadella.ttf") format("truetype");
}

html {
  font-size: 16px;
}

:root {
  --font-primary: "Manrope", sans-serif;
  --font-secondary: "RoughlyBegather", sans-serif;
  --font-tertiary: "Stadella";
}

body {
  font-family: var(--font-primary);
  background-color: #f0ece1;
}

/* ===================== HEADER ===================== */
.nav-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  margin-top: 10px;
}

/* ===================== NAV CONTAINER ===================== */
.nav-header .nav-bar-container {
  background-color: #ffffff;
  height: 90px;
  width: 95%;
  margin: 0px auto 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
}

/* ===================== LOGO (OUTSIDE NAV) ===================== */
.nav-header .logo-outside {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}

.nav-header .logo {
  height: 80px;
  width: auto;
}

.nav-header .logo-outside span {
  font-family: var(--font-secondary);
  color: #763217;
  font-size: 0.9rem;
}

/* ===================== NAV BAR (PILL) ===================== */
.nav-header .nav-bar {
  width: 100%;
  max-width: 1100px;
  padding: 0.75rem 0rem 0.75rem 2rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 2.5rem;
  margin-left: auto;
}

/* ===================== NAV LINKS ===================== */
.nav-header .nav-bar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 70px;
}

.nav-header .nav-bar ul li {
  position: relative;
}

.nav-header .nav-bar ul li a {
  font-family: var(--font-secondary);
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  padding: 18px 4px;
  transition: color 0.25s ease;
  position: relative;
  display: inline-block;
}

.nav-header .nav-bar ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background-color: #5a3e2b;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-header .nav-bar ul li a:hover::after {
  width: 100%;
}

.nav-header .nav-bar ul li a:hover {
  color: #3f2f22;
}

.nav-header .nav-bar ul li.active a {
  color: #3f2f22;
}

.nav-header .nav-bar ul li.active a::after {
  width: 100%;
}

/* click press effect */
.nav-header .nav-bar ul li a:active {
  transform: scale(0.96);
}

/* ===================== SEARCH BOX ===================== */
.nav-header .nav-book-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background-color: #763111;
  border: none;
  cursor: pointer;
  color: #ffffff;
  transition: box-shadow 0.3s ease;
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 1px;
  text-decoration: none;
}

/* ===================== MOBILE MENU BUTTON ===================== */
.nav-header .nav-bar-open-btn-sm {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b5b4b;
}

/* ===================== MOBILE OVERLAY ===================== */
.nav-header .nav-bar-sm-container {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 1000;
}

.nav-header .nav-bar-sm-container.show {
  display: block;
}

/* ===================== MOBILE SIDEBAR ===================== */
.nav-header .nav-bar-sm {
  width: 260px;
  height: 100%;
  background-color: #ffffff;
  padding: 1.5rem;
  animation: slideIn 0.35s ease forwards;
  overflow-y: auto;
}

/* ===================== MOBILE SEARCH ===================== */
.nav-header .nav-book-btn-sm {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  gap: 5px;
  margin-bottom: 1rem;
  height: 44px;
  padding: 10px 16px;
  background-color: transparent;
  border: 1.5px solid #5a3e2b;
  border-radius: 999px;
  cursor: text;
  transition: box-shadow 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===================== GLASS EFFECT ON SCROLL ===================== */
@media (min-width: 911px) {
  .nav-header.scrolled .nav-bar-container {
    background: #eee5d891;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-header.scrolled .nav-bar {
    background: transparent;
    box-shadow: none;
    border: none;
  }
}

/* ===================== MOBILE LINKS ===================== */
.nav-header .nav-bar-sm ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 2.5rem;
}

.nav-header .nav-bar-sm ul li a {
  font-family: "Cormorant Garamond", serif;
  color: #5a4633;
  text-decoration: none;
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  font-weight: 600;
  transition:
    background-color 0.25s ease,
    transform 0.15s ease;
}

.nav-header .nav-bar-sm ul li a:hover {
  background-color: rgba(90, 62, 43, 0.1);
}

.nav-header .nav-bar-sm ul li a:active {
  transform: scale(0.97);
}

/* ===================== CLOSE BUTTON ===================== */
.nav-header .nav-close-btn {
  display: flex;
}

.nav-header .nav-close-btn button {
  background: none;
  border: none;
  font-size: 1.4rem;
  margin-left: auto;
  cursor: pointer;
  color: #6b5b4b;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1050px) {
  .nav-header .nav-bar ul li a {
    font-size: 1.1rem;
  }

  .nav-header .nav-bar ul {
    gap: 30px;
  }
}

@media (max-width: 1000px) {
  .nav-header .nav-bar {
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 910px) {
  .nav-header .nav-bar ul {
    display: none;
  }

  .nav-header .nav-bar {
    justify-content: flex-end;
    gap: 1rem;
  }

  .nav-header .nav-bar-open-btn-sm {
    display: block;
  }

  .nav-header .nav-bar {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .nav-header .nav-bar-container {
    justify-content: space-between;
    padding: 0 1rem;
    height: 70px;
	gap: .5rem;
  }

  .nav-header .nav-bar {
    width: auto;
  }

  .nav-header .logo {
    height: 46px;
  }

  .nav-header .nav-bar-sm ul {
    gap: 5px;
    margin-top: 1rem;
  }

  .nav-header .logo-outside span {
    font-size: 0.6rem;
    letter-spacing: 0.7px;
  }

  .nav-header .nav-book-btn {
    font-size: 0.6rem;
    padding: 12px 12px;
  }

  .nav-header .nav-bar {
    gap: 0.4rem;
    padding: 0;
  }
}

/* divider */

.divider {
  position: relative;
  width: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.divider-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: #8a857c;
}

.divider-icons {
  display: flex;
  gap: 8px;
  background: #f0ece1;
  padding: 0 10px;
  position: relative;
}

.divider-dot {
  width: 8px;
  height: 8px;
  background: #000;
  transform: rotate(45deg);
}

.divider-dot-center {
  width: 12px;
  height: 12px;
}

/* scroll to top */

.scroll-top {
  position: fixed;

  right: 30px;
  bottom: 80px;

  width: 48px;
  height: 48px;

  background: #763111;

  border: 1px solid #fff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transition: 0.3s;

  z-index: 999;
}

/* show button */

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

/* hover */

.scroll-top:hover {
  transform: translateY(-4px);
}

/* svg */

.scroll-top svg {
  width: 22px;
  height: 22px;
}

/* animation using jQuery */

/* ===== Scroll Reveal Base ===== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Variations */
.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal-scale {
  transform: scale(0.9);
}

.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  transform: none;
}

.text-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(25px);
}

.text-word.active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}
