/* ════════════════════════════════════════
   NAVBAR
   Logo left · Links centre · Button right
════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-h);
  padding: 0 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  /* ── Glassmorphism navbar (theme-aware) ── */
  background: var(--nav-bg);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  box-shadow:
    0 2px 24px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
html[data-theme="light"] nav {
  box-shadow:
    0 2px 24px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

/* Subtle orange accent glow line at the bottom of the nav */
nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--nav-accent-gradient);
  box-shadow: 0 0 14px 2px rgba(255, 107, 0, 0.18);
  pointer-events: none;
}

/* Logo */
.nav-logo {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: 1px;
  text-decoration: none;
  justify-self: start;
  line-height: 1;
}
.nav-logo span {
  color: var(--color-primary);
}

/* ── Nav links (centred column) ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  justify-self: center;
}

/* all <li> share the same height as the nav */
.nav-links > li {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 1.4rem;
}

.nav-links a {
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-white-80);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.25s;
  white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-links > li > a:hover,
.has-dropdown:hover > .services-trigger-group > .services-label {
  color: var(--color-primary);
}

/* Active page styling */
.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* ── Services split trigger: label + chevron side by side ── */
.services-trigger-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: var(--nav-h);
  cursor: default;
}

.services-label {
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-white-80);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.25s;
  white-space: nowrap;
  line-height: 1;
}
.services-label:hover {
  color: var(--color-primary);
}
.has-dropdown:hover .services-label {
  color: var(--color-primary);
}

/* Active state for services */
.services-label.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Chevron clickable area */
.chevron-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.chevron-wrap:hover {
  opacity: 1;
}

/* Chevron */
.chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  stroke: currentColor;
  color: var(--color-white-80);
}
.has-dropdown:hover .chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* ── Dropdown ──
   Full-width: anchored to the nav edges, not to the <li>.
    */
.dropdown {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s;
  z-index: 600;
  transform: translateY(-8px);
  padding-top: 0;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

/* Top border accent line with glow */
.dropdown--fullwidth::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-primary) 25%,
    rgba(255, 160, 60, 1) 50%,
    var(--color-primary) 75%,
    transparent 100%
  );
  box-shadow: 0 0 18px 2px rgba(255, 107, 0, 0.45);
  z-index: 3;
}

/* ── Glassmorphism: main dropdown panel ── */
.dropdown-inner {
  background: rgba(0, 0, 0, 0.97); /* near-solid dark */
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 100px rgba(255, 107, 0, 0.05);
  padding: 2rem 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

/* ── Glassmorphism: footer CTA bar ── */
.dropdown-footer {
  background: rgba(4, 4, 8, 0.98); /* almost fully opaque */
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
  padding: 0.9rem 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}
.dropdown-footer span {
  font-family: var(--font-main);
  font-size: 0.7rem;
  color: var(--color-white-38);
  font-weight: 300;
  letter-spacing: 0.04em;
}
.dropdown-footer-link {
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}
.dropdown-footer-link:hover {
  color: var(--color-primary) !important;
  opacity: 0.75;
}

.dropdown-footer-btn {
  margin-left: auto;
  margin-bottom: 20px;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
  white-space: nowrap;
}

.dropdown-footer-btn::after {
  content: "→";
  font-size: 0.75rem;
  transition: transform 0.25s;
}

.dropdown-footer-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.dropdown-footer-btn:hover::after {
  transform: translateX(3px);
}

/* ── Dropdown item — glass card tiles ── */
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

/* Strip all underlines from everything inside */
.dropdown-item,
.dropdown-item:link,
.dropdown-item:visited,
.dropdown-item:hover,
.dropdown-item:active,
.dropdown-item *,
.dropdown-item:hover * {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  text-underline-offset: unset;
}

.dropdown-item:hover {
  background: rgba(255, 107, 0, 0.08) !important;
  border-color: rgba(255, 107, 0, 0.25) !important;
  transform: translateY(-1px);
  box-shadow:
    0 4px 20px rgba(255, 107, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.dropdown-item:hover .d-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.dropdown-item:hover .d-icon svg {
  stroke: var(--color-white);
}

.d-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-white-8);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease;
  margin-top: 0.1rem;
}
.d-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-white-50);
  fill: none;
  transition: stroke 0.28s ease;
}

