:root {
  --paper: #fbf7ef;
  --surface: #fffdf8;
  --sage: #8fa48b;
  --sage-deep: #4f6f5c;
  --moss: #2f4d3c;
  --sand: #e7dac9;
  --clay: #bd8065;
  --ink: #27332b;
  --muted: #667469;
  --line: rgba(79, 111, 92, 0.18);
  --shadow: 0 22px 50px rgba(65, 82, 68, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 247, 239, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--moss);
}

.header-action {
  padding: 10px 16px;
  border: 1px solid var(--sage-deep);
  border-radius: 999px;
  color: var(--sage-deep);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--moss);
}

main {
  overflow: hidden;
}

.hero,
.section,
.page-hero,
.blog-hero,
.blog-list,
.article-page,
.admin-page,
.intro-band,
.split-section,
.values-section,
.process-section,
.timeline,
.faq-section,
.online-layout,
.contact-layout {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.section {
  scroll-margin-top: 92px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(38px, 7vw, 84px) 0 clamp(28px, 5vw, 56px);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 5.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0;
}

.hero-text,
.page-hero p {
  max-width: 640px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--moss);
  color: var(--surface);
}

.button.secondary {
  border-color: var(--line);
  color: var(--moss);
  background: rgba(255, 253, 248, 0.68);
}

.hero-media {
  position: relative;
  min-height: 360px;
}

.hero-media img {
  width: 100%;
  min-height: 360px;
  max-height: 680px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-band {
  padding: clamp(48px, 8vw, 90px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  margin-bottom: 34px;
}

.signal-grid,
.values-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.signal-grid article,
.values-section article,
.check-panel,
.contact-panel,
.contact-form,
.timeline article,
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.74);
}

.signal-grid article,
.values-section article {
  padding: 24px;
}

.signal-grid p,
.values-section p,
.prose,
.check-panel,
.contact-panel,
.timeline p,
details p {
  color: var(--muted);
}

.signal-grid h3,
.values-section h3 {
  margin-bottom: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.88fr 1fr;
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(54px, 8vw, 104px) 0;
}

.prose {
  font-size: 1.05rem;
}

.prose p + p {
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--sage-deep);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.page-hero {
  padding: clamp(64px, 9vw, 112px) 0 clamp(34px, 6vw, 64px);
}

.page-hero.compact {
  max-width: 900px;
  margin-left: max(18px, calc((100% - var(--max)) / 2));
}

.page-hero h1 {
  font-size: clamp(2.45rem, 5vw, 4.6rem);
}

.blog-hero,
.admin-page {
  padding: clamp(58px, 8vw, 96px) 0 clamp(28px, 5vw, 48px);
}

.blog-hero {
  max-width: 920px;
  margin-left: max(18px, calc((100% - var(--max)) / 2));
}

.blog-hero h1,
.admin-page h1,
.article-page h1 {
  font-size: clamp(2.45rem, 5vw, 4.6rem);
}

.blog-hero p:not(.eyebrow),
.admin-page > p,
.article-lead {
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: clamp(54px, 8vw, 94px);
}

.blog-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.74);
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--sage-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.post-meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: var(--clay);
}

.blog-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.blog-card p {
  margin-top: 14px;
  color: var(--muted);
}

.blog-card-image,
.article-image {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.blog-card-image {
  height: 190px;
  margin-bottom: 18px;
}

.blog-card .button {
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 15px;
}

.article-page {
  max-width: 820px;
  padding: clamp(54px, 8vw, 92px) 0 clamp(58px, 8vw, 96px);
}

.article-page .post-meta {
  margin-top: 24px;
}

.article-page p:not(.article-lead) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.06rem;
}

.article-image {
  max-height: 420px;
  margin-top: 28px;
}

.articles-section {
  padding: clamp(54px, 8vw, 90px) 0;
  border-top: 1px solid var(--line);
}

