@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --main-color: #cab273;
  --main-light-color: #fffbf0;
  --secondary-color: #551756;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Work Sans', sans-serif;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Header styles */
header {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  position: relative;
  z-index: 4000;
}

.header-top-bar {
  border-bottom: 1px solid #f5f5f5;
  padding: 10px 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-top-bar span {
  color: #474747;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  font-weight: 400;
}

/* Navigation bar */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0px;
  max-width: 1200px;
  width: 90%;
  margin: auto;
  position: relative;
}

/* Logo */
.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
}
.site-name {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 1.1px;
  color: #551756;
  font-size: 1.14rem;
}

/* Hamburger menu + login button */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #551756;
  cursor: pointer;
  outline: none;
  display: none;
}

/* Desktop menu */
.menu {
  display: flex !important;
}
.menu li a {
  padding: 3px 10px;
  margin: 0px 15px;
  color: #3b3b3b;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  transition: color 0.19s cubic-bezier(.44,.13,.48,1.14);
}
.menu li a:hover,
.menu li a.active {
  color: var(--main-color);
}
.menu li a::after {
  content: '';
  display: block;
  width: 0;
  height: 2.2px;
  background: linear-gradient(90deg, #cab273 40%, #551756 100%);
  transition: width .28s cubic-bezier(.44,.13,.48,1.14);
  position: absolute;
  left: 0; bottom: 0;
}
.menu li a:hover::after,
.menu li a.active::after {
  width: 100%;
}

.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  background: #fffbe8;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  z-index: 4100;
  padding: 24px 0 16px 0;
  box-shadow: 0 12px 40px 0 #cab27330, 0 2px 14px #cab27318;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px) scale(0.97);
  transition:
    opacity 0.36s cubic-bezier(.45,1.6,.49,.96),
    transform 0.33s cubic-bezier(.42,1.43,.56,0.96);
}

/* Show dropdown menu with .open class */
.mobile-dropdown-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mobile-dropdown-menu li {
  padding: 0 18px;
  margin: 0 0 7px 0;
  list-style: none;
}
.mobile-dropdown-menu li:last-child {
  margin-bottom: 0;
}
.mobile-dropdown-menu li a {
  color: #551756;
  font-size: 1.15rem;
  font-weight: 500;
  border-radius: 12px;
  padding: 14px 0 12px 12px;
  background: transparent;
  transition:
    background 0.19s cubic-bezier(.43,1.5,.49,0.94),
    color 0.17s cubic-bezier(.43,1.5,.49,0.94),
    box-shadow 0.22s cubic-bezier(.43,1.5,.49,0.94);
  display: block;
  box-shadow: none;
  letter-spacing: 0.02em;
}
.mobile-dropdown-menu li a:active,
.mobile-dropdown-menu li a:hover,
.mobile-dropdown-menu li a.active {
  background: #f8eee1;
  color: #cab273;
  box-shadow: 0 2px 8px #cab27314;
}

@media (max-width: 700px) {
  .menu { display: none !important; }
  .menu-toggle { display: block !important; }
  .mobile-dropdown-menu {
    display: flex !important;
    flex-direction: column;
    left: 0;
    width: 100vw;
    border-radius: 0 0 24px 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-18px) scale(0.97);
    transition:
      opacity 0.36s cubic-bezier(.45,1.6,.49,.96),
      transform 0.33s cubic-bezier(.42,1.43,.56,0.96);
  }
  .mobile-dropdown-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}
@media (min-width: 701px) {
  .mobile-dropdown-menu { display: none !important; }
  .menu { display: flex !important; }
}




/* Login button */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--main-color, #cab273);
  color: #fff;
  border-radius: 18px;
  padding: 7px 22px;
  font-size: 1.04rem;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  margin-left: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 7px #cab27312;
  transition: background 0.19s, color 0.19s, box-shadow 0.21s, transform 0.19s;
  animation: loginFadeIn 1.7s cubic-bezier(.15,.78,.47,1.18) 0.8s backwards;
}
.nav-login-btn:hover, .nav-login-btn:focus {
  background: #473628;
  color: #fffbe8;
  box-shadow: 0 5px 20px #cab27345, 0 2px 0 #cab27322 inset;
  transform: translateY(-3px) scale(1.04);
  outline: none;
}
@keyframes loginFadeIn {
  from { opacity: 0; transform: scale(0.95);}
  to { opacity: 1; transform: none;}
}

