/* ==========================================================
   JS Holding Company Limited – Maintenance page
   Colors sampled from the approved design
   ========================================================== */

:root {
  --blue-base:  #003C97;   /* background */
  --blue-light: #0043A8;   /* diagonal band */
  --white:      #FFFFFF;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--blue-base);
  min-height: 100vh;
  min-height: 100dvh;          /* correct height on mobile browsers */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Background facets ---------- */
.facets {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
  /* space between logo and message scales with viewport, as in the design */
  gap: clamp(3rem, 14vh, 11rem);
}

/* ---------- Logo ---------- */
.brand {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo {
  display: block;
  width: clamp(200px, 32vw, 320px);
  height: auto;
}

/* ---------- Message ---------- */
.message h1 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  font-size: clamp(1.6rem, 5.2vw, 4.25rem);
  /* long single word must never overflow narrow phones */
  overflow-wrap: anywhere;
}

.message p {
  margin-top: clamp(0.75rem, 2vh, 1.4rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(0.8rem, 1.9vw, 1.6rem);
  line-height: 1.4;
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .page {
    gap: clamp(2.5rem, 10vh, 5rem);
  }
  .message p {
    letter-spacing: 0.16em;
  }
}

/* ---------- Short landscape phones ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .page {
    gap: 1.75rem;
    padding-block: 1.25rem;
  }
  .logo {
    width: clamp(150px, 22vw, 220px);
  }
}

/* ---------- Large displays ---------- */
@media (min-width: 1920px) {
  .logo {
    width: clamp(320px, 18vw, 440px);
  }
  .message h1 {
    font-size: clamp(4.25rem, 3.4vw, 5.5rem);
  }
  .message p {
    font-size: clamp(1.6rem, 1.2vw, 2rem);
  }
}

/* ---------- Print / reduced motion (nothing animates, kept for completeness) ---------- */
@media print {
  .facets { display: none; }
  body { background: #fff; color: #000; }
}
