/* Aurora del Trazo — topbar.css
   Header, nav, mobile drawer. */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.masthead--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

/* Brand */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.logo:hover { text-decoration: none; }
.logo--mark {
  width: 32px; height: 32px;
  flex-shrink: 0;
}
.logo--name { line-height: 1; }
.logo--tag {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}

/* Desktop nav */
.masthead--nav {
  display: none;
}
.masthead--nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 32px;
}
.masthead--nav a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.04em;
}
.masthead--nav a:hover,
.masthead--nav a.is-current {
  text-decoration: none;
  color: var(--indigo);
}
.masthead--nav a.is-current::after,
.masthead--nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--oro);
}

.masthead--cta {
  display: none;
}

/* Mobile toggle */
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.mobile-toggle--bars {
  display: block;
  position: relative;
  width: 22px; height: 14px;
}
.mobile-toggle--bars::before,
.mobile-toggle--bars::after,
.mobile-toggle--bars span {
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-toggle--bars::before { top: 0; }
.mobile-toggle--bars span    { top: 6px; }
.mobile-toggle--bars::after  { bottom: 0; }
.mobile-toggle[aria-expanded="true"] .mobile-toggle--bars::before { transform: translateY(6px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] .mobile-toggle--bars span    { opacity: 0; }
.mobile-toggle[aria-expanded="true"] .mobile-toggle--bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 70;
  display: none;
  overflow-y: auto;
}
.drawer.is-open { display: block; }
.drawer--inner {
  padding: 96px var(--gutter) var(--sp-48);
  max-width: 520px;
  margin: 0 auto;
}
.drawer--nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
.drawer--nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.drawer--nav a:hover { color: var(--indigo); text-decoration: none; }
.drawer--call {
  margin-top: var(--sp-48);
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 14px;
}
.drawer--call a {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin-top: 4px;
}

/* Desktop layout */
@media (min-width: 980px) {
  .masthead--nav { display: block; }
  .masthead--cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
  }
  .masthead--cta a {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--muted);
  }
  .masthead--cta a:hover { color: var(--indigo); text-decoration: none; }
  .mobile-toggle { display: none; }
  .drawer { display: none !important; }
}
