/* =========================================================================
   Nexora Trading — components
   Author: Makers Creative Agency
   ========================================================================= */

/* =============================================================== buttons == */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--color-text-strong);
  --btn-line: var(--color-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: var(--tap);
  padding: 0.9rem 1.5rem;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nx-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 480ms var(--ease-out);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: #fff; border-color: var(--nx-orange); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; transition: transform 420ms var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { --btn-bg: var(--nx-orange); --btn-fg: #fff; --btn-line: var(--nx-orange); }
.btn--primary::before { background: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { color: var(--nx-black); border-color: #fff; }

.btn--ghost { --btn-line: var(--color-line); }
.btn--sm { min-height: 40px; padding: 0.65rem 1.15rem; font-size: 0.82rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 0.95rem; }

/* Hover flourishes are desktop-only; touch gets a clean pressed state. */
@media (hover: none) {
  .btn::before { display: none; }
  .btn:active { background: color-mix(in srgb, var(--nx-orange) 88%, #000); border-color: var(--nx-orange); color: #fff; }
  .btn--primary:active { background: var(--nx-orange-300); color: #fff; }
}

/* text link with animated rule */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--color-text-strong);
  position: relative;
  padding-bottom: 0.35em;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 520ms var(--ease-out);
}
.link-underline:hover::after, .link-underline:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.link-underline svg { width: 0.95em; height: 0.95em; transition: transform 420ms var(--ease-out); }
.link-underline:hover svg { transform: translateX(4px); }
@media (hover: none) {
  .link-underline::after { transform: scaleX(1); opacity: 0.4; }
}
@media (max-width: 940px) {
  .link-underline { min-height: 42px; align-items: center; }
}

/* ================================================================ media === */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall  { aspect-ratio: 3 / 4; }
.media--square{ aspect-ratio: 1 / 1; }
.media--wide  { aspect-ratio: 16 / 9; }
.media--cinema{ aspect-ratio: 21 / 9; }
@media (max-width: 700px) {
  .media--cinema { aspect-ratio: 4 / 3; }
}

.media__zoom img {
  transform: scale(1.06);
  transition: transform 1.4s var(--ease-out), opacity 1.4s var(--ease-out);
}
.media__zoom.is-visible img { transform: scale(1); }

.media--frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-line-soft);
  border-radius: inherit;
  pointer-events: none;
}

.media__caption {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  background: rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
}

/* ============================================================== marquee === */
.marquee {
  --marquee-duration: 46s;
  overflow: hidden;
  border-block: 1px solid var(--color-line-soft);
  padding-block: clamp(1.1rem, 2.4vw, 1.9rem);
  background: linear-gradient(90deg, rgba(29,35,49,0.35), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration) linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-right: clamp(1.5rem, 4vw, 3.5rem);
  flex: none;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(1.4rem, 4.4vw, 3.1rem);
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(254, 252, 225, 0.32);
  white-space: nowrap;
}
.marquee__item--solid {
  color: var(--nx-orange);
  -webkit-text-stroke: 0;
}
.marquee__dot { color: var(--nx-orange); font-size: 0.7em; line-height: 1; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ========================================================= product card === */
.product-grid {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 620px)  { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-card {
  --accent: var(--nx-orange);
  --plate: #ffffff;
  position: relative;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(29,35,49,0.5), rgba(10,12,18,0.72));
  overflow: hidden;
  transition: border-color 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

/* The clean white presentation area the product sits inside. */
.product-card__plate {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background: var(--plate);
  padding: clamp(1rem, 3vw, 1.75rem) clamp(0.9rem, 3vw, 1.6rem) clamp(1.4rem, 4vw, 2.25rem);
  overflow: hidden;
}
.product-card__plate::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 12%, transparent), transparent);
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
  pointer-events: none;
}
.product-card__plate img {
  position: relative;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 18px rgba(20, 22, 28, 0.22));
  transition: transform 700ms var(--ease-out);
}

.product-card__body {
  padding: clamp(0.9rem, 2.4vw, 1.4rem) clamp(0.9rem, 2.4vw, 1.4rem) clamp(1rem, 2.4vw, 1.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.product-card__cat {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-faint);
  white-space: nowrap;
}
.product-card__name {
  font-size: clamp(1rem, 3.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text-strong);
}
.product-card__lede {
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.product-card__foot {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 40px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-faint);
}
.product-card__foot > span:first-child { white-space: nowrap; }
.product-card__arrow {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-text-strong);
  transition: background 420ms var(--ease-out), border-color 420ms var(--ease-out),
              transform 420ms var(--ease-out), color 420ms var(--ease-out);
  flex: none;
}
.product-card__arrow svg { width: 13px; height: 13px; }

/* Hover is decoration only — everything works on touch. */
@media (hover: hover) {
  .product-card:hover, .product-card:focus-within {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    transform: translateY(-4px);
  }
  .product-card:hover .product-card__plate img { transform: translateY(-6px) scale(1.03); }
  .product-card:hover .product-card__plate::after { opacity: 1; }
  .product-card:hover .product-card__arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: rotate(-45deg);
  }
}
.product-card__link:focus-visible { outline: 2px solid var(--nx-orange-300); outline-offset: -4px; }

