/* =============================================================
   Camila Oliveira — Storymaker & Mobile Creator
   Paleta extraída do retrato: preto quente, mel/caramelo,
   champanhe e um toque de terracota.
   ============================================================= */

:root {
  /* --- Fundos --- */
  --bg-deep:      #080706;
  --bg:           #0F0C0A;
  --bg-soft:      #17120E;

  /* --- Acentos quentes --- */
  --gold:         #D9A96C;   /* mel / caramelo do cabelo */
  --gold-light:   #F0D2A6;   /* champanhe */
  --gold-deep:    #A9773F;
  --rose:         #C98878;   /* terracota suave */
  --emerald:      #4FCF8B;   /* WhatsApp harmonizado */
  --emerald-deep: #0F2C21;

  /* --- Texto --- */
  --text:         #F6EFE7;
  --text-soft:    #C9BCB0;
  --text-muted:   #8E8177;

  /* --- Superfícies de vidro --- */
  --surface:      rgba(255, 240, 224, 0.038);
  --surface-hi:   rgba(255, 240, 224, 0.068);
  --stroke:       rgba(240, 210, 166, 0.13);
  --stroke-hi:    rgba(240, 210, 166, 0.28);

  /* --- Tipografia --- */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* --- Métricas --- */
  --card-w:       456px;
  --radius-lg:    26px;
  --radius-md:    18px;
  --ease:         cubic-bezier(.22, .68, 0, 1);
}

/* ---------------------------- Reset ---------------------------- */

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

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

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, p, ul { margin: 0; }

ul { padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

::selection {
  color: var(--bg-deep);
  background: var(--gold-light);
}

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

/* ------------------------ Fundo ambiente ----------------------- */

.ambience {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #1B1410 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 55%, #060505 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}

.orb--gold {
  top: -14vh;
  left: 50%;
  width: min(78vw, 520px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(217, 169, 108, .55) 0%, rgba(217, 169, 108, 0) 70%);
  translate: -50% 0;
  animation: drift-a 22s var(--ease) infinite alternate;
}

.orb--rose {
  right: -18vw;
  bottom: 6vh;
  width: min(70vw, 440px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201, 136, 120, .40) 0%, rgba(201, 136, 120, 0) 70%);
  animation: drift-b 26s var(--ease) infinite alternate;
}

.orb--sand {
  bottom: -12vh;
  left: -14vw;
  width: min(66vw, 400px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(169, 119, 63, .34) 0%, rgba(169, 119, 63, 0) 70%);
  animation: drift-a 30s var(--ease) infinite alternate-reverse;
}

@keyframes drift-a {
  to { transform: translate3d(4%, 5%, 0) scale(1.14); }
}

@keyframes drift-b {
  to { transform: translate3d(-6%, -4%, 0) scale(1.1); }
}

/* Granulado de filme — dá textura e evita banding nos gradientes */
/* Textura leve: evita banding nos gradientes sem custo de composição */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: .28;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  animation: grain 4.8s steps(5) infinite;
}

@keyframes grain {
  0%   { background-position:   0px   0px; }
  20%  { background-position: -18px  12px; }
  40%  { background-position:  14px -20px; }
  60%  { background-position: -12px -14px; }
  80%  { background-position:  20px   8px; }
  100% { background-position:   0px   0px; }
}

/* ------------------------- Palco / cartão ---------------------- */

.stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding:
    max(32px, env(safe-area-inset-top))
    20px
    max(32px, env(safe-area-inset-bottom));
}

.card {
  position: relative;
  width: 100%;
  max-width: var(--card-w);
  padding: 40px 26px 26px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 240, 224, .060) 0%, rgba(255, 240, 224, .016) 38%, rgba(255, 240, 224, .030) 100%),
    linear-gradient(180deg, rgba(14, 11, 9, .58), rgba(9, 7, 6, .72));
  box-shadow:
    0 1px 0 rgba(255, 240, 224, .10) inset,
    0 30px 70px -30px rgba(0, 0, 0, .85),
    0 0 90px -50px rgba(217, 169, 108, .6);
}

/* Fio de luz dourado na borda superior */
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 210, 166, .75), transparent);
}

/* --------------------------- Compartilhar ---------------------- */

.share {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--text-soft);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--surface);
  transition: color .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease), transform .3s var(--ease);
}

.share svg { width: 17px; height: 17px; }

.share:hover {
  color: var(--gold-light);
  border-color: var(--stroke-hi);
  background: var(--surface-hi);
  transform: translateY(-2px);
}

.share:active { transform: translateY(0) scale(.94); }

/* ----------------------------- Perfil -------------------------- */

.profile { text-align: center; }

.avatar {
  position: relative;
  width: 142px;
  height: 142px;
  margin: 0 auto 22px;
}