/* NAVIGATION ANIMATION */
header, .navigation {
  animation: navFadeIn 1.1s cubic-bezier(.22,.68,.58,1.01) 0.1s both;
}
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-40px);}
  to { opacity: 1; transform: none;}
}
.menu-toggle {
  transition: color 0.18s cubic-bezier(.44,.13,.48,1.14), transform 0.25s cubic-bezier(.44,.13,.48,1.14);
  color: #cab273 !important;
}
.menu-toggle:hover, .menu-toggle:focus {
  color: #551756 !important;
  transform: scale(1.16) rotate(-13deg);
}

/* Responsive breakpoints */
@media (max-width: 700px) {
  .menu {
    display: none !important;
  }
  .menu-toggle {
    display: block !important;
  }
  .navigation {
    padding: 13px 4vw;
    max-width: 100vw;
  }
  
}
@media (min-width: 701px) {
  .menu {
    display: flex !important;
    gap: 0;
    margin-left: 38px;
    align-items: center;
  }
  .menu-toggle,
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* --- Main Banner Section (Optional) --- */
#main-banner {
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.main-banner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  width: 100%;
  background: transparent;
  gap: 0;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  animation: mainBannerIn 1.2s cubic-bezier(.23,.96,.38,.99) 0.5s forwards;
}
@keyframes mainBannerIn {
  0%   { opacity: 0; transform: translateY(40px) scale(0.96);}
  70%  { opacity: 0.8; transform: translateY(-9px) scale(1.03);}
  90%  { opacity: 1; transform: translateY(3px) scale(0.99);}
  100% { opacity: 1; transform: translateY(0) scale(1);}
}
.main-banner-img {
  display: block;
  margin: 46px auto 40px auto;
  max-width: 220px;
  width: 68vw;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  animation: logoFadeBounce 1.3s cubic-bezier(.15,.78,.47,1.18) 1s forwards;
}
@keyframes logoFadeBounce {
  0%   { opacity: 0; transform: scale(0.85) translateY(20px);}
  60%  { opacity: 1; transform: scale(1.06) translateY(-8px);}
  80%  { opacity: 1; transform: scale(0.98) translateY(3px);}
  100% { opacity: 1; transform: scale(1) translateY(0);}
}
.main-banner-text {
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
  padding: 0 10px;
}
.main-banner-text h1 {
  font-size: 1.32rem;
  line-height: 1.6rem;
}
.main-banner-text p {
  font-size: 0.98rem;
  margin: 8px 0;
  color: #444;
}
.main-banner-text a {
  width: 110px;
  height: 34px;
  font-size: 0.98rem;
  border-radius: 30px;
  background: var(--main-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tablet & Desktop adjustments */
@media (min-width: 601px) and (max-width: 899px) {
  .main-banner-box {
    min-height: 240px;
  }
  .main-banner-img {
    max-width: 300px;
    width: 52vw;
    margin: 60px auto 56px auto;
  }
  .main-banner-text {
    font-size: 1.65rem;
    margin-bottom: 18px;
  }
}
@media (max-width: 900px) {
  .main-banner-box {
    min-height: 300px;
  }
  .main-banner-img {
    max-width: 380px;
    width: 44vw;
    margin: 68px auto 68px auto;
  }
  .main-banner-text {
    text-align: center;
    margin-top: 16px;
  }
  .main-banner-text h1 {
    font-size: 2.2rem;
    line-height: 2.4rem;
  }
}
@media (min-width: 900px) {
  .main-banner-box {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 370px;
    gap: 56px;
    padding: 36px 0 28px 0;
  }
  .main-banner-text {
    flex: 1 1 0;
    text-align: left;
    padding-left: 7vw;
    min-width: 320px;
    margin-bottom: 0;
  }
  .main-banner-text h1 {
    font-size: 3rem;
    line-height: 3.3rem;
  }
  .main-banner-img {
    flex: 1 1 0;
    max-width: 520px;
    width: 38vw;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
  }
}
@media (min-width: 1200px) {
  .main-banner-box {
    min-height: 360px;
  }
  .main-banner-img {
    max-width: 420px;
    width: 32vw;
    margin: 70px auto 70px auto;
  }
}