@media (max-width: 619px) {
  .product-card__lede { display: none; }
  .product-card__foot { font-size: 0.72rem; letter-spacing: 0.05em; padding-top: 0.75rem; }
  .product-card__arrow { width: 30px; height: 30px; }
  .product-card__cat { font-size: 0.72rem; letter-spacing: 0.08em; }
}

/* ============================================================ brand card == */
.brand-card {
  position: relative;
  display: grid;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  transition: border-color 520ms var(--ease-out);
}
.brand-card:hover { border-color: rgba(255,96,0,0.45); }
.brand-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.brand-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.brand-card:hover .brand-card__media img { transform: scale(1.05); }
.brand-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 5%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.35));
}
.brand-card__body {
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.brand-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
}
.brand-card__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-faint);
}
.brand-card--soon { opacity: 0.5; }
.brand-card--soon .brand-card__body { min-height: 220px; align-content: center; }

@media (min-width: 860px) {
  .brand-card--featured { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
  .brand-card--featured .brand-card__media { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .brand-card--featured .brand-card__body { align-content: center; }
}

/* ================================================================ forms === */
.form { display: grid; gap: clamp(0.9rem, 2.5vw, 1.15rem); }
.form__row { display: grid; gap: clamp(0.9rem, 2.5vw, 1.15rem); }
@media (min-width: 700px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-faint);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5a7ad' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.75rem;
  cursor: pointer;
}
.field select option { background: #0a0c12; color: #f4f2e6; }

.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  min-height: 50px;
  padding: 0.85rem 1rem;
  font-size: 1rem;                 /* 16px — prevents iOS zoom on focus */
  font-weight: 300;
  color: var(--color-text-strong);
  transition: border-color 320ms var(--ease-out), background 320ms var(--ease-out);
}
@media (min-width: 941px) {
  .field input, .field textarea, .field select { font-size: 0.95rem; }
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(254,252,225,0.22); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--nx-orange);
  background: rgba(255,96,0,0.04);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(165,167,173,0.5); }
.field--error input, .field--error textarea { border-color: #ff5b5b; }
.field__error { font-size: 0.78rem; color: #ff8f8f; letter-spacing: 0; text-transform: none; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: 0.82rem; color: var(--color-faint); line-height: 1.5; }
@media (max-width: 520px) {
  .form__actions { display: grid; gap: 0.9rem; }
  .form__actions .btn { width: 100%; }
}

.alert {
  border: 1px solid var(--color-line);
  border-left: 2px solid var(--nx-orange);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: grid;
  gap: 0.3rem;
  background: rgba(255,96,0,0.05);
}
.alert strong { color: var(--color-text-strong); font-weight: 500; }
.alert p { font-size: 0.9rem; color: var(--color-muted); }
.alert--error { border-left-color: #ff5b5b; background: rgba(255,91,91,0.05); }

/* =============================================================== footer === */
.footer {
  border-top: 1px solid var(--color-line-soft);
  background: linear-gradient(180deg, rgba(29,35,49,0.35), rgba(0,0,0,1) 60%);
  padding-top: clamp(2.75rem, 8vw, 6rem);
  overflow: hidden;
}
.footer__top {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
  .footer__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}
.footer__statement {
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--color-text-strong);
  max-width: 22ch;
  margin: 0.9rem 0 1.6rem;
}
.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3rem);
}
@media (min-width: 560px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.footer__title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-bottom: 0.9rem;
}
.footer__title--spaced { margin-top: 1.75rem; }
.footer__col ul { display: grid; gap: 0.15rem; }
.footer__col li a {
  display: flex;
  align-items: center;
  min-height: 42px;
}
.footer__col a, .footer address {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-muted);
  font-style: normal;
  line-height: 1.6;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col a:hover, .footer__col a:active { color: var(--nx-orange); }

.footer__wordmark {
  padding-inline: var(--gutter);
  margin-bottom: -1.2%;
  opacity: 0.07;
  pointer-events: none;
}
.footer__wordmark img { width: 100%; height: auto; }

.footer__bottom {
  border-top: 1px solid var(--color-line-soft);
  padding-block: 1.25rem calc(1.75rem + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-faint);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__legal a:hover { color: var(--color-text-strong); }

@media (max-width: 559px) {
  .footer__wordmark { margin-bottom: -2.5%; opacity: 0.06; }
  .footer__bottom { justify-content: flex-start; row-gap: 0; }
  .footer__lead .btn { width: 100%; }
}

/* =========================================================== breadcrumb === */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-bottom: clamp(0.75rem, 2.5vw, 1.5rem);
}
.breadcrumb a { display: inline-flex; align-items: center; min-height: 38px; }
.breadcrumb a { transition: color var(--dur-fast) var(--ease-out); }
.breadcrumb a:hover { color: var(--nx-orange); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumb li { display: flex; align-items: center; }

/* ========================================================= scroll cue ===== */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,242,230,0.55);
}
.scroll-cue__line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nx-orange);
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}
