/* ================= HEADER ================= */

* {
  box-sizing: border-box;
}

.cf-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
}

.cf-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.cf-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  color: #111827;
  transition: opacity 0.2s;
}


.cf-logo:hover {
  opacity: 0.8;
}

.cf-red {
  color: #ef4444;
}

.cf-logo-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Desktop Nav */
.cf-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cf-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.cf-link:hover {
  background: #e5e7eb;
  color: #ef4444;
}

/* Mobile */
.cf-mobile-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #374151;
  transition: all 0.2s;
}

.cf-mobile-btn:hover {
  color: #ef4444;
}

.cf-mobile-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu Overlay */
.cf-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cf-mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Menu */
.cf-mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /*box-shadow: -20px 0 50px rgba(0, 0, 0, 0.12);*/
  display: flex;
  flex-direction: column;
}

.cf-mobile-menu.active {
  transform: translateX(0);
}

.cf-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  gap: 12px;
  background: #ffffff;
  flex-shrink: 0;
}

.cf-mobile-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: #111827;
}
.cf-mobile-logo svg{
      color: #ff0000;
}

.cf-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #374151;
  transition: all 0.2s;
}

.cf-mobile-close:hover {
  color: #ef4444;
}

.cf-mobile-close svg {
  width: 24px;
  height: 24px;
}

.cf-mobile-content {
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.cf-mobile-link {
  display: block;
  padding: 14px 20px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.cf-mobile-link:hover {
  color: #ef4444;
  background: #f3f4f6;
  padding-left: 24px;
}

/* Responsive */
@media (max-width: 1279px) {
  .cf-nav {
    display: none;
  }

  .cf-mobile-btn {
    display: block;
  }
}

@media (max-width: 480px) {
  .cf-container {
    height: 56px;
    padding: 0 12px;
  }

  .cf-logo {
    font-size: 14px;
  }

  .cf-logo-icon {
    width: 16px;
    height: 16px;
  }

  .cf-mobile-btn {
    padding: 4px;
  }

  .cf-mobile-btn svg {
    width: 20px;
    height: 20px;
  }

  .cf-mobile-header {
    padding: 12px 16px;
  }

  .cf-mobile-link {
    padding: 12px 16px;
  }
}