/* ==========================================================================
   Pedro Cardoso Carvalho — Psicólogo clínico
   Design tokens per design_handoff_site_psi/README.md
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("assets/fonts/newsreader-normal-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/newsreader-italic-300.woff2") format("woff2");
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/karla-variable.woff2") format("woff2");
}

:root {
  --bg-page: #FAF9F5;
  --bg-tint: #E1F5EE;
  --bg-crisis: #F4F2EB;
  --bg-contact: #085041;

  --green-dark: #085041;
  --green-mid: #0F6E56;
  --ink: #12312A;
  --text-body: #3C5A52;
  --text-body-tint: #2C5247;
  --text-label: #6B8079;
  --text-label-tint: #4F7B6E;

  --divider: #E6E3DA;
  --divider-tint: #A9CFC2;
  --divider-crisis: #DCD8CB;
  --divider-contact: #2C6B5C;
  --text-on-contact: #9FCBBC;
  --text-on-contact-body: #C9E6DC;

  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Karla", system-ui, sans-serif;

  --content-width: 1100px;
  --pad-x: clamp(20px, 5vw, 64px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green-mid);
  text-decoration: none;
}
a:hover { color: var(--green-dark); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green-mid);
  outline-offset: 2px;
}

::selection { background: var(--bg-tint); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--green-dark);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 4px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

.text-pretty { text-wrap: pretty; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 18px var(--pad-x);
  border-bottom: 1px solid var(--divider);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 36px;
  height: auto;
  flex: none;
  mix-blend-mode: multiply;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.01em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px clamp(12px, 2.2vw, 28px);
  flex-wrap: wrap;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.main-nav a {
  color: var(--text-body);
  padding: 11px 0;
  display: inline-block;
}
.main-nav a:hover { color: var(--green-dark); }
.nav-cta {
  border: 1px solid var(--green-mid);
  color: var(--green-mid);
  padding: 11px 20px !important;
  border-radius: 999px;
}
.nav-cta:hover {
  background: var(--green-mid);
  color: var(--bg-page) !important;
}

/* ---------- Generic section scaffolding ---------- */
section {
  padding: clamp(56px, 8vw, 110px) var(--pad-x);
}
.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.section-bordered { border-top: 1px solid var(--divider); }
.section-tint { background: var(--bg-tint); }

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-label);
}
.eyebrow-tint { color: var(--text-label-tint); }
.eyebrow-block { display: block; margin-bottom: 28px; }

.section-label {
  flex: 0 1 200px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-label);
  padding-top: 10px;
}
.split-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px clamp(28px, 5vw, 72px);
}
.split-row > .split-content {
  flex: 1 1 480px;
  min-width: 0;
}

.sub-label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 12px;
  display: block;
}
.sub-label-tint { color: var(--text-label-tint); }
.sub-label-spaced { margin-bottom: 20px; }

h1, h2, h3, .heading-serif {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--green-dark);
  margin: 0;
}

/* ---------- Hero ---------- */
.hero .section-inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-copy { flex: 1 1 380px; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 26px; display: block; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hero-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--text-body);
  max-width: 46ch;
  margin: 0 0 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--green-dark);
  color: var(--bg-page);
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--green-mid); color: var(--bg-page); }
.hero-note { font-size: 14px; color: var(--text-label); }

.hero-portrait-wrap {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.hero-portrait {
  position: relative;
  width: min(340px, 84%);
}
.hero-portrait::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 22px;
  right: 26px;
  bottom: -18px;
  background: var(--bg-tint);
}
.hero-portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--bg-page);
}

/* ---------- Apresentação (video) ---------- */
.presentation .section-inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.presentation-copy { flex: 1 1 300px; min-width: 0; }
.presentation-copy .eyebrow { margin-bottom: 22px; display: block; }
.presentation-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 31px);
  line-height: 1.38;
  color: var(--green-dark);
  margin: 0 0 16px;
  max-width: 26ch;
}
.presentation-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body-tint);
  margin: 0;
  max-width: 40ch;
}
.presentation-video { flex: 1 1 380px; min-width: 0; }
.video-embed {
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Sobre ---------- */
.about-mark {
  width: 150px;
  height: auto;
  margin-top: 34px;
  mix-blend-mode: multiply;
  display: block;
}
.lede-serif {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(22px, 2.9vw, 32px);
  line-height: 1.42;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 34ch;
}
.body-copy {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 58ch;
  margin: 0 0 20px;
}
.body-copy:last-of-type { margin-bottom: 44px; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 28px 40px;
  border-top: 1px solid var(--divider);
  padding-top: 32px;
}
.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
}
.fact-value {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 26px;
}
.fact-value:last-child { margin-bottom: 0; }

