:root {
  --ui-font-body: "Inter", "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ui-font-heading: "Sora", "Inter", "Oswald", system-ui, sans-serif;
}

html, body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ui-font-body) !important;
  line-height: 1.62;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e6e6e6;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-mark {
  width: 300px;
  height: 110px;
  object-fit: contain;
  transform: scale(1.12);
  transform-origin: left center;
}

body.dark-mode .brand,
body.global-theme-page.dark-mode .brand {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

body.dark-mode .brand-mark,
body.global-theme-page.dark-mode .brand-mark {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.28));
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ui-font-heading);
  letter-spacing: -0.01em;
}

/* Improve CJK headline wrapping to reduce orphaned single characters. */
h1, h2, h3 {
  text-wrap: balance;
}

p, li, small, label {
  line-height: 1.65;
  /* Reduce orphaned single-character CJK lines. */
  word-break: keep-all;
  text-wrap: pretty;
}

.nav-links a,
.nav-link {
  letter-spacing: 0.9px !important;
  font-weight: 700 !important;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 16px;
  text-transform: uppercase;
  color: #111827;
  margin-left: 20px;
  min-width: 0;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 18px;
  flex-shrink: 0;
}

.lang-switcher {
  position: relative;
}

.lang-toggle {
  width: 58px;
  height: 58px;
  border: 4px solid #ffffff;
  background: #ffffff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  transform: translateY(-1px);
}

.lang-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 122px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #d7dce6;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
  display: none;
  z-index: 80;
}

.lang-menu.open {
  display: grid;
  gap: 6px;
}

.lang-option {
  border: 1px solid #dbe2ed;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 9px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-option.active {
  border-color: #94a3b8;
  background: #eef2ff;
}

.search-box {
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.25s ease, opacity 0.25s ease;
}

.search-box.open {
  width: 180px;
  opacity: 1;
}

.search-input {
  width: 100%;
  height: 40px;
  border: 1px solid #d7dce6;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 14px;
  color: #111827;
  outline: none;
}

.search-toggle {
  width: 58px;
  height: 58px;
  border: 4px solid #ffffff;
  background: #ffffff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.search-toggle:hover {
  transform: translateY(-1px);
}

.nav-icon {
  width: 26px;
  height: 26px;
  border: 2px solid #333;
  border-radius: 50%;
  position: relative;
}

.nav-icon::after {
  content: "";
  width: 8px;
  height: 2px;
  background: #333;
  position: absolute;
  right: -8px;
  bottom: 0;
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .nav-bar {
    height: auto;
    min-height: 96px;
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 12px 0;
  }

  .brand-mark {
    width: 210px;
    height: 74px;
    transform: none;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 14px;
    font-size: 15px;
    padding-bottom: 4px;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

.card,
.about-block,
.section-card,
.service-card,
.blog-card,
.faq-item,
.faq-item-mini,
.mv-card,
.format-card,
.approach-card,
.cycle-step,
.comparison-shell,
.book-modal-card,
.contact-card,
.client-item,
.programme-item {
  border-radius: 14px;
}

.about-cta-btn,
.hero-cta,
.btn,
.blog-cta,
.contact-cta,
.showcase-book-btn {
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.about-cta-btn:hover,
.hero-cta:hover,
.btn:hover,
.blog-cta:hover,
.contact-cta:hover,
.showcase-book-btn:hover {
  transform: translateY(-1px);
}

body.dark-mode,
body.global-theme-page.dark-mode {
  color-scheme: dark;
  --ink: #e5e7eb;
  --muted: #cbd5e1;
}

body.dark-mode .nav,
body.dark-mode .navbar,
body.global-theme-page.dark-mode .nav,
body.global-theme-page.dark-mode .navbar,
body.global-theme-page.dark-mode header {
  background: rgba(30, 41, 59, 0.96) !important;
  border-bottom-color: #475569 !important;
}

body.dark-mode .lang-toggle,
body.global-theme-page.dark-mode .lang-toggle {
  border-color: #334155;
  background: #0f172a;
}

body.dark-mode .lang-menu,
body.global-theme-page.dark-mode .lang-menu {
  border-color: #334155;
  background: #0f172a;
}

body.dark-mode .lang-option,
body.global-theme-page.dark-mode .lang-option {
  border-color: #334155;
  background: #1e293b;
  color: #e2e8f0;
}

body.dark-mode .lang-option.active,
body.global-theme-page.dark-mode .lang-option.active {
  border-color: #64748b;
  background: #334155;
}

body.dark-mode :is(.card, .about-block, .section-card, .service-card, .blog-card, .faq-item, .faq-item-mini, .mv-card, .format-card, .approach-card, .cycle-step, .comparison-shell, .book-modal-card, .contact-card, .client-item, .programme-item) {
  border-color: #334155 !important;
}

body.dark-mode :is(.comparison-table-wrap, .comparison-table, .comparison-table td, .comparison-table th) {
  background-color: #0f172a;
}

body.dark-mode :is(p, li, small, label) {
  color: #cbd5e1;
}

body.dark-mode :is(h1, h2, h3, h4, h5, h6) {
  color: #f8fafc;
}

body.dark-mode .faq-btn,
body.global-theme-page.dark-mode .faq-btn {
  color: #e5e7eb !important;
}

body.dark-mode .faq-btn span:last-child,
body.global-theme-page.dark-mode .faq-btn span:last-child {
  color: #cbd5e1 !important;
}

body.dark-mode .faq-panel,
body.global-theme-page.dark-mode .faq-panel {
  color: #cbd5e1 !important;
}

#google_translate_element {
  position: fixed;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

/* Hide remaining Google Translate floating popups/launcher UI */
.goog-te-gadget-simple,
.goog-te-gadget-icon,
.goog-tooltip,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-yAWNEb-L7lbkb {
  display: none !important;
}

body {
  top: 0 !important;
}

/* Footer legal link (Terms & Policy) */
.footer-copyright a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-copyright a:hover {
  color: #1d4ed8;
}
body.dark-mode .footer-copyright a,
body.global-theme-page.dark-mode .footer-copyright a {
  color: #93c5fd;
}
body.dark-mode .footer-copyright a:hover,
body.global-theme-page.dark-mode .footer-copyright a:hover {
  color: #bfdbfe;
}

/* Footer map: address line must stay readable in dark mode (beats inline greys + global p rules) */
body.dark-mode .location-map-text,
body.global-theme-page.dark-mode .location-map-text,
body.dark-mode .location-map-head .location-map-text,
body.global-theme-page.dark-mode .location-map-head .location-map-text {
  color: #e2e8f0 !important;
}

body.dark-mode h3.location-map-title,
body.global-theme-page.dark-mode h3.location-map-title,
body.dark-mode p.location-map-title,
body.global-theme-page.dark-mode p.location-map-title {
  color: #f8fafc !important;
}
