/* ================= ROOT VARIABLES ================= */
:root {
  --primary: #0B3C5D;
  --primary-dark: #072c44;
  --accent: #2563eb;
  --bg: #f7f9fc;
  --white: #ffffff;
  --text-dark: #111827;
  --text-light: #6b7280;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
  padding-top: 80px;
}

/* ================= HEADER ================= */
nav,
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  background: #ffffff !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

nav > strong,
.site-header > strong {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

nav div,
.site-header div {
  display: flex;
  gap: 20px;
}

nav a,
.site-header a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
}

nav a:hover,
.site-header a:hover,
nav a.active,
.site-header a.active {
  color: var(--primary);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #ffffff;
  padding: 90px 8% 50px;
  min-height: 500px;
}

.home-page .hero {
  min-height: 660px;
  padding-bottom: 80px;
}

body:not(.home-page) .hero {
  min-height: 500px;
  padding: 95px 8% 55px;
  background: var(--primary);
}

.hero video.hero-bg-video,
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero video.hero-bg-video {
  object-fit: cover;
}

.hero-bg-image {
  object-fit: cover;
  object-position: center center;
  opacity: 0.92;
}

.hero-overlay,
body:not(.home-page) .hero::before {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-overlay {
  content: "";
  background: linear-gradient(
    135deg,
    rgba(11, 60, 93, 0.88),
    rgba(37, 99, 235, 0.65)
  );
}

body:not(.home-page) .hero::before {
  content: "";
  background: linear-gradient(
    135deg,
    rgba(11, 60, 93, 0.82),
    rgba(37, 99, 235, 0.42)
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

body:not(.home-page) .hero-content {
  max-width: 850px;
}

.hero-text {
  max-width: 760px;
}

.hero-text h1 {
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.hero-text p {
  font-size: 17px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.95);
}

/* ================= PREMIUM HERO TEXT ================= */
.hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-premium-text h1 {
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.hero-premium-text p {
  font-size: 19px;
  line-height: 1.8;
  max-width: 780px;
}

/* ================= HERO BUTTONS ================= */
.hero-button-group {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.hero-primary-btn,
.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 28px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero-primary-btn {
  background: #ffffff;
  color: var(--primary);
}

.hero-secondary-btn {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ================= PAGE HERO IMAGE POSITIONS ================= */
.about-page .hero .hero-bg-image {
  object-position: center 20%;
  transform: scale(1.02);
}

.services-page .hero {
  min-height: 520px;
  padding-top: 100px;
  padding-bottom: 60px;
}

.services-page .hero .hero-bg-image {
  object-position: 92% top;
}

.products-page .hero,
.product-page .hero {
  height: auto;
  align-items: center;
}

.products-page .hero {
  min-height: 380px;

  padding-top: 68px;
  padding-bottom: 22px;
}

.product-page .hero {
  min-height: 420px;

  padding-top: 72px;
  padding-bottom: 26px;
}

.products-page .hero .hero-text,
.product-page .hero .hero-text {
  max-width: 760px;
}

/* ================= PRODUCT DETAIL VIDEO HERO SUPPORT ================= */
.product-page .hero video.hero-bg-video {
  right: 0;
  top: 50%;
  left: auto;
  bottom: auto;
  transform: translateY(-50%);
  height: 75%;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

.product-page .hero .hero-overlay {
  background: linear-gradient(
    to right,
    rgba(11, 60, 93, 0.95) 0%,
    rgba(11, 60, 93, 0.85) 35%,
    rgba(11, 60, 93, 0.40) 65%,
    rgba(11, 60, 93, 0.10) 100%
  );
}

/* ================= SECTIONS ================= */
section {
  padding: 45px 8%;
  color: var(--text-dark);
}

section h2 {
  margin-bottom: 15px;
  color: var(--primary);
}

section p,
section h3 {
  color: var(--text-dark);
}

.premium-section {
  padding: 72px 8%;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 14px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.content-stack {
  max-width: 900px;
  margin-bottom: 18px;
}

.content-stack p {
  margin-bottom: 14px;
  color: var(--text-light);
}

.about-intro-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.premium-copy p {
  font-size: 17px;
  line-height: 1.9;
  color: #374151;
}

.center-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.center-header p {
  color: var(--text-light);
  font-size: 16px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 70px;
  align-items: start;
}

/* ================= SECTION BACKGROUNDS ================= */
.soft-gradient-section,
.product-premium-section,
.roadmap-section {
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.10), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.dark-premium-section {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.35), transparent 35%),
    linear-gradient(135deg, #071f33 0%, #0B3C5D 55%, #092b45 100%);
  color: #ffffff;
}

.dark-premium-section h2 {
  color: #ffffff;
  font-size: 38px;
  line-height: 1.2;
}

.light-kicker {
  color: #93c5fd;
}

.dark-copy p {
  color: rgba(255,255,255,0.86);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.roadmap-section h2 {
  color: var(--primary);
}

.roadmap-section .dark-copy p {
  color: #4b5563;
}

.roadmap-section .light-kicker {
  color: var(--accent);
}

/* ================= GRIDS ================= */
.grid,
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.premium-card-grid {
  gap: 26px;
}

/* ================= CARDS ================= */
.card,
.ai-box {
  background: var(--white);
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 35px rgba(15,23,42,0.08);
  transition: all 0.25s ease;
}

.card:hover,
.ai-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15,23,42,0.12);
}

.premium-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(15,23,42,0.10);
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.premium-card:hover::before {
  opacity: 1;
}

.premium-card h3,
.premium-card p,
.premium-card .card-icon {
  position: relative;
  z-index: 2;
}

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.card p {
  color: var(--text-light);
}

.dark-card-grid {
  margin-top: 42px;
}

.dark-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
}

.dark-card h3 {
  color: #ffffff;
}

.dark-card p {
  color: rgba(255,255,255,0.76);
}

/* ================= PRODUCT SHOWCASE ================= */
.product-premium-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: stretch;
}

.product-main-card {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, #071f33 0%, #0B3C5D 55%, #0a2d47 100%);
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(11,60,93,0.22);
}

.product-main-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(37,99,235,0.16);
  filter: blur(60px);
}

.product-main-card h3,
.product-main-card p,
.product-status,
.product-features,
.product-link-btn {
  position: relative;
  z-index: 2;
}

.product-main-card h3 {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 22px;
  color: #ffffff;
}

.product-main-card p {
  color: rgba(255,255,255,0.82);
  line-height: 1.9;
  font-size: 16px;
  margin-bottom: 16px;
}

.product-status {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 32px;
}

.feature-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.90);
  font-size: 13px;
  font-weight: 600;
}

.product-link-btn {
  display: inline-flex;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.25s ease;
}

.product-link-btn:hover {
  transform: translateY(-3px);
  background: #3b82f6;
}

.product-side-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.capability-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.capability-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.capability-card strong {
  font-size: 20px;
  line-height: 1.45;
  color: var(--primary);
}

/* ================= CONTACT PAGE ================= */
.contact-premium-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: stretch;
}

