/* International Wire — fee quiz (build D). Base: fonts, tokens, header, buttons, footer, reveal. */

@font-face { font-family: "Wire Display"; src: url("../assets/type/type-display.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Wire Body"; src: url("../assets/type/type-body.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #201e1e;
  --brand: #0b1e4e;
  --accent: #ed5257;
  --accent-dark: #df434a;
  --muted: #737373;
  --canvas: #f4efea;
  --canvas-m: #f6f1ed;
  --paper: #fffcfa;
  --fill: #f5f5f5;
  --hairline: #dedede;
  --frame: calc(100% - 200px);
  --frame-max: 1720px;
}

html {
  font-family: "Wire Display", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
body.wire-locked { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Header */
.wire-page { max-width: 1920px; margin: 0 auto; }
.wire-header { display: flex; align-items: center; justify-content: space-between; width: var(--frame); max-width: var(--frame-max); height: 88px; margin: 0 auto; padding: 0 20px; }
.wire-header__brand, .wire-footer__brand { color: var(--brand); font-size: 23px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.wire-header__nav { display: flex; align-items: center; gap: 24px; }
.wire-header__about { color: var(--ink); font-family: "Wire Body", Arial, sans-serif; font-size: 16px; text-decoration: none; }

/* Buttons */
.wire-cta { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 500; text-align: center; text-decoration: none; transition: background-color .24s ease, transform .24s ease, box-shadow .24s ease; }
.wire-cta:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(237, 82, 87, .18); }
.wire-cta:active { transform: translateY(0); box-shadow: none; }
.wire-cta_s { min-width: 107px; height: 40px; padding: 0 12px; font-size: 16px; font-weight: 400; letter-spacing: -.02em; }

/* Footer */
.wire-footer { width: var(--frame); max-width: var(--frame-max); height: 350px; margin: 210px auto 0; }
.wire-footer__line { height: 1px; background: var(--hairline); }
.wire-footer__brand { display: inline-block; margin-top: 49px; font-size: 32px; }
.wire-footer__meta { display: flex; justify-content: space-between; gap: 24px; margin-top: 47px; font-size: 17px; }
.wire-footer__meta p { margin: 0; color: var(--muted); }
.wire-footer__legal { display: flex; gap: 18px; padding-right: 10px; white-space: nowrap; }
.wire-footer__legal a { color: inherit; text-decoration: none; }
.wire-footer__legal a:hover, .wire-footer__legal a:focus-visible { text-decoration: underline; }

/* Reveal on scroll (js/reveal.js adds .pending at start and .seen when in view) */
.wire-reveal { transition: opacity .75s ease, translate .75s cubic-bezier(.2, .7, .15, 1); }
.wire-reveal.pending { opacity: 0; translate: 0 24px; }
.wire-reveal.pending.seen { opacity: 1; translate: 0 0; }

@media (max-width: 1599px) and (min-width: 901px) {
  .wire-header, .wire-footer { width: calc(100% - 80px); }
  .wire-footer { height: 350px; margin-top: 12vw; }
}

@media (max-width: 900px) {
  .wire-header { width: 100%; max-width: none; height: 64px; padding: 0 20px; }
  .wire-header__brand, .wire-footer__brand { font-size: 18px; }
  .wire-header__nav { gap: 0; }
  .wire-header__about { display: none; }
  .wire-cta_s { width: 110px; min-width: 110px; height: 36px; font-size: 15px; font-weight: 500; }
  .wire-footer { width: 100%; height: auto; min-height: 174px; margin: 0; padding: 27px 20px 22px; }
  .wire-footer__line { display: none; }
  .wire-footer__brand { margin: 0; }
  .wire-footer__meta { display: block; margin-top: 17px; font-size: 12px; }
  .wire-footer__legal { gap: 11px; margin-top: 32px; padding: 0; color: var(--ink); font-size: 13px; }
}

@media (max-width: 370px) {
  .wire-header { padding: 0 16px; }
  .wire-header__brand { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .wire-reveal.pending { opacity: 1; translate: none; }
}
