/*
 * ConnectIQ global styles — shared by index.html and fdm.html.
 *
 * Contains: colour + font tokens, base element styles, text helpers (.eyebrow, .mono, .serif),
 * buttons, the scroll-progress bar, the site header / nav, section + navy-section helpers and the footer.
 * Page-specific styles stay inside each page's own <style> block.
 *
 * After editing this file, bump the ?v= number where it is linked in both pages
 * (e.g. global.css?v=2) so visitors' browsers fetch the new version.
 *
 * Palette: #07111F navy ink, #F4F7F8 paper, #55E6B5 / #21C98F mint.
 * --green-text (#087A56) is the readable mint for small text on light backgrounds.
 */

:root {
  --paper: #f4f7f8;
  --white: #fff;
  --ink: #07111f;
  --text: #07111f;
  --muted: #526174;
  --navy: #07111f;
  --green: #21c98f;
  --mint: #55e6b5;
  --green-dark: #17a374;
  --green-text: #087a56;
  --green-light: #e9f7f2;
  --green-pale: #f1fbf7;
  --line: #e0e7ea;
  --warn: #7a5a14;
  --warn-bg: #fbf3df;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  color: var(--ink);
}
img {
  max-width: 100%;
  height: auto;
}
[hidden] {
  display: none !important;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #21c98f;
  outline-offset: 4px;
}
.serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.05em;
}
.mono {
  font: 10px/1.5 var(--mono);
  letter-spacing: 0.065em;
}
.eyebrow {
  font: 11px/1.5 var(--mono);
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  color: var(--green);
}
.square {
  width: 7px;
  height: 7px;
  background: var(--green);
  display: inline-block;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
}
.skip-link:focus {
  top: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 15px 21px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button span {
  font-size: 18px;
  line-height: 1;
}
.button:hover {
  transform: translateY(-2px);
}
.button.ink {
  background: var(--ink);
  color: #fff;
}
.button.ink:hover {
  background: #13263d;
}
.button.leaf {
  background: var(--mint);
  color: var(--ink);
}
.button.leaf:hover {
  background: var(--green);
}
.button.paper {
  background: var(--paper);
  color: var(--ink);
}
.button.outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.button.outline:hover {
  background: var(--green-light);
}
.button.small {
  padding: 11px 15px;
  min-height: 42px;
  font-size: 12px;
  gap: 18px;
}
.text-link {
  border: 0;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.text-link span {
  transition: transform 0.2s;
}
.text-link:hover span {
  transform: translate(3px, -2px);
}
.scroll-progress {
  height: 2px;
  background: var(--green);
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 99;
  width: 0;
  pointer-events: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 17, 31, 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  height: 84px;
  margin-bottom: -84px;
  border-bottom: 1px solid var(--line);
  padding: 0 3.4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  width: 220px;
  flex-shrink: 0;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.desktop-nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
}
.desktop-nav a {
  padding: 10px 0;
  position: relative;
}
.desktop-nav a:after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.desktop-nav a:hover:after {
  transform: scaleX(1);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 42px;
  padding: 7px;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 7px 0;
}
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(7, 17, 31, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 15px 6% 25px;
}
.mobile-nav a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.section {
  padding: 83px 5.8%;
}
.navy {
  background: var(--navy);
  --ink: #fff;
  --text: #dbe4ee;
  --muted: #aebccc;
  --line: rgba(255, 255, 255, 0.12);
  --green: #55e6b5;
  --green-text: #55e6b5;
  color: var(--text);
}
.navy .button.ink {
  background: var(--green);
  color: #07111f;
}
.navy .button.ink:hover {
  background: var(--mint);
}
.site-header.navy {
  background: rgba(7, 17, 31, 0.7);
}
.section-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-bottom: 42px;
  color: var(--ink);
}
.section-top > .mono {
  font-size: 9px;
  color: var(--muted);
}
.button.forest {
  background: #0f7a5a;
  color: #fff;
}
.button.forest:hover {
  background: #0b6248;
}
.site-footer {
  background: var(--navy);
  color: #9babbc;
  padding: 43px 5.8% 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 0.75fr 0.75fr;
  gap: 40px;
  margin-bottom: 43px;
}
.footer-top p {
  font: 20px/1.35 var(--serif);
  color: #fff;
}
.footer-top > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  align-items: flex-start;
}
.footer-top button {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: #9babbc;
}
@media (max-width: 1180px) {
  .desktop-nav {
    gap: 16px;
  }
}
@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .section {
    padding: 60px 5%;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-top p {
    display: none;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 70px;
    margin-bottom: -70px;
    padding: 0 18px;
    gap: 12px;
  }
  .site-header .brand {
    width: 180px;
  }
  .nav-actions > .button {
    display: none;
  }
  .section {
    padding: 49px 20px;
  }
  .section-top > .mono {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Message shown when JavaScript is off (FDM page) */
noscript {
  display: block;
  padding: 30px;
  font: 16px Arial;
}

/* Pop-up dialogs (contact form on the homepage, Flash & activate region chooser on both pages) */
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 560px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 100px rgba(7, 17, 31, 0.25);
}
dialog::backdrop {
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 21px;
}
.dialog-close {
  border: 0;
  background: none;
  font-size: 24px;
  color: var(--muted);
}
.dialog-body {
  padding: 24px 26px;
}
.dialog-body > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

/* Flash & activate: choose International or China */
.region-dialog {
  border-color: rgba(255, 255, 255, 0.12);
}
.region-dialog h2 {
  color: var(--mint);
}
.region-dialog .region-option:hover {
  background: rgba(85, 230, 181, 0.08);
}
.region-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.region-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.region-option:hover {
  border-color: var(--green);
  background: var(--green-pale);
  transform: translateY(-2px);
}
.region-option strong {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.region-option small {
  font: 10px/1.5 var(--mono);
  color: var(--muted);
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .region-options {
    grid-template-columns: 1fr;
  }
}
