/* ============================================================
   BankiPay — Brand Color Override
   Primary:   rgb(60, 185, 168)  — teal
   Secondary: rgb(168, 188, 40)  — olive-lime
   Layout stays white/light (default)
   ============================================================ */

/* ─── CSS Custom Property Overrides ───────────────────────── */

:root {
  --td-primary:     rgb(60, 185, 168);
  --td-primary-alt: rgb(40, 160, 145);
  --td-primary-100: rgba(60, 185, 168, 0.12);
  --td-primary-50:  rgba(60, 185, 168, 0.06);

  --td-blue-400: rgba(60, 185, 168, 0.75);
  --td-blue-300: rgba(60, 185, 168, 0.55);
  --td-blue-200: rgba(60, 185, 168, 0.35);
  --td-blue-100: rgba(60, 185, 168, 0.2);
  --td-blue-50:  rgba(60, 185, 168, 0.08);

  --td-border-1: rgba(60, 185, 168, 0.18);
  --td-border-2: rgba(60, 185, 168, 0.28);
}

/* ─── Fonts (upgrade from Barlow to DM Sans / Outfit) ─────── */

body {
  font-family: 'DM Sans', 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6,
.website-title,
.website-section-title,
.title-card-title {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* ─── Primary Buttons ─────────────────────────────────────── */

.primary-button,
.primary-button.secondary-color,
a.primary-button,
button.primary-button {
  background: linear-gradient(135deg,
    rgb(60, 185, 168) 0%,
    rgb(40, 160, 145) 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(60, 185, 168, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.primary-button:hover,
a.primary-button:hover {
  background: linear-gradient(135deg,
    rgb(80, 205, 188) 0%,
    rgb(60, 185, 168) 100%) !important;
  box-shadow: 0 10px 32px rgba(60, 185, 168, 0.5) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

/* Outlined variant (white-color) */
.primary-button.white-color,
a.primary-button.white-color {
  background: transparent !important;
  border: 1.5px solid rgba(60, 185, 168, 0.6) !important;
  color: rgb(60, 185, 168) !important;
  box-shadow: none !important;
}

.primary-button.white-color:hover,
a.primary-button.white-color:hover {
  background: rgba(60, 185, 168, 0.08) !important;
  border-color: rgb(60, 185, 168) !important;
  transform: translateY(-2px) !important;
}

/* ─── Hero — dark CSS gradient background ───────────────────── */
/* Suppress the default hero-bg.png; use our branded dark gradient. */

.hero-area {
  background-image: none !important;
  background:
    radial-gradient(ellipse 75% 55% at 68% 38%, rgba(60, 185, 168, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 5%  85%, rgba(168, 188, 40, 0.13) 0%, transparent 60%),
    linear-gradient(150deg, #091f1d 0%, #0b2826 30%, #0d3533 60%, #0e2212 100%) !important;
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture */
.hero-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(60, 185, 168, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 185, 168, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.hero-area .container,
.hero-area .hero-element {
  position: relative;
  z-index: 1;
}

/* Hero text — white over the dark overlay */
.hero-area .hero-content h1,
.hero-area .hero-content .website-title,
.hero-area .hero-content .website-sub-title,
.hero-area .hero-content p {
  color: #ffffff !important;
}

.hero-area .hero-content .lists ul li .text {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ─── Transparent header — hero image extends behind it ─────── */
/* Zero header-gap so hero starts at y=0, then compensate with
   extra padding-block-start on the hero itself. */

body.bp-has-hero .header-gap {
  margin-top: 0 !important;
}

body.bp-has-hero .hero-area {
  padding-block-start: calc(80px + clamp(1.5rem, 6.5vw + 1rem, 5rem)) !important;
}

body.bp-has-hero .header-box,
body.bp-has-hero .header-box .header-box-full {
  background-color: transparent !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease !important;
}

/* White nav links + wordmark on the dark hero image */
body.bp-has-hero .header-box:not(.header-scrolled) .middle ul li a,
body.bp-has-hero .header-box:not(.header-scrolled) .logo .logo-wordmark {
  color: rgba(255, 255, 255, 0.90) !important;
}

body.bp-has-hero .header-box:not(.header-scrolled) .middle ul li a:hover,
body.bp-has-hero .header-box:not(.header-scrolled) .middle ul li a.active {
  color: rgb(60, 185, 168) !important;
}

body.bp-has-hero .header-box:not(.header-scrolled) .hamburger-button iconify-icon,
body.bp-has-hero .header-box:not(.header-scrolled) .notification-button iconify-icon {
  color: rgba(255, 255, 255, 0.90) !important;
}

/* ─── White header when scrolled ────────────────────────────── */
/* Specificity (0,3,1) beats the transparent rule (0,2,1) above */

body.bp-has-hero .header-box.header-scrolled,
body.bp-has-hero .header-box.header-scrolled .header-box-full {
  background-color: #ffffff !important;
  border-bottom-color: rgba(60, 185, 168, 0.18) !important;
}

/* ─── Conversion card — visible borders on glassmorphism card ── */

.hero-area .conversion-card-box {
  border-color: rgba(60, 185, 168, 0.35) !important;
}

.hero-area .conversion-card-box .main-input {
  border-color: rgba(60, 185, 168, 0.30) !important;
  border-width: medium !important;
}

.hero-area .conversion-card-box .main-input:focus {
  border-color: rgb(60, 185, 168) !important;
  border-width: 2px !important;
}

/* ─── Agent / "Become a Trusted Agent" Banner ─────────────── */

.agent-banner {
  background-image: none !important;
  background: linear-gradient(
    135deg,
    rgb(40, 160, 145)  0%,
    rgb(60, 185, 168) 45%,
    rgb(130, 170, 30) 100%
  ) !important;
  position: relative;
  overflow: hidden;
}

/* Decorative circles inside the banner */
.agent-banner::before,
.agent-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.agent-banner::before {
  width: 400px;
  height: 400px;
  top: -160px;
  right: -80px;
  background: rgba(255, 255, 255, 0.07);
}

.agent-banner::after {
  width: 260px;
  height: 260px;
  bottom: -100px;
  left: -60px;
  background: rgba(255, 255, 255, 0.05);
}

.agent-banner .container {
  position: relative;
  z-index: 1;
}

/* Text on the gradient banner should be white */
.agent-banner h1,
.agent-banner h2,
.agent-banner h3,
.agent-banner h4,
.agent-banner p,
.agent-banner span {
  color: #ffffff !important;
}

/* Button on the banner: white outlined */
.agent-banner .primary-button {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  backdrop-filter: blur(6px);
}

.agent-banner .primary-button:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* ─── How It Works — themed icon containers ─────────────────── */

/* Circular icon wrapper — teal on odd steps */
.how-to-works-card .inside-card .icon {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  background: rgba(60, 185, 168, 0.10) !important;
  border: 2px solid rgba(60, 185, 168, 0.25) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 24px !important;
  transition: background 0.3s ease, border-color 0.3s ease !important;
}

/* Iconify (landing-icon) sized and teal-coloured */
.how-to-works-card .inside-card .icon .landing-icon {
  font-size: 38px !important;
  color: rgb(60, 185, 168) !important;
  transition: color 0.3s ease !important;
}

/* Image icons — tint to teal */
.how-to-works-card .inside-card .icon img {
  width: 46px !important;
  height: 46px !important;
  object-fit: contain !important;
  filter: brightness(0) saturate(100%)
    invert(68%) sepia(85%) saturate(350%)
    hue-rotate(133deg) brightness(96%) contrast(97%) !important;
  transition: filter 0.3s ease !important;
}

/* Even steps — olive-lime accent */
.how-to-works-card-col:nth-child(even) .how-to-works-card .inside-card .icon {
  background: rgba(168, 188, 40, 0.10) !important;
  border-color: rgba(168, 188, 40, 0.25) !important;
}

.how-to-works-card-col:nth-child(even) .how-to-works-card .inside-card .icon .landing-icon {
  color: rgb(168, 188, 40) !important;
}

.how-to-works-card-col:nth-child(even) .how-to-works-card .inside-card .icon img {
  filter: brightness(0) saturate(100%)
    invert(67%) sepia(50%) saturate(600%)
    hue-rotate(40deg) brightness(95%) contrast(95%) !important;
}

/* Hover — card bg rises teal, icon goes white */
.how-to-works-card:hover .inside-card .icon {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.how-to-works-card:hover .inside-card .icon .landing-icon {
  color: #ffffff !important;
}

.how-to-works-card:hover .inside-card .icon img {
  filter: brightness(0) invert(1) !important;
}

/* Connector arrow between how-it-works cards — teal tint */
.how-to-works-box .all-how-to-works-cards .how-to-work-main-card::after {
  filter: brightness(0) saturate(100%)
    invert(68%) sepia(85%) saturate(350%)
    hue-rotate(133deg) brightness(96%) contrast(97%) !important;
}

/* ─── Why Choose Us — secondary accent on bottom circle ───── */

.how-to-works-card .bottom-circle {
  background: linear-gradient(135deg,
    rgb(60, 185, 168) 0%,
    rgb(168, 188, 40) 100%) !important;
}

/* ─── Page Banner breadcrumb box ──────────────────────────── */

.common-page-top .breadcrumb-box {
  background: rgba(60, 185, 168, 0.15) !important;
}

/* ─── Flag language switcher ─────────────────────────────────── */

.bp-lang-switcher {
  position: relative;
}

.bp-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(60, 185, 168, 0.28);
  border-radius: 8px;
  padding: 5px 10px 5px 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.bp-lang-btn:hover {
  border-color: rgb(60, 185, 168);
  background: rgba(60, 185, 168, 0.06);
}

.bp-flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.bp-lang-code {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--td-heading-color);
}

.bp-lang-arrow {
  font-size: 14px;
  color: var(--td-body-color);
  transition: transform 0.2s;
}

.bp-lang-switcher.open .bp-lang-arrow {
  transform: rotate(180deg);
}

.bp-lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid rgba(60, 185, 168, 0.18);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
  padding: 5px;
  z-index: 200;
}

.bp-lang-switcher.open .bp-lang-dropdown {
  display: block;
}

.bp-lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--td-heading-color);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.bp-lang-option:hover,
.bp-lang-option.active {
  background: rgba(60, 185, 168, 0.08);
  color: rgb(60, 185, 168);
}

/* Adjust button when header is transparent over the dark hero */
body.bp-has-hero .header-box:not(.header-scrolled) .bp-lang-btn {
  border-color: rgba(255, 255, 255, 0.30);
}

body.bp-has-hero .header-box:not(.header-scrolled) .bp-lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.60);
  background: rgba(255, 255, 255, 0.08);
}

body.bp-has-hero .header-box:not(.header-scrolled) .bp-lang-code,
body.bp-has-hero .header-box:not(.header-scrolled) .bp-lang-arrow {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* ─── Mobile offcanvas — logo wordmark readable on dark bg ─── */

.td-offcanvas .logo-wordmark {
  color: #ffffff !important;
}

/* ─── Scrollbar (Webkit) ───────────────────────────────────── */

::-webkit-scrollbar-thumb {
  background: rgba(60, 185, 168, 0.35);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(60, 185, 168, 0.6);
}

/* ─── Circle Stats icon alignment ─────────────────────────── */

.circle-stats .inner-content .icon {
  margin-bottom: 10px;
  display: inline-flex;
}

/* ─── Text Selection ───────────────────────────────────────── */

::selection {
  background: rgba(60, 185, 168, 0.25);
}

/* ─── Auth Login Switcher ──────────────────────────────────── */

.auth-login-switcher .nav-tabs {
  display: none;
}

/* ─── Currency Dropdown ────────────────────────────────────── */

.custom-currency-dropdown-input .input-and-dropdown .country-dropdown .country-dropdown-inner .custom-currency {
  font-weight: 700;
}
