/* ============================================================
   Fran Kelly — Navigation Bar
   Add to child theme: assets/css/nav.css
   ============================================================ */

/* ── Reset nav defaults that Avada may override ── */
.fk-nav,
.fk-nav *,
.fk-nav *::before,
.fk-nav *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Main nav wrapper ── */
.fk-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: #1a2a3a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'DM Sans', sans-serif;
}

.fk-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  height: 72px;
}

/* ── Logo ── */
.fk-nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.fk-nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  /* Logo has black bg — show it cleanly */
  border-radius: 3px;
}

/* ── Nav links ── */
.fk-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.fk-nav-links > li {
  position: relative;
}

.fk-nav-links > li > a,
.fk-nav-links > li > span {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.fk-nav-links > li > a:hover,
.fk-nav-links > li > span:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

/* Chevron arrow */
.fk-nav-links > li > span .fk-chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.fk-nav-links > li.fk-open > span .fk-chevron {
  transform: rotate(-135deg) translateY(-2px);
}

/* CTA button */
.fk-nav-cta {
  background: #b59a5e !important;
  color: #1a2a3a !important;
  font-weight: 500 !important;
  margin-left: 6px;
}

.fk-nav-cta:hover {
  background: #d4bc88 !important;
  color: #1a2a3a !important;
}

/* ── Dropdown ── */
.fk-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #1e3248;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  min-width: 210px;
  z-index: 1000;
  padding: 6px 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.fk-nav-links > li.fk-open .fk-dropdown,
.fk-nav-links > li:hover .fk-dropdown {
  display: block;
}

.fk-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.fk-dropdown a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.fk-dropdown a:first-child { border-radius: 6px 6px 0 0; }
.fk-dropdown a:last-child  { border-radius: 0 0 6px 6px; }

/* ── Mobile burger button ── */
.fk-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.fk-burger:hover { background: rgba(255,255,255,0.07); }

.fk-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}

.fk-burger.fk-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fk-burger.fk-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.fk-burger.fk-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu panel ── */
.fk-mobile-menu {
  display: none;
  flex-direction: column;
  background: #1a2a3a;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.fk-mobile-menu.fk-open {
  display: flex;
  max-height: 600px;
}

.fk-mobile-menu a,
.fk-mobile-menu span {
  display: block;
  padding: 12px 5%;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.01em;
}

.fk-mobile-menu a:hover,
.fk-mobile-menu span:hover { color: #fff; }

.fk-mobile-submenu {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.fk-mobile-submenu.fk-open { display: flex; }

.fk-mobile-submenu a {
  padding: 11px 8%;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.fk-mobile-submenu a:hover { color: #fff; }

.fk-mobile-cta {
  margin: 8px 5% 0;
  background: #b59a5e;
  color: #1a2a3a !important;
  font-weight: 500 !important;
  border-radius: 4px;
  text-align: center;
  padding: 13px 5% !important;
}

.fk-mobile-cta:hover {
  background: #d4bc88 !important;
  color: #1a2a3a !important;
}

.fk-mobile-services-toggle::after {
  content: ' ▾';
  font-size: 11px;
  opacity: 0.7;
}

.fk-mobile-services-toggle.fk-open::after {
  content: ' ▴';
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .fk-nav-links {
    display: none !important;
  }
  .fk-burger {
    display: flex;
  }
  .fk-nav-inner {
    height: 64px;
  }
  .fk-nav-logo img {
    height: 38px;
  }
}

@media (min-width: 861px) {
  .fk-mobile-menu {
    display: none !important;
  }
}