.contact-form-card,
.contact-info-card {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.contact-form-card {
  border-radius: 28px;
  padding: 36px;
}

.contact-form {
  max-width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.08);
  background: #f8fbff;
  font-size: 15px;
  transition: all 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

.contact-form textarea {
  margin-top: 18px;
  resize: vertical;
}

.contact-form button {
  padding: 15px 28px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
}

.error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
  display: block;
}

.contact-side-panel {
  display: grid;
  grid-template-rows: 1.05fr 0.7fr 0.95fr;
  gap: 18px;
  height: 100%;
}

.contact-info-card {
  border-radius: 24px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-info-card h3 {
  margin-bottom: 12px;
  color: var(--primary);
}

.contact-info-card p {
  color: #4b5563;
  line-height: 1.8;
}

/* CONTACT PAGE BALANCE FIX */

.contact-premium-layout {
  align-items: stretch;
}

.contact-form-card {
  height: 100%;
}

.contact-side-panel {
  display: grid;
  grid-template-rows: 1fr 0.72fr 1fr;
  gap: 18px;
  height: 100%;
}

.contact-info-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.linkedin-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

/* ================= CTA ================= */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  padding: 55px 8%;
}

.cta h2,
.cta p {
  color: #ffffff;
}

.premium-cta {
  position: relative;
  overflow: hidden;
  padding: 70px 8% 64px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.18), transparent 28%),
    linear-gradient(135deg, #08253a 0%, #0B3C5D 55%, #0a2d47 100%);
  color: #ffffff;
}

.premium-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.22;
}

.cta-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(37,99,235,0.18);
  filter: blur(90px);
  top: -120px;
  right: -80px;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.cta-kicker {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-cta h2 {
  font-size: 44px;
  line-height: 1.08;
  margin-bottom: 18px;
  color: #ffffff;
  letter-spacing: -1.3px;
}

.premium-cta p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
  max-width: 720px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s ease;
}

.cta-primary {
  background: var(--accent);
  color: #ffffff;
}

.cta-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: #ffffff;
}

.cta-primary:hover,
.cta-secondary:hover {
  transform: translateY(-3px);
}

/* ================= FOOTER ================= */
footer:not(.premium-footer),
.site-footer {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 20px;
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
}

.premium-footer {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.16), transparent 28%),
    linear-gradient(180deg, #071f33 0%, #061927 100%);
  color: #ffffff;
  padding: 52px 8% 22px;
  text-align: left;
}

.premium-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 70px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.premium-footer .footer-brand {
  max-width: 430px;
}

.premium-footer .footer-brand h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
  color: #ffffff;
}

.premium-footer .footer-links {
  display: flex;
  flex-direction: row;
  gap: 58px;
}

