/** @format */
/* this is navbar/style.css */

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  /* background: #8a2e2e; */
  /* color: #fff; */
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  width: 100vw;
  overflow-x: hidden;
}
a {
  text-decoration: none;
}

/* ========================= NAVBAR ========================= */
.icon i {
  color: #000; /* Black */
  /* Change size if needed */
}

.icon:visited i {
  color: #000 !important; /* Still black after click */
}

.icon:hover i {
  color: #000; /* No hover color change */
}

.navbar {
  border-bottom: 1px solid transparent;
  width: 100%;
  padding: 20px 80px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 5;
  /* transition: all 0.25s ease-in-out; */
}

.navbar.scrolled {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* visible border when scroll >60px */
}
.navbar .logo img {
  /* height: 4vh; */
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}
.nav-links li {
  position: relative;
}
.nav-links a {
  text-decoration: none;
  color: #000;
  font-size: 20px;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}
.nav-links a::before,
.catalog-btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: #000;
  border-radius: 30px;
  z-index: -1;
  transition: height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a:hover::before,
.catalog-btn:hover::before {
  height: 100%;
}
.nav-links a:hover,
.catalog-btn:hover {
  color: #fff;
  transform: scale(0.92);
}

.catalog-btn {
  position: relative;
  padding: 10px 25px;
  background: transparent;
  border: 2px solid #000;
  border-radius: 30px;
  color: #000;
  font-size: 16px;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    border 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.catalog-btn:hover {
  border-color: transparent;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: #000;
  align-items: center;
  justify-content: center;
}

.menu-toggle:active {
  opacity: 0.75;
}

/* ========================= Overlay & Bottom Sheet ========================= */
.scrim {
  position: fixed;
  inset: 0;
  background: rgb(23 23 23 / 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1000;
}
.scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  min-height: 92dvh;
  background: #fff;
  color: #111;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transform: translateY(100%);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: grid;
  grid-template-rows: auto 1fr auto;
  z-index: 1001;
  touch-action: none;
}
.sheet.open {
  transform: translateY(0);
}

.sheet__handle {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 10px;
  cursor: grab;
  user-select: none;
}
.grabber {
  width: 3rem;
  height: 0.25rem;
  border-radius: 999px;
  background: #e6e6e6;
}

.sheet__content {
  padding: 1.75rem 1rem 0.75rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet__content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0 0;
  padding: 0;
}
.sheet__content a {
  position: relative;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.6px;
  padding: 4px 2px;
}
.sheet__content li {
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.sheet.open .sheet__content li {
  opacity: 1;
  transform: none;
}
.sheet.open .sheet__content li:nth-child(1) {
  transition-delay: 0.05s;
}
.sheet.open .sheet__content li:nth-child(2) {
  transition-delay: 0.13s;
}
.sheet.open .sheet__content li:nth-child(3) {
  transition-delay: 0.21s;
}
.sheet.open .sheet__content li:nth-child(4) {
  transition-delay: 0.29s;
}
.sheet__content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: #111;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sheet__content a:hover::after {
  width: 100%;
}

.sheet__footer {
  padding: 10px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(238, 238, 238, 0.1);
  background: #f2f2f2;
  /* background: #8d8d8d; */
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
}

.lang-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;

  padding: 12px 18px;
  margin: -10px -18px 0; /* 👈 cancels footer top + side padding */

  background: white;
  color: #111;
  cursor: pointer;

  /* border-bottom: 1px solid #eee; */
}

.login-btn {
  background: #111;
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  width: 102px;
  font-size: 14px;
  justify-content: center;
  cursor: pointer;
}
.socials {
  display: inline-flex;
  gap: 16px;
  font-size: 20px;
  color: #111;
}

/* ========================= Language Bottom Sheet ========================= */
.lang-panel {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}
.lang-panel .bg {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.35);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-panel .card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8vh;
  height: 32vh;
  background: #fff;
  color: #111;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.lang-panel.open {
  pointer-events: auto;
}
.lang-panel.open .bg {
  opacity: 1;
}
.lang-panel.open .card {
  transform: translateY(0);
}

.lang-head {
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px;
}
.lang-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #111;
}
.lang-body {
  padding: 0 16px 12px 34px;
  overflow: auto;
}
.lang-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.lang-list li {
  font-size: 1rem;
}
.lang-list .disabled {
  color: #bbb;
}

/* ========================= Mobile Navbar Adjustments ========================= */
@media (max-width: 900px) {
  .navbar {
    background: #fff;
    padding: 18px 3.7vw;
  }
  .menu-toggle {
    display: flex;
    color: #000;
  }
  .menu-toggle i {
    font-size: 28px;
    font-size: 26px;
    line-height: 1;
  }
  .navbar .nav-links,
  .catalog-btn {
    display: none;
  }
  .navbar .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #000;
  }
  .navbar .logo img {
    height: 4vh;
  }
}

/* ========================= Reduced Motion ========================= */
@media (prefers-reduced-motion: reduce) {
  .nav-links a::before,
  .catalog-btn::before,
  .sheet,
  .scrim,
  .lang-panel .bg,
  .lang-panel .card,
  .sheet__content li,
  .sheet__content a::after {
    transition: none !important;
  }
}
