/* ============================================================
   GastroMED — Cartões Virtuais · Redesign
   Tema: identidade do site gastromedgaranhuns.com.br
   Warm dark · Gold #D4921B · Inter + Playfair Display
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,400;1,700&display=swap');

:root {
  --gold:          #D4921B;
  --gold-light:    #f0b84a;
  --gold-dim:      #9a6810;
  --bg:            #0b0905;
  --surface:       #161109;
  --surface-2:     #1f1810;
  --surface-3:     #2a2118;
  --border:        rgba(212,146,27,0.14);
  --border-hover:  rgba(212,146,27,0.35);
  --text:          #f5efe6;
  --text-muted:    #8c7a65;
  --text-sub:      #bfaf9e;
  --white:         #ffffff;
  --radius:        18px;
  --radius-sm:     12px;
  --radius-pill:   999px;
  --shadow:        0 12px 40px rgba(0,0,0,0.55);
  --shadow-gold:   0 8px 24px rgba(212,146,27,0.18);
  --t:             0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-wrapper {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.card-header img.logo {
  height: 36px;
  object-fit: contain;
}

.profile-hero {
  position: relative;
  background: var(--bg);
  padding: 0 0 24px;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold-light) 60%, transparent 100%);
}

.profile-photo-wrap {
  position: relative;
  padding: 24px 24px 0;
  display: flex;
  justify-content: center;
}

.profile-photo {
  width: 130px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(212,146,27,0.08);
  display: block;
  position: relative;
  z-index: 1;
}

.profile-photo-placeholder {
  width: 130px;
  height: 160px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--gold-dim);
  margin: 0 auto;
}

.profile-photo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,146,27,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.profile-info {
  padding: 18px 24px 0;
  text-align: center;
}

.specialty-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.specialty-tag::before,
.specialty-tag::after {
  content: '';
  display: block;
  height: 1px;
  width: 24px;
  background: var(--gold);
  opacity: 0.6;
}

.profile-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.crm-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.crm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-sub);
  background: rgba(212,146,27,0.06);
}

.crm-badge svg {
  width: 11px;
  height: 11px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* BIO / ESPECIALIDADES */
.bio-section {
  padding: 20px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bio-text {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.7;
}

.areas-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.area-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  font-size: 0.75rem;
  color: var(--text-sub);
  background: rgba(255,255,255,0.03);
  line-height: 1;
}

.area-chip-foco {
  border-color: var(--gold);
  background: rgba(212,146,27,0.09);
  color: var(--gold-light);
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  width: 100%;
}

.area-chip-foco-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}

.area-chip-foco-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
}

.formation-block { display: flex; flex-direction: column; gap: 4px; }

.formation-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.formation-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.formation-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.formation-item:last-child { border-bottom: none; }

.formation-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 5px;
  flex-shrink: 0;
}

/* LOCALIZAÇÃO */
.location-section {
  margin: 0 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.location-section h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-section h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.info-row:last-child { border-bottom: none; }
.info-row .icon { font-size: 1rem; min-width: 20px; text-align: center; margin-top: 2px; }
.info-row .content { flex: 1; }

.info-row .label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
  font-weight: 600;
}

.info-row .value {
  font-size: 0.83rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

/* BOTÕES */
.actions-section {
  padding: 20px 18px 8px;
}

.actions-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.actions-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: all var(--t);
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  color: var(--text);
  width: 100%;
  text-align: center;
  font-family: inherit;
  line-height: 1;
}

.action-btn:active { transform: scale(0.96); }

.action-btn .btn-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.action-btn .btn-label {
  line-height: 1.2;
  font-size: 0.7rem;
}

.action-btn .btn-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  display: block;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.btn-cta {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
}

.btn-cta .btn-icon { font-size: 1.2rem; }
.btn-cta .btn-label { font-size: 0.92rem; }

.btn-secondary {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
}

.btn-secondary .btn-icon { font-size: 1.1rem; }
.btn-secondary .btn-label { font-size: 0.82rem; }

.btn-whatsapp {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn-whatsapp:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-whatsapp .btn-sub { color: rgba(255,255,255,0.75); }

.btn-imc { background: rgba(212,146,27,0.08); border-color: var(--border-hover); color: var(--gold-light); }
.btn-imc:hover { background: rgba(212,146,27,0.15); }

.btn-compact {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
}
.btn-compact:hover { background: rgba(255,255,255,0.09); border-color: var(--border-hover); }

.btn-phone   { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.07); }
.btn-email   { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.07); }
.btn-primary { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.07); }

