/* X-TOKIO base styles. Layout is defined inline in each page; this file holds shared rules and mobile overrides. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: #1B263B; }
img, svg { max-width: 100%; }
h1, h2, h3, p, dd, strong { overflow-wrap: break-word; }
a { color: #0B2545; }
a:hover { color: #1F6FA8; }
section[id], footer[id] { scroll-margin-top: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #1B7FC4;
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: 16px; top: 12px; z-index: 10; transform: translateY(-200%);
  padding: 10px 16px; background: #0B2545; color: #FFFFFF; border-radius: 8px;
}
.skip-link:focus { transform: none; color: #FFFFFF; }

/* Honeypot field for spam bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-error { margin: 0; padding: 14px 18px; background: #FDECEA; color: #8A1C12; border-radius: 8px; font-size: 16px; }
button[type="submit"] { cursor: pointer; }
fieldset[disabled] { opacity: .55; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; }
.turnstile:empty { display: none; }
button[type="submit"][disabled] { opacity: .6; cursor: progress; }

@media (max-width: 720px) {
  .nav-link { display: none; }
  .site-header > div { flex-wrap: nowrap !important; padding: 14px 16px !important; }
  .site-header nav { gap: 6px !important; flex-wrap: nowrap !important; }
  .site-header nav a:last-child { padding: 10px 12px !important; font-size: 15px !important; white-space: nowrap; }
  .site-header a span { font-size: 20px !important; }
  .hero-title { font-size: 28px !important; }
  .sec-title { font-size: 28px !important; }
  .message-title { font-size: 30px !important; }
  section > div { padding-top: 64px !important; padding-bottom: 64px !important; padding-left: 16px !important; padding-right: 16px !important; }
  h3 { font-size: 22px !important; }
  #service [style*="flex: 1 1"] { min-width: 0; }
  #service [style*="padding: 44px"] { padding: 28px 20px !important; }
  #partnership svg[width="56"] { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
