/* ============================================================
   BANZ TECHNOLOGIES — COMPONENTS CSS
   Nav, Footer, Buttons, Cards, Cursor, Forms
   ============================================================ */

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
}

.cursor__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.cursor__ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,0,0,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), opacity 0.3s ease;
  pointer-events: none;
}

.cursor--hover .cursor__ring {
  width: 60px;
  height: 60px;
  border-color: rgba(0,0,0,0.3);
}

.cursor--click .cursor__dot {
  transform: translate(-50%, -50%) scale(0.5);
}

@media (hover: none) {
  .cursor { display: none; }
}

@media (max-width: 768px) {
  .cursor { display: none !important; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 24px 0;
  transition: background var(--dur-med) ease, padding var(--dur-med) ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav__logo {
  display: flex;
  align-items: center;
  height: 100%;
  transition: opacity var(--dur-fast) ease;
}

.logo-img {
  height: 40px; /* Refined logo height */
  width: auto;
  display: block;
}

.nav__logo:hover { opacity: 0.7; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width var(--dur-med) var(--ease-out);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 24px;
  border: 1px solid var(--cta-border);
  border-radius: 100px;
  color: var(--text-primary);
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.nav__cta:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Mobile Menu Toggle */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transform-origin: right center;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast) ease;
}

.nav.menu-active .nav__hamburger span:first-child { transform: rotate(-45deg) scaleX(0.8); }
.nav.menu-active .nav__hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.menu-active .nav__hamburger span:last-child  { transform: rotate(45deg) scaleX(0.8); }

/* Mobile Overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) ease;
}

.nav__mobile.open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-link {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
  text-align: center;
}

.nav__mobile-link:hover { color: var(--text-primary); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: flex; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer__brand .nav__logo {
  display: inline-block;
  height: auto;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer__col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 500;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.footer__link-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px; /* Fine-tuned alignment with first line of text */
}

.footer__links a:hover { color: var(--text-primary); }

.footer__socials {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem; /* Size for Font Awesome icons */
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.footer__social-link:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--accent-dim);
}

/* Old SVG styling for footer links (unused for social but kept for others if any) */
.footer__social-link svg { width: 16px; height: 16px; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--dur-fast) ease;
}

.footer__legal a:hover { color: var(--text-secondary); }

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-bounce),
              box-shadow var(--dur-fast) ease;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn--primary:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.btn--white {
  background: #ffffff;
  color: #000000;
}

.btn--white:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(255,255,255,0.2);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--cta-border);
}

.btn--outline:hover {
  background: var(--accent-dim);
  border-color: var(--text-secondary);
  transform: scale(1.04);
}

.btn--outline-white {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: scale(1.04);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 0;
}

.btn--ghost:hover {
  color: var(--text-primary);
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-med) var(--ease-out);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* Ripple */
.btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Magnetic wrapper */
.magnetic {
  display: inline-block;
  will-change: transform;
  transition: transform 0.4s var(--ease-out);
}

/* Large CTA button */
.btn--xl {
  font-size: 1rem;
  padding: 20px 48px;
}

@media (max-width: 768px) {
  .btn { cursor: auto; }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.02);
  transition: border-color var(--dur-med) ease, transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) ease;
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0,0,0,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-med) ease;
}

.card:hover::before { opacity: 1; }

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.card__number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--dur-fast) ease, gap var(--dur-fast) ease;
}

.card:hover .card__arrow {
  color: var(--text-primary);
  gap: 14px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  position: relative;
  margin-bottom: 28px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--dur-fast) ease;
  resize: none;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--text-primary);
}

.form-label {
  position: absolute;
  top: 18px;
  left: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: top var(--dur-fast) ease,
              font-size var(--dur-fast) ease,
              color var(--dur-fast) ease;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
  top: 0;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width var(--dur-med) var(--ease-out);
}

.form-input:focus ~ .form-line,
.form-textarea:focus ~ .form-line {
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: transparent;
}

/* ============================================================
   STAT COUNTER
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.stat-item {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  transition: background var(--dur-fast) ease;
}

.stat-item:last-child { border-right: none; }

.stat-item:hover { background: var(--accent-dim); }

.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-item__suffix {
  font-size: 0.5em;
  color: var(--text-secondary);
}

.stat-item__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--border); padding: 32px 24px; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-item:last-child { border-right: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 24px 16px; border-right: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-right: none; }
}

/* ============================================================
   PROCESS / TIMELINE
   ============================================================ */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.process-item:last-child { border-bottom: none; }

.process-item__num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.process-item__content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.process-item__content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 800px;
}

@media (max-width: 600px) {
  .process-item { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================================
   TAGS / BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
}
