/* 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: -54px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 108px;
  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); }

/* ---------- 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; }

/* =====================================================================
   Booking modal. The calendar inside it is a Cal.com embed (js/vcard.js),
   so only the shell is styled here - the embed themes itself through the
   cssVarsPerTheme values passed at init.
   ===================================================================== */

.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;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: min(92vh, 820px);
  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 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;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-black);
}
.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: center; gap: .75rem; margin-bottom: .9rem; 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; }

/* Cal.com injects its iframe in here and sizes it itself */
.scheduler__embed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.scheduler__embed iframe { border: 0; }

.scheduler__loading {
  padding: 2rem .5rem;
  text-align: center;
  font-size: .86rem;
  color: var(--text-dim);
}
.scheduler__loading a { color: var(--red-light); font-weight: 600; text-decoration: underline; }

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