/* Brilho difuso atrás do retrato */
.avatar__halo {
  position: absolute;
  inset: -26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 169, 108, .40) 0%, rgba(217, 169, 108, 0) 68%);
  filter: blur(14px);
  animation: pulse 5.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

/* Anel gradiente girando lentamente */
.avatar__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
              var(--gold-deep), var(--gold-light), var(--rose),
              var(--gold), var(--gold-deep));
  animation: spin 14s linear infinite;
}

.avatar__ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg);
}

@keyframes spin { to { rotate: 360deg; } }

.avatar picture { display: contents; }

.avatar__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  background: var(--bg-soft);
  box-shadow: 0 12px 34px -12px rgba(0, 0, 0, .9);
}

/* Etiqueta de função */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px 6px 11px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--surface);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 1px rgba(217, 169, 108, .9);
  animation: pulse 2.6s ease-in-out infinite;
}

.name {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--gold-light);
}

/* Degradê no nome — só onde o recorte de texto é suportado */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .name {
    background: linear-gradient(170deg, #FFF8EF 12%, var(--gold-light) 58%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.tagline {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(16px, 4.4vw, 18px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: var(--text-soft);
}

.divider {
  width: 100%;
  height: 1px;
  margin: 26px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--stroke-hi) 30%, var(--stroke-hi) 70%, transparent);
}

/* ----------------------------- Sobre --------------------------- */

.about {
  display: grid;
  gap: 13px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-soft);
  text-align: center;
  text-wrap: pretty;
}

.about strong {
  font-weight: 500;
  color: var(--gold-light);
}

/* ------------------- Nichos (desativado) -----------------------
   O bloco de etiquetas (Marcas, Lojas, Eventos...) foi retirado do
   index.html. O estilo continua aqui: para trazer de volta, basta
   reinserir a lista <ul class="chips"> antes da seção de links.
   --------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin: 22px 0 30px;
}

.chips li {
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 240, 224, .022);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}

.chips li:hover {
  color: var(--gold-light);
  border-color: var(--stroke-hi);
}

/* ----------------------------- Links --------------------------- */

.links {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.links__prompt {
  margin-bottom: 2px;
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--text-muted);
  text-align: center;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              background .35s var(--ease), box-shadow .35s var(--ease);
}

/* Brilho suave que acompanha o cursor (coordenadas vindas do main.js) */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(190px circle at var(--mx, 50%) var(--my, 50%),
              rgba(240, 210, 166, .14), transparent 68%);
  transition: opacity .4s var(--ease);
  pointer-events: none;
}

.btn:hover::before { opacity: 1; }

/* Reflexo que atravessa o botão no hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 246, 235, .16) 48%, transparent 66%);
  translate: -110% 0;
  transition: translate .75s var(--ease);
}

.btn:hover { transform: translateY(-3px); }
.btn:hover::after { translate: 110% 0; }
.btn:active { transform: translateY(-1px) scale(.99); }

/* Mantém o conteúdo acima das camadas de brilho */
.btn__icon,
.btn__body,
.btn__arrow {
  position: relative;
  z-index: 1;
}

.btn__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  transition: transform .35s var(--ease);
}

.btn__icon svg { width: 20px; height: 20px; }

.btn:hover .btn__icon { transform: scale(1.08) rotate(-4deg); }

.btn__body {
  display: grid;
  gap: 1px;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;   /* o botão do portfólio é um <button>: reposiciona o texto */
}

.btn__label {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--text);
}

.btn__sub {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-muted);
}

.btn__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  color: var(--text-muted);
  transition: transform .35s var(--ease), color .35s var(--ease);
}

.btn__arrow svg { width: 18px; height: 18px; }

.btn:hover .btn__arrow { transform: translateX(4px); }

/* --- Botão principal: Portfólio --- */

.btn--primary {
  border-color: rgba(240, 210, 166, .32);
  background:
    linear-gradient(135deg, rgba(217, 169, 108, .20) 0%, rgba(201, 136, 120, .12) 55%, rgba(217, 169, 108, .06) 100%);
  box-shadow: 0 10px 30px -18px rgba(217, 169, 108, .8);
}

.btn--primary:hover {
  border-color: rgba(240, 210, 166, .55);
  box-shadow: 0 16px 40px -18px rgba(217, 169, 108, .95);
}

.btn--primary .btn__icon {
  color: #2A1B0E;
  background: linear-gradient(150deg, var(--gold-light), var(--gold) 75%);
  box-shadow: 0 6px 18px -8px rgba(217, 169, 108, .95);
}

