/* ============================================================
   bio.noelyalves.com.br
   Estilos específicos da página bio.
   Tokens em assets/tokens.css.
   ============================================================ */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sem outline em foco por toque/mouse; mantém pra navegação por teclado (acessibilidade) */
button:focus, a:focus, [tabindex]:focus { outline: none; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

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

/* ----------------------------------------------------------------
   Layout
---------------------------------------------------------------- */
.bio {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* ----------------------------------------------------------------
   Hero
---------------------------------------------------------------- */
.hero {
  text-align: center;
  margin-bottom: 0;
  width: 100%;
}

/* Espaçamento uniforme entre blocos: padrão sp-6 (24px) em volta e entre seções */

.hero-photo {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  border-radius: var(--r-pill) var(--r-pill) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  isolation: isolate;
  background: var(--c-ink);
}

.portrait {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}

.hero-photo__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(36, 42, 20, 1)    0%,
    rgba(36, 42, 20, 1)    14%,
    rgba(36, 42, 20, 0.78) 28%,
    rgba(36, 42, 20, 0.30) 45%,
    rgba(36, 42, 20, 0)    58%
  );
}

.hero-photo__caption {
  position: absolute;
  left: var(--sp-6);
  right: var(--sp-6);
  bottom: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
  color: var(--c-bg);
}

.hero-photo__kicker {
  font-family: var(--font-body);
  font-weight: var(--w-medium);
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.78);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  padding-left: 0.28em;
}

.hero-photo__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--w-semi);
  font-style: normal;
  font-size: clamp(2.5rem, 12vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.005em;
  color: inherit;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.hero-photo__divider {
  width: 64px;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--c-cta-soft);
  opacity: 0.85;
}

.hero-photo__tag {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--w-regular);
  font-style: italic;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: rgba(245, 239, 228, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* ----------------------------------------------------------------
   Cards de link
---------------------------------------------------------------- */
.cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.card-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-lg);
  text-decoration: none;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base), color var(--t-base);
}

@media (hover: hover) {
  .card-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

.card-link:active {
  transform: translateY(0);
}

.card-link__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}

.card-link__title {
  font-family: var(--font-body);
  font-weight: var(--w-semi);
  font-size: var(--fs-lg);
  line-height: var(--lh-tight);
}

.card-link__desc {
  font-family: var(--font-body);
  font-weight: var(--w-regular);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  opacity: 0.85;
}

.card-link__arrow {
  font-family: var(--font-body);
  font-size: var(--fs-xl);
  line-height: 1;
  transition: transform var(--t-base);
}

@media (hover: hover) {
  .card-link:hover .card-link__arrow { transform: translateX(4px); }
  .card-link--primary:hover   { background: var(--c-cta-soft); }
  .card-link--secondary:hover { background: var(--c-ink); color: var(--c-bg); }
}

/* CTA principal: marrom CTA */
.card-link--primary {
  background: var(--c-cta);
  color: var(--c-surface);
}

/* Secundário: superfície clara, bordas e tinta verde-quase-preto */
.card-link--secondary {
  background: var(--c-surface);
  color: var(--c-ink);
  border-color: var(--c-ink);
}

/* ----------------------------------------------------------------
   Footer wordmark
---------------------------------------------------------------- */
.foot {
  margin-top: auto;
  padding-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.foot .wordmark {
  margin: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  color: var(--c-primary);
  opacity: 0.75;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  color: var(--c-ink);
  opacity: 0.6;
  transition: opacity var(--t-base), transform var(--t-fast);
}

@media (hover: hover) {
  .social:hover {
    opacity: 1;
    transform: translateY(-1px);
  }
}

.social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

/* ----------------------------------------------------------------
   Section divider — entre hero (foto) e cards (botões)
---------------------------------------------------------------- */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  margin: var(--sp-6) 0;
  color: var(--c-cta-soft);
  opacity: 0.85;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-divider__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-divider__icon svg {
  fill: currentColor;
  display: block;
}

/* ----------------------------------------------------------------
   Card-link como <button> também (não só <a>)
---------------------------------------------------------------- */
button.card-link {
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

/* ----------------------------------------------------------------
   Modal de FAQ
---------------------------------------------------------------- */
.modal {
  border: none;
  padding: 0;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  color: var(--c-text);
  width: calc(100% - var(--sp-6) * 2);
  max-width: 480px;
  height: min(620px, calc(100dvh - var(--sp-6) * 2));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal:not([open]) {
  display: none;
}

.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modalIn 200ms ease-out;
}

.modal::backdrop {
  background: rgba(36, 42, 20, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

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

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6);
  border-bottom: 1px solid rgba(36, 42, 20, 0.08);
}

.modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--w-semi);
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
  color: var(--c-ink);
}

.modal__close {
  background: transparent;
  border: 0;
  font-size: var(--fs-2xl);
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  color: var(--c-ink);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--t-base), background var(--t-base);
}

@media (hover: hover) {
  .modal__close:hover {
    opacity: 1;
    background: rgba(36, 42, 20, 0.06);
  }
}

.modal__body {
  padding: var(--sp-4) var(--sp-6);
  overflow-y: auto;
  flex: 1;
}

.faq {
  border-bottom: 1px solid rgba(36, 42, 20, 0.08);
  padding: var(--sp-4) 0;
}

.faq:last-of-type {
  border-bottom: 0;
}

.faq summary {
  font-family: var(--font-body);
  font-weight: var(--w-semi);
  font-size: var(--fs-base);
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: var(--w-regular);
  font-size: var(--fs-xl);
  line-height: 1;
  color: var(--c-primary);
  transition: transform var(--t-base);
}

.faq[open] summary::after {
  content: "−";
}

.faq p {
  margin: var(--sp-3) 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--c-text-muted);
}

.modal__hint {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-body);
  font-weight: var(--w-medium);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-surface);
  border-top: 1px solid rgba(36, 42, 20, 0.06);
  transition: opacity var(--t-base), color var(--t-base);
}

/* Fade branco pra cima — esmaece o final do scroll, sugerindo continuação */
.modal__hint::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 36px;
  background: linear-gradient(
    to top,
    var(--c-surface) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

/* Quando chega no fim, esconde o fade junto com a seta — não há mais conteúdo pra esmaecer */
.modal__hint--end::before {
  display: none;
}

.modal__hint--hidden::before {
  display: none;
}

.modal__hint__icon {
  display: block;
  animation: hintBounce 1.6s ease-in-out infinite;
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%      { transform: translateY(3px); opacity: 1; }
}

.modal__hint--end {
  color: var(--c-text-muted);
  opacity: 0.7;
}

.modal__hint--end .modal__hint__icon {
  display: none;
}

.modal__hint--hidden {
  display: none;
}

.modal__foot {
  padding: var(--sp-6);
  border-top: 1px solid rgba(36, 42, 20, 0.08);
  background: var(--c-bg);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
}

.modal__footnote {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.modal__foot .btn {
  width: 100%;
  max-width: 320px;
}
