/* StatusX-inspired layout — Bootstrap companion styles */

/* Palette aligned with StatusX logo: navy wordmark, cyan “X” accents, neutral greys */
:root {
  --sx-navy: #101828;
  --sx-navy-mid: #1a2332;
  --sx-accent: #00aeef;
  --sx-accent-deep: #0099cc;
  --sx-accent-hover: #4dc8f4;
  --sx-silver: #8e9297;
  --sx-text-muted: rgba(255, 255, 255, 0.85);
}

html {
  scroll-padding-top: 76px;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--sx-navy-mid);
}

.navbar-sx {
  --sx-nav-h: 4.5rem;
  background: rgba(16, 24, 40, 0.97);
  backdrop-filter: blur(10px);
  padding-top: 0;
  padding-bottom: 0;
  min-height: var(--sx-nav-h);
  box-shadow: 0 1px 0 rgba(0, 174, 239, 0.08);
}

.navbar-sx-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: var(--sx-nav-h);
}

/* White logo panel with curved right edge blending into navy */
.navbar-sx .navbar-brand-curve {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  align-self: stretch;
  margin: 0;
  background: #fff;
  padding: 0.65rem 1.85rem 0.65rem max(1rem, env(safe-area-inset-left, 0px));
  padding-right: 2rem;
  border-radius: 0 2.75rem 2.75rem 0;
  box-shadow: 6px 0 24px rgba(16, 24, 40, 0.12);
}

.navbar-sx-collapse {
  align-self: center;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar-sx .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
}

.navbar-sx .nav-link:hover,
.navbar-sx .nav-link:focus {
  color: var(--sx-accent) !important;
}

.navbar-sx .navbar-brand-curve img {
  max-height: 44px;
  width: auto;
}

.hero-carousel .carousel-item {
  position: relative;
  min-height: min(88vh, 820px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-carousel .carousel-inner {
  background: var(--sx-navy);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(16, 24, 40, 0.92) 0%,
    rgba(16, 24, 40, 0.55) 45%,
    rgba(0, 153, 204, 0.12) 100%
  );
}

/* Prev/next sit above .carousel-inner and default to ~15% width each,
   so they steal clicks from the left-aligned CTA. Narrow + pass-through. */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 3.25rem;
  max-width: 11vw;
  z-index: 3;
  pointer-events: none;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  pointer-events: auto;
  cursor: pointer;
}

.hero-carousel .carousel-item > .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 720px;
}

.hero-content h1,
.hero-content .hero-heading {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
}

.hero-content .hero-heading {
  margin-bottom: 0.5rem;
}

.hero-content p {
  color: var(--sx-text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-top: 1.25rem;
}

.btn-sx-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--sx-accent) 0%, var(--sx-accent-deep) 100%);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-sx-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--sx-accent-hover) 0%, var(--sx-accent) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 174, 239, 0.4);
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.35);
}

.carousel-indicators .active {
  background-color: var(--sx-accent);
}

.slogan-strip {
  position: relative;
  padding: 4.5rem 0;
  background: var(--sx-navy-mid) url("../img/slogan-content-box-bg.jpg") center /
    cover no-repeat;
}

.slogan-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(16, 24, 40, 0.94) 0%,
    rgba(26, 35, 50, 0.9) 55%,
    rgba(0, 153, 204, 0.14) 100%
  );
}

.slogan-strip .container {
  position: relative;
  z-index: 1;
}

.slogan-strip h2 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.slogan-strip p {
  color: var(--sx-text-muted);
  max-width: 520px;
}

.section-title {
  font-weight: 700;
  color: var(--sx-navy);
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--sx-silver);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.account-card {
  border: 1px solid #e8ecf2;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.25s;
}

.account-card:hover {
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
  transform: translateY(-4px);
}

.account-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.account-card .card-body {
  padding: 1.75rem;
}

.account-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sx-navy);
  margin-bottom: 0.5rem;
}