.articles-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.articles-heading h2 {
  max-width: 760px;
}

.home-articles {
  padding-bottom: 0;
}

.blog-card-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.86), rgba(143, 164, 139, 0.26)),
    url("assets/hero-psicoterapia-andressa.png") center / cover;
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 1.05rem;
}

.back-link {
  color: var(--sage-deep);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.admin-page {
  max-width: 920px;
}

.admin-panel {
  margin-top: 20px;
  padding: 24px;
}

.admin-panel h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.admin-panel p,
.admin-panel li {
  color: var(--muted);
}

.admin-panel p,
.admin-panel ul {
  margin-top: 14px;
}

.admin-panel code {
  color: var(--moss);
  font-weight: 700;
}

.admin-toolbar,
.admin-post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-posts {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.admin-post {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-post h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

.values-section {
  padding-bottom: clamp(54px, 8vw, 94px);
}

.note {
  padding: 16px 18px;
  border-left: 3px solid var(--clay);
  background: rgba(189, 128, 101, 0.1);
  color: var(--ink);
}

.timeline {
  display: grid;
  gap: 16px;
  padding: 24px 0 0;
}

.timeline article {
  display: grid;
  grid-template-columns: 72px 0.45fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
}

.timeline span {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 600;
}

.timeline h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.faq-section {
  padding: clamp(52px, 7vw, 84px) 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 22px;
}

summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-top: 12px;
}

.online-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(22px, 5vw, 60px);
  align-items: start;
  padding: clamp(54px, 8vw, 90px) 0 clamp(42px, 7vw, 74px);
  border-top: 1px solid var(--line);
}

.online-layout .prose {
  max-width: 760px;
}

.online-layout h2,
.contact-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.check-panel,
.contact-panel {
  padding: 26px;
}

.check-panel ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 18px 0 0;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 26px;
  margin-top: 26px;
}

