/* CardNexia shared styles. Page layout lives inline in each page (exported from the design canvas). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(54, 214, 242, 0.6);
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 12px 16px; border-radius: 10px;
  background: #36d6f2; color: #08172b; font: 600 14px/20px Inter, sans-serif; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.cn-form-error {
  margin: 0; padding: 12px 16px; border: 1px solid #ff7a88; border-radius: 10px;
  background: rgba(255, 122, 136, 0.1); color: #f6f8fb; font: 400 14px/20px Inter, sans-serif;
}
.cn-form-success {
  padding: 32px; border: 1px solid rgba(62, 207, 168, 0.5); border-radius: 24px;
  background: #10243d; color: #f6f8fb; font: 400 16px/26px Inter, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Home hero, desktop: keep the card art to the right of the headline */
@media (min-width: 901px) {
  .cn-hero-img {
    inset: auto 0 auto auto !important; top: 50% !important; transform: translateY(-50%);
    width: min(92%, 1400px) !important; height: auto !important; object-fit: fill !important;
  }
  .cn-hero-shade {
    background:
      linear-gradient(90deg, #08172b 0%, #08172b 36%, rgba(8, 23, 43, 0) 58%),
      linear-gradient(180deg, #08172b 0%, rgba(8, 23, 43, 0) 18%, rgba(8, 23, 43, 0) 82%, #08172b 100%) !important;
  }
}

/* Mobile navigation drawer */
.cn-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid #56709a; border-radius: 10px;
  background: transparent; color: #f6f8fb; cursor: pointer;
}
.cn-drawer {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #08172b; border-bottom: 1px solid #223a5c; padding: 8px 24px 24px;
  font-family: Inter, system-ui, sans-serif; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.cn-drawer nav { display: flex; flex-direction: column; }
.cn-drawer-h {
  margin: 16px 0 4px; font: 600 12px/16px Manrope, sans-serif; letter-spacing: 0.2em;
  text-transform: uppercase; color: #36d6f2;
}
.cn-drawer nav a { display: block; padding: 12px 0; min-height: 44px; color: #f6f8fb; text-decoration: none; font-size: 16px; line-height: 20px; }
.cn-drawer-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 20px; border-top: 1px solid #223a5c; }
.cn-drawer-lang { display: flex; background: #10243d; border-radius: 999px; padding: 4px; }
.cn-drawer-cta { background: #36d6f2; color: #08172b; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 20px; padding: 12px 18px; border-radius: 10px; }

@media (max-width: 900px) {
  .cn-nav, .cn-lang { display: none !important; }
  .cn-menu-btn { display: inline-flex; }
}
@media (max-width: 360px) {
  header a[data-analytics-location="header"] { display: none; }
}
@media (max-width: 480px) {
  header > div { padding: 12px 20px !important; gap: 12px !important; }
  header > div > div:last-of-type { gap: 8px !important; }
  header a[data-analytics-location="header"] { padding: 10px 14px !important; }
}
