/* ==========================================================================
   Beyond-Terra Innovations — Brand Design System
   ========================================================================== */

:root {
  --navy: #241446;
  --navy-soft: #2e1d5c;
  --blue-deep: #003d99;
  --blue-sky: #0097e3;
  --blue-mid: #008dd2;
  --purple: #a259ff;
  --white: #ffffff;
  --light-bg: #f6f7fb;
  --gray-txt: #5b5f6b;
  --dark-txt: #1a1a2e;
  --border-soft: #e3e5ee;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px rgba(26, 26, 46, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(26, 26, 46, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  color: var(--dark-txt);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--dark-txt);
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
}

::selection {
  background: var(--purple);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--blue-sky);
  outline-offset: 2px;
  border-radius: 4px;
}

/* -------------------- Utility tokens -------------------- */
.text-navy { color: var(--navy) !important; }
.text-blue-deep { color: var(--blue-deep) !important; }
.text-blue-sky { color: var(--blue-sky) !important; }
.text-purple { color: var(--purple) !important; }
.text-gray { color: var(--gray-txt) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-light-brand { background-color: var(--light-bg) !important; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-sky);
}

.eyebrow.on-light { color: var(--blue-deep); }

.section-pad { padding: 5.5rem 0; }
@media (max-width: 767.98px) {
  .section-pad { padding: 3.25rem 0; }
}

.hero-pad { padding: 6.5rem 0 5rem; }
@media (max-width: 767.98px) {
  .hero-pad { padding: 3.5rem 0 3rem; }
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
}
.trust-row .trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.trust-row .trust-item:hover { opacity: 1; }
.trust-row .trust-item img { width: 22px; height: 22px; }
.trust-row .trust-item span {
  color: #c9c6de;
  font-weight: 600;
  font-size: 0.85rem;
}

/* -------------------- Buttons -------------------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: none;
}

.btn-brand-primary {
  background: linear-gradient(135deg, var(--blue-sky), var(--blue-deep));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 151, 227, 0.35);
}
.btn-brand-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 151, 227, 0.45);
  color: var(--white);
}

.btn-brand-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-brand-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-brand-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-soft);
}
.btn-brand-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-brand-purple {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(162, 89, 255, 0.35);
}
.btn-brand-purple:hover {
  transform: translateY(-2px);
  color: var(--white);
}

/* -------------------- Decorative dot pattern -------------------- */
.dot-field {
  position: absolute;
  width: 260px;
  height: 260px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.6px, transparent 1.6px);
  background-size: 18px 18px;
  pointer-events: none;
}
.dot-field.on-light {
  background-image: radial-gradient(rgba(0, 61, 153, 0.18) 1.6px, transparent 1.6px);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  pointer-events: none;
  z-index: 0;
}

/* -------------------- Navbar -------------------- */
.bti-navbar {
  background: rgba(36, 20, 70, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.85rem 0;
  transition: box-shadow 0.25s ease, padding 0.25s ease;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.bti-navbar.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 0.55rem 0;
}

.bti-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.bti-navbar .navbar-brand img { height: 34px; }
.bti-navbar .navbar-brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: #b9b4d6;
  text-transform: uppercase;
  margin-top: -2px;
}

.bti-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.bti-navbar .nav-link:hover,
.bti-navbar .nav-link.active {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1);
}

.bti-navbar .dropdown-menu {
  background: var(--navy-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  min-width: 220px;
}
.bti-navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.bti-navbar .dropdown-item img { width: 18px; height: 18px; }
.bti-navbar .dropdown-item:hover,
.bti-navbar .dropdown-item:focus {
  background: rgba(0, 151, 227, 0.18);
  color: var(--white);
}

.nav-cta {
  background: var(--blue-sky);
  color: var(--white) !important;
  border-radius: 999px;
  padding: 0.55rem 1.25rem !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--blue-deep) !important; }

.navbar-toggler { border: none; padding: 0.25rem; }
.navbar-toggler:focus { box-shadow: none; }

/* -------------------- Page header (interior pages) -------------------- */
.page-header {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 4.25rem 0 3.25rem;
  overflow: hidden;
}
.page-header .eyebrow { color: var(--blue-sky); }
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.75rem); }
.page-header p { color: #c9c6de; max-width: 640px; }

/* -------------------- Cards -------------------- */
.brand-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 4px solid transparent;
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.brand-card .icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.brand-card .icon-badge img { width: 28px; height: 28px; }
.brand-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.brand-card p { color: var(--gray-txt); font-size: 0.94rem; margin-bottom: 0; }
.brand-card ul.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.brand-card ul.mini-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  color: var(--gray-txt);
  line-height: 1.35;
}
.brand-card ul.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-sky);
}
.brand-card ul.mini-list li:last-child { margin-bottom: 0; }

.governance-banner {
  background: var(--navy);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-align: center;
  margin-bottom: 1.75rem;
}
.governance-banner .gb-title { color: var(--white); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.15rem; }
.governance-banner .gb-sub { color: var(--blue-sky); font-weight: 600; font-size: 0.82rem; }

.kpi-tag {
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.85rem 0.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue-deep);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.kpi-tag:hover { border-color: var(--blue-sky); transform: translateY(-2px); }

