:root {
  --navy-deep: #050b18;
  --navy: #0c1a33;
  --navy-mid: #132447;
  --accent: #2dd4bf;
  --accent-dim: #14b8a6;
  --gold: #e8c547;
  --text: #e8eef8;
  /* Secondary copy on dark blue (Bootstrap .text-muted is too dark for this page) */
  --text-muted: #b9c9df;
  --text-soft: #cad6e8;
  /* Logo artwork on #ffffff / light headers — export a second PNG using these inks */
  --logo-on-light-primary: #122a4a;
  --logo-on-light-accent: #156f63;
  /* Hero: photo + blue wash (lower = more photo visible) */
  --hero-overlay: linear-gradient(
    165deg,
    rgba(12, 26, 51, 0.78) 0%,
    rgba(5, 11, 24, 0.82) 25%,
    rgba(8, 22, 48, 0.76) 100%
  );
}

body .text-muted,
.text-muted {
  color: var(--text-soft) !important;
}

.text-caption {
  color: #aebdcf !important;
}

.text-secondary-soft {
  color: #a8c4ff;
}

.text-soft {
  color: #e2e9f4;
}

html {
  scroll-padding-top: 88px;
}

body {
  font-family: "Fira Sans", system-ui, sans-serif;
  background: var(--navy-deep);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(45, 212, 191, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(232, 197, 71, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(59, 130, 246, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

.navbar.site-header {
  background: transparent;
  padding: 1rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.25s ease;
}

.navbar.site-header.is-sticky {
  background: rgba(12, 26, 51, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  padding: 0.5rem 0;
}

/* Optional later: white top nav on scroll + swap to dark logo — enable with uncommented <img> in index.html + scroll JS
.navbar.site-header.header--light {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(15, 40, 71, 0.12);
}

.navbar.site-header.header--light .nav-link {
  color: var(--logo-on-light-primary) !important;
}

.navbar.site-header.header--light .nav-link::after {
  background: linear-gradient(90deg, var(--logo-on-light-accent), #2a5080);
}

.site-logo-lightbg {
  display: none !important;
}

body:not(.brand-dark-missing) .navbar.site-header.header--light .site-logo-darkbg {
  display: none !important;
}

body:not(.brand-dark-missing) .navbar.site-header.header--light .site-logo-lightbg {
  display: block !important;
}

.navbar.site-header.header--light .menu-bar span {
  background: linear-gradient(90deg, var(--logo-on-light-accent), var(--logo-on-light-primary));
}
*/

.site-logo-darkbg {
  display: block;
}

.navbar.site-header.navbar-light .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.navbar.site-header.navbar-light .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.25s ease, left 0.25s ease;
}

.navbar.site-header.navbar-light .nav-link:hover::after,
.navbar.site-header.navbar-light .nav-link:focus::after {
  width: 70%;
  left: 15%;
}

.site-logo {
  height: 42px;
  width: auto;
}

.site-logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu-bar {
  border: none;
  background: transparent;
  width: 36px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-bar span {
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
}

.offcanvas.offcanvas-end {
  background: var(--navy);
  color: var(--text);
}

.offcanvas .nav-link {
  color: var(--text) !important;
  padding: 0.65rem 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-section {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 4rem 0 3.5rem;
  margin-top: -6px;
  padding-top: calc(4.5rem + 76px);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../public/images/assetbg.jpg") center / cover no-repeat;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
  pointer-events: none;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

/* Hero main heading (<h1 class="hero-title">) */
.hero-section h1.hero-title,
.hero-title {
  font-size: clamp(1.75rem, 4.25vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), #38bdf8, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-badges .badge {
  font-weight: 500;
  padding: 0.45em 0.85em;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.15), rgba(19, 36, 71, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-visual-inner {
  aspect-ratio: 4/3;
  border-radius: 16px;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(45, 212, 191, 0.35);
}

.section-block {
  padding: 5rem 0;
}

.section-block.alt {
  background: linear-gradient(180deg, rgba(12, 26, 51, 0.5), rgba(5, 11, 24, 0.95));
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.feature-card {
  background: rgba(19, 36, 71, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.feature-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(56, 189, 248, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.feature-card p,
.feature-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-card ul {
  padding-left: 1.1rem;
  margin: 0;
}

.flow-step {
  text-align: center;
  padding: 1.25rem;
}

.flow-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: var(--navy-deep);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(232, 197, 71, 0.12);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.role-card {
  background: rgba(19, 36, 71, 0.55);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  height: 100%;
}

.contact-section {
  background: linear-gradient(160deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-carousel {
  width: 100%;
  max-width: 100%;
}

.testimonial-carousel-viewport {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.testimonial-carousel-track {
  display: flex;
  will-change: transform;
}

.testimonial-slide {
  flex-shrink: 0;
  box-sizing: border-box;
  padding-right: 0;
}

.testimonial-slide .testimonial-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.testimonial-card {
  background: rgba(5, 11, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.testimonial-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.testimonial-dot:hover {
  background: rgba(45, 212, 191, 0.5);
}

.testimonial-dot.active {
  background: var(--accent);
  transform: scale(1.15);
}

.testimonial-quote-icon {
  color: rgba(45, 212, 191, 0.55);
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.testimonial-quote {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
  font-style: italic;
  border: none;
  padding: 0;
  overflow-wrap: break-word;
}

.testimonial-byline {
  margin: 0;
  font-size: 0.9rem;
}

.testimonial-disclaimer {
  opacity: 0.9;
}

body.has-cookie-banner {
  padding-bottom: 7.5rem;
}

@media (min-width: 992px) {
  body.has-cookie-banner {
    padding-bottom: 5.5rem;
  }
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: rgba(8, 18, 40, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.footer-legal-link {
  color: var(--accent) !important;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-legal-link:hover {
  color: #5eead4 !important;
  text-decoration: underline;
}

.site-legal-modal {
  background: var(--navy-mid);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-legal-modal .modal-body code {
  font-size: 0.85em;
}

.form-control-dark {
  background: rgba(5, 11, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 1rem;
}

.form-control-dark:focus {
  background: rgba(5, 11, 24, 0.75);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.2);
}

.form-control-dark::placeholder {
  color: rgba(202, 214, 232, 0.65);
}

.btn-primary-glow {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  border: none;
  color: var(--navy-deep);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-glow:hover {
  color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.35);
}

.captcha-container {
  margin-bottom: 15px;
}

.captcha-display-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
  min-height: 70px;
  justify-content: center;
}

.captcha-display {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
  min-height: 50px;
}

.captcha-char {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 28px;
  font-weight: bold;
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  user-select: none;
  letter-spacing: 2px;
}

.btn-refresh-captcha {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  flex-shrink: 0;
}

.btn-refresh-captcha:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy-deep);
  transform: rotate(180deg);
}

.footer-mini {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.footer-mini a {
  color: var(--accent);
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: var(--navy-deep);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 1040;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

body.has-cookie-banner .back-to-top.visible {
  bottom: calc(28px + 5.5rem);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 7rem;
    min-height: auto;
  }
}
