/* Round 7 (Henry, 2026-11-17): header and menu, desktop and phone, copied from the old site (www.newloansportfishing.com).
   Loaded after every other stylesheet; see includes/header.php. Not sticky: the header scrolls away with the page. */

/* ---- Skip link (old: hidden off the left edge, shown on focus) ---- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; color: #084e84; padding: 10px 16px; font-weight: 700; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- The header box: white, in the page flow; the menu band sits inside it, below the logo row ---- */
#header.header {
  position: relative;
  z-index: auto;
  background: #fff;
  color: #1f2933;
  padding: 22px 0 14px;
  transition: none;
  box-shadow: none;
}
#header.header::after {   /* the old shading along the foot of the header (old main.css .header:after, bottom: 0) */
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(#fff, #e9e9e9);
  pointer-events: none;
}

.hdr-container { width: 100%; max-width: 1226px; margin: 0 auto; padding: 0 10px; box-sizing: border-box; }
@media (min-width: 1200px) { .hdr-container { padding: 0 13px; } }

.hdr-row { display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; }
.hdr-logo-col { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-right: auto; }
.hdr-toggle-col { display: none; }

#header .logo { display: block; margin: 4px 0 0; padding: 0; line-height: normal; }
#header .logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: none; margin: 0; object-fit: fill; }

/* ---- Right of the logo (desktop) ---- */
.header-contacts { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; margin-left: auto; }
.header-contact-line { display: block; text-align: right; }
.header-top-line { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 0 0 4px; }
.header-tagline { margin: 0; text-align: left; color: #5b6770; font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .02em; }
.header-social { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.header-social li { margin: 0; padding: 0; }
.header-social a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #eaf2f9; color: #084e84; font-size: 15px; line-height: 1.5; text-decoration: none; transition: none; }
.header-social a:hover, .header-social a:focus { background: #084e84; color: #fff; }
.header-social a i { font-size: 15px; }
.header-phones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; margin: 0; font-size: 13px; line-height: 1.2; text-align: left; }
.header-phones a { display: block; color: #084e84; font-size: 15px; line-height: 1.2; text-decoration: none; }
.header-phones a:hover strong { text-decoration: underline; }
.header-phone-label { margin-right: 6px; color: #5b6770; font-weight: 500; }
.header-phones strong { font-weight: 700; }

/* ---- The menu band: two full-width 1px lines, the menu between them ---- */
.submenu-wrap {
  position: relative;
  z-index: 100;
  background: #fff;
  border-top: 1px solid #e3e8ee;
  border-bottom: 1px solid #e3e8ee;
}
.submenu-container { width: 100%; max-width: 1226px; margin: 0 auto; padding: 0; box-sizing: border-box; }
.toggler-box { display: block; width: 100%; }
.nl-nav { display: flex; align-items: center; justify-content: space-between; position: relative; padding: 0; margin: 0; }
.nl-collapse { display: none; flex-basis: 100%; flex-grow: 1; }
.nl-collapse.show { display: block; }
.nl-menu { position: relative; z-index: 100; display: block; margin: 0 auto; padding: 20px 0 0; list-style: none; }
.nl-item { position: relative; display: block; margin: 0; padding: 0; list-style: none; }
.nl-link { position: relative; display: block; padding: 13px 16px; color: #1f2933; font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; text-transform: none; letter-spacing: 0; white-space: normal; }
.nl-link:hover, .nl-link:focus { color: #084e84; text-decoration: none; }
.nl-item.active .nl-link { color: #084e84; background: #eaf2f9; }
.nl-item-cta { padding: 10px 16px 16px; }
.nl-item-cta .nl-link, .nl-item-cta .nl-link:hover, .nl-item-cta .nl-link:focus { background: #c8102e; color: #fff; border-radius: 6px; }
.nl-item-cta .nl-link:hover { background: #a50d26; }

/* ---- Phones and tablets: the menu button, the full-width panel ---- */
@media (max-width: 1199px) { #header.header { padding: 15px 0; } }   /* old: 15/15 below 1200 px */
@media (max-width: 991px) {
  .hdr-row { flex-wrap: wrap; align-items: center; align-content: flex-start; }
  .hdr-toggle-col { display: flex; flex-direction: column; margin-left: auto; }
  .navbar-header { display: block; padding: 10px 0; }
  .navbar-header::after { content: ''; display: block; clear: both; }
  .header-contacts { flex: 0 0 100%; flex-direction: row; justify-content: flex-end; padding-top: 15px; margin-left: auto; }
  .navbar-toggle { display: block; float: right; width: 60px; height: 50px; margin: 0; padding: 10px 0; border: 1px solid transparent; border-radius: 5px; background: #fff; box-shadow: 0 0 15px 1px rgba(0, 0, 0, .2); outline: none; cursor: pointer; text-align: center; box-sizing: border-box; }
  .navbar-toggle:focus { outline: none; border-color: #084e84; }
  .navbar-toggle .icon-bar { display: block; height: 3px; width: 30px; margin: 4px auto; background: #000; transition: all .3s ease-out; }
  .navbar-toggle[aria-expanded="true"] .icon-bar1 { margin-top: 4px; transform: rotate(135deg); }
  .navbar-toggle[aria-expanded="true"] .icon-bar2 { opacity: 0; }
  .navbar-toggle[aria-expanded="true"] .icon-bar3 { margin-top: -13px; transform: rotate(-135deg); }
}
@media (max-width: 767px) {
  .header-contacts { display: none; }
}
@media (max-width: 575px) { #header .logo { width: 220px; } }

/* ---- Desktop: the menu is always open, one row ---- */
@media (min-width: 992px) {
  .submenu-wrap { box-shadow: 0 2px 10px rgba(16, 42, 67, .06); }
  .nl-collapse { display: flex; flex-basis: auto; align-items: center; justify-content: center; flex-wrap: nowrap; }
  .nl-menu { display: flex; flex-direction: row; justify-content: center; gap: 6px; padding: 0; margin: 0; }
  .nl-item { display: flex; flex-grow: 0; align-items: center; justify-content: center; }
  .nl-link { padding: 15px 16px; font-size: 15px; }
  .nl-item.active .nl-link, .nl-item:not(.nl-item-cta) .nl-link:hover { color: #084e84; background: transparent; box-shadow: inset 0 -3px 0 #c8102e; }
  .nl-item-cta { margin-left: 14px; padding: 0; }
  .nl-item-cta .nl-link { padding: 9px 20px; }
  .nl-item-cta .nl-link, .nl-item-cta .nl-link:hover { box-shadow: none; }
}

/* ---- Desktop: the menu band sticks to the top like the old one, slides away scrolling down, back scrolling up ---- */
@media (min-width: 992px) {
  .submenu-wrap { position: sticky; top: 0; transition: transform 0.3s ease; }
  body.header-hidden .submenu-wrap { transform: translateY(-110%); }
}
@media (prefers-reduced-motion: reduce) { .submenu-wrap { transition: none; } }