.d-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 1;
}
.d-text strong {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-white);
  text-transform: none;
  line-height: 1;
  margin-bottom: 0.15rem;
  transition: color 0.28s ease;
}
.d-text > span {
  font-family: var(--font-main);
  font-size: 0.68rem;
  color: var(--color-white-38);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-transform: none;
  margin-bottom: 0.55rem;
  transition: color 0.28s ease;
}

/* Sub-points list */
.d-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 0.1rem;
}
.d-points li {
  display: block;
  font-family: var(--font-main);
  font-size: 0.67rem;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.01em;
  line-height: 1.5;
  padding-left: 0.9rem;
  position: relative;
  list-style: none;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  transition: color 0.28s ease !important;
}
.d-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.7;
  transition: opacity 0.28s ease;
}
.dropdown-item:hover .d-points li::before {
  opacity: 1;
}

/* ── Light theme: dropdown (same orange + white) ── */
html[data-theme="light"] .dropdown-inner {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 100px rgba(255, 107, 0, 0.04);
}
html[data-theme="light"] .dropdown-footer {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .dropdown-footer span {
  color: var(--color-white-38);
}
html[data-theme="light"] .dropdown-footer-btn {
  color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .dropdown-footer-btn:hover {
  color: #fff;
}
html[data-theme="light"] .dropdown-item {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}
html[data-theme="light"] .dropdown-item:hover {
  background: rgba(255, 107, 0, 0.08) !important;
  border-color: rgba(255, 107, 0, 0.25) !important;
  box-shadow:
    0 4px 20px rgba(255, 107, 0, 0.1),
    0 1px 0 rgba(0, 0, 0, 0.04) inset;
}
html[data-theme="light"] .d-icon {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-white-8);
}
html[data-theme="light"] .d-icon svg {
  stroke: var(--color-white-50);
}
html[data-theme="light"] .dropdown-item:hover .d-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
html[data-theme="light"] .dropdown-item:hover .d-icon svg {
  stroke: #fff;
}
html[data-theme="light"] .d-text strong {
  color: var(--color-white);
}
html[data-theme="light"] .d-text > span {
  color: var(--color-white-38);
}
html[data-theme="light"] .d-points li {
  color: var(--color-white);
}

/* ── Theme toggle (sun/moon) ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-white-8);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white-80);
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}
html[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}
.theme-toggle:hover {
  background: var(--color-primary-10);
  border-color: rgba(255, 107, 0, 0.25);
  color: var(--color-primary);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  inset: 0;
  margin: auto;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.theme-toggle .icon-moon {
  opacity: 0;
}
html[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
}
html[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
}

/* "Work with us" button */
.btn-nav {
  display: inline-block;
  padding: 0.95rem 2rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  transition:
    background 0.3s,
    color 0.3s;
  white-space: nowrap;
}
.btn-nav:hover {
  background: transparent;
  color: var(--color-primary) !important;
}

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer (theme-aware) */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.985);
  padding: calc(var(--nav-h) + 1.3rem) 1.5rem 1.25rem;
  z-index: 700;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  transition: background 0.3s var(--ease);
}
html[data-theme="light"] .mobile-drawer {
  background: rgba(255, 255, 255, 0.98);
}
.mobile-drawer.open {
  display: flex;
}

.mobile-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.88;
}
.mobile-close span {
  position: absolute;
  top: 18px;
  left: 7px;
  width: 24px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--color-white);
}
.mobile-close span:first-child {
  transform: rotate(45deg);
}
.mobile-close span:last-child {
  transform: rotate(-45deg);
}

.mob-link {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-main);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white-80);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-white-8);
  transition: color 0.2s;
}
.mob-link:hover {
  color: var(--color-primary);
}

