/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --blue:        #040d50;
  --yellow:      #ffe11a;
  --gray:        #999999;
  --white:       #ffffff;
  --off-white:   #f7f5ef;
  --soft-blue:   #eef1fa;
  --text:        #101426;
  --muted:       #5c6070;
  --line:        rgba(4, 13, 80, 0.09);
  --line-strong: rgba(4, 13, 80, 0.18);
  --shadow-card:
    0 1px 2px  rgba(4, 13, 80, 0.04),
    0 4px 8px  rgba(4, 13, 80, 0.05),
    0 14px 28px rgba(4, 13, 80, 0.08),
    0 36px 72px rgba(4, 13, 80, 0.06);
  --shadow-soft: 0 4px 16px rgba(4, 13, 80, 0.08), 0 1px 4px rgba(4, 13, 80, 0.04);
  --shadow-lift: 0 8px 28px rgba(4, 13, 80, 0.14), 0 2px 6px rgba(4, 13, 80, 0.06);
  --radius-lg:  32px;
  --radius-md:  20px;
  --radius-sm:  14px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--off-white);
  background-image:
    radial-gradient(ellipse 85% 55% at -5% -5%, rgba(255, 225, 26, 0.24) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 108% 95%, rgba(4, 13, 80, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 100% 55% at 50% 0%, rgba(238, 241, 250, 0.9) 0%, transparent 80%);
  color: var(--text);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

/* Subtle grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9998;
}

button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, p, figure { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }

/* ─── TYPOGRAPHY ──────────────────────────────────── */
h1 {
  color: var(--blue);
  font-size: clamp(1.55rem, 5.5vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h2 {
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ─── KEYFRAMES ───────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(255, 225, 26, 0.55); }
  50%       { box-shadow: 0 0 0 5px rgba(255, 225, 26, 0); }
}

/* Load animations — staggered */
.profile-header { animation: fadeSlideUp 0.55s var(--ease) both; }
.profile-hero   { animation: fadeSlideUp 0.55s 0.08s var(--ease) both; }
.contact-list   { animation: fadeSlideUp 0.55s 0.16s var(--ease) both; }
.quick-actions  { animation: fadeSlideUp 0.55s 0.22s var(--ease) both; }

/* Scroll reveal */
.reveal-section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SHELL ───────────────────────────────────────── */
.profile-shell {
  min-height: 100vh;
  padding: 20px 16px;
}

/* ─── CARD ────────────────────────────────────────── */
.profile-card {
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  background: rgba(247, 245, 239, 0.91);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ─── HEADER ──────────────────────────────────────── */
.profile-header {
  display: grid;
  justify-items: center;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.brand-logo {
  width: min(180px, 52vw);
  height: auto;
}

/* ─── BADGE & LABELS ──────────────────────────────── */
.profile-badge,
.section-heading span,
.formation-link {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(4, 13, 80, 0.1);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(4, 13, 80, 0.06);
}

.profile-badge::before,
.section-heading span::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 225, 26, 0.28);
  animation: dotPulse 2.8s ease infinite;
}

.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ─── HERO ────────────────────────────────────────── */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 24px 22px;
  text-align: center;
}

/* Circular profile photo — compact card style */
.profile-photo-frame {
  position: relative;
  width: 124px;
  height: 124px;
  flex-shrink: 0;
}

/* Yellow ring decoration */
.profile-photo-frame::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    var(--yellow) 0deg,
    var(--yellow) 210deg,
    transparent 210deg
  );
  z-index: 0;
}

.profile-photo {
  position: relative;
  z-index: 1;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 6px 24px rgba(4, 13, 80, 0.16), 0 2px 6px rgba(4, 13, 80, 0.08);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ─── COPY ────────────────────────────────────────── */
.profile-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.profile-role {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.profile-role span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-role span::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.profile-role span:first-child::before { display: none; }

.profile-summary {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 2px;
}

/* ─── AVAILABILITY CHIP ───────────────────────────── */
.availability-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 225, 26, 0.55);
  background: var(--white);
  box-shadow:
    0 2px 10px rgba(4, 13, 80, 0.07),
    0 0 0 4px rgba(255, 225, 26, 0.1);
  margin-top: 4px;
  animation: chipPop 0.45s 0.35s var(--ease) both;
}

@keyframes chipPop {
  from { opacity: 0; transform: scale(0.88) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.availability-chip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--yellow);
  color: var(--blue);
  flex-shrink: 0;
}

.availability-chip__text {
  padding: 0 14px 0 10px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ─── CONTACT LIST ────────────────────────────────── */
.contact-list {
  display: grid;
  gap: 9px;
  padding: 0 20px 18px;
  font-style: normal;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
}

.contact-list__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--soft-blue);
  color: var(--blue);
  transition: background 200ms var(--ease);
}

.contact-list a span:not(.contact-list__icon) {
  flex: 1;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 0;
}

.contact-list a strong {
  flex-shrink: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: right;
}

/* Primary (WhatsApp) — especificidade elevada para sobrescrever .contact-list a */
.contact-list a.contact-list__primary {
  background: linear-gradient(135deg, var(--blue) 0%, #0a1860 100%);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(4, 13, 80, 0.26), 0 1px 4px rgba(4, 13, 80, 0.14);
}

.contact-list a.contact-list__primary .contact-list__icon {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.contact-list a.contact-list__primary span:not(.contact-list__icon) {
  color: rgba(255, 255, 255, 0.65);
}

.contact-list a.contact-list__primary strong {
  color: var(--white);
}

.contact-list a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(4, 13, 80, 0.16);
}

.contact-list a.contact-list__primary:hover {
  box-shadow: 0 12px 36px rgba(4, 13, 80, 0.3), 0 2px 8px rgba(4, 13, 80, 0.14);
  border-color: transparent;
}

.contact-list a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* ─── QUICK ACTIONS ───────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 0 20px 24px;
}

