/* Header & Navigation */
.ct-header {
  background-color: transparent;
  padding: 20px 0;
  border-bottom: 2px solid var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease;
}

/* Solid background for non-home pages */
.ct-header:not(.transparent) {
  background-color: rgba(58, 12, 15, 0.97);
}

/* Transparent navbar for home page with carousel */
.ct-header.transparent {
  background-color: transparent;
  border-bottom: 2px solid var(--secondary-color);
  position: absolute;
  width: 100%;
  backdrop-filter: none;
  transition: all 0.5s ease;
}

/* Navbar with solid background when scrolled */
.ct-header.transparent.scrolled {
  background-color: rgba(58, 12, 15, 0.97);
  backdrop-filter: blur(10px);
}

/* Dark text for transparent navbar on white background slide */
.ct-header.transparent.dark-text {
  border-bottom: 2px solid #3a0c0f;
}

.ct-header.transparent.dark-text .ct-main-navigation > li > a {
  color: #3a0c0f;
  font-weight: 600;
}

.ct-header.transparent.dark-text .ct-main-navigation > li > a::after {
  background-color: #3a0c0f;
}

.ct-header.transparent.dark-text #ct-main-nav__toggle-navigation {
  color: #3a0c0f;
  border-color: #3a0c0f;
}

.ct-header__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.ct-header__logo-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* margin: -40px; */
  margin-bottom: -40px;
  margin-top: -40px;
}

.ct-logo img {
  margin-left: -20px;
  max-height: 180px;
  width: 200px;
  transition: var(--transition);
}

.ct-logo img:hover {
  transform: scale(1.05);
}

#ct-main-nav__toggle-navigation {
  display: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--primary-color);
  padding: 10px 20px;
  background-color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

#ct-main-nav__toggle-navigation:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: scale(1.05);
}

#ct-main-nav__toggle-navigation:active {
  transform: scale(0.95);
}

#ct-main-nav__toggle-navigation-main {
  display: none;
}

.ct-main-navigation {
  list-style: none;
  display: flex;
  gap: 35px;
  flex-wrap: wrap;
  align-items: center;
}

.ct-main-navigation li {
  position: relative;
}

.ct-main-navigation > li > a {
  font-family: var(--font-body);
  color: var(--text-light);
  text-decoration: none;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 0;
  display: block;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.ct-main-navigation > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.ct-main-navigation > li > a:hover::after,
.ct-main-navigation > li > a.active::after {
  width: 100%;
}

.ct-main-navigation > li > a:hover,
.ct-main-navigation > li > a.active {
  color: var(--secondary-color);
}

/* Mobile Menu - includes iPad Pro portrait (1024px) */
@media (max-width: 1100px) {
  #ct-main-nav__toggle-navigation {
    display: block;
  }

  #ct-main-nav {
    width: 100%;
    margin-top: 20px;
  }

  #ct-main-nav__wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    width: 100%;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                transform 0.4s ease;
    transform: translateY(-10px);
  }

  #ct-main-nav__toggle-navigation-main:checked ~ #ct-main-nav__wrapper {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
  }

  .ct-main-navigation {
    flex-direction: column;
    gap: 0;
    background-color: rgba(58, 12, 15, 0.98);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .ct-main-navigation > li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInMenu 0.4s ease forwards;
  }

  #ct-main-nav__toggle-navigation-main:checked ~ #ct-main-nav__wrapper .ct-main-navigation > li {
    animation: slideInMenu 0.4s ease forwards;
  }

  @keyframes slideInMenu {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .ct-main-navigation > li:nth-child(1) { animation-delay: 0.05s; }
  .ct-main-navigation > li:nth-child(2) { animation-delay: 0.1s; }
  .ct-main-navigation > li:nth-child(3) { animation-delay: 0.15s; }
  .ct-main-navigation > li:nth-child(4) { animation-delay: 0.2s; }
  .ct-main-navigation > li:nth-child(5) { animation-delay: 0.25s; }
  .ct-main-navigation > li:nth-child(6) { animation-delay: 0.3s; }
  .ct-main-navigation > li:nth-child(7) { animation-delay: 0.35s; }

  .ct-main-navigation > li:last-child {
    border-bottom: none;
  }

  .ct-main-navigation > li > a {
    padding: 15px 0;
  }

  .ct-logo img {
   
    max-height: 200px;
    width: 240px;
  }
  
.ct-header__logo-nav {
  margin-bottom: 0px;
  margin-top: 0px;
}
}

/* iPad Pro styles */
@media (min-width: 768px) and (max-width: 1100px) {
  .ct-header {
    padding: 10px 0;
  }

  .ct-header__logo-nav {
    margin-top: -30px;
    margin-bottom: -30px;
  }

  .ct-logo img {
    max-height: 180px;
    width: 220px;
  }

  #ct-main-nav__toggle-navigation {
    font-size: 18px;
    padding: 14px 28px;
    border-radius: 8px;
  }

  .ct-header__wrapper {
    padding: 0 30px;
  }
}

@media (max-width: 576px) {
  .ct-header {
    padding: 15px 0;
  }

  
.ct-header__logo-nav {
  
  margin-bottom: 0px;
  margin-top: 0px;
}

  .ct-logo img {
    margin-top: -20px;
    margin-bottom: -60px;
    margin-left: 20px;
    max-height: 150px;
    width: 180px;
  }

  #ct-main-nav__toggle-navigation {
    font-size: 14px;
    padding: 8px 16px;
    margin-top: 20px;
  }
}
