/* assets/components.css — Shared nav + footer for designops.tools */

/* ══ NAV ══════════════════════════════════════════ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 60px;
  border-bottom: 1px solid var(--br);
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--c0);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--c0);
  letter-spacing: -.02em;
}

.logo-text span { color: var(--A); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links > a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--c2);
  text-decoration: none;
  transition: color .15s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links > a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c0);
  transition: width .2s cubic-bezier(.4, 0, .2, 1);
}

.nav-links > a:hover { color: var(--c0); }
.nav-links > a:hover::after { width: 100%; }

.nav-links > a.active {
  color: var(--c0);
  font-weight: 600;
}
.nav-links > a.active::after {
  width: 100%;
  background: var(--A);
}

/* ══ DROPDOWN ═════════════════════════════════════ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--c2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  padding-bottom: 2px;
  position: relative;
  transition: color .15s;
}

.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c0);
  transition: width .2s cubic-bezier(.4, 0, .2, 1);
}

.nav-dropdown-chevron {
  transition: transform .2s cubic-bezier(.4, 0, .2, 1);
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--c0); }

.nav-dropdown.open .nav-dropdown-trigger::after { width: 100%; }

.nav-dropdown.open .nav-dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-trigger.active { color: var(--c0); font-weight: 600; }
.nav-dropdown-trigger.active::after { width: 100%; background: var(--A); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--br2);
  border-radius: var(--rl);
  box-shadow: var(--sh);
  padding: .4rem;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 400;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: .55rem .85rem;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--c2);
  text-decoration: none;
  transition: background .1s, color .1s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--c6); color: var(--c0); }
.nav-dropdown-menu a.active { color: var(--c0); font-weight: 600; background: var(--A2); }

/* Mobile group labels */
.nav-mobile-group {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c3);
  padding: 1rem 0 .35rem;
}

/* Lang pill */
.lang-pill {
  display: flex;
  background: var(--c6);
  border: 1px solid var(--br);
  border-radius: 20px;
  padding: 2px;
}

.lb {
  border: none;
  background: transparent;
  border-radius: 16px;
  padding: 4px 11px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--c3);
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .04em;
  font-weight: 500;
}

.lb.on {
  background: var(--white);
  color: var(--c0);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* ══ HAMBURGER ════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c0);
  transition: all .25s;
}

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

/* ══ MOBILE MENU ══════════════════════════════════ */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(250, 248, 244, .98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--br);
  padding: 0 1.5rem 2rem;
  z-index: 299;
  flex-direction: column;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-links {
  display: flex;
  flex-direction: column;
}

.nav-mobile-links a {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c2);
  text-decoration: none;
  padding: .9rem 0;
  border-bottom: 1px solid var(--br);
  transition: color .15s;
}

.nav-mobile-links a:last-child { border-bottom: none; }
.nav-mobile-links a.active { color: var(--c0); font-weight: 600; }
.nav-mobile-links a:hover { color: var(--c0); }

.nav-mobile-lang { margin-top: 1.5rem; align-self: flex-start; }

/* ══ FOOTER ══════════════════════════════════════════ */
.footer {
  background: var(--c0);
  border-top: none;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2.5rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  border-bottom: none !important;
  margin-bottom: .85rem;
}

.footer-lm {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,.1);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--c5);
  letter-spacing: -.02em;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: .875rem;
  color: var(--c3);
  line-height: 1.55;
  max-width: 240px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-col-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c3);
  margin-bottom: .2rem;
}

.footer a,
.footer-col a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--c4);
  text-decoration: none;
  border-bottom: none !important;
  transition: color .15s;
}

.footer-col a { display: block; }

.footer a:hover,
.footer-col a:hover { color: var(--c6); }

.footer-logo:hover .footer-brand-name { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--c3);
}

.footer-bottom a {
  color: var(--c3) !important;
  display: inline !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  transition: color .15s, border-color .15s;
}

.footer-bottom a:hover {
  color: var(--c5) !important;
  border-color: rgba(255,255,255,.3) !important;
}

/* ══ RESPONSIVE ══════════════════════════════════════ */
@media (max-width: 900px) {
  .nav  { padding: 0 1.5rem; }
  .footer-inner { padding: 2.5rem 1.5rem 0; }
  .footer-top { gap: 2rem; }
}

@media (max-width: 600px) {
  /* Show hamburger, hide desktop nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-right .lang-pill { display: none; }

  /* Mobile footer */
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .4rem; text-align: center; }

  /* Hero image/card above text — handled at each page's grid-collapse breakpoint */
}