/* -------------------- Stats strip -------------------- */
.stats-strip {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.stats-strip .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--blue-sky);
}
.stats-strip .stat-label {
  color: #c9c6de;
  font-size: 0.88rem;
}

/* -------------------- Process steps -------------------- */
.process-step {
  text-align: center;
  position: relative;
}
.process-step .step-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-card);
}
.process-step .step-icon img { width: 32px; height: 32px; }
.process-step h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.process-step p { color: var(--gray-txt); font-size: 0.85rem; }

/* -------------------- Reveal on scroll -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* -------------------- Footer -------------------- */
.bti-footer {
  background: var(--navy);
  color: #c9c6de;
  padding: 3.5rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}
.bti-footer h5 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.bti-footer a { color: #c9c6de; transition: color 0.2s ease; }
.bti-footer a:hover { color: var(--blue-sky); }
.bti-footer ul { list-style: none; padding: 0; margin: 0; }
.bti-footer li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.bti-footer .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}
.bti-footer .social-icon:hover { background: var(--blue-sky); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #9b8fc4;
}

/* -------------------- Product tabs (Products Expertise page) -------------------- */
.product-pills {
  position: sticky;
  top: 76px;
  z-index: 10;
  background: rgba(246, 247, 251, 0.92);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.product-pills .nav-link {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-txt);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border-soft);
  margin-right: 0.5rem;
  white-space: nowrap;
}
.product-pills .nav-link.active,
.product-pills .nav-link:hover {
  background: var(--blue-sky);
  border-color: var(--blue-sky);
  color: var(--white) !important;
}

.product-section {
  padding: 4rem 0;
  scroll-margin-top: 150px;
  border-bottom: 1px solid var(--border-soft);
}
.product-section:last-of-type { border-bottom: none; }

.product-icon-lg {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}
.product-icon-lg img { width: 42px; height: 42px; }

.capability-row {
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.capability-row .check-dot {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7rem;
}

/* -------------------- Form -------------------- */
.brand-form .form-control,
.brand-form .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}
.brand-form .form-control:focus,
.brand-form .form-select:focus {
  border-color: var(--blue-sky);
  box-shadow: 0 0 0 3px rgba(0, 151, 227, 0.15);
}
.brand-form label {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--dark-txt);
}

.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2.25rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact-info-card .info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.contact-info-card .info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* -------------------- Real brand logos -------------------- */
.logo-chip {
  background: var(--white);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-chip img { display: block; height: 18px; width: auto; }
.logo-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

.dropdown-item .logo-chip { padding: 0.3rem 0.55rem; margin-right: 0.15rem; }
.dropdown-item .logo-chip img { height: 14px; }

.brand-logo-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 4px solid transparent;
}
.brand-logo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.brand-logo-card img { max-height: 34px; width: auto; max-width: 100%; }
.brand-logo-card .mark-lockup { display: flex; align-items: center; gap: 0.5rem; }
.brand-logo-card .mark-lockup img { max-height: 30px; }
.brand-logo-card .mark-lockup span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--dark-txt); }

.product-icon-logo {
  height: 56px;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  max-width: 100%;
}
.product-icon-logo img { max-height: 100%; max-width: 100%; width: auto; }
.product-icon-logo.mark-lockup { gap: 0.7rem; }
.product-icon-logo.mark-lockup img { max-height: 52px; }
.product-icon-logo.mark-lockup span { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--dark-txt); }

/* -------------------- Customer logo slider -------------------- */
.customer-slider {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.customer-track {
  display: flex;
  width: max-content;
  animation: customer-scroll 32s linear infinite;
}
.customer-slider:hover .customer-track { animation-play-state: paused; }
@keyframes customer-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.customer-badge {
  flex: 0 0 auto;
  background: var(--light-bg);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  margin: 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-txt);
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.customer-badge:hover { border-color: var(--blue-sky); color: var(--blue-deep); }

.customer-badge-logo {
  flex: 0 0 auto;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 0.9rem 1.6rem;
  margin: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.customer-badge-logo img {
  max-height: 38px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.customer-badge-logo:hover {
  border-color: var(--blue-sky);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .customer-track { animation: none; }
}

/* -------------------- Misc -------------------- */
.chip {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-txt);
  margin: 0.2rem;
}

.divider-accent {
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-sky), var(--purple));
  margin-bottom: 1.25rem;
}

/* -------------------- Leadership team hover cards -------------------- */
.team-photo-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.1rem;
  border-radius: 22px;
  padding: 5px;
  background: linear-gradient(135deg, var(--purple), var(--blue-deep));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-photo-wrap:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(162,89,255,0.35); }

.team-photo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--light-bg);
}
.team-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 20, 70, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.team-photo-wrap:hover .team-hover-overlay,
.team-photo-wrap:focus-within .team-hover-overlay {
  opacity: 1;
  transform: scale(1);
}
.team-hover-overlay p {
  color: #e3e1f0;
  font-size: 0.72rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.team-linkedin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.team-linkedin:hover { background: var(--white); color: var(--blue-deep); transform: scale(1.1); }

.team-name { font-size: 1.02rem; margin-bottom: 0.1rem; }
.team-role { color: var(--gray-txt); font-size: 0.85rem; line-height: 1.3; }
