/* ===== Root Colors ===== */
:root {
  --jet-blue: #001f3f;
  --link-hover: #3399ff;
  --light-gray: #f4f4f4;
  --text-dark: #333;
  --accent-blue: #004085;
  --quote-bg: #004085;
  --quote-bg-hover: #003366;
}
/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-gray);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===== Logo ===== */
.logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
}

/* Responsive logo scaling */
@media (max-width: 991.98px) {
  .logo {
    height: 120px;
  }
}

@media (max-width: 576px) {
  .logo {
    height: 80px;
    padding-top: 10px;
  }
}

/* ===== Navbar ===== */
.main-header {
  background-color: var(--jet-blue);
}

.navbar-brand {
  padding-left: 0; /* Removed padding-left so logo is flush left */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.collapse.navbar-collapse {
  justify-content: flex-end; /* Nav aligned right */
  padding-right: 1rem; /* Space on right so nav links don't hit edge */
}

.navbar-dark .navbar-nav .nav-link {
  color: white;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--link-hover);
}

.navbar-nav .nav-item.quote-highlight {
  margin-left: 0;
}

.navbar-nav .nav-item.quote-highlight .nav-link {
  background-color: var(--quote-bg);
  border-radius: 5px;
  font-weight: 700;
  color: white !important;
  padding: 0.45rem 1.3rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.navbar-nav .nav-item.quote-highlight .nav-link:hover,
.navbar-nav .nav-item.quote-highlight .nav-link.active {
  background-color: var(--quote-bg-hover);
  color: white !important;
}

.navbar-nav > .nav-item:not(:last-child) {
  margin-right: 1rem;
}

/* ===== Hero Background Crossfade Animation ===== */
.hero-background-rotator {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: -1;
}

.bg-slide.active {
  opacity: 1;
}

/* ===== Hero Section Content ===== */
.animated-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: white;
  text-align: center;
}

.animated-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.animated-hero .container {
  position: relative;
  z-index: 2;
}

.hero-text-box {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 10px;
  display: inline-block;
  max-width: 850px;
}

/* ===== Headline Animation ===== */
.headline-animated,
.subheadline-animated {
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.headline-animated {
  animation: fadeSlideUp 1s ease-out forwards;
  animation-delay: 0.5s;
}

.subheadline-animated {
  animation: fadeSlideUp 1.3s ease-out forwards;
  animation-delay: 1s;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CTA Section ===== */
#cta-section {
  background-color: var(--jet-blue);
  color: white;
  padding: 3rem 1rem;
}

#cta-section h3 {
  font-size: 1.75rem;
  font-weight: 700;
}

#cta-section .btn {
  font-weight: bold;
  padding: 0.75rem 2rem;
  border-radius: 4px;
}

/* ===== Footer ===== */
.main-footer {
  background-color: var(--jet-blue);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

.footer-links a {
  color: #ccc;
  margin: 0 1rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-note {
  font-size: 0.9rem;
  color: #aaa;
}

/* ===== Content Section ===== */
main h1,
.section-title {
  color: var(--jet-blue);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

main p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

ul.benefits-list {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

ul.benefits-list li {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* ===== Scroll Animation ===== */
.fade-slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Button Pulse ===== */
.pulse-hover {
  transition: transform 0.3s ease;
}

.pulse-hover:hover {
  animation: pulse 0.6s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* ===== Responsive Layouts ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    justify-content: flex-start;
    padding-right: 0; /* remove right padding on smaller screens for full width */
  }

  .navbar-collapse .nav-link {
    width: 100%;
    text-align: left;
    padding-left: 0.75rem;
  }

  .navbar-nav .nav-item {
    padding-left: 0;
  }

  .navbar-nav .nav-item.quote-highlight .nav-link {
    justify-content: flex-start;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand span {
    font-size: 1.25rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  #cta-section h3 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-text-box {
    padding: 1.5rem;
  }

  .headline-animated {
    font-size: 1.4rem;
  }

  .subheadline-animated {
    font-size: 1.1rem;
  }
}
