/* RBM Main CSS */

:root {
  --navy: #011235;
  --accent: #db0a40;
  --text: #333333;
  --font-body: "Bull", "Segoe UI", sans-serif;
  --font-display: "Bull", "Segoe UI", sans-serif;
  --size-body: 1.05rem;
  --size-body-lg: 1.125rem;
  --size-nav: 1rem;
  --size-footer: 0.95rem;
  --size-lang: 0.95rem;
  --size-button: 0.95rem;
}

@font-face {
    font-family: "Bull";
    src: url("../fonts/Bull-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bull";
    src: url("../fonts/Bull-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* FORCE Bull everywhere (including form controls) */
*,
*::before,
*::after {
    font-family: "Bull" !important;
}

html {
    font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  font-size: var(--size-body);
  background:
    linear-gradient(120deg, rgba(1, 18, 53, 0.68), rgba(1, 18, 53, 0.25)),
    url("../images/main-banner-en.jpg") center/cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.35));
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

header {
  box-shadow: 0 10px 24px rgba(1, 18, 53, 0.2);
}

footer {
  box-shadow: 0 -8px 20px rgba(1, 18, 53, 0.12);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Bull" !important;
    font-weight: 500;
}

h1,
h1.font-display {
  font-size: clamp(2.6rem, 4vw, 3.4rem) !important;
}

h2,
h2.font-display {
  font-size: clamp(2rem, 3vw, 2.6rem) !important;
}

h3,
h3.font-display {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem) !important;
}

h4 {
  font-size: 1.35rem;
}

h5 {
  font-size: 1.15rem;
}

h6 {
  font-size: 1rem;
}

main {
  font-size: var(--size-body-lg);
}

main p,
main li,
main td,
main th,
main label,
main input,
main select,
main textarea,
main .form-control,
main .form-select,
main .form-check-label {
  font-size: var(--size-body) !important;
}

small {
  font-size: 0.9rem;
}

button,
input[type="submit"],
.btn,
a.button,
a.btn {
  font-size: var(--size-button) !important;
}

.rbm-lang-select,
header label[for="langSelect"] {
  font-size: var(--size-lang) !important;
}

header nav {
  font-size: var(--size-nav) !important;
}

footer,
footer a,
footer span {
  font-size: var(--size-footer) !important;
}

strong,
b,
label,
th,
button,
input[type="submit"],
.font-medium,
.font-semibold,
.font-bold {
    font-weight: 500;
}

.rbm-lang-select {
  background-color: #ffffff;
  color: #000000;
}

.rbm-lang-select option {
  background-color: #ffffff;
  color: #000000;
}

.rbm-lang-select option:checked,
.rbm-lang-select option:focus {
  background-color: var(--accent);
  color: #ffffff;
}

.rbm-lang-select option:hover {
  background-color: var(--accent);
  color: #ffffff;
}

button[class*="bg-[#db0a40]"],
a[class*="bg-[#db0a40]"],
input[type="submit"][class*="bg-[#db0a40]"] {
  color: #ffffff;
}

main {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
}

.rbm-fade-up {
    opacity: 0;
    transform: translateY(18px);
    animation: rbmFadeUp 700ms ease-out forwards;
}

.rbm-fade-in {
    opacity: 0;
    animation: rbmFadeIn 700ms ease-out forwards;
}

.rbm-float {
    animation: rbmFloat 4.5s ease-in-out infinite;
}

.rbm-stagger > * {
    opacity: 0;
    transform: translateY(10px);
    animation: rbmFadeUp 600ms ease-out forwards;
}

    .rbm-stagger > *:nth-child(1) {
        animation-delay: 120ms;
    }

    .rbm-stagger > *:nth-child(2) {
        animation-delay: 240ms;
    }

    .rbm-stagger > *:nth-child(3) {
        animation-delay: 360ms;
    }

    .rbm-stagger > *:nth-child(4) {
        animation-delay: 480ms;
    }

    .rbm-stagger > *:nth-child(5) {
        animation-delay: 600ms;
    }

.rbm-panel {
    min-height: clamp(22rem, 55vh, 30rem);
}

@keyframes rbmFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rbmFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes rbmFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rbm-fade-up,
    .rbm-fade-in,
    .rbm-float,
    .rbm-stagger > * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