.mob-services-group {
  border-bottom: 1px solid var(--color-white-8);
}
.mob-services-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--font-main);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white-80);
  font-weight: 500;
}
.mob-services-chevron {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.mob-services-group.open .mob-services-chevron {
  transform: rotate(180deg);
}

.mob-services-list {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  margin: 0;
  transition:
    max-height 0.26s ease,
    opacity 0.2s ease,
    margin 0.2s ease,
    border-color 0.2s ease;
}
.mob-services-group.open .mob-services-list {
  max-height: 420px;
  opacity: 1;
  margin: 0 0 0.9rem;
  border-color: var(--color-white-8);
}

.mob-service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--color-white-80);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mob-services-list .mob-service-item:last-child {
  border-bottom: 0;
}
.mob-service-item:hover {
  color: var(--color-primary);
}
.mob-service-item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.9;
  flex-shrink: 0;
}

.mob-btn {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  padding: 0.95rem 1rem;
  text-align: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--color-primary);
}

@media (max-width: 900px) {
  nav {
    grid-template-columns: 1fr auto;
    padding: 0 1.4rem;
  }
  .nav-links,
  .btn-nav {
    display: none;
  }
  .nav-right {
    display: flex;
    gap: 0.5rem;
  }
  /* Hide theme toggle from nav-right on mobile — it lives inside the drawer */
  .nav-right .theme-toggle {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.active {
    opacity: 0;
    pointer-events: none;
  }
  .dropdown-footer-btn {
    padding-left: 20px;
  }
}

/* ── In-drawer theme toggle (sits left of the close button) ── */
#mob-theme-toggle {
  position: absolute;
  top: 1.2rem;
  right: calc(1.2rem + 38px + 0.6rem); /* same top as close, just left of it */
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.88;
  color: var(--color-white);
  transition:
    border-color 0.2s,
    color 0.2s,
    opacity 0.2s;
}
#mob-theme-toggle:hover {
  opacity: 1;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
html[data-theme="light"] #mob-theme-toggle {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.7);
}
html[data-theme="light"] #mob-theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
#mob-theme-toggle svg {
  width: 16px;
  height: 16px;
  position: absolute;
  inset: 0;
  margin: auto;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
#mob-theme-toggle .icon-moon {
  opacity: 0;
}
html[data-theme="light"] #mob-theme-toggle .icon-sun {
  opacity: 0;
}
html[data-theme="light"] #mob-theme-toggle .icon-moon {
  opacity: 1;
}

/* ════════════════════════════════════════
   NAVBAR
   Logo left · Links centre · Button right
════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-h);
  padding: 0 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  /* ── Glassmorphism navbar (theme-aware) ── */
  background: var(--nav-bg);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  box-shadow:
    0 2px 24px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

/* ── Light theme: glass navbar ── */
html[data-theme="light"] nav {
  box-shadow:
    0 2px 32px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

/* Subtle orange accent glow line at the bottom of the nav */
nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--nav-accent-gradient);
  box-shadow: 0 0 14px 2px rgba(255, 107, 0, 0.18);
  pointer-events: none;
}

/* Logo */
.nav-logo {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  justify-self: start;
  line-height: 1;
}
.nav-logo span {
  color: var(--color-primary);
}

/* ── Nav links (centred column) ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  justify-self: center;
}

/* all <li> share the same height as the nav */
.nav-links > li {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 1.4rem;
}

.nav-links a {
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-white-80);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.25s;
  white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-links > li > a:hover,
.has-dropdown:hover > .services-trigger-group > .services-label {
  color: var(--color-primary);
}

/* Active page styling */
.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* ── Services split trigger: label + chevron side by side ── */
.services-trigger-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: var(--nav-h);
  cursor: default;
}

.services-label {
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-white-80);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.25s;
  white-space: nowrap;
  line-height: 1;
}
.services-label:hover {
  color: var(--color-primary);
}
.has-dropdown:hover .services-label {
  color: var(--color-primary);
}

/* Active state for services */
.services-label.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Chevron clickable area */
.chevron-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.chevron-wrap:hover {
  opacity: 1;
}

/* Chevron */
.chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  stroke: currentColor;
  color: var(--color-white-80);
}
.has-dropdown:hover .chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* ── Dropdown ──
   Full-width: anchored to the nav edges, not to the <li>.
    */