.contact-intro {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

label {
  display: grid;
  gap: 8px;
  color: var(--moss);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

.contact-panel dl {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
}

.contact-panel dt {
  color: var(--moss);
  font-weight: 800;
}

.contact-panel dd {
  margin: 4px 0 0;
}

.contact-panel a {
  color: var(--sage-deep);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 0;
  text-align: center;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer span::before {
  content: "•";
  margin-right: 12px;
  color: var(--sage-deep);
}

.process-list.clean {
  display: grid;
  gap: 2rem;
}

.process-item {
  display: grid;
  grid-template-columns: 80px 220px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(43, 64, 52, 0.18);
}

.process-item span {
  font-size: 1.6rem;
  font-weight: 700;
}

.process-item h3 {
  margin: 0;
}

.process-item p {
  margin: 0;
}

.about-media img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--surface);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(47, 77, 60, 0.25);
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 74px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 1.16rem;
    flex: 0 0 auto;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-action {
    display: none;
  }

  .site-header.nav-open .site-nav {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding-top: 10px;
  }

  .site-header.nav-open .site-nav a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--moss);
    font-size: 0.95rem;
  }

  .hero,
  .section,
  .page-hero,
  .blog-hero,
  .blog-list,
  .article-page,
  .admin-page,
  .intro-band,
  .split-section,
  .values-section,
  .process-section,
  .timeline,
  .faq-section,
  .online-layout,
  .contact-layout {
    width: min(100% - 32px, var(--max));
  }

  .section {
    scroll-margin-top: 78px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 26px;
    padding: 34px 0 42px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1.06;
  }

  h2,
  .page-hero h1 {
    font-size: 2rem;
    line-height: 1.12;
  }

  h3 {
    font-size: 1rem;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .hero-text,
  .page-hero p,
  .prose,
  .contact-intro {
    font-size: 0.98rem;
  }

  .hero-text,
  .page-hero p {
    margin-top: 18px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .button,
  .hero-actions .button,
  .contact-form .button {
    width: 100%;
  }

  .button {
    min-height: 46px;
    padding: 12px 16px;
    font-size: 0.94rem;
    text-align: center;
  }

  .hero-media,
  .hero-media img {
    min-height: 0;
  }

  .hero-media img {
    width: 100%;
    height: clamp(300px, 78vw, 460px);
    object-fit: cover;
    object-position: center top;
  }

  .intro-band,
  .split-section,
  .faq-section,
  .online-layout,
  .contact-layout {
    padding: 42px 0;
  }

  .section-heading,
  .split-section,
  .online-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .signal-grid,
  .values-section,
  .blog-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .signal-grid article,
  .values-section article,
  .blog-card,
  .admin-panel,
  .check-panel,
  .contact-panel,
  .contact-form,
  details {
    padding: 18px;
  }

  .values-section {
    padding-bottom: 42px;
  }

  .about-media img {
    max-height: none;
    height: clamp(340px, 100vw, 560px);
    object-position: center 28%;
    border-radius: 14px;
  }

  .process-list.clean {
    gap: 0;
  }

  .process-item {
    grid-template-columns: 46px 1fr;
    gap: 8px 12px;
    padding: 18px 0;
    align-items: baseline;
  }

  .process-item span {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.28rem;
    line-height: 1.1;
  }

  .process-item h3 {
    grid-column: 2;
    grid-row: 1;
  }

  .process-item p {
    grid-column: 2;
    grid-row: 2;
    color: var(--muted);
  }

  .timeline {
    gap: 12px;
    padding-top: 8px;
  }

  .timeline article {
    grid-template-columns: 46px 1fr;
    gap: 8px 14px;
    padding: 18px;
  }

  .timeline span {
    grid-row: span 2;
    font-size: 1.55rem;
  }

  .timeline p {
    grid-column: 2;
  }

  summary {
    line-height: 1.35;
  }

  .check-panel ul,
  .contact-panel dl {
    margin-top: 14px;
  }

  .contact-form {
    gap: 14px;
    margin-top: 20px;
  }

  input,
  textarea {
    padding: 12px 13px;
  }

  .page-hero {
    padding: 42px 0 28px;
  }

  .page-hero.compact {
    margin-inline: auto;
  }

  .blog-hero {
    margin-inline: auto;
    padding: 42px 0 28px;
  }

  .blog-hero h1,
  .admin-page h1,
  .article-page h1 {
    font-size: 2rem;
  }

  .blog-list {
    padding-bottom: 42px;
  }

  .blog-card-image {
    height: 176px;
  }

  .home-articles {
    padding-bottom: 0;
  }

  .articles-section {
    padding: 42px 0;
  }

  .articles-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .articles-heading .button {
    width: 100%;
  }

  .blog-card .button {
    width: 100%;
  }

  .admin-toolbar,
  .admin-post-header,
  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-actions .button,
  .admin-post-header .button {
    width: 100%;
  }

  .admin-post {
    padding: 18px;
  }

  .article-page {
    padding: 42px 0 52px;
  }

  .site-footer {
    padding: 22px 18px 82px;
    font-size: 0.92rem;
  }

  .site-footer p {
    justify-content: flex-start;
    text-align: left;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 560px) {
  .hero,
  .section,
  .page-hero,
  .blog-hero,
  .blog-list,
  .article-page,
  .admin-page,
  .intro-band,
  .split-section,
  .values-section,
  .process-section,
  .timeline,
  .faq-section,
  .online-layout,
  .contact-layout {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: 2.05rem;
  }

  h2,
  .page-hero h1 {
    font-size: 1.72rem;
  }

  .blog-hero h1,
  .admin-page h1,
  .article-page h1 {
    font-size: 1.92rem;
  }

  .blog-card-image {
    height: 164px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-media img {
    height: clamp(280px, 92vw, 420px);
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .timeline span {
    grid-row: auto;
  }

  .timeline p {
    grid-column: auto;
  }
}
