/* =============================================================================
   Caroline Amaral — Bio page
   Paleta e linguagem visual alinhadas às referências (boas-vindas + cartão)
   Fundo navy escuro · Dourado #c5a572 · Tipografia Georgia
   ============================================================================= */

:root {
  /* Paleta — mesma das referências */
  --navy-deep:   #16213e;
  --navy-dark:   #1a1a2e;
  --navy-mid:    #0f3460;
  --gold:        #c5a572;
  --gold-dark:   #a88d5f;
  --gold-subtle: rgba(197, 165, 114, 0.2);
  --gold-border: rgba(197, 165, 114, 0.35);
  --white:       #ffffff;
  --white-90:    rgba(255, 255, 255, 0.9);
  --white-75:    rgba(255, 255, 255, 0.75);
  --white-10:    rgba(255, 255, 255, 0.10);
  --white-07:    rgba(255, 255, 255, 0.07);
  --divider:     rgba(197, 165, 114, 0.25);

  /* Tipografia — Georgia como nas referências */
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Escala */
  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   clamp(1.5rem, 4vw, 2rem);
  --text-2xl:  clamp(2rem, 5vw, 2.75rem);

  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 999px;

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --max-content: 32rem;
  --transition: 0.3s ease;
}

/* -----------------------------------------------------------------------------
   Reset
   ----------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
}

img   { max-width: 100%; height: auto; display: block; }
h1,h2,h3,p,ul { margin: 0; }
ul    { padding: 0; list-style: none; }
a     { color: inherit; text-decoration: none; }

/* -----------------------------------------------------------------------------
   Acessibilidade
   ----------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--navy-deep);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform var(--transition);
  border: 1px solid var(--gold-border);
}
.skip-link:focus { transform: translateY(0); }

/* Fundo decorativo (não obstrui a legibilidade) */
.page-bg { display: none; }

/* -----------------------------------------------------------------------------
   Animação de entrada
   ----------------------------------------------------------------------------- */

.js-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------------------------------------------
   Layout principal
   ----------------------------------------------------------------------------- */

.main {
  width: min(100% - var(--space-8), var(--max-content));
  margin-inline: auto;
  padding: var(--space-10) var(--space-4) var(--space-12);
}

/* -----------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------------- */

.hero {
  position: relative;
  text-align: center;
  padding-block: var(--space-6) var(--space-10);
}

/* Linha decorativa topo — igual à .decorative-line das referências */
.hero__accent {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

/* Foto — mesma borda dourada das referências */
.hero__photo-wrap {
  margin: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid var(--gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: scaleIn 0.8s ease-out 0.3s both;
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: var(--navy-deep);
}

@media (max-width: 480px) {
  .hero__photo-wrap { width: 150px; height: 150px; }
}

/* Eyebrow — cor dourada, letras maiúsculas, tracking */
.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: var(--space-2);
}

/* Nome principal */
.hero__name {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: bold;
  line-height: 1.2;
  color: var(--white);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
}

/* Subtítulo dourado */
.hero__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: calc(var(--space-2) * -0.5);
}

/* Bio */
.hero__bio {
  max-width: 38ch;
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--white-90);
  text-align: center;
}

@media (min-width: 640px) {
  .hero__bio { max-width: 44ch; font-size: var(--text-base); }
}

/* Linha decorativa entre hero e cards */
.hero__divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--space-2) auto 0;
}

/* -----------------------------------------------------------------------------
   Badges de certificação — mesma estética das referências
   ----------------------------------------------------------------------------- */

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-2);
}

.hero__badge {
  background: var(--gold-subtle);
  border: 2px solid var(--gold);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-family: var(--font-sans);
}

/* -----------------------------------------------------------------------------
   Cards
   ----------------------------------------------------------------------------- */

.card {
  background: var(--white-07);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: bold;
  color: var(--white);
  margin-bottom: var(--space-5);
  text-align: center;
}

.contact-card { margin-bottom: var(--space-8); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-border);
  background: var(--white-07);
  transition: background var(--transition), border-color var(--transition);
}
.contact-link:hover {
  background: rgba(197, 165, 114, 0.12);
  border-color: var(--gold);
}

.contact-link__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
}

.contact-link__value {
  font-size: var(--text-sm);
  color: var(--white-90);
  word-break: break-word;
}

/* -----------------------------------------------------------------------------
   Seção de links
   ----------------------------------------------------------------------------- */

.section-heading {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: bold;
  color: var(--white);
  text-align: center;
  margin-bottom: var(--space-6);
}

.link-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.link-card {
  background: var(--white-07);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--gold-border);
  text-align: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.link-card:hover {
  background: rgba(197, 165, 114, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.link-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: bold;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.link-card__subtitle {
  font-size: var(--text-sm);
  color: var(--white-75);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   Botões — estilo cta-button das referências
   ----------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 40px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--full { width: 100%; }

/* Botão primário: gradiente dourado → texto navy */
.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-deep);
  box-shadow: 0 8px 25px rgba(197, 165, 114, 0.3);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(197, 165, 114, 0.5);
}
.btn--primary:active { transform: translateY(0); }

/* Botão secundário: outline dourado → fundo transparente */
.btn--secondary {
  background: var(--gold-subtle);
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn--secondary:hover {
  background: rgba(197, 165, 114, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 165, 114, 0.2);
}
.btn--secondary:active { transform: translateY(0); }

/* -----------------------------------------------------------------------------
   Rodapé
   ----------------------------------------------------------------------------- */

.site-footer {
  width: min(100% - var(--space-8), var(--max-content));
  margin-inline: auto;
  padding: var(--space-8) var(--space-4) var(--space-12);
  text-align: center;
  border-top: 1px solid var(--divider);
}

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: bold;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.site-footer__tagline {
  font-size: var(--text-xs);
  line-height: 1.7;
  color: var(--white-75);
  max-width: 38ch;
  margin-inline: auto;
}

/* Navegação entre páginas */
.subpages-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--divider);
}

.subpages-nav a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white-90);
  text-decoration: underline;
  text-decoration-color: var(--gold-border);
  text-underline-offset: 4px;
}
.subpages-nav a:hover { color: var(--gold); }

.site-footer__subnav {
  margin-top: var(--space-6);
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  border-top: 1px solid var(--divider);
  padding-top: var(--space-6);
}

/* -----------------------------------------------------------------------------
   Preferência de movimento reduzido
   ----------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
  .hero__photo-wrap { animation: none; }
  .btn, .link-card, .contact-link { transition: none; }
  .link-card:hover, .btn:hover, .btn--primary:hover, .btn--secondary:hover { transform: none; }
}
