/* css/main.css */
:root {
  --primary-color: #0b183d;
  --accent-color: #f5a623;
  --text-main: #333333;
  --text-light: #666666;
  --bg-color: #fafbfc;
  --bg-alt: #edf1f7;
  --bg-dark: #05183d;
  --border-radius: 16px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
}

body:has(.section-shortcuts) {
  padding-bottom: 60px;
  /* Space for the sticky .section-shortcuts bar */
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

section[id] {
  scroll-margin-top: 110px;
  /* match the header height plus extra spacing */
}

@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }
}

.section--alt {
  background-color: var(--bg-alt);
}

.section--dark {
  background-color: var(--bg-dark);
  color: #fff;
}

.section--highlight {
  background: linear-gradient(135deg, #0b183d 0%, #112959 100%);
  color: #fff;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.section--dark .section-title,
.section--highlight .section-title {
  color: #fff;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section--dark .section-subtitle,
.section--highlight .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-size: 1rem;
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
}

.btn-primary:hover {
  background-color: #ffb742;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-small {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 32px 24px;
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

.card-small:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(245, 166, 35, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.card-title {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 700;
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #041733;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  /* give some right space for long language labels */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* brand with logo + text */
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.site-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  max-width: 250px;
}

.nav {
  flex: 1;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 0;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: 0.3s;
}

/* Tweak specifically for languages with longer words like Spanish and Portuguese */
html[lang="es"] .nav-list a,
html[lang="pt"] .nav-list a,
html[lang="fr"] .nav-list a,
html[lang="de"] .nav-list a,
html[lang="ru"] .nav-list a {
  font-size: 0.85rem;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.language-switcher {
  position: relative;
  margin-left: 24px;
  white-space: nowrap;
}

.language-toggle {
  background: transparent;
  border: none;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  outline: none;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.language-menu {
  position: absolute;
  right: 0;
  top: 110%;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #020b1a;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  min-width: 180px;
  display: none;
  /* HIDDEN by default */
  z-index: 1100;
}

.language-menu li a {
  display: block;
  padding: 6px 14px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.language-menu li a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.language-switcher.open .language-menu {
  display: block;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: url("../img/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 64px 0 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(5, 22, 60, 0.90) 0%,
      rgba(5, 22, 60, 0.78) 40%,
      rgba(5, 22, 60, 0.65) 100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  /* Keep content above the dark overlay */
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.25;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-text p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 40px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.hero-bullets li span {
  margin-right: 12px;
  color: var(--accent-color);
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-text,
.hero-side {
  align-self: flex-start;
}

.hero-info-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 32px;
}

.hero-info-card h3 {
  color: var(--accent-color);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.hero-info-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-info-card .desc {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.hero-media {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: #05183d;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.4s;
}

.hero-media:hover img {
  opacity: 1;
}

.hero-media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(245, 166, 35, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-media-play::after {
  content: "";
  display: block;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px;
}

.hero-media:hover .hero-media-play {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--accent-color);
}

/* Business Scope Grid */
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .scope-grid {
    grid-template-columns: 1fr;
  }
}

.scope-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent-color);
  transition: var(--transition);
}

.scope-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.scope-card h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-alt);
}

.scope-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scope-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.scope-icon {
  font-size: 1.5rem;
  line-height: 1;
  background: var(--bg-alt);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.scope-text h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 6px;
  font-weight: 600;
}

.scope-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Workflow Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  position: relative;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.step {
  text-align: center;
  position: relative;
}

.step::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: rgba(245, 166, 35, 0.3);
  z-index: 0;
}

.step:last-child::after {
  display: none;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #fff;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.15);
  transition: 0.3s;
}

.step:hover .step-number {
  background-color: var(--accent-color);
  color: #fff;
}

.step h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .step::after {
    display: none;
  }

  .step {
    display: flex;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
  }

  .step-number {
    margin: 0;
    flex-shrink: 0;
  }

  .step h4 {
    margin-bottom: 6px;
    margin-top: 4px;
  }
}

/* Cases */
.case-card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.case-image {
  background-color: var(--bg-alt);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-color);
}

.case-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
  transition: 0.3s;
}

.case-card:hover .case-card-image {
  transform: scale(1.05);
}

.case-body {
  padding: 32px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.case-body h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 700;
}

.case-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-card {
    order: -1;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
  }
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.about-text p strong {
  color: var(--primary-color);
}

.about-card {
  text-align: center;
}

.founder-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-alt);
}

.about-card h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.about-card p {
  font-size: 1rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 24px;
}