.dropdown {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s;
  z-index: 600;
  transform: translateY(-8px);
  padding-top: 0;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

/* Top border accent line with glow */
.dropdown--fullwidth::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-primary) 25%,
    rgba(255, 160, 60, 1) 50%,
    var(--color-primary) 75%,
    transparent 100%
  );
  box-shadow: 0 0 18px 2px rgba(255, 107, 0, 0.45);
  z-index: 3;
}

/* ── Glassmorphism: main dropdown panel (dark) ── */
.dropdown-inner {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 100px rgba(255, 107, 0, 0.05);
  padding: 2rem 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

/* ── Glassmorphism: footer CTA bar (dark) ── */
.dropdown-footer {
  background: rgba(4, 4, 8, 0.85);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
  padding: 0.9rem 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}
.dropdown-footer span {
  font-family: var(--font-main);
  font-size: 0.7rem;
  color: var(--color-white-38);
  font-weight: 300;
  letter-spacing: 0.04em;
}
.dropdown-footer-link {
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}
.dropdown-footer-link:hover {
  color: var(--color-primary) !important;
  opacity: 0.75;
}

.dropdown-footer-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
  white-space: nowrap;
}

.dropdown-footer-btn::after {
  content: "→";
  font-size: 0.75rem;
  transition: transform 0.25s;
}

.dropdown-footer-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.dropdown-footer-btn:hover::after {
  transform: translateX(3px);
}

/* ── Dropdown item — glass card tiles ── */
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

/* Strip all underlines from everything inside */
.dropdown-item,
.dropdown-item:link,
.dropdown-item:visited,
.dropdown-item:hover,
.dropdown-item:active,
.dropdown-item *,
.dropdown-item:hover * {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  text-underline-offset: unset;
}

.dropdown-item:hover {
  background: rgba(255, 107, 0, 0.08) !important;
  border-color: rgba(255, 107, 0, 0.25) !important;
  transform: translateY(-1px);
  box-shadow:
    0 4px 20px rgba(255, 107, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.dropdown-item:hover .d-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.dropdown-item:hover .d-icon svg {
  stroke: var(--color-white);
}

.d-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-white-8);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease;
  margin-top: 0.1rem;
}
.d-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-white-50);
  fill: none;
  transition: stroke 0.28s ease;
}

.d-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 1;
}
.d-text strong {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-white);
  text-transform: none;
  line-height: 1;
  margin-bottom: 0.15rem;
  transition: color 0.28s ease;
}
.d-text > span {
  font-family: var(--font-main);
  font-size: 0.68rem;
  color: var(--color-white-38);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-transform: none;
  margin-bottom: 0.55rem;
  transition: color 0.28s ease;
}

/* Sub-points list */
.d-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 0.1rem;
}
.d-points li {
  display: block;
  font-family: var(--font-main);
  font-size: 0.67rem;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.01em;
  line-height: 1.5;
  padding-left: 0.9rem;
  position: relative;
  list-style: none;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  transition: color 0.28s ease !important;
}
.d-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.7;
  transition: opacity 0.28s ease;
}
.dropdown-item:hover .d-points li::before {
  opacity: 1;
}

/* ════════════════════════════════════════
   LIGHT THEME: Full glassmorphism for nav + dropdown
════════════════════════════════════════ */

/* ── Light: dropdown main panel — frosted glass ── */
html[data-theme="light"] .dropdown-inner {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 80px rgba(255, 107, 0, 0.04);
}

