/* Standalone NFC business-card page. Self-contained on purpose (no dependency
   on base.css/sections.css) so it can be hosted anywhere the NFC chip points
   at, independent of the main site's build. Brand tokens duplicated here,
   dark theme only - this page never switches to light mode. */

:root {
  --red:        #c8161d;
  --red-bright: #e01b23;
  --red-light:  #ff4a52;
  --red-deep:   #7d0d11;

  --bg-black:   #0a0a0c;
  --surface:    #131316;
  --surface-2:  #1b1b1f;
  --input-bg:   #08080a;

  --text:       #f2f2f4;
  --text-muted: #b4b4bf;
  --text-dim:   #8e8e99;

  --line:        rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --hover-tint:  rgba(255, 255, 255, .07);
  --overlay:     rgba(3, 3, 4, .82);

  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 26px;

  --ease:      cubic-bezier(.25, 1, .5, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background: #23040a;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon { flex: none; }

/* ---------- page background: dark red, subtle depth ---------- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(4.5rem, 16vw, 7rem) 1.1rem 3rem;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(200, 22, 29, .22), transparent 60%),
    radial-gradient(140% 90% at 50% 100%, #30040a 0%, transparent 55%),
    linear-gradient(180deg, #430810 0%, #23040a 55%, #120206 100%);
}

/* ---------- card ---------- */
.card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-black) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .3);
  padding: 4.5rem 1.5rem 2.75rem;
  text-align: center;
}

.card__avatar {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-black);
  box-shadow: 0 0 0 3px var(--red), 0 12px 30px -8px rgba(0, 0, 0, .7);
  background: var(--surface-2);
}
.card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: .3rem;
}
.card__role {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .15rem;
}
.card__company {
  font-size: .92rem;
  font-weight: 600;
  color: var(--red-light);
  margin-bottom: 1.6rem;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .95rem 1rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease-soft),
              border-color .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.btn:active { transform: scale(.97); }
.btn__icon { width: 18px; height: 18px; }

.card__actions {
  display: flex;
  gap: .6rem;
  margin-bottom: 1.75rem;
}
.card__actions .btn { font-size: .78rem; padding-inline: .35rem; gap: .4rem; }
.card__actions .btn__icon { width: 16px; height: 16px; }

.btn--save {
  --btn-bg: var(--red);
  --btn-bd: var(--red);
  box-shadow: 0 10px 26px -10px rgba(200, 22, 29, .9);
}
.btn--save:active { --btn-bg: var(--red-bright); }

.btn--visit {
  --btn-bg: var(--surface-2);
  --btn-bd: var(--line-strong);
}
.btn--visit:active { --btn-bg: var(--hover-tint); border-color: var(--red); }

.btn--appointment {
  --btn-bg: transparent;
  --btn-bd: var(--red);
  --btn-fg: var(--red-light);
  margin-top: 1.85rem;
}
.btn--appointment:active { --btn-bg: rgba(200, 22, 29, .12); }

.btn--outline { --btn-bd: var(--line-strong); --btn-fg: var(--text); width: auto; padding-inline: 1.4rem; }
.btn--primary { --btn-bg: var(--red); --btn-bd: var(--red); width: auto; padding-inline: 1.4rem;
  box-shadow: 0 8px 22px -10px rgba(200, 22, 29, .9); }
.btn--primary:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- info list ---------- */
.card__info { display: flex; flex-direction: column; gap: .55rem; text-align: left; }

.info-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .7rem .85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  transition: background .25s var(--ease-soft), border-color .25s var(--ease-soft);
}
.info-row:active { background: var(--hover-tint); border-color: var(--line-strong); }

.info-row__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(200, 22, 29, .14);
  border: 1px solid rgba(200, 22, 29, .3);
}
.info-row__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--red-light); }

.info-row__text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.info-row__label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
}
.info-row__value {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- footer brand mark ---------- */
.card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.25rem;
  opacity: .8;
}
.card__brand img { height: 34px; width: auto; }

/* =====================================================================
   Scheduler modal - same component used across the main Bombstart site
   (css/sections.css), copied here so this page has zero external deps.
   ===================================================================== */