.about-info {
  text-align: left;
  list-style: none;
  border-top: 1px solid var(--bg-alt);
  padding-top: 24px;
  margin-top: 12px;
}

.about-info li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-info li span {
  color: var(--accent-color);
  font-weight: bold;
  flex-shrink: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #fff;
}

.contact-info>p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.contact-item {
  margin-bottom: 24px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
}

.contact-value a {
  color: #fff;
}

.contact-value a:hover {
  color: var(--accent-color);
}

.contact-form-wrap {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
}

.contact-form-wrap h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background-color: var(--bg-alt);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* allow the new description paragraph to span full width */
}

.footer-description {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.footer-text-small {
  text-align: right;
  max-width: 500px;
  line-height: 1.6;
}

/* Utils */
.placeholder-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  padding: 60px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

/* Mobile */
@media (max-width: 768px) {
  .site-header .header-inner {
    padding: 0 16px;
  }

  .site-logo {
    width: 40px;
    height: 40px;
  }

  .site-title {
    font-size: 18px;
    max-width: calc(100vw - 120px);
  }

  .hero {
    padding: 48px 0 48px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(11, 24, 61, 0.98);
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav-list--open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }



  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-text-small {
    text-align: center;
  }
}

/* Global Language Dropdown */
.lang-dropdown {
  position: relative;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.lang-dropdown-toggle {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.lang-dropdown-toggle:hover {
  color: var(--accent-color);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  background: #fff;
  min-width: 140px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px 0;
  z-index: 1010;
  list-style: none;
  margin: 0;
}

.lang-dropdown:hover .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 28px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.04);
}

.lang-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.lang-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.lang-dropdown-menu a:hover {
  background-color: var(--bg-alt);
  color: var(--primary-color);
  padding-left: 24px;
}

.lang-dropdown-menu a.active {
  color: var(--accent-color);
  font-weight: 700;
  background-color: rgba(245, 166, 35, 0.05);
}

@media (max-width: 768px) {
  .lang-dropdown {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 16px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    display: block;
  }

  .lang-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 12px 0 0 16px;
    min-width: 100%;
    border-radius: 0;
  }

  .lang-dropdown-menu::before {
    display: none;
  }

  .lang-dropdown-menu a {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
  }

  .lang-dropdown-menu a:hover {
    background: transparent;
    color: #fff;
    padding-left: 8px;
  }

  .lang-dropdown-menu a.active {
    background: transparent;
  }
}

/* Sub Navigation (Second-Level Tabs) */
.subnav {
  margin: 24px 0 32px;
}

.subnav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.subnav-list a {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  background: #fff;
  color: var(--text-main);
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.subnav-list a:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(245, 166, 35, 0.3);
}

.section--dark .subnav-list a,
.section--highlight .subnav-list a {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.section--dark .subnav-list a:hover,
.section--highlight .subnav-list a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

@media (max-width: 768px) {
  .subnav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    /* For scrollbar breathing room */
  }
}

/* Specific Section Adjustments for Subnav Pages */
.hero-subnav {
  padding-top: 100px;
  /* More breathing room below site header if needed */
  padding-bottom: 40px;
}

.page-header {
  padding: 60px 0 40px;
  background-color: #fff;
  border-bottom: 1px solid var(--bg-alt);
}

.page-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 800px;
}



.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.8rem;
  opacity: 0.6;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  min-width: 220px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 12px 0;
  z-index: 1010;
  list-style: none;
  margin: 0;
  border-top: 3px solid var(--accent-color);
}

.nav-dropdown:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-submenu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 3px solid var(--accent-color);
  border-top: 3px solid var(--accent-color);
}

.nav-submenu li {
  margin: 0;
  padding: 0;
}

.nav-submenu a {
  display: block;
  padding: 10px 24px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-submenu a:hover {
  background-color: var(--bg-alt);
  color: var(--primary-color);
  padding-left: 28px;
}

@media (max-width: 900px) {
  .nav-submenu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-top: none;
    border-left: 2px solid var(--accent-color);
    border-radius: 0;
    margin: 8px 0 8px 16px;
    padding: 8px 0;
    width: auto;
    min-width: 0;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-submenu a {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
  }

  .nav-submenu a:hover {
    background: transparent;
    color: #fff;
    padding-left: 16px;
  }
}

/* 顶部导航布局 - ZH */
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 24px;
  display: flex;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  width: 64px;
  height: auto;
  margin-right: 12px;
}

.nav-brand-text {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
}