/* ── Light: dropdown footer — frosted glass ── */
html[data-theme="light"] .dropdown-footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .dropdown-footer span {
  color: rgba(17, 17, 17, 0.45);
}
html[data-theme="light"] .dropdown-footer-btn {
  color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[data-theme="light"] .dropdown-footer-btn:hover {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ── Light: service card tiles — frosted glass ── */
html[data-theme="light"] .dropdown-item {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .dropdown-item:hover {
  background: rgba(255, 107, 0, 0.07) !important;
  border-color: rgba(255, 107, 0, 0.3) !important;
  box-shadow:
    0 6px 24px rgba(255, 107, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

/* ── Light: icon box ── */
html[data-theme="light"] .d-icon {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[data-theme="light"] .d-icon svg {
  stroke: rgba(17, 17, 17, 0.5);
}
html[data-theme="light"] .dropdown-item:hover .d-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
html[data-theme="light"] .dropdown-item:hover .d-icon svg {
  stroke: #fff;
}

/* ── Light: text colours ── */
html[data-theme="light"] .d-text strong {
  color: rgba(17, 17, 17, 0.9);
}
html[data-theme="light"] .d-text > span {
  color: rgba(17, 17, 17, 0.5);
}
html[data-theme="light"] .d-points li {
  color: rgba(17, 17, 17, 0.75);
}

/* ── Theme toggle (sun/moon) ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-white-8);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white-80);
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}
html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.theme-toggle:hover {
  background: var(--color-primary-10);
  border-color: rgba(255, 107, 0, 0.25);
  color: var(--color-primary);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  inset: 0;
  margin: auto;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.theme-toggle .icon-moon {
  opacity: 0;
}
html[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
}
html[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
}

/* "Work with us" button */
.btn-nav {
  display: inline-block;
  padding: 0.95rem 2rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  transition:
    background 0.3s,
    color 0.3s;
  white-space: nowrap;
}
.btn-nav:hover {
  background: transparent;
  color: var(--color-primary);
}

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer (theme-aware) */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.985);
  padding: calc(var(--nav-h) + 1.3rem) 1.5rem 1.25rem;
  z-index: 700;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  transition: background 0.3s var(--ease);
}
html[data-theme="light"] .mobile-drawer {
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}
.mobile-drawer.open {
  display: flex;
}

.mobile-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.88;
}
.mobile-close span {
  position: absolute;
  top: 18px;
  left: 7px;
  width: 24px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--color-white);
}
.mobile-close span:first-child {
  transform: rotate(45deg);
}
.mobile-close span:last-child {
  transform: rotate(-45deg);
}

.mob-link {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-main);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white-80);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-white-8);
  transition: color 0.2s;
}
.mob-link:hover {
  color: var(--color-primary);
}

.mob-services-group {
  border-bottom: 1px solid var(--color-white-8);
}
.mob-services-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--font-main);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white-80);
  font-weight: 500;
}
.mob-services-chevron {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.mob-services-group.open .mob-services-chevron {
  transform: rotate(180deg);
}

.mob-services-list {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  margin: 0;
  transition:
    max-height 0.26s ease,
    opacity 0.2s ease,
    margin 0.2s ease,
    border-color 0.2s ease;
}
.mob-services-group.open .mob-services-list {
  max-height: 420px;
  opacity: 1;
  margin: 0 0 0.9rem;
  border-color: var(--color-white-8);
}

.mob-service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--color-white-80);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mob-services-list .mob-service-item:last-child {
  border-bottom: 0;
}
.mob-service-item:hover {
  color: var(--color-primary);
}
.mob-service-item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.9;
  flex-shrink: 0;
}

.mob-btn {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  padding: 0.95rem 1rem;
  text-align: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--color-primary);
}

@media (max-width: 900px) {
  nav {
    grid-template-columns: 1fr auto;
    padding: 0 1.4rem;
  }
  .nav-links,
  .btn-nav {
    display: none;
  }
  .nav-right {
    display: flex;
    gap: 0.5rem;
  }
  /* Hide theme toggle from nav-right on mobile — it lives inside the drawer */
  .nav-right .theme-toggle {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.active {
    opacity: 0;
    pointer-events: none;
  }
}

/* ── Mobile: View All Services button ── */
.mob-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.9rem 1rem;
  margin-top: 0.3rem;
  background: rgba(255, 107, 0, 0.08);
  border: none;
  border-top: 1px solid rgba(255, 107, 0, 0.2);
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition:
    background 0.2s,
    color 0.2s;
}
.mob-view-all svg {
  flex-shrink: 0;
  stroke: var(--color-primary);
}
.mob-view-all:hover {
  background: rgba(255, 107, 0, 0.15);
  color: #ff8c33;
}

/* Expand list height to fit the extra button */
.mob-services-group.open .mob-services-list {
  max-height: 560px;
}
