/* Custom fonts for logo */
@font-face {
  font-family: 'Alte Haas Grotesk';
  src: url('/fonts/AlteHaasGroteskBold.ttf') format('truetype');
  font-weight: bold;
}

@font-face {
  font-family: 'Alte Haas Grotesk';
  src: url('/fonts/AlteHaasGroteskRegular.ttf') format('truetype');
  font-weight: normal;
}

/* .main-navigation Bar */
.main-nav {
  position: fixed;
  width: 100%;
  max-width: 1920px;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  z-index: 100;
  height: 4.5rem;
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;

  max-width: 1104px;
  margin: 0 auto;
  padding: 0 var(--spacing-horizontal-1) 0 0;

  font-size: var(--fs-4);
  font-weight: 700;
}

.main-nav.scrolled {
  background-color: var(--clr-bg);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.25);
}

.main-nav .navigation-link a {
  text-decoration: none;
  color: white;
}

.main-nav .navigation-link img  {
  width: 200px;
  height: auto;
}

.main-nav.scrolled .navigation-link a {
  color: var(--clr-primary);
}

.main-nav a:hover {
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav .nav-login-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 20px;
  background-color: var(--clr-primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.main-nav .profile-wrapper {
  position: relative;
}

.main-nav .profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;

  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

.main-nav .profile-btn i,
.main-nav .profile-btn svg {
  filter: none;
}

.main-nav.scrolled .profile-btn i,
.main-nav.scrolled .profile-btn svg {
  filter: var(--filter-primary-clr);
}

.main-nav.scrolled .profile-btn {
  color: var(--clr-neutral);
}

.main-nav .profile-dropdown-container {
  width: 18rem;
  padding: 1rem;

  background-color: white;
  box-shadow: 0 16px 64px 0px #1F2F4666;
  border-radius: 12px;

  position: absolute;
  right: 40%;
  top: calc(100% + 3rem);
}

.profile-dropdown-container::before {
  content: "";
  position: absolute;
  top: -8px;

  right: 20px;

  width: 1rem;
  height: 1rem;
  background: white;
  transform: rotate(45deg);
}

.profile-dropdown-container .profile-dropdown{
  flex-direction: column;
  gap: 1rem;
}

.profile-dropdown-container > p {
  font-size: var(--fs-6);
  margin: 0.5rem 0 1rem;
}


.profile-dropdown li {
  padding: 0.7rem 0;

  border-bottom: 0.5px solid #E6E8EC;
}

.profile-dropdown a {
  color: var(--clr-neutral);
}

li a,
li form {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.profile-dropdown .logout {
  border-bottom: none;
  cursor: pointer;
}

.logout button {
  display: flex;
  align-items: center;
  gap: 1rem;

  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  color: var(--clr-neutral);
  font-weight: 500;
  font-size: var(--fs-3);
}

.main-nav i,
.main-nav svg {
  filter: var(--filter-primary-clr);
}

@keyframes profileSlideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  } to {
    transform: translateY(0);
    opacity: 1;
  }
}

.profile-dropdown-container {
  animation: profileSlideDown 0.3s cubic-bezier(0.24, -0.07, 0.78, 1.18) forwards;
}

/* Mobile Navbar hamburger */
.nav-hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 0.25rem;
}

.main-nav .nav-hamburger-btn svg {
  color: white;
  filter: none;
}

.main-nav.scrolled .nav-hamburger-btn svg {
  color: var(--clr-primary);
}

.main-nav .nav-inner > ul.navigation-link,
.main-nav .profile-wrapper,
.main-nav .nav-login-btn {
  display: none;
}

