/* ============================================================
   Natália Rocha — CSS Principal
   Fontes: Neuton (headings) · Lato (body)
   ============================================================ */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-heading: 'Neuton', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;

  --color-bg:        #FFFFFF;
  --color-surface:   #F9F9F9;
  --color-border:    #E2DDD6;

  --texture: url('/img/bg-texture.svg');
  --color-text:      #2A2826;
  --color-text-muted:#7A746E;
  --color-accent:    #8C7B75;
  --color-accent-dk: #685B56;

  --max-width: 1000px;
  --narrow: 680px;
  --gap: clamp(1.25rem, 3vw, 2rem);

  /* Espaçamento vertical das seções — mais compacto */
  --sp: clamp(2.5rem, 5vw, 4rem);

  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-style: italic;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Camada de textura — pseudo-elemento isolado com opacity própria,
   igual ao que o site original faz internamente */
.has-texture {
  position: relative;
}
.has-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.has-texture > * {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-style: normal;
  line-height: 1.2;
  font-weight: 400;
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gap);
}
.container-narrow { max-width: var(--narrow); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 247, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: opacity .2s;
}
.site-logo:hover { opacity: .65; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.5vw, 1.75rem);
}

.site-nav a {
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color .2s;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width .25s ease;
}
.site-nav a:hover,
.site-nav a.active { color: var(--color-text); }
.site-nav a:hover::after,
.site-nav a.active::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all .25s;
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: .5rem 0 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem var(--gap); width: 100%; }
  .site-nav a::after { display: none; }

  /* Hamburger → X */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}

.hero-name {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: .015em;
}

.hero-role {
  font-size: clamp(.9rem, 1.8vw, 1rem);
  color: var(--color-text);
  font-weight: 400;
  font-style: italic;
}

.hero-crp {
  font-size: .85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: .15rem;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  padding-block: var(--sp);
}

.section-heading {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 400;
  color: var(--color-accent);
  text-align: center;
  letter-spacing: .01em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* ============================================================
   A PROFISSIONAL
   ============================================================ */
.section-profissional {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.profissional-bio {
  text-align: right;
}

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

.profissional-name {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  margin-bottom: .2rem;
}

.profissional-role {
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.profissional-photo-wrap {
  display: flex;
  justify-content: center;
  padding-top: .25rem;
  padding-bottom: 2.5rem;
}

/* Wrapper círculo: faz o clipping e carrega a sombra */
.profissional-photo-circle {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    rgba(0,0,0,.15) 0px 32px 24px -8px,
    rgba(0,0,0,.20) 0px 12px 16px -4px,
    rgba(0,0,0,.10) 0px  4px  4px -2px;
}

.profissional-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

.profissional-photo--placeholder {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-text-muted);
}

/* ============================================================
   ATENDIMENTOS
   ============================================================ */
.section-atendimentos {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.atendimentos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 600px;
  margin-inline: auto;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.atendimento-card {
  background: var(--color-bg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}
.atendimento-card:first-child {
  border-right: 1px solid var(--color-border);
}

.atendimento-icon {
  color: var(--color-text);
  margin-bottom: .75rem;
  display: flex;
  justify-content: center;
}

.atendimento-card h3 {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: .4rem;
}

.atendimento-card p {
  font-size: .85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================================
   ENTRE EM CONTATO
   ============================================================ */
.section-contato {
  background-color: var(--color-surface);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.contato-heading {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.contato-item {
  font-size: .9rem;
  color: var(--color-text-muted);
  margin-bottom: .4rem;
}
.contato-label {
  color: var(--color-text);
  margin-right: .3em;
}
.contato-item a {
  color: var(--color-text-muted);
  transition: color .2s;
}
.contato-item a:hover { color: var(--color-accent); }

/* ============================================================
   HORÁRIOS + ENDEREÇO + MAPA
   ============================================================ */
.section-info {
  background-color: var(--color-bg);
}

.info-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.info-layout--no-map {
  grid-template-columns: 1fr 1fr;
}

.info-block {
  margin-bottom: 1.75rem;
}
.info-block:last-child { margin-bottom: 0; }

.info-block h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: .75rem;
  letter-spacing: .01em;
}

.horario-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .3rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .875rem;
}
.horario-row:first-of-type { border-top: 1px solid var(--color-border); }

.horario-dia  { color: var(--color-text); }
.horario-hora { color: var(--color-text-muted); white-space: nowrap; }

address {
  font-style: normal;
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.info-mapa {
  height: clamp(420px, 50vw, 560px);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-border);
}
.info-mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   PROSE
   ============================================================ */
.prose {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--color-text);
}
.prose p   { margin-bottom: 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2  { margin-top: 1.75em; margin-bottom: .5em; }
.prose h3  { margin-top: 1.4em; margin-bottom: .4em; }
.prose ul, .prose ol { margin: .8em 0 .8em 1.5em; }
.prose li  { margin-bottom: .35em; }
.prose blockquote {
  border-left: 3px solid var(--color-accent);
  margin: 1.25em 0;
  padding: .4em 1.1em;
  color: var(--color-text-muted);
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.05em;
}
.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--color-accent-dk); }
.prose img { border-radius: 2px; margin: 1.25em auto; max-width: 100%; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2em 0;
}

/* ============================================================
   BLOG LIST E CARDS
   ============================================================ */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: var(--narrow);
  margin-inline: auto;
}

/* Card base */
.post-card {
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.07);
  transform: translateY(-2px);
}

/* Card com imagem: imagem em cima, texto embaixo */
.post-card--with-image {
  display: flex;
  flex-direction: column;
}

.post-card-image-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--color-surface);
}

.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.post-card:hover .post-card-image {
  transform: scale(1.03);
}


/* Corpo do card */
.post-card-body { padding: clamp(1.1rem, 3vw, 1.5rem); }

.post-date {
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: .5rem;
}

.post-card-title {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: .6rem;
  line-height: 1.3;
}
.post-card-title a { transition: color .2s; }
.post-card-title a:hover { color: var(--color-accent); }

.post-card-summary {
  font-size: .875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more {
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: color .2s;
}
.read-more:hover { color: var(--color-accent-dk); }

/* ── Imagem de capa no post individual ── */
.post-cover {
  margin-bottom: 2rem;
  border-radius: 2px;
  overflow: hidden;
}
.post-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   SINGLE / LIST PAGES
   ============================================================ */
.single-page,
.list-page {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.page-header {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}
.page-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: .4rem;
}
.page-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  font-style: italic;
  font-family: var(--font-heading);
}

.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}
.back-link {
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--color-text-muted);
  transition: color .2s;
}
.back-link:hover { color: var(--color-text); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.footer-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: .2rem;
}
.footer-role, .footer-crp {
  font-size: .82rem;
  color: var(--color-text-muted);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.footer-links a {
  font-size: .82rem;
  color: var(--color-text-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-copy {
  font-size: .72rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.empty-state {
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 1.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 680px) {
  .profissional-grid {
    grid-template-columns: 1fr;
  }
  .profissional-bio {
    text-align: left;
  }
  .profissional-photo-wrap {
    order: -1;
    justify-content: flex-start;
  }
  .profissional-photo-circle {
    width: 220px;
    height: 220px;
  }

  .atendimentos-grid {
    grid-template-columns: 1fr;
  }
  .atendimento-card:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .info-layout {
    grid-template-columns: 1fr;
  }
  .info-mapa {
    height: 320px;
  }

  .footer-content { flex-direction: column; }
}