.btn--primary .btn__label { color: #FFF6EA; }
.btn--primary .btn__sub   { color: rgba(240, 210, 166, .78); }
.btn--primary .btn__arrow { color: var(--gold-light); }

/* --- Botão secundário: WhatsApp --- */

.btn--whats:hover {
  border-color: rgba(79, 207, 139, .38);
  background: rgba(79, 207, 139, .07);
  box-shadow: 0 16px 40px -22px rgba(79, 207, 139, .8);
}

.btn--whats .btn__icon {
  color: var(--emerald);
  background: linear-gradient(150deg, rgba(79, 207, 139, .18), var(--emerald-deep));
  box-shadow: inset 0 0 0 1px rgba(79, 207, 139, .22);
}

.btn--whats:hover .btn__arrow { color: var(--emerald); }

/* ----------------------------- Rodapé -------------------------- */

.foot {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(240, 210, 166, .09);
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease), transform .3s var(--ease);
}

.social svg { width: 16px; height: 16px; }

.social:hover {
  color: var(--gold-light);
  border-color: var(--stroke);
  background: var(--surface);
  transform: translateY(-2px);
}

.foot__copy {
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(142, 129, 119, .65);
}

/* ------------------------------ Pop-up ------------------------- */

.modal {
  width: min(340px, calc(100vw - 40px));
  padding: 0;
  color: var(--text);
  border: 1px solid var(--stroke-hi);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 240, 224, .075) 0%, rgba(255, 240, 224, .018) 45%, rgba(255, 240, 224, .045) 100%),
    linear-gradient(180deg, #17120E, #0C0908);
  box-shadow:
    0 1px 0 rgba(255, 240, 224, .12) inset,
    0 40px 90px -30px rgba(0, 0, 0, .95),
    0 0 120px -55px rgba(217, 169, 108, .9);
  overflow: hidden;
}

/* Fio de luz dourado, igual ao do cartão */
.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 210, 166, .8), transparent);
}

.modal::backdrop {
  background: rgba(6, 5, 4, .72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal[open] { animation: modal-in .45s var(--ease); }
.modal[open]::backdrop { animation: fade-in .45s var(--ease); }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

.modal__inner {
  display: grid;
  justify-items: center;
  padding: 40px 26px 26px;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  border-radius: 10px;
  transition: color .3s var(--ease), background .3s var(--ease);
}

.modal__close svg { width: 15px; height: 15px; }

.modal__close:hover {
  color: var(--gold-light);
  background: var(--surface-hi);
}

.modal__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  color: var(--gold);
  border: 1px solid var(--stroke-hi);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(217, 169, 108, .22), transparent 70%);
  animation: pulse 3.4s ease-in-out infinite;
}

.modal__mark svg { width: 26px; height: 26px; }

.modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(23px, 6.6vw, 27px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--gold-light);
  text-wrap: balance;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .modal__title {
    background: linear-gradient(165deg, #FFF8EF 10%, var(--gold-light) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.modal__ok {
  margin-top: 26px;
  padding: 11px 30px;
  font-size: 14px;
  font-weight: 600;
  color: #2A1B0E;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--gold-light), var(--gold) 78%);
  box-shadow: 0 10px 26px -12px rgba(217, 169, 108, .95);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.modal__ok:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(217, 169, 108, 1);
}

.modal__ok:active { transform: translateY(0) scale(.97); }

/* ------------------------------ Toast -------------------------- */

.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 10;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bg-deep);
  border-radius: 999px;
  background: linear-gradient(140deg, var(--gold-light), var(--gold));
  box-shadow: 0 14px 36px -14px rgba(0, 0, 0, .9);
  opacity: 0;
  translate: -50% 18px;
  pointer-events: none;
  transition: opacity .35s var(--ease), translate .35s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  translate: -50% 0;
}

/* --------------------- Animação de entrada --------------------- */

.reveal {
  opacity: 0;
  translate: 0 16px;
  filter: blur(6px);
  animation: reveal .85s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes reveal {
  to {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}

/* ---------------------------- Telas -------------------------- */

@media (max-width: 380px) {
  .card    { padding: 34px 18px 20px; }
  .avatar  { width: 122px; height: 122px; }
  .btn     { padding: 13px 13px; gap: 12px; }
  .btn__icon { width: 38px; height: 38px; }
  .about   { font-size: 14px; }
}

@media (min-width: 560px) {
  .card { padding: 46px 34px 30px; }
}

/* Telas altas: um respiro maior no topo */
@media (min-height: 900px) and (min-width: 560px) {
  .stage { padding-block: 56px; }
}

/* ------------------------ Acessibilidade ----------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; translate: none; filter: none; }
  .grain  { animation: none; }
}

@media (prefers-contrast: more) {
  :root {
    --text-soft:  #E4DAD0;
    --text-muted: #B8ABA1;
    --stroke:     rgba(240, 210, 166, .3);
  }
}

/* ---------------------------- Impressão ------------------------ */

@media print {
  .ambience, .grain, .share, .toast { display: none; }
  body { background: #fff; color: #000; }
  .card { border-color: #ccc; box-shadow: none; backdrop-filter: none; }
  .name { color: #000; -webkit-text-fill-color: #000; }
}
