/* Critical CSS: above-the-fold, minimal set to paint navbar, hero, typography and buttons */
/* Keep this file small. Source of truth: scss/style.scss */

html,
body {
  height: 100%;
  margin: 0;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background-color: #f3f6ff;
  color: #555555;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar / header basics */
@media (min-width: 992px) {
  .nav-bar {
    min-height: 104px;
  }

  .nav-bar::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 104px;
    top: 0;
    left: 0;
    background: #151b2d; /* $primary */
  }
}

.navbar {
  background: #fff;
}

.navbar-brand img {
  height: 60px;
  display: block;
}

.navbar-nav .nav-link {
  padding: 30px 30px;
  color: #333333;
  font-size: 17px;
  font-weight: 500;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #ef6c35; /* $warning */
}

@media (min-width: 992px) {
  .navbar-light {
    border-radius: 60px;
  }

  .navbar-expand-lg {
    flex-flow: row nowrap;
    justify-content: flex-start;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }

  .navbar-expand-lg > .container,
  .navbar-expand-lg > .container-fluid,
  .navbar-expand-lg > .container-lg,
  .navbar-expand-lg > .container-md,
  .navbar-expand-lg > .container-sm,
  .navbar-expand-lg > .container-xl {
    flex-wrap: nowrap;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

/* Hero / header image and layout */
.home-header,
.page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-header {
  position: relative;
  overflow: hidden;
  background-color: #151b2d;
  margin-top: -45px;
  height: clamp(500px, 60vw, 800px);
}

.home-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.home-header-picture {
  position: absolute;
  inset: 0;
}

.home-header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-header > div {
  position: relative;
  z-index: 1;
}

.page-header {
  position: relative;
  overflow: hidden;
  background-color: #151b2d;
  margin-top: -45px;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.page-header-picture {
  position: absolute;
  inset: 0;
}

.page-header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-header > div {
  position: relative;
  z-index: 1;
}

/* Ensure any remaining <i class="fa-..."> placeholders keep layout stable */
i[class*="fa"] {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.about-header,
.contact-header,
.career-header {
  height: clamp(240px, 40vw, 400px);
}

.display-3 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: #fff;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

/* Buttons (primary CTA) */
.btn {
  font-weight: 500;
  padding: 10px 25px;
  border-radius: 100px;
}

.btn-warning {
  background-color: #ef6c35;
  border-color: #ef6c35;
  color: #fff;
}

.btn-outline-warning {
  color: #ef6c35;
  border: 1px solid #ef6c35;
  background: transparent;
}

/* Simple utility for visible images */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hide back-to-top by default until JS shows it */
#btn-back-to-top {
  display: none;
}

/* Basic responsive tweaks to avoid layout jump at small widths */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

/* Keep critical CSS under a few KB */
