/* =====================================================================
   Edata — UI polish layer (additive)
   Loaded AFTER style.css / header.css / footer.css so it refines the look
   without altering any existing HTML structure or layout geometry.
   Scope of this pass: global a11y/typography, header, and homepage.
   ===================================================================== */

/* ---------- Global foundations ---------- */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--primary-blue);
  color: #fff;
}

/* Consistent, visible keyboard focus everywhere (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(0, 84, 157, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  letter-spacing: 0.3px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-login,
.btn-join {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Header ----------
   Header, primary nav and mega-menu styling now lives entirely in
   header.css (single source of truth). Nothing to override here. */

/* ---------- Hero ---------- */
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 60, 115, 0.72) 0%,
    rgba(0, 84, 157, 0.55) 45%,
    rgba(230, 45, 54, 0.55) 100%
  );
  opacity: 1;
}

.hero-title,
.hero-description {
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards;
}

.hero-title {
  letter-spacing: 0.2px;
}

.hero-description {
  animation-delay: 0.18s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Section heading accent ---------- */
.about-title,
.solutions-title,
.blog-title,
.partners-title,
.counters-title,
.xsoc-title {
  position: relative;
}

.about-title::after,
.solutions-title::after,
.blog-title::after,
.partners-title::after,
.xsoc-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: var(--primary-red);
}

/* Centered accent for the (centered) values header */
.values-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: var(--primary-red);
}

/* Counters heading sits on a blue background — use white accent */
.counters-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: #fff;
}

/* ---------- Cards ---------- */
.value-card {
  border: 1px solid #eef1f5;
  box-shadow: 0 4px 14px rgba(0, 30, 60, 0.05);
}

.value-card:hover {
  box-shadow: 0 16px 34px rgba(0, 84, 157, 0.16);
}

.solution-card {
  border: 1px solid #ececec;
  box-shadow: 0 4px 16px rgba(0, 30, 60, 0.06);
}

.solution-card:hover {
  box-shadow: 0 18px 38px rgba(0, 84, 157, 0.28);
}

.blog-card {
  border: 1px solid #eef1f5;
}

/* ---------- Partners: tasteful logo wall ---------- */
.partner-item img {
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.partner-item:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.06);
}

/* ---------- Counters ---------- */
.counter-value {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  font-variant-numeric: tabular-nums;
}

.counter-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
}

/* ---------- xSOC accordion refinement ---------- */
.accordion-item {
  border: 1px solid #eef1f5;
}

.accordion-item.active {
  box-shadow: 0 10px 26px rgba(0, 84, 157, 0.25);
  border-color: transparent;
}

.accordion-header {
  font-family: inherit;
}
