/* NTARep maintenance page: static, no PHP and no JavaScript.
   The wide layout is drawn on a 1672 x 941 stage and scales with its width. */

:root {
  --navy: #032145;
  --navy-deep: #013e74;
  --blue: #0179c3;
  --accent: #025dcb;
  --link: #0b5cb8;
  --rule: #0a8ecb;
  --text: #13294d;
  --stage-w: min(100vw, calc(100vh * 1672 / 941));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }
a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* ---------- Small screens: simple stacked layout ---------- */
.stage { padding: 20px 16px 80px; position: relative; min-height: 100vh; overflow: hidden; }
.hero, .wave { display: none; }

.brand {
  background: var(--blue);
  width: 220px;
  padding: 8px 10px;
  margin-bottom: 28px;
}
.brand img { display: block; width: 100%; height: auto; }

h1 {
  margin: 0 0 14px;
  font-size: 2.1rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--navy);
}
h1 .accent { color: var(--accent); }
.lead { margin: 0 0 14px; font-size: 1.15rem; line-height: 1.45; }
.rule { width: 56px; height: 4px; background: var(--rule); margin: 0 0 14px; }
.assist { margin: 0 0 22px; font-size: 1rem; line-height: 1.45; }
.ln { display: inline; }

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 22px;
}
.card-agent { background: #ebf4fd; }
.card-worksite { background: #ecf1f3; }
.card-helpdesk { background: #fef6e8; }
.card-customer { background: #edf5e9; }

.badge {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.card-agent .badge { background: #01548f; }
.card-worksite .badge { background: #027acd; }
.card-helpdesk .badge { background: #fc9402; }
.card-customer .badge { background: #15834a; }
.badge svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.card h2 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.card-body { min-width: 0; }
.contact a { overflow-wrap: anywhere; }
.contact { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 8px; font-size: 1rem; }
.ico { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.phone { color: var(--navy); text-decoration: underline; }
.sep { display: none; }

/* footer bar on small screens */
.stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 44px;
  background: linear-gradient(to bottom, #1d90e6 0 5px, var(--navy-deep) 5px);
}

/* ---------- Wide screens: the designed layout ---------- */
@media (min-width: 56.25em) {
  .stage {
    width: var(--stage-w);
    aspect-ratio: 1672 / 941;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    --u: calc(var(--stage-w) / 100); /* 1% of the stage width */
  }
  .stage::after { display: none; }

  .hero {
    display: block;
    position: absolute;
    z-index: 0;
    pointer-events: none;
    right: 0; top: 0;
    width: 49.76%;
    height: 100%;
    background: url("assets/hero.jpg") left top / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%);
            mask-image: linear-gradient(to right, transparent 0, #000 20%);
  }

  .wave {
    display: block;
    position: absolute;
    z-index: 0;
    pointer-events: none;
    left: 0; bottom: 0;
    width: 50.4%;
    height: 16%;
  }
  .wave-light { fill: #1d90e6; }
  .wave-navy { fill: var(--navy-deep); }

  .content { position: absolute; inset: 0; z-index: 1; }

  .brand {
    position: absolute;
    left: 4.13%; top: 2.23%;
    width: 24.6%;
    padding: 0.6% 0.9%;
    margin: 0;
  }

  h1 {
    position: absolute;
    left: 4.1%; top: 17.6%;
    margin: 0;
    font-size: calc(var(--u) * 4.45);
    line-height: 0.98;
    letter-spacing: -0.01em;
  }

  .lead {
    position: absolute;
    left: 4.3%; top: 32.9%;
    margin: 0;
    font-size: calc(var(--u) * 1.78);
    line-height: 1.2;
    color: var(--text);
  }
  .ln { display: block; }

  .rule {
    position: absolute;
    left: 4.3%; top: 42%;
    width: 5.7%; height: 0.5%;
    margin: 0;
  }

  .assist {
    position: absolute;
    left: 4.35%; top: 44%;
    margin: 0;
    font-size: calc(var(--u) * 1.46);
    line-height: 1.3;
  }

  .card {
    position: absolute;
    left: 4.5%;
    width: 45.9%;
    height: 9.2%;
    margin: 0;
    padding: 0 0.8% 0 1.25%;
    gap: 2%;
    border-radius: calc(var(--u) * 1.6);
  }
  .card-agent { top: 51.6%; }
  .card-worksite { top: 61.4%; }
  .card-helpdesk { top: 71.5%; }
  .card-customer { top: 81.7%; }

  .badge { width: calc(var(--u) * 4.4); height: calc(var(--u) * 4.4); position: relative; }
  .badge svg { width: calc(var(--u) * 2.3); height: calc(var(--u) * 2.3); stroke-width: 1.6; }
  .badge::after {
    content: "";
    position: absolute;
    right: calc(var(--u) * -2.05); top: calc(var(--u) * 0.2); bottom: calc(var(--u) * 0.2);
    width: 1px;
    background: rgba(3, 33, 69, 0.3);
  }
  .card-body { margin-left: calc(var(--u) * 2); }

  .card h2 { margin: 0 0 calc(var(--u) * 0.2); font-size: calc(var(--u) * 1.5); }
  .contact { display: flex; font-size: calc(var(--u) * 1.45); gap: calc(var(--u) * 0.2) calc(var(--u) * 0.6); flex-wrap: nowrap; }
  .sep { display: inline; color: var(--navy); }
  .contact a { white-space: nowrap; overflow-wrap: normal; }
  .ico { width: calc(var(--u) * 1.6); height: calc(var(--u) * 1.6); }
}

/* very large screens: keep the stage (and the footer bar) from stretching past the design size */
@media (min-width: 137.5em) {
  :root { --stage-w: min(2200px, calc(100vh * 1672 / 941)); }
}

/* wide screens: bottom-align the stage and carry the navy bar across the full width */
@media (min-width: 56.25em) {
  body { min-height: 100vh; display: flex; flex-direction: column; }
  .stage { margin-top: auto; z-index: 1; }
  body::before {
    content: "";
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(var(--stage-w) * 28 / 1672);
    background: var(--navy-deep);
    z-index: 0;
  }
}