.account-card p {
  color: var(--sx-silver);
  font-size: 0.95rem;
  margin: 0;
}

.steps-section {
  background: linear-gradient(180deg, #f6f8fc 0%, #fff 100%);
}

.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sx-accent-deep);
  text-transform: uppercase;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sx-navy);
}

.step-card p {
  color: var(--sx-silver);
  margin-bottom: 0;
}

.contact-section {
  background: var(--sx-navy);
  color: #fff;
}

.contact-section label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.contact-section .form-control {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 4px;
}

.contact-section .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-section .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--sx-accent);
  box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.28);
  color: #fff;
}

.footer-sx {
  background: #0a101a;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-sx .legal {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
  max-width: none;
}

.footer-sx .footer-reg-heading {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Inner pages: fees, currencies, etc. */
.page-shell {
  padding-top: 5.5rem;
  min-height: 60vh;
  background: linear-gradient(180deg, #f4f6fa 0%, #fff 45%);
}

.page-shell--contact {
  background: var(--sx-navy);
  min-height: min(85vh, 920px);
}

.contact-page-section {
  padding-bottom: 4rem !important;
}

.navbar-sx .nav-link.active {
  color: var(--sx-accent) !important;
}

.sx-page-table {
  --bs-table-border-color: #e2e6ed;
  font-size: 0.95rem;
}

.sx-page-table thead th {
  background: var(--sx-navy) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}

.sx-page-table td {
  vertical-align: middle;
}

.legal-page .legal-document {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.legal-page .legal-document h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--sx-navy);
}

.legal-page .legal-document h1:first-of-type {
  font-size: clamp(1.65rem, 3vw, 2rem);
  margin-top: 0;
}

.legal-page .legal-document h2 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--sx-navy-mid);
}

.legal-page .legal-document p,
.legal-page .legal-document li {
  color: #3d4756;
}

.sx-legal-table {
  font-size: 0.82rem;
}

.sx-legal-table td {
  vertical-align: top;
}

.footer-nav a {
  color: var(--sx-accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: var(--sx-accent-hover);
}

/* Services dropdown — desktop: hover + keyboard (:focus-within); mobile: Bootstrap tap */
.navbar-sx .dropdown-menu-sx {
  --sx-dd-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: var(--sx-dd-radius);
  box-shadow:
    0 4px 6px rgba(16, 24, 40, 0.06),
    0 16px 36px rgba(16, 24, 40, 0.12);
  padding: 0.4rem;
  min-width: 17.5rem;
  margin-top: 0;
}

.navbar-sx .dropdown-menu-sx::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sx-accent), var(--sx-accent-deep));
  opacity: 0.95;
}

.navbar-sx .dropdown-item-sx {
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--sx-navy-mid) !important;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
}

.navbar-sx .dropdown-item-sx:hover,
.navbar-sx .dropdown-item-sx:focus {
  background: rgba(0, 174, 239, 0.12) !important;
  color: var(--sx-navy) !important;
  transform: translateX(2px);
}

.navbar-sx .dropdown-item-sx.active {
  background: rgba(0, 174, 239, 0.16) !important;
  color: var(--sx-navy) !important;
  box-shadow: inset 3px 0 0 var(--sx-accent);
}

@media (hover: hover) and (min-width: 992px) {
  .navbar-sx .dropdown-sx-services {
    position: relative;
  }

  /* Hover gap bridge so moving pointer to menu doesn’t collapse */
  .navbar-sx .dropdown-sx-services > .dropdown-menu-sx {
    top: 100%;
    padding-top: 0.65rem;
    margin-top: 0;
  }

  .navbar-sx .dropdown-sx-services > .dropdown-menu-sx::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 0.85rem;
  }

  .navbar-sx .dropdown-sx-services:hover > .dropdown-menu-sx,
  .navbar-sx .dropdown-sx-services:focus-within > .dropdown-menu-sx {
    display: block !important;
    animation: sx-dd-fade 0.18s ease;
  }

  .navbar-sx .dropdown-sx-services:hover > .dropdown-toggle,
  .navbar-sx .dropdown-sx-services:focus-within > .dropdown-toggle {
    color: var(--sx-accent) !important;
  }
}

