/* Digital card. Tokens and type come from base.css.
   Layout follows the studio contact card, in ARC green and gold. */

.card__sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.card-page {
  background: #07090A;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}
.card__grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.card-wrap {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  margin: auto;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 40px 26px 30px;
  border: 1px solid rgba(190, 160, 95, .22);
  border-radius: 22px;
  background:
    radial-gradient(120% 70% at 50% -12%, rgba(190, 160, 95, .16), transparent 58%),
    radial-gradient(70% 36% at 50% 0%, rgba(18, 162, 106, .08), transparent 62%),
    linear-gradient(180deg, #141816 0%, #07090A 56%, #0c100e 100%);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, .9),
    inset 0 1px 0 rgba(243, 239, 228, .05);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image: url("/assets/brand/logo-color-600.webp");
  background-repeat: repeat;
  background-size: 72px auto;
  background-position: center top;
}
.card > * { position: relative; z-index: 1; }

.card__crest { text-align: center; margin-bottom: 22px; }
.card__mark {
  position: relative;
  width: 168px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.card__mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 150px;
  height: 92px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(190, 160, 95, .28), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}
.card__logo {
  position: relative;
  width: 168px;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(190, 160, 95, .32));
}

.card__who { text-align: center; }
.card__name {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-align: center;
  color: var(--ivory);
}
.card__kicker {
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #BEA05F;
}
.card__tag {
  margin: 14px auto 0;
  max-width: 28ch;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  color: #c9c2b4;
}
.card__rule {
  height: 1px;
  margin: 22px 0 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(190, 160, 95, .4), transparent);
}

.card__stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 22px;
}

.card__save,
.card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 13px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.card__save {
  justify-content: center;
  min-height: 52px;
  border: 0;
  background: var(--btn-gold);
  color: #07090A;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1;
}
.card__save .card__ico { width: 18px; height: 18px; color: #07090A; }
.card__save:hover { background: var(--btn-gold-hi); }
.card__save:active { background: var(--btn-gold-deep); transform: scale(.98); }

.card__row {
  border: 1px solid rgba(190, 160, 95, .22);
  background: rgba(243, 239, 228, .025);
  color: var(--ivory);
}
.card__row-copy { flex: 1; min-width: 0; text-align: left; }
.card__title {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ivory);
}
.card__sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: #9a938a;
}
.card__ico,
.card__chevron { display: block; flex: 0 0 auto; overflow: visible; }
.card__ico { width: 20px; height: 20px; color: #BEA05F; }
.card__chevron { width: 16px; height: 16px; color: #9a938a; }
.card__ico use,
.card__chevron use { stroke: currentColor; }

.card__hours { margin-top: 22px; }
.card__hours-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.card__hours-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #9a938a;
}
.card__pill {
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(190, 160, 95, .35);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #BEA05F;
}
.card__pill:empty { display: none; }
.card__pill.is-open {
  border-color: transparent;
  background: #12A26A;
  color: #F3EFE4;
}
.card__hours-list { list-style: none; margin: 0; padding: 0; }
.card__hours-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 4px 0;
  border-top: 1px solid rgba(190, 160, 95, .12);
  font-size: 13px;
  line-height: 1.3;
  color: #c9c2b4;
}
.card__hours-list li span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: #9a938a;
}
.card__hours-list li.is-today { color: #22C58B; }
.card__hours-list li.is-today span:last-child { color: #22C58B; }

.card__tools {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.card__share,
.card__qr-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(190, 160, 95, .32);
  background: transparent;
  color: #9a938a;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1;
}
.card__share svg,
.card__qr-toggle svg { width: 15px; height: 15px; }
.card__share:active,
.card__qr-toggle:active { transform: scale(.98); }
.card__status {
  margin: 8px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #22C58B;
}
.card__status:empty { display: none; }

.card__qr {
  margin-top: 14px;
  text-align: center;
}
.card__qr img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(190, 160, 95, .22);
}
.card__qr p {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9a938a;
}
.card__download {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #BEA05F;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card__download:hover { color: #e8c877; }

.card__foot {
  margin: 22px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #9a938a;
}
.card__foot a { color: #BEA05F; font-weight: 600; text-decoration: none; }
.card__foot a:hover { color: #e8c877; }

@media (hover: hover) and (pointer: fine) {
  .card__row,
  .card__share,
  .card__qr-toggle,
  .card__save {
    transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), filter .18s var(--ease);
  }
  .card__row:hover {
    background: rgba(190, 160, 95, .08);
    border-color: rgba(190, 160, 95, .5);
  }
  .card__share:hover,
  .card__qr-toggle:hover {
    color: #e8c877;
    border-color: rgba(190, 160, 95, .6);
  }
}
.card__row:active { transform: scale(.98); }

.card :focus-visible { outline: 2px solid #22C58B; outline-offset: 3px; }
.card .card__save:focus-visible { outline-color: var(--btn-gold-hi); }

@media (max-width: 380px) {
  .card { padding: 32px 18px 24px; }
  .card__name { font-size: 1.5rem; }
  .card__kicker { letter-spacing: .14em; }
}

@media (prefers-reduced-motion: no-preference) {
  .card { animation: card-rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
  .card__stack > * {
    animation: card-fade .55s ease backwards;
    animation-delay: calc(120ms + var(--i, 0) * 60ms);
  }
  .card__save { --i: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card__stack > *, .card__save, .card__row, .card__share, .card__qr-toggle {
    animation: none;
    transition: none;
  }
  .card__row:hover, .card__row:active,
  .card__save:active, .card__share:active, .card__qr-toggle:active { transform: none; }
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes card-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
