/* Base Resets */
fieldset, img { border: 0; }
address, caption, cite, code, dfn, em, th, var { font-style: normal; font-weight: normal; }
strong { font-weight: bold !important; }
caption, th { text-align: left; }
q:before, q:after { content: ''; }
abbr, acronym { border: 0; font-variant: normal; }
sup { vertical-align: text-top; }
sub { vertical-align: text-bottom; }
input, textarea, select { font-family: inherit; font-size: inherit; font-weight: inherit; }
legend { color: #000; }

/* MODERN SINGLE PAGE STYLES */
:root {
  --maritime-navy: #0a192f;
  --maritime-blue: #1b3a5b;
  --maritime-slate: #4a6fa5;
  --maritime-accent: #6a9fc8;
  --off-white: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --hero-font: 'Georgia', serif;
  --body-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --header-height: 60px;
}

body {
  font-family: var(--body-font) !important;
  color: var(--text-primary) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  scroll-behavior: smooth !important;
}

.container-xxl {
  max-width: none !important;
  padding: 0 !important;
}

.row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-right: -15px !important;
  margin-left: -15px !important;
}

.col-12 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  padding: 0 15px !important;
}

/* Full-bleed sections */
section {
  padding: 100px 0 !important;
  position: relative !important;
  width: 100% !important;
  display: block !important;
  clear: both !important;
  overflow: visible !important;
}

section::after, .row::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

.content-wrap {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  position: relative !important;
}

/* Sticky Header */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: var(--header-height) !important;
  z-index: 1000 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  transition: background 0.3s ease, height 0.3s ease !important;
  display: flex !important;
}

.header .content-wrap {
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  height: 100% !important;
}

.header .logo-wrap {
  display: flex !important;
  align-items: center !important;
}

.header .nav {
  display: flex !important;
  height: 100% !important;
  flex-wrap: nowrap !important;
}

.header .nav li {
  display: flex !important;
}

.header .nav-link {
  color: var(--maritime-accent) !important;
  font-weight: bold !important;
  border-bottom: 4px solid transparent !important;
  transition: color 0.3s ease, border-color 0.3s ease !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.header .nav-link:hover,
.header .nav-link.active-nav {
  color: #50779c !important;
  border-bottom: 4px solid #50779c !important;
}

.header .hd {
  min-height: auto !important;
  height: 100% !important;
}

.logo-img {
  height: 60px !important;
  width: auto !important;
  max-height: none !important;
}

/* Hero Section */
.hero {
  min-height: 100vh !important;
  min-height: 100svh !important;
  background: var(--maritime-navy) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
}

.hero-content {
  z-index: 2 !important;
  max-width: 800px !important;
  padding: 0 20px !important;
}

.hero-brand {
  font-size: 1.2rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3em !important;
  margin-bottom: 1rem !important;
  color: var(--maritime-accent) !important;
  display: block !important;
}

.hero h1 {
  font-family: var(--hero-font) !important;
  font-size: clamp(2.5rem, 8vw, 4.5rem) !important;
  line-height: 1.1 !important;
  margin-bottom: 1.5rem !important;
  color: #fff !important;
}

.hero p {
  font-size: 1.25rem !important;
  margin-bottom: 2.5rem !important;
  opacity: 0.9 !important;
}

.hero-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: var(--maritime-navy) !important;
  z-index: 1 !important;
}

/* Typography Overrides */
h1, .h1, h2, .h2, h3, .h3 {
  font-family: var(--hero-font) !important;
  color: #50779c !important;
  font-weight: bold !important;
}

h1, .h1 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  margin-bottom: 2rem !important;
}

h2, .h2 {
  font-size: clamp(2rem, 4vw, 2.5rem) !important;
  margin-bottom: 1.5rem !important;
}

h3, .h3 {
  font-size: 1.75rem !important;
  margin-bottom: 1.25rem !important;
}

/* Button Refinement */
.button {
  background-color: var(--maritime-blue) !important;
  padding: 15px 40px !important;
  font-size: 1.1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  border-radius: 0 !important;
  color: white !important;
  border: none;
  text-align: center;
  text-decoration: none !important;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background-color: var(--maritime-accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.button:active {
  transform: scale(0.98);
}

/* Entrance Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 1s ease-out forwards !important;
}

.hero-brand {
  animation: fadeInUp 1s ease-out 0.2s forwards !important;
  opacity: 0;
}

.hero h1 {
  animation: fadeInUp 1s ease-out 0.4s forwards !important;
  opacity: 0;
}

.hero p {
  animation: fadeInUp 1s ease-out 0.6s forwards !important;
  opacity: 0;
}

.hero .d-flex {
  animation: fadeInUp 1s ease-out 0.8s forwards !important;
  opacity: 0;
}

/* Mobile Toggler Visibility */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2827, 58, 91, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

#mobileMenu .nav-link {
  color: var(--maritime-accent) !important;
  font-size: 0.9rem !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-bottom: 2px solid var(--off-white) !important;
  font-weight: bold !important;
}

#mobileMenu .nav-link:hover,
#mobileMenu .nav-link.active-nav {
  color: #50779c !important;
  border-bottom-color: #50779c !important;
}

#bss {
  overflow: visible !important;
  z-index: 5 !important;
}

/* Checklist Styling */
.checklist-item {
  display: flex !important;
  align-items: flex-start !important;
  margin-bottom: 1rem !important;
  font-size: 1.1rem !important;
}

.checklist-item i {
  font-size: 1.25rem !important;
  margin-right: 15px !important;
  color: var(--maritime-accent) !important;
  line-height: 1.2 !important;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out !important;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) !important;
}

/* Footer Styling */
.footNav {
  background-color: transparent !important;
}

.footNav li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footNav li::after {
  content: '|';
  color: rgba(255,255,255,0.3);
  margin-left: 5px;
}

.footNav li:last-child::after {
  content: none;
}

@media (max-width: 767px) {
    .footNav li::after {
        content: none;
    }
}

.footNav li a {
  color: #ffffff !important;
  text-decoration: none;
}

.footNav li a:hover {
  color: var(--maritime-accent) !important;
}

.footNav li a span {
  font-size: .85em;
}

/* Form Styles */
@media (min-width: 992px) {
  .form-control, .form-select {
    max-width: 500px;
  }
  textarea.form-control {
    max-width: 800px;
  }
  .needs-validation {
    max-width: 850px;
  }
}
