/* ONX: UI Components Styles */

/* === Scroll Animations === */
.onx-metric,
.onx-proof-image,
.onx-testimonial {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 400ms ease, opacity 400ms ease;
}

.onx-metric.in,
.onx-proof-image.in,
.onx-testimonial.in {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger animation for metrics */
.onx-metric:nth-child(1) { transition-delay: 0ms; }
.onx-metric:nth-child(2) { transition-delay: 100ms; }
.onx-metric:nth-child(3) { transition-delay: 200ms; }


/* === Wrapper & Grid === */
.onx-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.onx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 968px) {
  .onx-grid {
    grid-template-columns: 1fr;
  }
}

/* === Proof/Story Bridge === */
.onx-proof {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.onx-proof-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.onx-proof-content h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 24px;
  color: #fff;
}

.onx-proof-media {
  position: relative;
}

.onx-proof-image {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Float animation - only on elements with class */
.onx-float-anim {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 16:9 Aspect Ratio Container */
.onx-aspect-16-9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  background: rgba(255, 255, 255, 0.04);
}

/* Proof Fallback */
.onx-proof-fallback {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.onx-proof-fallback-text {
  text-align: center;
}

.onx-proof-fallback-text p {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #9E9E9E;
  margin: 12px 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

@media (max-width: 968px) {
  .onx-proof-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* === Testimonial === */
.onx-testimonial {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.onx-testimonial-quote {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.onx-testimonial-quote p {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.5;
  color: #fff;
  font-style: italic;
  margin-bottom: 20px;
}

.onx-testimonial-quote cite {
  font-size: 16px;
  color: #BDBDBD;
  font-style: normal;
}

/* === Compliance Band === */
/* Compliance styles moved to /assets/css/onx-compliance.css */

/* === Newsletter Form === */
.onx-newsletter {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.onx-newsletter h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #fff;
}

.onx-newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.onx-newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 16px;
  transition: all 200ms ease;
}

.onx-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(229, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.onx-newsletter-form input[type="email"]::placeholder {
  color: #757575;
}

.onx-newsletter-form button {
  padding: 14px 32px;
  border-radius: 10px;
  background: #E50000;
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.onx-newsletter-form button:hover {
  background: #FF1A1A;
  transform: translateY(-1px);
}

.onx-newsletter-form button:active {
  transform: translateY(0);
}

.onx-note {
  font-size: 13px;
  color: #757575;
  margin-top: 12px;
  margin-bottom: 0;
}

.onx-newsletter-success {
  color: #4CAF50;
  font-size: 16px;
  margin-top: 16px;
  font-weight: 500;
}

.onx-newsletter-error {
  color: #FF5252;
  font-size: 14px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .onx-newsletter {
    padding: 30px 20px;
  }

  .onx-newsletter-form {
    flex-direction: column;
  }

  .onx-newsletter-form button {
    width: 100%;
  }
}

/* === Ghost Buttons === */
/* Keep ghost buttons black on hover; subtle focus ring; no red fill */
.onx-btn--ghost,
a.onx-btn--ghost,
button.onx-btn--ghost{
	background:#0b0b0c; color:#fff; border:1px solid #ff1f1f;
	transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.onx-btn--ghost:hover,
a.onx-btn--ghost:hover,
button.onx-btn--ghost:hover{
	background:#0b0b0c; color:#fff; border-color:#ff3434; transform:translateY(-1px);
}
.onx-btn--ghost:focus-visible{
	outline:none; box-shadow:0 0 0 3px rgba(255,31,31,.35);
}
.onx-btn--ghost:active{ transform:translateY(0); }

/* Remove any default red "pressed box" artifacts on menu items */
.main-navigation a,
.menu a{
	-webkit-tap-highlight-color: transparent;
	outline: none !important;
}

/* Utility: make red primary buttons feel clicky */
.onx-btn--primary,
a.onx-btn--primary,
button.onx-btn--primary{
	background:#ff1f1f; color:#fff; border:0; border-radius:10px;
}
.onx-btn--primary:hover{ filter:brightness(1.05); transform:translateY(-1px); }
.onx-btn--primary:active{ transform:translateY(0); }

/* === Insights Cards === */
/* Layout helpers for Insights cards */
.onx-insights-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.onx-insights-card{background:#121214;border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:20px}
.onx-insights-card h3{margin:0 0 6px}
.onx-insights-card p{opacity:.85;margin:0 0 14px}
