/* Import Poppins for menus */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Reserve space so content isn't hidden under fixed header */
body {
  padding-top: 5rem;
}

/* Header container (fixed & inset 25px) */
#cchp-header {
  position: fixed;
  top: 25px;
  left: 25px;
  width: calc(100% - 50px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #dddddd77 !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  padding: 1rem 10px;
  border-radius: 20px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.1),
    0 8px 16px rgba(0,0,0,0.08);
  z-index: 9999;
  transition:
    background 0.3s ease,
    padding    0.6s cubic-bezier(0.4,0,0.2,1);
}

#cchp-header.cchp-header-hidden {
  transform: translateY(-120%);
  transition: transform 1.2s cubic-bezier(0.86, 0, 0.07, 1);
}

/* Logo drop-in using transforms */
#cchp-logo {
  flex: 0 0 auto;
  width: 110px;
  transform: translateY(-150px);
  transition: transform 1s cubic-bezier(0.34,1.56,0.64,1);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  border-radius: 12px;
  position: relative;
  left: 11px;
}
body.drop #cchp-logo {
  transform: translateY(0) scale(1.05);
}

/* Wrapper for menu + CTA (centered as one unit) */
#cchp-nav-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition:
    opacity 1s ease 0.5s,
    transform 1s cubic-bezier(0.4,0,0.2,1) 0.5s;
  z-index: 5;
}
body.show #cchp-nav-wrapper {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Menu styling */
.cchp-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.cchp-menu li {
  position: relative;
}
.cchp-menu li:hover > a {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}
.cchp-menu a {
  font-family: 'Poppins', sans-serif;
  color: rgb(0, 0, 0);
  font-weight: 500;
  font-size: 1.0rem;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  z-index: 1;
}
.cchp-menu a::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  /* background: rgba(255,255,255,0.2); */
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 0;
}
.cchp-menu li:hover > a::before {
  opacity: 1;
}
.cchp-menu a.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

/* CTA button styling */
.cchp-button {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.0rem;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cchp-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

/* Social icons (Font Awesome) – pinned to right */
.cchp-social {
  position: absolute;
  right: 18px;
  top: calc(50%);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10000;
}
.cchp-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #3b5998;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cchp-social a.facebook { background: #3b5998; }
.cchp-social a.twitter  { background: #1da1f2; }
.cchp-social a.instagram {
  background: radial-gradient(circle at 30% 30%,
    #fdf497 0%,#fdf497 5%,
    #fd5949 45%,#d6249f 60%,#285AEB 90%);
}
.cchp-social i {
  font-size: 1.15rem;
  color: #fff;
  pointer-events: none;
}
.cchp-social a:hover,
.cchp-social a:focus {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* MOBILE: faster animations & adjusted sizing */
@media (max-width: 768px) {
  #cchp-logo {
    transition-duration: 0.5s !important;
  }
  #cchp-header {
    transition-duration: 0.5s !important;
    padding: 0.75rem 10px;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
  }
  #cchp-nav-wrapper {
    transition-duration: 0.5s !important;
    transition-delay: 0.2s !important;
  }
  .cchp-menu a {
    transition-duration: 0.25s !important;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  .cchp-button {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  .cchp-social {
    right: 5px;
    top: calc(50% + 0.375rem);
    gap: 0.5rem;
  }
  .cchp-social a {
    width: 2rem;
    height: 2rem;
  }
  .cchp-social i {
    font-size: 1rem;
  }
}

/* SMALLER PHONES */
@media (max-width: 480px) {
  .cchp-menu { gap: 1rem; }
  .cchp-menu a { font-size: 0.85rem; padding: 0.5rem 0.75rem; }
  .cchp-button { font-size: 0.8rem; padding: 0.35rem 0.7rem; }
  .cchp-social {
    right: 5px;
    gap: 0.4rem;
  }
  .cchp-social i { font-size: 0.9rem; }
}