/* ============================================
   SECTION: NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  background: transparent;
  transition: background var(--t-med) ease, box-shadow var(--t-med) ease,
              backdrop-filter var(--t-med) ease;
}

.navbar.scrolled {
  background: rgba(9, 21, 16, 0.88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 var(--c-border-dark), 0 8px 32px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ── Pure CSS Logo ── */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: opacity var(--t-fast) ease;
}

.logo-container:hover { opacity: 0.88; }

.css-logo {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Orange top bar */
.css-logo::before {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 5px;
  background-color: #f05a28;
  border-radius: 2px;
}

/* Outer red circle */
.logo-circle-outer {
  width: 31px;
  height: 31px;
  background-color: #e31b23;
  border-radius: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(227, 27, 35, 0.35);
}

/* Middle black ring (gap illusion) */
.logo-circle-white {
  width: 23px;
  height: 23px;
  background-color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner white ring */
.logo-circle-inner {
  width: 13px;
  height: 13px;
  border: 2px solid #000000;
  background-color: transparent;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.brand-name {
  color: #ffffff;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-name span {
  font-size: 11px;
  vertical-align: super;
  font-weight: 400;
  opacity: 0.8;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-s);
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--c-accent);
  border-radius: 99px;
  transform: translateX(-50%);
  transition: width var(--t-med) var(--ease-out);
}

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

.nav-links a:hover::after { width: 60%; }

/* CTA Button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent);
  color: #000 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 9px 20px !important;
  border-radius: var(--radius-s) !important;
  margin-left: 12px;
  transition: background var(--t-fast) ease, transform var(--t-fast) ease,
              box-shadow var(--t-fast) ease !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: #00e68a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,201,122,0.4) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t-med) ease, opacity var(--t-fast) ease;
  transform-origin: center;
}

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

/* Mobile Nav */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-links {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  height: calc(100dvh - var(--nav-h));   /* dvh = device visual viewport */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(9, 21, 16, 0.99);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: translateX(100%);
  transition: transform var(--t-med) var(--ease-out);
  padding: 40px 24px;
  z-index: 998;
  overflow-y: hidden;
}

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    font-size: 22px;
    padding: 14px 28px;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.85);
  }

  .nav-cta {
    margin: 16px 0 0;
    width: 80%;
    justify-content: center;
    font-size: 16px !important;
    padding: 14px 28px !important;
  }
}
@media (max-width: 1100px) {
  .nav-inner { padding: 0 4%; }
  .brand-name { font-size: 16px; }
}