/* Mobile nav Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 100%;
  height: 100%;
  
  background: white;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.3rem 0.5rem;

  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2.5rem;
}

.drawer-logo {
  width: 170px;
  height: auto;
  margin-left: -1rem;
}

.drawer-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-neutral);
  padding: 0.25rem;
}

.drawer-login-btn {
  width: 100%;
  padding: 0.6rem 0;

  border: none;
  border-radius: 10px;
  outline: none;
  background-color: var(--clr-primary);
  color: white;
  cursor: pointer;
}

.drawer-account-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
}

.drawer-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--clr-primary);
  color: white;
  font-weight: 700;
  font-size: var(--fs-4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-account-name {
  font-weight: 700;
  font-size: var(--fs-5);
}

.drawer-menu-container {
  box-shadow: var(--primary-box-shadow);
  padding: 1rem 1rem 1.5rem;
  border-radius: 20px;
}

.drawer-account-menu {
  margin-bottom: 1.5rem;
}

.drawer-account-menu,
.drawer-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer-account-menu li,
.drawer-nav-menu li {
  border-bottom: 0.5px solid #f1f1f1;
  padding: 0;
}

li.drawer-section-label {
  font-size: var(--fs-2);
  font-weight: 700;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;

  border-bottom: none;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.drawer-account-menu a,
.drawer-nav-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  justify-content: flex-start;
  color: var(--clr-neutral);
  font-size: var(--fs-3);
  font-weight: 500;
  padding: 1rem 0;
  border-radius: 20px;
}

.drawer-account-menu a:hover,
.drawer-nav-menu a:hover {
  text-decoration: none;
}

.mobile-nav-drawer i,
.mobile-nav-drawer svg {
  filter: none; 
  width: 20px;
  height: 20px;
}

.drawer-account-menu svg,
.drawer-nav-menu svg {
  color: var(--clr-label-font);
}

.drawer-chevron {
  margin-left: auto;
  color: var(--clr-border);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
}

.drawer-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;

  background: #fff5f5;
  border: 1.5px solid #e63946;
  border-radius: 8px;
  cursor: pointer;
  color: #e63946;
  font-weight: 600;
  font-size: var(--fs-4);
}

.drawer-logout-btn svg {
  color: #e63946;
  filter: none;
}

/* Hide burger and show deskto navbar */
@media (min-width: 768px) {
    .nav-hamburger-btn {
      display: none;
    }

    .main-nav .nav-inner > ul.navigation-link,
    .main-nav .profile-wrapper,
    .main-nav .nav-login-btn {
      display: flex;
    }

    .mobile-nav-drawer,
    .mobile-nav-overlay {
      display: none !important;
    }
}

/* Footer */
footer {
  width: 100%;
  padding: 1rem 2rem;
  margin-top: auto;

  background-color: var(--clr-primary);
  color: white;

  text-align: center;
  font-size: var(--fs-1);
}

footer p,
footer li a {
  font-size: var(--fs-2);
  font-weight: 400;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  border-bottom: 1px solid white;
}

.footer-brand-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.footer-brand-title {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-weight: normal;
  font-size: var(--fs-7);
  color: white;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.footer-brand-subtitle {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-weight: normal;
  font-size: var(--fs-3);
  color: white;
}

@media (min-width: 768px) {
  .footer-brand-title {
    font-size: var(--fs-9);
  }

  .footer-brand-subtitle {
    font-size: var(--fs-5);
  }
}

.footer-one > p {
  max-width: 60%;
  margin: 1rem auto 0.5rem;
}

@media (min-width: 800px) {
  .footer-one {
    max-width: 20rem;
  }

  .footer-one > p {
    max-width: 100%;
    margin: 1rem 0 0.5rem;
  }
}

.footer-two ul,
.footer-three ul{
  display: flex;
  flex-direction: column;
  gap: 1rem;

  margin-top: 1rem;
  list-style: none;
}

.footer-two ul a,
.footer-three ul a {
  width: 100%;
  display: inline-block;
  text-decoration: none;
  color: white;
}

.footer-three {
  margin-bottom: 1rem;
}

.footer-bottom {
  margin-top: 1rem;
}

/* Search Component Global */
.search-form .pax-summary-btn,
.search-form select,
.search-form input {
  color: var(--clr-label-font);
  font-size: var(--fs-3);
}

/* Breadcrumb */

.breadcrumb {
  margin-top: 2rem;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 1rem;
  max-width: 1500px;
  font-size: var(--fs-3);
}

.breadcrumb a {
  color: var(--clr-primary);
  font-size: var(--fs-3);
}

.breadcrumb-seperator {
  margin: 0 0.3rem;
  color: var(--clr-neutral);
}

.breadcrumb-current {
  color: var(--clr-neutral);
}

/* Product List Hero Banner */
.list-hero-banner {
  width: 100%;
  max-height: 35vh;
  overflow: hidden;
  position: relative;

}

.list-hero-banner img{
  width: 100%;
  height: 35vh;
  object-fit: cover;
  position: relative;
  opacity: 0.35;
  object-position: center 60%;
}

.list-hero-banner h1{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: var(--clr-neutral);
}

.hero-car-list img {
  object-position: center 70%;
}

.hero-ferry-list img {
  object-position: center 0%;
}

.hero-banner::after,
.list-hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;

}

@media (min-width: 800px) {
  footer {
    padding: 2rem 4rem 1rem;
  }

  footer p,
  footer li a {
    font-size: var(--fs-3);
    font-weight: 400;
  }

  .footer-top {
    flex-direction: row;
    padding-bottom: 2rem;
  }

  .footer-one,
  .footer-one > p{
    text-align: justify;
  }

  .footer-one {
    width: 60rem;
  }

  .footer-two {
    margin-left: auto;
  }

  .footer-three {
    margin: 0 auto 0 5rem;
  }

  .footer-two ul a,
  .footer-three ul a {
    text-align: start;
  }
}

@media (min-width: 860px) {
  .breadcrumb {
    padding: 0 3rem;
  }
}