/* ==========================================================================
   ana gabardo · psicanalista — design system
   paleta: creme quente + tinta café + ameixa (do monograma "ag")
   ========================================================================== */

:root {
  --bg: #faf6f0;
  --bg-alt: #f3ece2;
  --surface: #fffdf9;
  --ink: #2e2621;
  --muted: #6f6055;
  --accent: #8a3b5c;
  --accent-dark: #67293f;
  --accent-soft: #f4e4ea;
  --line: #e6dccf;
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(46, 38, 33, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); }

::selection { background: var(--accent-soft); }

.container {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- tipografia ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.lede-mais { color: var(--muted); }

p { margin: 0 0 1.1em; }

/* ---------- cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.brand .brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.brand .brand-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.main-nav { margin-left: auto; }

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }

.main-nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

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

@media (max-width: 760px) {
  .nav-toggle { display: block; margin-left: auto; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; padding: 0.6rem 1.25rem 1rem; }

  .main-nav a { padding: 0.7rem 0.4rem; border-radius: 8px; font-size: 1.05rem; }
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

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

.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

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

/* ---------- herói ---------- */

.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem); }

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: 0.35em; }

.hero h1 .accent { color: var(--accent); font-style: italic; }

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-roles li { display: flex; align-items: center; }
.hero-roles li + li::before { content: "·"; margin: 0 0.7rem; color: var(--accent); }

.hero p { max-width: 34em; }

.hero-photo {
  position: relative;
}

.hero-photo img {
  border-radius: 46% 54% 52% 48% / 55% 48% 52% 45%;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--surface);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 48% 52% 50% 50% / 52% 46% 54% 48%;
  background: var(--accent-soft);
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo { max-width: 380px; }
}

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

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 44em; margin-bottom: 2.2rem; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */

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

.card h3 { margin-top: 0.2em; }

.card .card-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.card p:last-child { margin-bottom: 0; }

/* ---------- projetos ---------- */

.project {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
}

.project .project-handle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent-dark);
  white-space: nowrap;
}

.card-wide {
  grid-column: 1 / -1;
  padding: 2.4rem 2.6rem;
}

.card-wide .project-handle { font-size: 1.7rem; }

@media (max-width: 560px) {
  .project { grid-template-columns: 1fr; }
}

/* ---------- faixa de chamada ---------- */

.cta-band {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}

.cta-band h2 { color: var(--bg); }

.cta-band .eyebrow { color: var(--accent-soft); }

.cta-band .lead { color: rgba(250, 246, 240, 0.75); }

.cta-band .btn-primary { background: var(--bg); color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; }

/* ---------- percurso ---------- */

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.8rem;
  border-left: 2px solid var(--line);
}

.timeline li:last-child { border-left-color: transparent; padding-bottom: 0.4rem; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--bg);
}

.timeline .year {
  display: inline-block;
  font-weight: 800;
  color: var(--accent-dark);
  margin-right: 0.35rem;
}

.event-photo {
  margin-top: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface);
}

.event-photo img { width: 100%; }

.event-photo figcaption {
  padding: 0.7rem 1rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.stack { display: grid; gap: 2.8rem; }

/* ---------- serviços ---------- */

.service {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}

.service:first-of-type { border-top: 0; padding-top: 0.6rem; }

.service h2 { margin-bottom: 0.4em; }

.service ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
}

.service ul li { margin-bottom: 0.35rem; }

@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; }
}

/* ---------- escrita / livro ---------- */

.book {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.book-cover {
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(46, 38, 33, 0.22);
  transform: rotate(-2deg);
}

@media (max-width: 760px) {
  .book { grid-template-columns: 1fr; }
  .book-cover { max-width: 280px; }
}

/* ---------- contato ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.contact-list a:hover { border-color: var(--accent); transform: translateY(-2px); }

.contact-list .contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  flex: none;
}

.contact-list small { display: block; font-weight: 500; color: var(--muted); }

/* WhatsApp em destaque */
.contact-list a.whatsapp-destaque {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  padding: 1.4rem 1.4rem;
  font-size: 1.2rem;
}

.contact-list a.whatsapp-destaque:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.contact-list a.whatsapp-destaque .contact-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.contact-list a.whatsapp-destaque small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.contact-extra {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-photo { border: 0; background: none; box-shadow: none; }
.contact-photo img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 60% 30%;
}

/* ---------- formulário ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}

.form-field { margin-bottom: 1.2rem; }

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font: inherit;
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2.5px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- rodapé ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(250, 246, 240, 0.8);
  padding: 3rem 0 2.2rem;
  margin-top: 0;
}

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

.site-footer .brand .brand-name { color: var(--bg); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.footer-nav a { color: rgba(250, 246, 240, 0.8); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.site-footer .footer-meta {
  width: 100%;
  border-top: 1px solid rgba(250, 246, 240, 0.15);
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.site-footer .footer-meta a {
  color: var(--accent-soft);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(244, 228, 234, 0.35);
  text-underline-offset: 3px;
}

.site-footer .footer-meta a:hover { color: #fff; }

/* ---------- botão flutuante WhatsApp ---------- */

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 6rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float:hover { transform: none; }
}

/* ---------- utilidades ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 0;
  z-index: 100;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus { left: 0; }

.page-header { padding: clamp(3rem, 7vw, 4.5rem) 0 0; }

.text-center { text-align: center; }

.mt-2 { margin-top: 2rem; }

/* ---------- iluminação/respiro da home ---------- */

.marquee-roles {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.9rem 0;
}

.marquee-roles span {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  padding-left: 100%;
  animation: slide 28s linear infinite;
}

@keyframes slide {
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-roles span { animation: none; padding-left: 0; }
  .btn:hover { transform: none; }
}