.premium-footer .footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.premium-footer .footer-column h4 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 15px;
}

.premium-footer .footer-column a,
.footer-linkedin {
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  transition: all 0.2s ease;
}

.premium-footer .footer-column a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.premium-footer .footer-column a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-linkedin {
  display: inline-block;
  margin-top: 22px;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: #ffffff;
}

.footer-linkedin:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 18px;
  text-align: center;
  color: rgba(255,255,255,0.50);
  font-size: 13px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

  body {
    padding-top: 120px;
  }

  nav,
  .site-header {
    flex-direction: column;
    gap: 10px;
  }

  nav div,
  .site-header div {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .home-page .hero,
  body:not(.home-page) .hero,
  .products-page .hero,
  .product-page .hero,
  .services-page .hero {
    min-height: 520px;
    padding: 120px 6% 60px;
  }

  .hero-text,
  .hero-premium-text {
    max-width: 100%;
  }

  .hero-text h1,
  .hero-premium-text h1 {
    font-size: 36px;
  }

  .hero-text p,
  .hero-premium-text p {
    font-size: 16px;
  }

  .product-page .hero video.hero-bg-video {
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: auto;
    object-fit: cover;
    opacity: 0.3;
  }

  .product-page .hero .hero-overlay {
    background: rgba(11, 60, 93, 0.85);
  }

  section,
  .premium-section {
    padding: 54px 6%;
  }

  .about-intro-layout,
  .split-section,
  .product-premium-layout,
  .contact-premium-layout,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-side-panel {
    grid-template-rows: auto;
  }

  .dark-premium-section h2,
  .product-main-card h3,
  .premium-cta h2 {
    font-size: 32px;
  }

  .product-main-card,
  .contact-form-card {
    padding: 30px;
  }

  .card,
  .ai-box {
    padding: 22px;
  }

  .premium-footer .footer-top,
  .premium-footer .footer-links {
    flex-direction: column;
    gap: 28px;
  }
}

/* ================= HERO TEXT COMPACT FIX ================= */

.hero-premium-text {
  max-width: 720px;
}

.hero-premium-text h1 {
  font-size: 46px;
  line-height: 1.08;
  margin-bottom: 14px;
}

.hero-premium-text p {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 8px;
  max-width: 700px;
}

.hero-kicker {
  margin-bottom: 12px;
  padding: 6px 12px;
  font-size: 12px;
}

/* Page hero height final compact */
body:not(.home-page) .hero {
  min-height: 420px;
  padding-top: 80px;
  padding-bottom: 40px;
}

.home-page .hero {
  min-height: 500px;

  padding-top: 52px;
  padding-bottom: 34px;
}

.home-page .hero .hero-premium-text {
  max-width: 720px;
}

.home-page .hero .hero-premium-text h1 {
  font-size: 50px;
  line-height: 1.05;
  margin-bottom: 12px;
}

.home-page .hero .hero-premium-text p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ================= PRODUCTS NAV DROPDOWN ================= */
/*
  Uses span + ul rather than nested divs so the site's generic
  `nav div { display:flex }` rule does not affect submenu layout.
*/
.nav-products-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-products-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-products-arrow {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  margin-top: 2px;
  transition: transform .18s ease;
}

.nav-products-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: 320px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #ffffff;
  border: 1px solid #dce8f2;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(11,47,83,.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(7px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 10050;
}

/* Hover bridge prevents the menu closing while moving pointer downward */
.nav-products-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -17px;
  height: 17px;
}

.nav-products-dropdown:hover .nav-products-menu,
.nav-products-dropdown:focus-within .nav-products-menu,
.nav-products-dropdown.open .nav-products-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-products-dropdown:hover .nav-products-arrow,
.nav-products-dropdown:focus-within .nav-products-arrow,
.nav-products-dropdown.open .nav-products-arrow {
  transform: rotate(180deg);
}

.nav-products-menu li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.nav-products-menu li + li {
  margin-top: 2px;
}

.nav-products-menu a {
  display: block !important;
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  color: #173a59 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  text-align: left;
  text-decoration: none;
}

.nav-products-menu a:hover,
.nav-products-menu a:focus {
  background: #eef8fa;
  color: #0b7f8c !important;
}

/* Never draw the main-nav active underline inside submenu */
.nav-products-menu a::after,
.nav-products-menu a.active::after {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-products-dropdown {
    display: block;
    width: 100%;
    text-align: center;
  }

  .nav-products-toggle {
    justify-content: center;
  }

  .nav-products-menu {
    position: static;
    left: auto;
    width: min(320px, 92vw);
    margin: 8px auto 0;
    padding: 6px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
    box-shadow: 0 10px 24px rgba(11,47,83,.10);
  }

  .nav-products-menu::before {
    display: none;
  }

  .nav-products-dropdown.open .nav-products-menu {
    display: block;
    transform: none;
  }
}