.btn-instagram { background: rgba(225,48,108,0.07); border-color: rgba(225,48,108,0.15); }
.btn-instagram:hover { background: rgba(225,48,108,0.14); }

.btn-facebook { background: rgba(24,119,242,0.07); border-color: rgba(24,119,242,0.15); }
.btn-facebook:hover { background: rgba(24,119,242,0.14); }

.btn-maps { background: rgba(251,188,4,0.07); border-color: rgba(251,188,4,0.15); }
.btn-maps:hover { background: rgba(251,188,4,0.14); }

.btn-linkedin { background: rgba(0,119,181,0.07); border-color: rgba(0,119,181,0.15); }
.btn-linkedin:hover { background: rgba(0,119,181,0.14); }

.btn-youtube { background: rgba(255,0,0,0.07); border-color: rgba(255,0,0,0.15); }
.btn-youtube:hover { background: rgba(255,0,0,0.13); }

.btn-full {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.btn-full:hover { background: rgba(255,255,255,0.08); border-color: var(--border-hover); }
.btn-full .btn-label { font-size: 0.82rem; }
.btn-share { color: var(--gold-light); border-color: var(--border-hover); background: rgba(212,146,27,0.05); }
.btn-vcf   { color: var(--text-sub); }

/* MODAL IMC */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--surface-2);
  border-radius: var(--radius) var(--radius) 0 0;
  border-top: 2px solid var(--gold);
  padding: 28px 24px 44px;
  width: 100%;
  max-width: 430px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.modal-title { font-size: 1.05rem; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}

.modal-close:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.imc-form { display: flex; flex-direction: column; gap: 14px; }

.imc-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
  display: block;
  font-weight: 600;
}

.imc-input {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--t);
  outline: none;
}

.imc-input:focus { border-color: var(--gold); }
.imc-input::placeholder { color: var(--text-muted); }

.imc-calc-btn {
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t);
  box-shadow: var(--shadow-gold);
}

.imc-calc-btn:hover { background: var(--gold-light); }
.imc-calc-btn:active { transform: scale(0.98); }

.imc-result {
  display: none;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.imc-result.show { display: block; }

.imc-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

.imc-category { font-size: 0.9rem; color: var(--text); margin-top: 6px; font-weight: 600; }
.imc-note { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }

.imc-bar-wrap {
  margin-top: 12px;
  border-radius: 4px;
  overflow: hidden;
  height: 5px;
  background: linear-gradient(90deg, #3b82f6, #22c55e, #f59e0b, #ef4444);
  position: relative;
}

.imc-bar-marker {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 13px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.5s ease;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

/* DIVIDER */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 18px;
}

/* FOOTER */
.card-footer {
  margin-top: auto;
  padding: 18px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.card-footer p { font-size: 0.7rem; color: var(--text-muted); line-height: 1.6; }
.card-footer a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* INDEX */
.index-page { padding: 36px 20px; width: 100%; }
.index-header { text-align: center; margin-bottom: 28px; }
.index-header img { height: 44px; margin-bottom: 16px; }

.index-header h1 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.index-header p { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }
.cards-list { display: flex; flex-direction: column; gap: 10px; }

.card-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--t);
}

.card-link:hover { border-color: var(--border-hover); background: var(--surface-3); }

.card-link-avatar {
  width: 54px;
  height: 66px;
  border-radius: 10px;
  border: 1px solid var(--border-hover);
  object-fit: cover;
  flex-shrink: 0;
}

.card-link-avatar-ph {
  width: 54px;
  height: 66px;
  border-radius: 10px;
  border: 1px solid var(--border-hover);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-dim);
  flex-shrink: 0;
}

.card-link-info h3 { font-size: 0.92rem; font-weight: 700; }
.card-link-info .card-link-title { font-size: 0.72rem; color: var(--gold-light); margin-top: 2px; }
.card-link-info .card-link-crm { font-size: 0.68rem; color: var(--text-muted); margin-top: 3px; }
.card-link-arrow { margin-left: auto; color: var(--gold); font-size: 1.2rem; flex-shrink: 0; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 2px; }

@media (min-width: 430px) {
  .card-wrapper, .modal-box {
    border-radius: var(--radius);
    margin: 24px auto;
    min-height: unset;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  }
  body { padding: 0 16px; background: #050402; }
  .modal-overlay { align-items: center; }
  .modal-box { border-radius: var(--radius); border: 1px solid var(--border); }
}