@keyframes sx-dd-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar-sx .dropdown-sx-services:hover > .dropdown-menu-sx,
  .navbar-sx .dropdown-sx-services:focus-within > .dropdown-menu-sx {
    animation: none;
  }

  .navbar-sx .dropdown-item-sx {
    transition: none;
  }

  .navbar-sx .dropdown-item-sx:hover,
  .navbar-sx .dropdown-item-sx:focus {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .navbar-sx .dropdown-menu-sx {
    min-width: min(17.5rem, calc(100vw - 2rem));
  }
}

@media (max-width: 991.98px) {
  .hero-content {
    padding-top: 4rem;
  }
}

/* Accounts & IBANs page — inner banner (legacy finbank-style) + content */
.page-shell--accounts {
  padding-top: 0;
  min-height: 70vh;
  background: linear-gradient(180deg, #e8edf5 0%, #f2f5fa 28%, #fff 55%);
}

.accounts-banner {
  position: relative;
  min-height: min(52vh, 540px);
  display: flex;
  align-items: flex-end;
  padding-bottom: 3.25rem;
  padding-top: calc(4.5rem + 2.25rem);
  margin-bottom: 0;
  overflow: hidden;
}

.accounts-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.accounts-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(16, 24, 40, 0.93) 0%,
    rgba(16, 24, 40, 0.68) 42%,
    rgba(0, 174, 239, 0.14) 100%
  );
}

.accounts-banner .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0;
}

.accounts-banner .breadcrumb-item + .breadcrumb-item::before {
  padding-top: 0.15em;
}

.accounts-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.accounts-banner .breadcrumb-item a:hover {
  color: var(--sx-accent-hover);
}

.accounts-banner .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
}

.accounts-banner__title {
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.accounts-banner__lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  max-width: 38rem;
}

.accounts-banner__ghost {
  color: #fff !important;
}

.accounts-banner__ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  color: #fff !important;
}

.accounts-page__container {
  position: relative;
}

.accounts-page__prose p {
  margin-bottom: 1.25rem;
}

.accounts-page__prose p:last-child {
  margin-bottom: 0;
}

.accounts-page__intro {
  border-radius: 1rem !important;
  border-top: 4px solid var(--sx-accent) !important;
}

.accounts-page__hero-img {
  object-fit: cover;
  width: 100%;
  max-height: 520px;
}

.accounts-page__figure img {
  box-shadow: 0 22px 48px rgba(16, 24, 40, 0.14);
}

.accounts-page__img-tile {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.11);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.accounts-page__img-tile:hover {
  box-shadow: 0 24px 56px rgba(16, 24, 40, 0.16);
  transform: translateY(-2px);
}

.accounts-page__img-tile img {
  display: block;
}

.accounts-section-heading {
  color: var(--sx-navy);
  letter-spacing: -0.02em;
}

.accounts-use-cases__sub {
  max-width: 40rem;
}

.accounts-use-case-card {
  border-radius: 0.9rem !important;
  border: 1px solid rgba(16, 24, 40, 0.07) !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.accounts-use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(16, 24, 40, 0.13) !important;
}

.accounts-use-case-card__icon {
  color: var(--sx-accent);
}

.accounts-use-case-card .section-title {
  font-size: 1.05rem;
}

.accounts-page__note {
  max-width: 48rem;
  padding-top: 0.5rem;
}

@media (max-width: 991.98px) {
  .accounts-banner {
    min-height: 420px;
    padding-bottom: 2.5rem;
    align-items: center;
    padding-top: calc(4.5rem + 1.75rem);
  }

  .accounts-banner__title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
}

.sx-link-accent {
  font-weight: 600;
  color: var(--sx-accent);
}

.sx-link-accent:hover {
  color: var(--sx-accent-hover);
}
