/* ============================================================
   Priscila Zaia — priscilazaia.com.br
   Identidade: a árvore colorida. Pontos de cores variadas
   (a "copa da árvore") são o fio condutor visual do site.
   ============================================================ */

:root {
  color-scheme: light;

  /* copa da árvore */
  --berry: #b12a6f;
  --coral: #e24b36;
  --marigold: #ef9f3b;
  --leaf: #85b23f;
  --sky: #3fa9c0;

  /* base */
  --ink: #3f2f3a;
  --ink-soft: #71606c;
  --paper: #fffdfa;
  --card: #faf5ee;
  --line: #ecdfd4;

  --whatsapp: #1fae54;

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Albert Sans", system-ui, -apple-system, sans-serif;
  --font-letter: "Lora", Georgia, serif;

  --radius: 16px;
  --content: 72rem;
  --prose: 44rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--berry);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--coral); }

:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.wrap {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- pontos (assinatura visual) ---------- */

.dots { display: block; height: 22px; width: auto; }

.dots-divider {
  display: flex;
  justify-content: center;
  margin: clamp(2.5rem, 6vw, 4rem) 0;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--ink); }

.brand svg { height: 26px; width: auto; flex: none; }

.site-nav ul {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--line); color: var(--ink); }

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--berry);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg { display: block; }

@media (max-width: 47rem) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -20px rgb(63 47 58 / 0.35);
  }

  .site-header.open .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
  }

  .site-nav a { display: block; padding: 0.65rem 0; font-size: 1.05rem; }
}

/* ---------- hero (home) ---------- */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero-tree img {
  display: block;
  width: 100%;
  max-width: 21rem;
  margin-inline: auto;
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 2rem;
}

@media (max-width: 56rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-tree { order: -1; }
  .hero-tree img { max-width: 17rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- botões ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
}

.btn-primary { background: var(--berry); color: #fff; }
.btn-primary:hover { background: var(--coral); color: #fff; }

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--berry); color: var(--berry); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #178a42; color: #fff; }

/* ---------- seções ---------- */

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-tint { background: var(--card); border-block: 1px solid var(--line); }

.section-head { max-width: var(--prose); margin-bottom: 2rem; }

/* cards de atuação */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card .dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 0.9rem;
}

.card h3 { margin-bottom: 0.35rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

.dot-berry { background: var(--berry); }
.dot-coral { background: var(--coral); }
.dot-marigold { background: var(--marigold); }
.dot-leaf { background: var(--leaf); }
.dot-sky { background: var(--sky); }

/* ---------- retrato / sobre ---------- */

.bio {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.portrait {
  width: min(100%, 20rem);
  margin-inline: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -32px rgb(63 47 58 / 0.4);
}

.portrait-round {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 3px solid var(--paper);
  box-shadow: 0 12px 28px -14px rgb(63 47 58 / 0.45);
}

@media (max-width: 56rem) {
  .bio { grid-template-columns: 1fr; }
}

.credentials {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.credentials li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--berry);
}

.credentials li:nth-child(5n + 2)::before { background: var(--marigold); }
.credentials li:nth-child(5n + 3)::before { background: var(--leaf); }
.credentials li:nth-child(5n + 4)::before { background: var(--sky); }
.credentials li:nth-child(5n + 5)::before { background: var(--coral); }

/* ---------- prosa / carta ---------- */

.prose {
  max-width: var(--prose);
  margin-inline: auto;
}

.prose p { margin: 0 0 1.25em; }

.page-title { text-align: center; max-width: var(--prose); margin-inline: auto; }
.page-title .eyebrow { margin-bottom: 0.75rem; }
.page-title p { color: var(--ink-soft); margin: 0; }

.letter {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  font-family: var(--font-letter);
  font-size: 1.125rem;
  line-height: 1.85;
}

.letter p { margin: 0 0 1.35em; }

.letter .signature {
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* ---------- artigos e links ---------- */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
  border-color: var(--berry);
  box-shadow: 0 16px 32px -24px rgb(63 47 58 / 0.4);
}

.link-card h3 { margin: 0; }

.link-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.link-card h3 a::after { content: ""; position: absolute; inset: 0; }
.link-card { position: relative; }
.link-card h3 a:hover { color: var(--berry); }

.link-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.link-card .source { font-size: 0.85rem; color: var(--ink-soft); }

.chip {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: #fff;
}

.chip-berry { background: var(--berry); }
.chip-coral { background: var(--coral); }
.chip-marigold { background: var(--marigold); }
.chip-leaf { background: var(--leaf); }
.chip-sky { background: var(--sky); }

.link-card .logo {
  height: 44px;
  width: auto;
  align-self: flex-start;
  object-fit: contain;
}

/* ---------- CTA final ---------- */

.cta {
  text-align: center;
  background: var(--card);
  border-block: 1px solid var(--line);
}

.cta .wrap { max-width: 46rem; }

.cta p { color: var(--ink-soft); margin: 0 0 1.75rem; }

.cta .btn-row { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  padding-block: 2.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--berry); }

/* ---------- WhatsApp flutuante ---------- */

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgb(31 174 84 / 0.7);
  transition: transform 0.15s ease;
}

.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

.whatsapp-float svg { width: 1.9rem; height: 1.9rem; }

@media print {
  .site-header, .whatsapp-float, .cta { display: none; }
}