/* ---------- Abordagem ---------- */
.approach-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(44px, 5vw, 68px);
  border-bottom: 1px solid var(--divider-tint);
}
.approach-highlight h3 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.24;
}
.approach-highlight-meta {
  font-size: 14.5px;
  color: var(--text-label-tint);
  margin-top: 14px;
}
.approach-highlight-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.approach-highlight-copy p {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text-body);
  margin: 0;
}
.approach-highlight-copy p:first-child { color: var(--text-body-tint); }

.approach-title {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 56px;
  max-width: 22ch;
}

.approach-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.approach-card {
  border-top: 1px solid var(--divider-tint);
  padding-top: 22px;
}
.approach-card h3 {
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 14px;
}
.approach-card p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

/* ---------- Entrevista ---------- */
.press-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(22px, 2.9vw, 32px);
  line-height: 1.42;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 34ch;
}
.press-context {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-label);
  margin: 0 0 32px;
  max-width: 52ch;
}
.press-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.press-card:hover { opacity: 0.94; }
.press-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.press-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 42, 35, 0.72), rgba(8, 42, 35, 0.08) 58%);
}
.press-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: rgba(250, 249, 245, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.press-card-play::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 19px solid var(--green-dark);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
  display: block;
}
.press-card-caption {
  position: absolute;
  left: clamp(18px, 3vw, 28px);
  right: clamp(18px, 3vw, 28px);
  bottom: clamp(16px, 2.6vw, 24px);
  color: #FFFFFF;
  font-size: 14.5px;
  letter-spacing: 0.02em;
}

/* ---------- Atendimento ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px 40px;
  margin-bottom: 52px;
}
.detail-value {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}
.detail-note {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-label);
  margin-top: 8px;
}

.first-call-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 22px 40px;
  align-items: start;
  background: var(--bg-tint);
  padding: clamp(26px, 3.4vw, 36px);
  margin-bottom: 52px;
}
.first-call-value {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(23px, 2.7vw, 30px);
  line-height: 1.25;
  color: var(--green-dark);
}
.first-call-card p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-body-tint);
  margin: 0;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0 40px;
}
.unit {
  border-top: 1px solid var(--divider);
  padding: 22px 24px 22px 0;
}
.unit-city {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.unit-address {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-label);
}

/* ---------- Depoimentos ---------- */
.testimonials-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px 48px;
  align-items: baseline;
  margin-bottom: 48px;
}
.testimonials-source {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-label);
  margin: 0;
  max-width: 52ch;
}
.testimonials-source a {
  border-bottom: 1px solid var(--divider-tint);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(34px, 4vw, 56px);
}
.testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.5;
  color: var(--ink);
}
.testimonial figcaption {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-label);
}

/* ---------- Contato ---------- */
.contact { background: var(--bg-contact); color: var(--bg-tint); }
.contact .section-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact-eyebrow { color: var(--text-on-contact); margin-bottom: 26px; display: block; }
.contact h2 {
  color: #FFFFFF;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.contact-lede {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-on-contact-body);
  max-width: 40ch;
  margin: 0;
}
.contact-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 22px 0;
  border-top: 1px solid var(--divider-contact);
  color: #FFFFFF;
}
.contact-row:hover { color: var(--text-on-contact); }
.contact-row.last { border-bottom: 1px solid var(--divider-contact); }
.contact-row-label { font-family: var(--font-serif); font-size: 24px; }
.contact-row-value { font-size: 15px; color: var(--text-on-contact); }
.contact-cta {
  align-self: start;
  margin-top: 34px;
  background: var(--bg-tint);
  color: var(--green-dark);
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.02em;
  display: inline-block;
}
.contact-cta:hover { background: #FFFFFF; color: var(--green-dark); }

/* ---------- Em crise ---------- */
.crisis {
  border-top: 1px solid var(--divider);
  background: var(--bg-crisis);
  padding: clamp(40px, 5vw, 56px) var(--pad-x);
}
.crisis .split-row { gap: 22px clamp(28px, 5vw, 72px); }
.crisis-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 28px;
  max-width: 56ch;
}
.crisis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0 40px;
}
.crisis-item {
  border-top: 1px solid var(--divider-crisis);
  padding: 18px 0;
}
.crisis-item-title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.crisis-item-note {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-label);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px var(--pad-x) 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-label);
}