.field { display: flex; flex-direction: column; gap: .4rem; }
.field__label { font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.req { color: var(--red-light); }

.field__input {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  font-size: .9rem;
}
.field__input::placeholder { color: var(--text-dim); }
.field__input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 22, 29, .18);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s var(--ease-soft);
}
.modal.is-open .modal__overlay { opacity: 1; }

.modal__panel {
  position: relative;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(175deg, var(--surface-2), var(--bg-black));
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6);
  padding: 1.5rem 1.25rem;
  opacity: 0;
  transform: translateY(24px) scale(.97);
  transition: opacity .4s var(--ease), transform .45s var(--ease);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }

.modal__close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.modal__close svg { width: 16px; height: 16px; fill: none; stroke: var(--text-muted); stroke-width: 1.8; stroke-linecap: round; }
.modal__close:active { border-color: var(--red); background: rgba(200, 22, 29, .14); }

.scheduler__head { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.4rem; padding-right: 2.6rem; }
.scheduler__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(200, 22, 29, .14);
  border: 1px solid rgba(200, 22, 29, .35);
}
.scheduler__icon svg { width: 19px; height: 19px; fill: none; stroke: var(--red-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scheduler__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: .2rem; }
.scheduler__desc { font-size: .84rem; color: var(--text-dim); }

.scheduler__body { display: flex; flex-direction: column; gap: 1.5rem; }

.calendar__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }
.calendar__arrow {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.calendar__arrow svg { width: 17px; height: 17px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calendar__arrow:active { background: var(--hover-tint); }
.calendar__arrow:disabled { opacity: .3; cursor: not-allowed; }
.calendar__month { font-size: 1rem; font-weight: 600; }

.calendar__weekdays,
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.calendar__weekdays { margin-bottom: .3rem; }
.calendar__weekdays span { text-align: center; font-size: .66rem; color: var(--text-dim); padding-block: .3rem; }

.day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .85rem;
  color: var(--text);
}
.day:active:not(:disabled) { background: var(--hover-tint); }
.day.is-out { color: var(--text-dim); opacity: .7; }
.day:disabled { opacity: .28; cursor: not-allowed; }
.day.is-today { font-weight: 700; color: var(--red-light); box-shadow: inset 0 0 0 1px rgba(200, 22, 29, .5); }
.day.in-range { background: rgba(200, 22, 29, .16); border-radius: 0; }
.day.is-selected { background: var(--red); color: #fff; font-weight: 600; box-shadow: 0 4px 14px -4px rgba(200, 22, 29, .9); }
.day.is-start.has-range { border-radius: 50% 0 0 50%; }
.day.is-end.has-range   { border-radius: 0 50% 50% 0; }

.calendar__hint { margin-top: .75rem; font-size: .72rem; color: var(--text-dim); }

.scheduler__details { display: flex; flex-direction: column; gap: .85rem; }

.datebox {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .5rem .5rem .85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--input-bg);
}
.datebox__value { flex: 1; font-size: .85rem; color: var(--text); }
.datebox__time {
  appearance: none;
  padding: .35rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(200, 22, 29, .3);
  background: rgba(200, 22, 29, .12);
  color: var(--red-light);
  font-size: .82rem;
  font-weight: 600;
}
.datebox__time option { background: var(--surface); color: var(--text); }

.scheduler__foot { padding-top: 1rem; border-top: 1px solid var(--line); }
.scheduler__summary { font-size: .8rem; color: var(--text-dim); margin-bottom: .9rem; }
.scheduler__actions { display: flex; justify-content: flex-end; gap: .6rem; }

.scheduler__done { text-align: center; padding: 1.5rem .5rem; }
.scheduler__done-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(200, 22, 29, .14);
  border: 1px solid rgba(200, 22, 29, .4);
}
.scheduler__done-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--red-light); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.scheduler__done h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .5rem; }
.scheduler__done p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.4rem; }

/* narrow phones */
@media (max-width: 360px) {
  .card { padding-inline: 1.1rem; }
  .card__actions { flex-direction: column; }
}