/* Primary button spans full width */
.quick-actions .action-button:first-child {
  grid-column: 1 / -1;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: none;
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    background 200ms var(--ease),
    border-color 200ms var(--ease);
}

.action-button--primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(4, 13, 80, 0.22), 0 1px 4px rgba(4, 13, 80, 0.10);
}

.action-button--primary::after {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 999px;
  background: var(--yellow);
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.action-button--primary:hover {
  box-shadow: 0 8px 28px rgba(4, 13, 80, 0.28), 0 2px 6px rgba(4, 13, 80, 0.12);
}

.action-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* ─── SECTIONS BASE ───────────────────────────────── */
.metrics,
.about-strip,
.focus-areas,
.photo-slider,
.final-cta {
  margin: 0 20px 14px;
  padding: 20px;
  border: 1px solid rgba(4, 13, 80, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

/* ─── METRICS ─────────────────────────────────────── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 6px;
  border: 1px solid rgba(4, 13, 80, 0.07);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--soft-blue) 0%, rgba(247, 245, 239, 0.7) 100%);
  text-align: center;
}

.metric-grid strong {
  color: var(--blue);
  font-size: clamp(1.3rem, 4.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

/* ─── ABOUT ───────────────────────────────────────── */
.about-strip {
  display: grid;
  gap: 14px;
}

.about-strip > p {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.97rem;
  line-height: 1.6;
}

.credential-list {
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
}

.credential-list li {
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.credential-list li + li {
  border-top: 1px solid var(--line);
}

.formation-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(4, 13, 80, 0.22);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms;
}

.formation-link:hover { text-decoration-color: var(--blue); }

.formation-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* ─── FOCUS AREAS ─────────────────────────────────── */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill-list span {
  padding: 8px 13px;
  border: 1.5px solid rgba(4, 13, 80, 0.1);
  border-radius: 999px;
  background: var(--off-white);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.pill-list span:nth-child(3n+1) {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.pill-list span:nth-child(3n+2) {
  background: rgba(255, 225, 26, 0.18);
  border-color: rgba(255, 225, 26, 0.5);
  color: var(--blue);
}

/* ─── PHOTO SLIDER ────────────────────────────────── */
.photo-slider {
  padding: 0;
  overflow: hidden;
}

.photo-slider .section-heading {
  padding: 20px 20px 12px;
}

.slider {
  display: flex;
  flex-direction: column;
}

.slider__viewport {
  overflow: hidden;
  background: var(--soft-blue);
  /* Cursor feedback for drag */
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}

.slider__viewport.is-dragging {
  cursor: grabbing;
}

.slider__track {
  display: flex;
  transition: transform 340ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.slider__track.no-transition {
  transition: none !important;
}

.slider__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.slider__slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.slider__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 20px;
}

.slider__button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-soft);
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    background 200ms var(--ease),
    color 200ms var(--ease);
}

.slider__button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  background: var(--blue);
  color: var(--white);
}

.slider__button:active {
  transform: scale(0.94);
}

.slider__button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* ─ Pager dots: apenas ±2 do slide atual ficam visíveis.
   Os demais encolhem para width:0 / margin:0 / opacity:0
   sem causar overflow. ─ */
.slider__dots {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* gap:0 — cada dot controla sua própria margem */
  gap: 0;
  min-height: 10px;
  overflow: hidden;
}

.slider__dot {
  flex-shrink: 0;
  width: 0;
  height: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
  cursor: pointer;
  transition:
    width    280ms var(--ease),
    opacity  250ms var(--ease),
    margin   280ms var(--ease),
    background 280ms var(--ease);
}

/* Ativo */
.slider__dot[aria-current="true"] {
  width: 22px;
  background: var(--yellow);
  opacity: 1;
  margin: 0 4px;
}

/* Adjacente (±1) */
.slider__dot.is-near {
  width: 8px;
  background: rgba(4, 13, 80, 0.38);
  opacity: 1;
  margin: 0 4px;
}

/* Borda (±2) */
.slider__dot.is-edge {
  width: 6px;
  background: rgba(4, 13, 80, 0.18);
  opacity: 0.55;
  margin: 0 4px;
}

.slider__dot:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* ─── FINAL CTA ───────────────────────────────────── */
.final-cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  background: linear-gradient(145deg, var(--blue) 0%, #0a1860 100%);
  border: none;
  box-shadow: 0 8px 32px rgba(4, 13, 80, 0.22);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Yellow glow decoration in CTA */
.final-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 225, 26, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta h2 {
  color: var(--white);
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

.final-cta .action-button--primary {
  position: relative;
  z-index: 1;
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--blue);
  box-shadow: 0 4px 18px rgba(255, 225, 26, 0.38);
}

.final-cta .action-button--primary::after { background: var(--blue); }

.final-cta .action-button--primary:hover {
  box-shadow: 0 8px 30px rgba(255, 225, 26, 0.5);
}

/* ─── FOOTER ──────────────────────────────────────── */
.profile-footer {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 24px 20px 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.profile-footer img { width: 42px; }

.profile-footer p {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
}

.profile-footer small {
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (min-width: 720px) {
  .profile-shell {
    display: grid;
    place-items: center;
    padding: 40px;
  }

  .profile-card { border-radius: 36px; }
}

/* Prevent metric numbers from overflowing on very small screens */
@media (max-width: 359px) {
  .metric-grid { gap: 6px; }
  .metric-grid article { padding: 12px 4px; }
  .metric-grid strong { font-size: 1.2rem; }
  .metric-grid span { font-size: 0.62rem; }
}
