/* Daniela Cruz — Psicóloga. Cores e letras da marca actual (Astra):
   oliva, sálvia, creme e rosa; Marcellus + Inter.
   O traço próprio do site é o arco do logótipo: retrato e fotos recortados
   em arco, e um arco fino desenhado à volta do retrato na abertura. */
:root {
  --cream: #fdfaf1;
  --sage: #e3e9d8;
  --sage-deep: #d3dcc4;
  --ink: #343f1e;
  --text: #4b5639;
  --leaf: #5c8607;
  --leaf-strong: #4d7105; /* fundo dos botões: contraste AA com branco */
  --rose: #c8a7a1;
  --rose-soft: #efe2df;
  --white: #ffffff;
  --radius: 20px;
  --wrap: 1120px;
  --serif: 'Marcellus', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--leaf-strong); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 6px;
}
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: #6b7360; font-size: 15px; }
.center { justify-content: center; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 23px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink); line-height: 1.6; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

/* ---------- Botões e links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.button {
  display: inline-block;
  background: var(--leaf-strong);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  transition: background .2s;
}
.button:hover { background: var(--ink); }
.button-small { padding: 10px 20px; font-size: 15px; }
.link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--rose);
  padding-bottom: 2px;
}
.link:hover { border-color: var(--leaf); }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 250, 241, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(52, 63, 30, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { width: 128px; height: auto; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.button) { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.menu a[aria-current="page"]:not(.button) { box-shadow: inset 0 -1.5px 0 var(--rose); }
.menu-button { display: none; }

/* ---------- Abertura ---------- */
.hero { padding: 64px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero-text h1 { max-width: 11ch; }
.hero-text .lead { max-width: 30ch; }
.hero-note { margin-top: 36px; font-size: 14px; color: #6b7360; max-width: 34ch; }
.hero-portrait { position: relative; margin: 0; padding: 22px; }
.hero-portrait img {
  position: relative;
  border-radius: 999px 999px 28px 28px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
/* O arco do logótipo, desenhado à volta do retrato. */
.arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arc path { fill: none; stroke: var(--rose); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.js .arc path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw-arc 2.4s cubic-bezier(.55,.1,.25,1) .3s forwards; }
@keyframes draw-arc { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .js .arc path { animation: none; stroke-dashoffset: 0; } }

/* ---------- Secções ---------- */
.section { padding: 96px 0; }
.section-tight { padding-top: 24px; }
.section-sage { background: var(--sage); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { font-size: 18px; }
.page-hero { padding: 72px 0 32px; }

.statement { max-width: 780px; }
.statement-text { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.4; color: var(--ink); }

.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }

/* Especialidades: lista com fotografia em arco, não cartões iguais. */
.services { display: grid; gap: 56px; }
.service { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.service-photo img {
  width: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 999px 999px 18px 18px;
}
.service-text { max-width: 560px; }
.service-text h2, .service-text h3 { font-size: 28px; margin-top: 10px; }
.service-text h2 a, .service-text h3 a { color: inherit; text-decoration: none; }
.service-text h2 a:hover, .service-text h3 a:hover { color: var(--leaf-strong); }
.icon { display: inline-flex; width: 40px; height: 40px; color: var(--leaf); }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-large { width: 56px; height: 56px; }

/* Como funciona: é mesmo uma sequência, por isso leva números. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 1.5px solid var(--leaf); padding-top: 18px; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 44px; color: var(--leaf); line-height: 1; display: block; margin-bottom: 14px; }
.steps h3 { font-size: 22px; }
.steps p { margin: 0; }

/* Testemunhos */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink); }
.quote blockquote::before { content: '“'; display: block; font-size: 64px; line-height: .6; color: var(--rose); margin-bottom: 8px; }
.quote figcaption { font-size: 14px; color: #6b7360; }

/* Faixa final */
.band { background: var(--ink); color: var(--cream); padding: 80px 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { color: var(--cream); margin: 0; max-width: 18ch; }
.band .actions { margin: 0; }
.band .button { background: var(--cream); color: var(--ink); }
.band .button:hover { background: var(--sage); }
.band .link { color: var(--cream); }

/* Sobre */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { border-radius: 999px 999px 28px 28px; aspect-ratio: 3 / 4; object-fit: cover; }
.credentials { list-style: none; padding: 0; margin: 0; }
.credentials li { padding: 14px 0; border-bottom: 1px solid var(--sage-deep); color: var(--ink); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principles h3 { font-size: 22px; }
.principles p { margin: 0; }

/* Páginas de especialidade */
.service-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: end; }
.service-hero h1 { font-size: clamp(38px, 5vw, 60px); margin-top: 16px; }
.tagline { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); color: var(--leaf-strong); max-width: 26ch; }
.service-hero-photo { margin: 0; }
.service-hero-photo img { border-radius: 999px 999px 24px 24px; aspect-ratio: 3 / 4; object-fit: cover; max-height: 460px; width: 100%; }
.prose { max-width: 720px; }
.prose h2 { font-size: 30px; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { background: var(--cream); border-radius: 999px; padding: 10px 20px; color: var(--ink); font-size: 16px; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-card, .option {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--sage-deep);
  color: var(--text);
  text-decoration: none;
  line-height: 1.5;
}
.related-card strong, .option strong { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ink); }
a.related-card:hover, a.option:hover { border-color: var(--leaf); }

/* Marcar */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.booking h2 { font-size: 30px; }
.price { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--sage-deep); }
.price h3 { font-size: 21px; margin: 0 0 2px; }
.price p { margin: 0; font-size: 15px; color: #6b7360; }
.price strong { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--ink); white-space: nowrap; }
.prices .muted { margin-top: 16px; }
.contact-options { display: grid; gap: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; }

/* Perguntas frequentes */
.faq details { border-bottom: 1px solid var(--sage-deep); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 21px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--leaf); font-family: var(--sans); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; }

/* Artigos */
.article-card { display: block; max-width: 720px; padding: 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--sage-deep); text-decoration: none; color: var(--text); }
.article-card:hover { border-color: var(--leaf); }
.article-card h2 { font-size: 32px; }
.article-meta { font-size: 14px; color: #6b7360; margin-bottom: 10px; }
.article h1 { font-size: clamp(36px, 5vw, 54px); }

/* Rodapé */
.footer { background: var(--sage); padding: 64px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid img { width: 130px; margin-bottom: 12px; }
.footer-title { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { color: var(--leaf-strong); }
.footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--sage-deep); font-size: 13px; color: #6b7360; }

/* Aviso de cookies: discreto, nas cores do site, sem tapar o conteúdo. */
.cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 520px;
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--sage-deep);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(52, 63, 30, 0.14);
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.5;
}
.cookies[hidden] { display: none; }
.cookies p { margin: 0 0 12px; color: var(--ink); }
.cookies-actions { display: flex; align-items: center; gap: 18px; }
.cookies-reject { background: none; border: 0; padding: 8px 0; color: var(--ink); font: 600 15px var(--sans); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 4px; cursor: pointer; }

/* ---------- Tablet e telemóvel ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .service-hero, .booking, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 32px; }
  .hero-portrait { max-width: 420px; }
  .steps, .quotes, .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { height: 72px; }
  .brand img { width: 108px; }
  .menu-button {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 18px;
    font: 600 15px var(--sans);
    cursor: pointer;
  }
  .menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--sage-deep);
  }
  .menu.is-open { display: flex; }
  .menu a:not(.button) { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--sage); }
  .menu .button { margin-top: 18px; text-align: center; }
  .section { padding: 72px 0; }
  .section-tight { padding-top: 16px; }
  .page-hero { padding-top: 48px; }
  .service { grid-template-columns: 110px 1fr; gap: 20px; align-items: start; }
  .service-photo img { width: 110px; }
  .service-text h2, .service-text h3 { font-size: 23px; }
  .related, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .band h2 { max-width: none; }
  .service-hero-photo img { max-height: 340px; aspect-ratio: auto; }
  .booking .contact-options { order: -1; }
}
