/* =========================================
   CSS VARIABLES
========================================= */
:root {
  --bs-body-bg: var(--bs-gray-100);
  --primary-navy: #11375c;
  --secondary-navy: #0393d2;
  --third-navy: #2f74b9;
  --dark-navy: #0d2b49;
  --steel-blue: #3b6d94;
  --warm-gold: #e0b84d;
  --light-grey: #f4f7fa;
  --text-white: #ffffff;
  --text-dark: #1c1c1c;
}

/* =========================================
   GLOBAL STYLES
========================================= */
body {
  padding-bottom: 3rem;
  background-color: #f5f5f5;
}

h2,
h3 {
  color: var(--third-navy);
}

.rounded {
  border-radius: 8px;
}

/* =========================================
   NAVBAR
========================================= */
.custom-navbar {
  background-color: var(--primary-navy);
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
}

.custom-navbar .nav-link,
.custom-navbar .navbar-brand,
.custom-navbar .navbar-text {
  color: var(--text-white);
  font-weight: 500;
  font-size: 1.4rem;
}

.custom-navbar .nav-link:hover,
.custom-navbar .dropdown-item:hover {
  color: var(--warm-gold);
}

.custom-navbar .dropdown-menu {
  background-color: var(--primary-navy);
  border: none;
}

.custom-navbar .dropdown-item {
  color: var(--text-white);
  background-color: var(--primary-navy);
}

.navbar-toggler {
  border-color: var(--text-white);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Responsive Navbar */
@media (max-width: 992px) {
  .navbar-collapse {
    background-color: var(--primary-navy);
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    padding: 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
  }
}

/* =========================================
   HERO SECTIONS
========================================= */
.hero-section {
  height: 32rem;
  overflow: hidden;
  position: relative;
}

.hero-section.other {
  height: 16rem;
}

.hero-bg {
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(40%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-section .container {
  z-index: 2;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 600;
}

.hero-section p {
  font-size: 1.25rem;
}

/* Overlay background for text sections */
.text-center-background {
  position: relative;
  background-image: url("./images/pipe.jpg");
  background-size: cover;
  background-position: center;
  color: white;
}

.text-center-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.text-center-background > * {
  position: relative;
  z-index: 1;
}

/* =========================================
   CAROUSEL
========================================= */
.carousel {
  margin-bottom: 4rem;
}

.carousel-item {
  height: 32rem;
  background-color: #f5f5f5;
}

.carousel-inner {
  height: auto;
}

.carousel img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0;
}

.carousel-caption {
  bottom: 3rem;
  z-index: 10;
}

.featurette .carousel {
  margin-bottom: 0;
}

.featurette .carousel-item {
  height: auto !important;
}

/* =========================================
   MARKETING & FEATURETTES
========================================= */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.marketing .col-lg-4 p {
  margin: 0 0.75rem;
}

.featurette-divider {
  margin: 5rem 0;
}

.featurette-heading,
.featurette-heading-about {
  letter-spacing: -0.05rem;
}

.featurette-top {
  margin-top: 5rem;
  padding-top: 5rem;
}

/* =========================================
   BUTTONS
========================================= */
.btn.btn-primary {
  background-color: var(--third-navy) !important;
  border-color: var(--third-navy) !important;
  color: #f5f5f5 !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background-color: #12375c !important;
  border-color: #12375c !important;
  color: #f5f5f5 !important;
}

/* =========================================
   FOOTER
========================================= */
.footer {
  background-color: var(--primary-navy);
}

/* =========================================
   CERTIFICATES & LIST ITEMS
========================================= */
.certificates li {
  margin-top: 2rem;
}

/* =========================================
   RESPONSIVE STYLES
========================================= */
@media (min-width: 40em) {
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading,
  .featurette-heading-about {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
}
