/* ============================================================
   ARTinez v2 — Components (nav, footer, buttons, cards)
   ============================================================ */

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px; left: 20px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold-2);
  color: #0a0a12;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top var(--d-fast) var(--ease-out);
}
.skip-link:focus { top: 20px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(5,5,9,.85) 0%, rgba(5,5,9,.4) 80%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--d-base) var(--ease-out), padding var(--d-base) var(--ease-out);
}
.nav.scrolled {
  background: rgba(5,5,9,.92);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
}
.nav__brand img { height: 38px; width: auto; }
.nav__brand em {
  font-style: italic;
  color: var(--gold-2);
  font-weight: 400;
}
.nav__list {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav__link {
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mute);
  border-radius: var(--r-sm);
  transition: color var(--d-fast) var(--ease-out);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 1px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-base) var(--ease-out);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 880px) {
  .nav__list { display: none; }
}

/* Mobile nav CTA hidden — defined later to win specificity over .btn */

/* Mobile drawer */
.nav__menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  /* Avoid 300ms tap delay and let touchend fire the toggle immediately */
  touch-action: manipulation;
}
.nav__menu-btn span {
  display: block;
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
}
.nav__menu-btn span::before,
.nav__menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 1px;
  background: currentColor;
}
.nav__menu-btn span::before { top: -6px; }
.nav__menu-btn span::after { top: 6px; }

@media (max-width: 880px) {
  .nav__menu-btn { display: inline-flex; }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(5,5,9,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  /* Top padding clears the fixed nav; safe-area insets for notched phones.
     overflow-y: auto + momentum scroll lets the menu scroll if items overflow
     a short viewport (body is locked while the drawer is open). */
  padding: 96px 24px 72px;
  padding-top: max(96px, calc(env(safe-area-inset-top, 0px) + 80px));
  padding-bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 56px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-base) var(--ease-out), visibility var(--d-base) var(--ease-out);
}
.mobile-drawer.is-open { opacity: 1; visibility: visible; }
.mobile-drawer a {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 40px);
  color: #fff;
  font-weight: 500;
  letter-spacing: -.01em;
}
.mobile-drawer a:hover { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--gold-grad);
  color: #0a0a12;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out);
  box-shadow: 0 8px 24px -10px rgba(212,175,55,.5);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f4d97a 0%, #d4af37 50%, #b8902a 100%);
  opacity: 0;
  transition: opacity var(--d-base) var(--ease-out);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(212,175,55,.6);
}
.btn:hover::before { opacity: 1; }
.btn > * { position: relative; }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--gold-2);
  box-shadow: 0 6px 20px -8px rgba(212,175,55,.3);
}
.btn--ghost::before { display: none; }

.btn--sm { padding: 10px 18px; font-size: 14px; }

/* Hide nav CTA on mobile (defined after .btn to win source-order specificity) */
@media (max-width: 880px) {
  .nav__cta { display: none; }
}

.arrow { display: inline-block; transition: transform var(--d-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Section divider ---------- */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
  margin: 0 auto;
  max-width: 200px;
  opacity: .5;
}

/* ---------- Footer ---------- */
.footer {
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__brand img { height: 48px; width: auto; }
.footer__byline {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .07em;
  color: var(--text-dim);
  margin-top: -8px;
}
.footer__tagline {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--gold-2);
}
.footer__email {
  font-size: 15px;
  color: var(--gold-3);
  display: inline-block;
  padding: 1px 0;
  transition: color var(--d-fast) var(--ease-out);
}
.footer__email:hover { color: var(--gold-2); }
.footer__about {
  max-width: 36ch;
  font-size: 14px;
  color: var(--text-mute);
}
.footer__col h4,
.footer__col h3 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-3);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.footer__col a {
  font-size: 15px;
  color: var(--text-mute);
  /* A 24px minimum target, as WCAG 2.2 AA (2.5.8) asks for. The extra
     padding is taken back by the tighter list gap above, so the column
     looks exactly as it did. */
  display: inline-block;
  padding: 3px 0;
  transition: color var(--d-fast) var(--ease-out);
}
.footer__col a:hover { color: var(--gold-2); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ---------- 404 page ---------- */
.notfound {
  min-height: 76vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 90px;
}
.notfound__inner { text-align: center; }
.notfound__code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(72px, 15vw, 168px);
  line-height: .95;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--gold-2);
}
.notfound__title {
  margin: 16px 0 12px;
  font-size: clamp(26px, 4vw, 38px);
}
.notfound__lede { margin: 0 auto 30px; max-width: 46ch; }
.notfound__heading {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-3);
  font-weight: 500;
  margin: 0 0 16px;
}
.notfound__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Tag chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.025);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-mute);
}

/* ---------- Card primitive ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}
.card:hover {
  border-color: rgba(212,175,55,.3);
  transform: translateY(-2px);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 38s linear infinite;
  padding-right: 60px;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-style: italic;
  color: rgba(255,255,255,.08);
  white-space: nowrap;
  letter-spacing: -.01em;
}
.marquee__item span { color: var(--gold-2); margin: 0 16px; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
