/* BSG 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: #0b1b36;
  --orange: #f0621a;
  --orange-badge: #e75c17;
  --gold: #fda330;
  --deep: #b34610;
  --slate: #273443;
  --link: #0a58c8;
  --text: #1a2840;
  --card: #fdf8ef;
  --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 { width: 260px; margin-bottom: 28px; }
.brand img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }

h1 {
  margin: 0 0 14px;
  font-size: 2.1rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--navy);
}
h1 .accent { color: var(--orange); }
.lead { margin: 0 0 14px; font-size: 1.15rem; line-height: 1.45; }
.rule { width: 56px; height: 4px; background: var(--gold); 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: 16px;
  margin-bottom: 14px;
  border-radius: 22px;
  background: var(--card);
}

.badge {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-badge);
}
.badge svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.card h2 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.card-body { min-width: 0; }
.contact { list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.contact li:last-child { margin-bottom: 0; }
.contact a { overflow-wrap: anywhere; }
.ico { width: 22px; height: 22px; fill: none; stroke: var(--orange-badge); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.phone { color: var(--navy); text-decoration: underline; }

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

/* ---------- Wide screens: the designed layout ---------- */
@media (min-width: 56.25em) and (min-height: 31.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: 46.77%;
    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: 52%;
    height: 16%;
  }
  .wave-light { fill: #f05f17; }
  .wave-deep { fill: var(--deep); }

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

  .brand {
    position: absolute;
    left: 3.95%; top: 4.46%;
    width: 32.06%;
    margin: 0;
  }

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

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

  .rule {
    position: absolute;
    left: 4.37%; top: 48.6%;
    width: 4.6%; height: 0.55%;
    margin: 0;
  }

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

  .card {
    position: absolute;
    left: 4.37%; top: 60.3%;
    width: 45.5%;
    height: 24.9%;
    margin: 0;
    padding: 0 0 0 1.9%;
    gap: 0;
    border-radius: calc(var(--u) * 1.9);
  }

  .badge { width: calc(var(--u) * 7.6); height: calc(var(--u) * 7.6); position: relative; margin-bottom: calc(var(--u) * 3); }
  .badge svg { width: calc(var(--u) * 3.6); height: calc(var(--u) * 3.6); stroke-width: 1.5; }
  .badge::after {
    content: "";
    position: absolute;
    right: calc(var(--u) * -2.3); top: calc(var(--u) * -1.4); bottom: calc(var(--u) * -4.4);
    width: 1px;
    background: rgba(11, 27, 54, 0.18);
  }
  .card-body { margin-left: calc(var(--u) * 4.7); margin-bottom: calc(var(--u) * 0.9); }

  .card h2 { margin: 0 0 calc(var(--u) * 0.45); font-size: calc(var(--u) * 1.62); }
  .contact { font-size: calc(var(--u) * 1.62); }
  .contact li { gap: calc(var(--u) * 1.55); height: calc(var(--u) * 2.72); margin: 0; }
  .contact a { overflow-wrap: normal; white-space: nowrap; }
  .ico { width: calc(var(--u) * 2); height: calc(var(--u) * 2); }
}

/* very large screens: cap the stage (and the footer bar) at 2200px wide so it fills large monitors without growing unbounded */
@media (min-width: 137.5em) {
  :root { --stage-w: min(2200px, calc(100vh * 1672 / 941)); }
}

/* wide screens: bottom-align the stage and carry the slate bar across the full width */
@media (min-width: 56.25em) and (min-height: 31.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(--slate);
    z-index: 0;
  }
}
