/* ============================================
   ORIDANZA — NAVIGATION
   ============================================ */

/* ---- MAIN NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ---- LOGO ---- */
.nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo span {
  color: var(--color-brand);
}

/* ---- DESKTOP LINKS ---- */
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-text);
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-brand);
  border-radius: 2px;
}

/* ---- NAV CTA ---- */
.nav__cta {
  padding: 9px 20px;
  font-size: 13px;
  flex-shrink: 0;
}

/* ---- HAMBURGER ---- */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- MOBILE MENU ---- */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 16px var(--px) 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}

.nav__mobile a:last-of-type {
  border-bottom: none;
}

.nav__mobile .btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  background: transparent;
  color: var(--color-brand);
  border: none;
  font-weight: 600;
}

/* ---- PAGE OFFSET (body padding for fixed nav) ---- */
body {
  padding-top: var(--nav-h);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--color-dark-2);
  color: rgba(255,255,255,0.4);
  padding: 48px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.footer__logo span { color: var(--color-brand); }

.footer__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 240px;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color var(--transition);
  text-decoration: none;
}

.footer__col a:hover {
  color: rgba(255,255,255,0.8);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}

.footer__social a:hover {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
}

.footer__social svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- RESPONSIVE NAV ---- */
@media (max-width: 900px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