.primary-nav {
  margin-left: 32px;
  flex: 1;
  /* push language switcher to the far right */
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-links>li>a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links>li>a:hover {
  text-decoration: underline;
}

/* 下拉子菜单 */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #041733;
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  list-style: none;
  display: none;
  z-index: 1100;
}

.submenu li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #ffffff;
  text-decoration: none;
  white-space: normal;
  line-height: 1.4;
}

.submenu li a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.has-submenu:hover .submenu {
  display: block;
}

/* 右上角语言切换 */
.nav-lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 24px;
}

.nav-lang-switcher * {
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
}

/* Hero 下方的快捷入口条 - 现在悬浮于底部 */
.section-shortcuts {
  background: #f5f7fb;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  /* 顶部阴影增加立体感 */
}

.section-shortcuts-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-shortcuts-inner::-webkit-scrollbar {
  display: none;
}

.section-shortcut {
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.section-shortcut:hover {
  background: #ffb53a;
  border-color: #ffb53a;
  color: #021634;
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 10px 16px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-brand-text {
    font-size: 16px;
  }
}

/* Fixes for mobile display of new header structure */
@media (max-width: 768px) {

  /* Make the hamburger button visible and usable */
  .site-header .nav-toggle {
    display: block;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1010;
  }

  /* Adjust brand text size and space to prevent overlapping with toggle */
  .nav-brand-text {
    font-size: 16px;
    max-width: calc(100vw - 100px);
  }

  /* Hide the desktop nav horizontally */
  .primary-nav {
    margin-left: 0;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(4, 23, 51, 0.98);
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  /* Show the mobile nav vertically when JS toggles nav-list--open */
  .nav-links.nav-list--open {
    display: flex;
  }

  .nav-links>li {
    width: 100%;
    margin-bottom: 12px;
  }

  .nav-links>li>a {
    font-size: 16px;
    display: block;
    padding: 8px 0;
  }

  /* Reset submenu interactions for mobile tap interface */
  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    margin-top: 8px;
  }

  /* Show submenu natively on mobile to avoid hover issues */
  .has-submenu:focus-within .submenu,
  .has-submenu:active .submenu {
    display: block;
  }

  /* Shift the language switcher to standard document flow inside the mobile menu box */
  .nav-inner {
    position: static;
  }

  .nav-lang-switcher {
    display: none;
    /* Hide top-right language switcher on true mobile */
  }

}

/* --- Dedicated Mobile Aesthetic Optimizations --- */
@media (max-width: 768px) {

  /* Typography & Section Spacing */
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .page-title {
    font-size: 2rem;
  }

  /* Hero Overrides */
  .hero {
    padding: 40px 0 20px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 16px;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-bullets li {
    font-size: 0.95rem;
  }

  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 12px;
  }

  /* Cards Overrides */
  .card,
  .card-small {
    padding: 24px 20px;
  }

  .scope-card {
    padding: 24px;
  }

  .hero-info-card {
    padding: 24px;
  }

  /* Contact Adjustments */
  .contact-info {
    padding: 24px 20px;
  }

  .contact-form-wrap {
    padding: 24px 20px;
  }

  .contact-info h3,
  .contact-form-wrap h3 {
    font-size: 1.4rem;
  }
}

/* 默认隐藏手机语言菜单，桌面语言菜单保持现状 */
.nav-lang-mobile {
  display: none !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 仅在手机端显示手机语言菜单 */
@media (max-width: 768px) {
  .nav-lang-mobile {
    display: block !important;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 8px;
  }

  .nav-lang-toggle {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 6px 0;
    font-size: 14px;
    color: #ffffff;
  }

  .nav-lang-mobile-list {
    display: none !important;
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
  }

  .nav-lang-mobile-list li a {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
  }

  .nav-lang-mobile.open .nav-lang-mobile-list {
    display: block !important;
  }
}

/* 桌面端：继续隐藏手机语言菜单，保持当前桌面导航不变 */
@media (min-width: 769px) {
  .nav-lang-mobile {
    display: none !important;
  }
}

/* Global text optimizations for long words to prevent layout breaks across all languages */
p,
.card-text,
.scope-text p,
.step p,
.case-body p,
.footer-description,
li {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
}
/* === Japanese (JA) Specific Footer & Shortcuts Layout Fixes === */
html[lang="ja"] .footer-description {
  max-width: 1050px;
  font-size: 0.85rem;
  line-height: 1.8;
  padding: 0 15px;
}

html[lang="ja"] .footer-text-small {
  max-width: 600px;
  font-size: 0.85rem;
}

html[lang="ja"] .section-shortcut {
  font-size: 12px;
  padding: 6px 12px;
}
