/* ==========================================================================
   JNF Maritime Services - styles.css
   Supplemental styles that sit on top of the Tailwind CDN utility classes
   used throughout the site (see includes/header.php for the Tailwind
   config / custom navy + ocean color palette).
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* --------------------------------------------------------------------
   Sticky navigation: transparent over the hero, solid once scrolled
   -------------------------------------------------------------------- */
#navbar.nav-transparent {
  background-color: transparent;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

#navbar.nav-scrolled {
  background-color: rgba(6, 21, 35, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: 0 4px 16px rgba(6, 21, 35, 0.25);
}

/* --------------------------------------------------------------------
   Desktop "Services" dropdown
   -------------------------------------------------------------------- */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.group:hover .dropdown-menu,
.group:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --------------------------------------------------------------------
   Mobile menu panel
   -------------------------------------------------------------------- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu.open {
  max-height: 700px;
}

/* --------------------------------------------------------------------
   Scroll reveal animation used on most content sections
   -------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------
   Contact form: honeypot field (hidden from sighted users & keyboard
   tab order, but still present in the DOM for bots to fall into)
   -------------------------------------------------------------------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0;
}

/* --------------------------------------------------------------------
   Contact form: field error / invalid state helpers
   -------------------------------------------------------------------- */
.field-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626;
}

.field-error {
  font-weight: 500;
}

/* --------------------------------------------------------------------
   Small utility: hide scrollbar arrows etc. are left to user agent
   defaults; nothing else custom is required beyond Tailwind utilities.
   -------------------------------------------------------------------- */
