/* ==========================================================================
   LAYOUT/HEADER.CSS
   Top discount bar, main navigation, services dropdown and mobile menu. Loaded on every page.
   ========================================================================== */

/* ==========================================================================
   TOP DISCOUNT BAR
   ========================================================================== */

.discount-bar {
  background: #EDE7DE;
  color: #2E2A4A;
  padding: 8px 0;
  font-size: 12.5px;
  font-weight: 500;
  border-bottom: 1px solid #DDD5C8;
}

.discount-bar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.discount-bar b {
  color: #2E2A4A;
  font-weight: 700;
}

.discount-bar .sep {
  color: #B5AD9F;
}

.discount-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.discount-contact-link {
  color: #2E2A4A;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.15s;
}

.discount-contact-link:hover {
  color: var(--coral);
}

.discount-contact-link svg {
  color: #5A5578;
  flex-shrink: 0;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #F7F5F1;
  border-bottom: 1px solid #DDD5C8;
}

.logo-img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
  aspect-ratio: 1233 / 350; /* original logo proportions; the smaller srcset files round slightly differently */
}

.logo-img-footer {
  height: 48px;
  max-height: 48px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  /* font-family: 'Plus Jakarta Sans', sans-serif; */
  color: #2E2A4A;
  transition: color .2s ease;
  text-decoration: none;
  margin-left: 28px;
}

.nav-links a:hover {
  color: var(--coral);
}

.active-nav-link {
  color: var(--coral) !important;
  font-weight: 700 !important;
}

/* Services Dropdown */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 28px;
}

.nav-dropdown-wrapper>a {
  margin-left: 0 !important;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 320px;
  background: #FFFFFF;
  border: 1px solid #DDD5C8;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(46, 42, 74, 0.12);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 0.8, 0.24, 1);
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.dropdown-item-head {
  padding: 9px 12px !important;
  background: #F8F5F0;
  border-radius: 6px;
  margin-left: 0 !important;
  display: block;
}

.dropdown-item-head strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  color: #2E2A4A;
}

.dropdown-item-head span {
  display: block;
  font-size: 11px;
  color: #7A7490;
  margin-top: 2px;
}

.dropdown-divider {
  height: 1px;
  background: #EEE7DD;
  margin: 4px 0;
}

.dropdown-link-item {
  padding: 8px 12px !important;
  border-radius: 6px;
  margin-left: 0 !important;
  display: block;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-link-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #2E2A4A;
}

.dropdown-link-item span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #7A7490;
}

.dropdown-link-item:hover {
  background: #F5EFEB;
}

.dropdown-link-item:hover strong {
  color: var(--coral);
}

.burger {
  display: none;
  width: 26px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border: none;
}

.burger span {
  display: block;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #F7F5F1;
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.16, .8, .24, 1);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mobile-menu a {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid rgba(46, 42, 74, 0.08);
  text-decoration: none;
}

.mobile-menu-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--coral);
  margin-top: 14px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.mobile-sublink {
  font-size: 15px;
  font-weight: 500;
  padding: 7px 0;
  padding-left: 10px;
  border-bottom: 1px dashed rgba(46, 42, 74, 0.08);
  color: #4A4565;
}

/* [UNUSED] Not referenced by any page or script — safe to delete after review.

/* Breadcrumb bar *\/
.np-breadcrumb-bar {
  background-color: #F3EFE9;
  border-bottom: 1px solid #DFD7CC;
  padding: 9px 0;
  font-size: 12.5px;
}

.np-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #6C6685;
}

.np-breadcrumb-list a {
  color: #2E2A4A;
  font-weight: 600;
  text-decoration: none;
}

.np-breadcrumb-list a:hover {
  color: var(--coral);
}

.np-breadcrumb-sep {
  color: #A39DB5;
}

.np-breadcrumb-current {
  color: #7A7490;
  font-weight: 500;
}
*/

/* 44x44 tap area; the negative margin keeps the original 26x26 footprint and the X stays 26px wide */
.close-x {
  width: 44px;
  height: 44px;
  margin: -9px;
  position: relative;
  background: transparent;
  border: none;
}

.close-x::before,
.close-x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 9px;
  width: 26px;
  height: 2.5px;
  background: var(--ink);
}

.close-x::before {
  transform: rotate(45deg);
}

.close-x::after {
  transform: rotate(-45deg);
}

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 980px) {
  .nav-links {
    display: none !important;
  }

  .burger {
    display: flex;
  }
}

/* ==========================================================================
   ACTIVE NAV LINK & DISCOUNT PILL
   ========================================================================== */

/* Active Navigation */
.active-nav-link {
  color: var(--coral) !important;
  font-weight: 700 !important;
  position: relative;
}

.active-nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--coral);
}

.discount-pill {
  display: inline-block;
  background: rgba(46, 42, 74, 0.09);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 1px 6px;
  border-radius: 2px;
  margin-right: 6px;
  border: 1px solid rgba(46, 42, 74, 0.15);
}

/* [UNUSED] Not referenced by any page or script — safe to delete after review.

/* Breadcrumbs *\/
.np-breadcrumb-bar {
  background-color: #EFEAE2;
  border-bottom: 1px solid #DFD7CC;
  padding: 12px 0;
}

.np-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #5A5578;
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-breadcrumb-list a {
  color: #5A5578;
  text-decoration: none;
}

.np-breadcrumb-list a:hover {
  color: #2E2A4A;
  text-decoration: underline;
}

.np-breadcrumb-sep {
  color: #9C9488;
  user-select: none;
}

.np-breadcrumb-current {
  color: #2E2A4A;
  font-weight: 600;
}
*/

/* ==========================================================================
   TABLET (≤991px)
   ========================================================================== */

@media (max-width: 991px) {
  /* Discount bar: center & wrap */
  .discount-bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  /* .discount-bar-left, */
  .discount-bar-right {
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }
}

/* ==========================================================================
   SMALL MOBILE (≤575px)
   ========================================================================== */

@media (max-width: 575px) {
  /* Discount bar: even more compact */
  .discount-bar {
    font-size: 11.5px;
    padding: 6px 0;
  }
}

/* ==========================================================================
   SKIP LINK (keyboard users jump past the navigation; hidden until focused)
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

main:focus {
  outline: none;
}
