/* Blog da Eita Casa Perfeita
 * Paleta extraída do tema atual (hello-elementor + Stratum)
 * Mantém continuidade visual com blog.eitacasaperfeita.com.br
 */

:root {
  --eita-orange: #ED762F;
  --eita-orange-dark: #C95F1F;
  --eita-cream: #FCF8F0;
  --eita-cream-dark: #F2EADB;
  --text: #4A4A4A;
  --text-muted: #666666;
  --white: #FDFDFD;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --radius-card: 38px;
  --radius-pill: 999px;
  --container: 1180px;
  --font-display: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--eita-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--eita-orange); text-decoration: none; }
a:hover { color: var(--eita-orange-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--eita-orange);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.3; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   HEADER (banner + sociais flutuando + nav pill central)
   ============================================================ */
:root {
  --eita-navy: #1f3a5f;     /* azul escuro pros círculos sociais */
  --eita-sky:  #7cc4dc;     /* azul claro da paleta (top-line) */
}
.site-header {
  position: relative;
  background: var(--eita-cream);
}

.banner {
  width: 100%;
  height: clamp(220px, 26vw, 360px);   /* um pouco maior pra logo aparecer inteiro */
  background: var(--eita-cream);
  overflow: hidden;
  line-height: 0;
}
.banner a { display: block; height: 100%; }
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

/* Sociais flutuando sobre o banner */
.social-nav {
  position: absolute;
  top: 90px;
  right: 6%;
  z-index: 10;
  display: flex;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.social-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--eita-navy);
  color: var(--white);
  border-radius: 50%;
  transition: transform .2s, background .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.social-nav a:hover {
  background: #0f2845;
  transform: translateY(-2px);
  color: var(--white);
}

.top-line-strip {
  line-height: 0;
}
.top-line-strip img {
  width: 100%;
  height: auto;       /* mostra a imagem inteira na proporção natural */
  display: block;
}

/* Sobreposta ao banner, encostada no topo da página.
   Imagem original já tem amarelo no topo — sem espelhar. */
.top-line-strip--top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;   /* não bloqueia cliques no banner */
}

/* No rodapé: espelha verticalmente pra ficar simétrico com o topo
   (azul perto do conteúdo, amarelo na borda inferior). */
.top-line-strip--bottom img {
  transform: scaleY(-1);
}

/* Nav-bar pill central — meio em cima do banner, meio embaixo
   (centro da nav alinhado com a borda inferior do banner) */
.main-nav-bar {
  background: var(--eita-orange);
  border-radius: var(--radius-pill);
  max-width: 1180px;
  margin: -36px auto 2rem;
  position: relative;
  z-index: 5;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem 1rem .85rem 2rem;
  flex-wrap: nowrap;
}
.main-nav-toggle { display: none; }
.main-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav a {
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--white); border-bottom-color: var(--white); }

/* Busca: lupa laranja DENTRO do input, sem botão circular destacado */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-pill);
  min-width: 320px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.search-form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--eita-sky);
  padding: .8rem 2.8rem .8rem 1.3rem;
  border-radius: var(--radius-pill);
  width: 100%;
}
.search-form input::placeholder {
  color: var(--eita-sky);
  opacity: .7;
  font-weight: 500;
}
.search-form button {
  position: absolute;
  right: .85rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--eita-orange);   /* lupa laranja */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
}
.search-form button svg { width: 24px; height: 24px; }
.search-form button:hover { color: var(--eita-orange-dark); }

/* Responsivo: regras de sidebar/posts-layout movidas pra perto da definição base (ver linha ~548) */
@media (max-width: 768px) {
  /* Banner mobile dedicado: imagem já tem proporção certa, sem zoom */
  .banner { height: auto; aspect-ratio: 374 / 192; }
  .banner picture, .banner picture img { width: 100%; height: 100%; display: block; }
  .banner img { object-fit: cover; object-position: center; transform: none; }
  .top-line-strip img { transform: scaleY(3.5); transform-origin: top center; }
  .post-card-body { padding: .75rem .9rem 1rem; }
  .post-card-body h3 { font-size: .8rem; line-height: 1.2; }
  .post-card-cat { font-size: 0.588rem; padding: .2rem .6rem; letter-spacing: 0; line-height: 1.15; }
  .post-meta { font-size: .7rem; }
  .latest-tag, .latest-cat { font-size: .5rem; padding: .15rem .5rem; letter-spacing: .06em; }
  .latest-post-body h2 { font-size: 1.1rem; }
  .posts-section { padding: 1.5rem 2rem 3rem; }
  .social-nav { top: 90px; right: 10px; gap: .35rem; }
  .social-nav a { width: 30px; height: 30px; }

  /* Sidebar populars compactos (antes era só em <500px) */
  .sidebar-popular { padding: 1.35rem 1.25rem 1.1rem; }
  .sidebar-popular h3 { font-size: 1.4rem; margin-bottom: 1.1rem; }
  .sidebar-popular a { grid-template-columns: 72px minmax(0, 1fr); gap: .9rem; font-size: 1rem; }
  .sidebar-popular img { width: 72px; height: 72px; border-radius: 14px; }

  /* Esconder descrição (excerpt) do "Último post" no mobile */
  .latest-post-body > p:not(.latest-date) { display: none; }

  .main-nav-bar {
    max-width: none;
    margin: -28px 1rem 1.5rem;
    border-radius: 35px;
    position: relative;
  }
  .nav-inner {
    padding: .65rem .9rem;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
  }

  /* Hambúrguer aparece em mobile */
  .main-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    z-index: 12;
    order: 1;
  }
  .main-nav-toggle span {
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
    display: block;
  }
  .main-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .main-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .main-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Drawer escondido por padrão, aparece com .open */
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--eita-orange);
    flex-direction: column;
    padding: .75rem 1.25rem 1rem;
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    gap: 0;
    z-index: 11;
  }
  .main-nav.open { display: flex; }
  .main-nav li { width: 100%; text-align: center; }
  .main-nav a {
    display: block;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }
  .main-nav li:last-child a { border-bottom: 0; }

  .search-form { order: 2; flex: 1; min-width: 0; }
}

/* ============================================================
   LATEST POST (destaque embaixo do menu)
   ============================================================ */
.latest-post {
  margin: 2rem auto;
  max-width: 980px;
}
.latest-post-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--eita-orange);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.latest-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
  color: var(--white);
}
.latest-post-thumb {
  background: var(--eita-cream-dark) center/cover no-repeat;
  min-height: 250px;
  overflow: hidden;
}
.latest-post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.latest-post-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  color: var(--white);
}
.latest-post-body h2 {
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
  margin: .25rem 0 .5rem;
}
.latest-post-body p {
  color: rgba(255,255,255,.95);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}
.latest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.latest-tag, .latest-cat {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  padding: .25rem .7rem;
  border-radius: var(--radius-pill);
}
.latest-tag {
  background: var(--white);
  color: var(--eita-orange);
}
.latest-cat {
  background: rgba(255,255,255,.22);
  color: var(--white);
}
.latest-date {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  margin-top: .25rem;
}
.latest-cta {
  display: inline-block;
  margin-top: .75rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .25em;
}
@media (max-width: 768px) {
  .latest-post-card { grid-template-columns: 1fr; }
  .latest-post-thumb { min-height: 220px; }
  .latest-post-body { padding: 1.5rem; }
}

/* ============================================================
   POSTS — listagem
   ============================================================ */
.posts-section { padding: 2rem 0 4rem; }
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: .02em;
}
/* Layout: posts (esquerda, 2 colunas) + sidebar (direita, larga) */
.posts-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 2.5rem;
  align-items: start;
}
.posts-main { order: 1; }
.sidebar {
  order: 2;
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-search {
  position: relative;
  display: flex;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.sidebar-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--eita-sky);
  padding: 1rem 3rem 1rem 1.5rem;
  border-radius: var(--radius-pill);
  width: 100%;
}
.sidebar-search input::placeholder { color: var(--eita-sky); opacity: .7; font-weight: 500; }
.sidebar-search button {
  position: absolute;
  right: .85rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--eita-orange);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
}
.sidebar-search button svg { width: 24px; height: 24px; }
.sidebar-search button:hover { color: var(--eita-orange-dark); }

.sidebar-popular {
  background: var(--white);
  border-radius: 28px;
  padding: 1.85rem 1.85rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-popular h3 {
  color: var(--eita-orange);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 1.4rem;
  text-align: center;
}
.sidebar-popular ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pop;
}
.sidebar-popular li {
  counter-increment: pop;
  margin-bottom: 1.35rem;
  position: relative;
}
.sidebar-popular li:last-child { margin-bottom: 0; }
.sidebar-popular a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none;
}
.sidebar-popular a > span {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.sidebar-popular a:hover { color: var(--eita-orange); }
.sidebar-popular a::before {
  content: counter(pop);
  position: absolute;
  background: var(--eita-orange);
  color: var(--white);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -12px;
  margin-top: -12px;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.sidebar-popular img {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.posts-main { min-width: 0; }

/* Responsivo: sidebar empilha DEPOIS dos posts em telas estreitas.
   IMPORTANTE: este @media precisa vir DEPOIS de .posts-layout base
   senão grid-template-columns: 1fr 440px sobrescreve display:flex */
@media (max-width: 1024px) {
  .posts-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .posts-main { order: 1; }
  .sidebar { position: static; order: 2; }
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* exatamente 2 colunas */
  gap: 1.75rem;
}
/* Mobile: mantém 2 colunas mas com gap menor (precisa vir DEPOIS da base) */
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin: 0 1rem; }
}
.post-card {
  background: var(--eita-orange);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: var(--shadow-sm);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.post-card-link { color: inherit; display: block; }
.post-card-thumb {
  aspect-ratio: 1 / 1;
  background: var(--eita-cream-dark) center/cover no-repeat;
  overflow: hidden;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-body {
  padding: 1.25rem 1.5rem 1.75rem;
  color: var(--white);
}
.post-card-body h3 { color: var(--white); margin: .4em 0 0; }
.post-card-cat {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(255,255,255,.18);
  padding: .25rem .6rem;
  border-radius: var(--radius-pill);
  color: var(--white);
}
.post-meta {
  font-size: .8125rem;
  color: rgba(255,255,255,.85);
  margin: .6rem 0 0;
}
.post-card--featured {
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .post-card--featured { grid-column: span 2; }
  .post-card--featured .post-card-thumb { aspect-ratio: 16 / 10; }
  .post-card--featured .post-card-body { padding: 1.75rem 2rem 2rem; }
  .post-card--featured h3 { font-size: 2rem; }
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  font-weight: 700;
}
.pagination a {
  color: var(--text);
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--eita-cream-dark);
}
.pagination a:hover { background: var(--eita-orange); color: var(--white); }

/* ============================================================
   POST — single
   ============================================================ */
.post-page { padding-bottom: 4rem; }
.post-hero {
  padding: 3rem 0 1.5rem;
  text-align: center;
}
.post-hero h1 {
  color: var(--eita-orange);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  margin: .5em auto;
  max-width: 50rem;
  line-height: 1.15;
}
.post-cat-pill {
  display: inline-block;
  background: var(--eita-orange);
  color: var(--white);
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.post-cat-pill:hover { background: var(--eita-orange-dark); color: var(--white); }
.post-featured {
  max-width: 980px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.post-featured img { width: 100%; height: auto; display: block; }
.post-body {
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}
.post-body h2 {
  margin-top: 2.5em;
  font-size: 1.875rem;
  color: var(--eita-orange);
}
.post-body h3 {
  color: var(--text);
  margin-top: 2em;
  font-size: 1.375rem;
}
.post-body p { margin: 1.25em 0; }
.post-body a {
  color: var(--eita-orange);
  text-decoration: underline;
  text-underline-offset: .15em;
}
.post-body img {
  border-radius: 18px;
  margin: 1.5em auto;
  box-shadow: var(--shadow-sm);
}
/* Embeds responsivos (YouTube, Vimeo, etc) */
.post-body iframe,
.post-body video,
.post-body embed,
.post-body object {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
  margin: 1.5em auto;
  box-shadow: var(--shadow-sm);
}
/* Containers WordPress de embed (figure.wp-block-embed etc) */
.post-body .wp-block-embed,
.post-body .wp-block-embed__wrapper,
.post-body .is-type-video {
  max-width: 100%;
  margin: 1.5em auto;
}
.post-body .wp-block-embed iframe,
.post-body .wp-block-embed__wrapper iframe {
  margin: 0;
}
.post-body ul, .post-body ol { padding-left: 1.5em; }
.post-body li { margin: .5em 0; }
.post-body blockquote {
  border-left: 4px solid var(--eita-orange);
  padding: .25em 1.25em;
  margin: 1.75em 0;
  font-style: italic;
  color: var(--text-muted);
  background: var(--eita-cream-dark);
  border-radius: 0 18px 18px 0;
}
.post-body .tldr-box,
.post-body .has-pale-pink-background-color {
  background: var(--eita-cream-dark) !important;
  border-radius: 18px;
  padding: 1.25em 1.5em;
  margin: 2em 0;
}
.post-body .wp-block-button__link,
.post-body .wp-element-button {
  display: inline-block;
  background: var(--eita-orange);
  color: var(--white) !important;
  padding: .9em 1.6em;
  border-radius: var(--radius-pill);
  font-weight: 800;
  text-decoration: none;
  transition: background .2s;
}
.post-body .wp-block-button__link:hover { background: var(--eita-orange-dark); }
.post-tags {
  max-width: 720px;
  margin: 2.5rem auto;
  font-size: .9375rem;
}
.tag-pill {
  display: inline-block;
  background: var(--eita-cream-dark);
  color: var(--text);
  padding: .25rem .75rem;
  border-radius: var(--radius-pill);
  font-size: .8125rem;
  margin: .25rem .25rem 0 0;
  font-weight: 600;
}
.tag-pill:hover { background: var(--eita-orange); color: var(--white); }
.related {
  margin: 4rem 0 0;
  padding-top: 3rem;
  border-top: 1px solid var(--eita-cream-dark);
}
.related-title { text-align: center; margin-bottom: 2rem; }

/* Carrossel infinito auto-rolante */
.related-carousel {
  overflow: hidden;
  padding: .5rem 0 1rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.related-track {
  display: flex;
  gap: 0;            /* gap entra no cálculo do 33.333% e desalinha o loop */
  width: max-content;
  animation: related-scroll 25s linear infinite;
  will-change: transform;
}
.related-carousel:hover .related-track,
.related-carousel:focus-within .related-track {
  animation-play-state: paused;
}
.related-track .post-card {
  flex: 0 0 280px;
  margin-right: 1.25rem;       /* espaço uniforme em TODOS, inclusive entre cópias — loop perfeito */
}
@keyframes related-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}
@media (prefers-reduced-motion: reduce) {
  .related-track { animation: none; }
}
@media (max-width: 768px) {
  .related-track .post-card { flex: 0 0 220px; margin-right: 1rem; }
  .related-track { animation-duration: 18s; }
}

/* ============================================================
   TAXONOMY (categoria / tag)
   ============================================================ */
.taxonomy-hero {
  padding: 3rem 0 1.5rem;
  text-align: center;
  background: var(--eita-cream-dark);
  margin-bottom: 3rem;
}
.taxonomy-label {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text-muted);
  margin: 0;
}
.taxonomy-hero h1 { margin: .25em 0 0; }

/* ============================================================
   SEARCH + 404
   ============================================================ */
.search-form { display: flex; gap: .25rem; }
/* (regras .search-form antigas/duplicadas removidas — usar as do header) */

/* Form de busca grande (página /busca) */
.search-form-big {
  display: flex;
  align-items: stretch;
  gap: .5rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  padding: .35rem .5rem .35rem 1.5rem;
}
.search-form-big input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  padding: .9rem 0;
  min-width: 0;
}
.search-form-big input::placeholder {
  color: var(--eita-sky);
  font-weight: 500;
}
.search-form-big button {
  background: var(--eita-orange);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1rem;
  padding: .75rem 1.75rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.search-form-big button:hover {
  background: var(--eita-orange-dark);
  transform: translateY(-1px);
}
.search-summary {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 1.5rem;
}
.search-summary strong { color: var(--eita-orange); }

@media (max-width: 500px) {
  .search-form-big {
    padding: .3rem .35rem .3rem 1.1rem;
  }
  .search-form-big input { font-size: 1rem; padding: .75rem 0; }
  .search-form-big button { padding: .6rem 1.25rem; font-size: .9rem; }
}

.error-page {
  text-align: center;
  padding: 6rem 1rem;
}
.error-page h1 { font-size: 6rem; margin: 0; }
.btn {
  display: inline-block;
  background: var(--eita-orange);
  color: var(--white);
  padding: .9rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  margin-top: 1rem;
}
.btn:hover { background: var(--eita-orange-dark); color: var(--white); }
.empty { text-align: center; color: var(--text-muted); padding: 3rem 0; }

/* ============================================================
   PAGES (institucionais: time-eita, como-comprar)
   ============================================================ */
.page-static { padding: 1rem 0 3rem; }

.page-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 1.5rem 0 3rem;
}
.page-hero-image {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--eita-cream-dark);
}
.page-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.page-hero-text h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  margin: 0 0 1rem;
  line-height: 1.15;
}
.page-hero-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

/* ---- Time Eita: seções alternadas com imagem + texto ---- */
.page-section--split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
  margin: 3rem 0;
}
.page-section--split.page-section--reverse {
  grid-template-columns: 1.05fr 1fr;
}
.page-section--split.page-section--reverse .page-section-image {
  order: 2;
}
.page-section-image {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--eita-cream-dark);
}
.page-section-image img {
  width: 100%;
  height: auto;
  display: block;
}
.page-section-body h2 {
  margin: 0 0 .85rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
}
.page-section-body p {
  margin: 0 0 .85rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.page-section-body p:last-child { margin-bottom: 0; }

/* ---- Como Comprar: passos numerados ---- */
.passos {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 2rem;
  margin: 1.5rem 0 3rem;
}
.passos-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
}
.passo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.passo-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--eita-orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(237,118,47,.3);
}
.passo-body h3 {
  margin: .3rem 0 .4rem;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 800;
}
.passo-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}
.passos-final {
  text-align: center;
  margin: 2rem 0 0;
  font-size: 1.125rem;
  color: var(--eita-orange);
  font-weight: 700;
}

/* ---- CTA final compartilhada ---- */
.page-cta {
  text-align: center;
  background: var(--eita-orange);
  color: var(--white);
  padding: 2.75rem 1.5rem;
  border-radius: var(--radius-card);
  margin: 2.5rem 0 1rem;
  box-shadow: var(--shadow-md);
}
.page-cta h2 {
  color: var(--white);
  margin: 0 0 .5rem;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
}
.page-cta p {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  color: rgba(255,255,255,.95);
}
.page-cta-btn {
  display: inline-block;
  background: var(--white);
  color: var(--eita-orange);
  font-weight: 800;
  font-size: 1.0625rem;
  padding: .9rem 2.25rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
}
.page-cta-btn:hover {
  color: var(--eita-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

@media (max-width: 860px) {
  .page-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .page-section--split,
  .page-section--split.page-section--reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .page-section--split.page-section--reverse .page-section-image { order: 0; }
  .passos { padding: 2rem 1.25rem; }
  .passos-lista { grid-template-columns: 1fr; gap: 1.5rem; }
  .page-cta { padding: 2.25rem 1.25rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--eita-cream);
  padding: 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .875rem;
}
.site-footer .container { padding-top: 2.5rem; }

/* ---- Footer CTA (Eita Casa Perfeita banner) ---- */
.footer-cta {
  background-color: var(--eita-orange);
  background-image: url("/static/img/home-about-background.webp");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 0 0 .5rem 0;
  margin: 0;
}
.footer-cta-inner {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr;
  gap: 1.5rem;
  align-items: start;
}
.footer-cta-image {
  margin-left: 0;
}
.footer-cta-image img {
  width: 100%;
  height: auto;
  display: block;
}
.footer-cta-body {
  text-align: left;
  color: var(--white);
  padding-top: 2.5rem;
}
.footer-cta-body p {
  font-size: 1.1rem;
  line-height: 1.45;
  margin: 0 0 .5rem;
  padding-right: 10rem;
  color: var(--white);
}
.footer-cta-body p strong { font-weight: 800; color: var(--white); }

.footer-cta-handwritten {
  margin: .25rem 0 1rem;
  max-width: 72%;
}
.footer-cta-handwritten svg {
  width: 100%;
  height: auto;
  display: block;
}

.footer-cta-btn {
  display: inline-block;
  line-height: 0;
  transition: transform .15s ease;
}
.footer-cta-btn img {
  display: block;
  width: 200px;
  height: auto;
  max-width: 100%;
}
.footer-cta-btn:hover { transform: translateY(-2px); }

@media (max-width: 1100px) {
  .footer-cta-body p { font-size: 1rem; }
  .footer-cta-inner { gap: 2rem; }
}

/* ---- Footer Instagram (LightWidget) ---- */
.footer-instagram {
  background: transparent;
  padding: .75rem 1rem .5rem;
}
.footer-instagram-inner {
  max-width: 900px;
  margin: 0 auto;
}
.footer-instagram-title {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 1rem;
  font-weight: 800;
}
.footer-instagram-title a {
  color: var(--eita-orange);
}
.footer-instagram-title a:hover {
  color: var(--eita-orange-dark);
}

@media (max-width: 860px) {
  .footer-cta {
    padding: 1.25rem 1rem 1.75rem;
    background-image: none;            /* imagem é desenhada pra desktop wide — em mobile fica feia */
    background-color: var(--eita-orange);
  }
  .footer-cta-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  .footer-cta-image { max-width: 320px; margin: 0 auto; }
  .footer-cta-body { text-align: center; padding-top: 0; }
  .footer-cta-body p {
    font-size: .95rem;
    line-height: 1.4;
    padding-right: 0;
    max-width: 320px;
    margin: 0 auto .5rem;
  }
  .footer-cta-handwritten {
    margin: .25rem auto .75rem;
    max-width: 320px;
  }
  .footer-cta-btn img { width: 180px; }
}
/* ---- Footer nav (pílula laranja) ---- */
.footer-nav-bar {
  background: var(--eita-orange);
  border-radius: var(--radius-pill);
  max-width: 1280px;
  margin: 1.5rem auto 2rem;
  padding: 1.5rem 2.5rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.15);
}
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li {
  display: flex;
  align-items: center;
}
.footer-nav li + li::before {
  content: "·";
  color: rgba(255,255,255,.75);
  margin: 0 2rem;
  font-weight: 700;
  font-size: 1.25rem;
}
.footer-nav a {
  color: var(--white);
  font-weight: 800;
  font-size: 1.3125rem;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.footer-nav a:hover { color: var(--white); border-bottom-color: var(--white); }

/* ---- Footer bottom (logo + info) ---- */
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.75rem 1.75rem;
}
.footer-bottom-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}
.footer-logo img {
  display: block;
  width: 200px;
  height: auto;
}
.footer-bottom-text {
  text-align: center;
}
.footer-info, .footer-copy {
  margin: .45rem 0;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
}
.footer-copy { opacity: .85; }
.footer-copy a { color: inherit; }

@media (max-width: 760px) {
  .footer-nav-bar { margin: 1rem; padding: 1rem 1.25rem; border-radius: 28px; }
  .footer-nav { gap: 0; }
  .footer-nav li + li::before { margin: 0 1.25rem; }
  .footer-nav a { font-size: 1.0625rem; }
  .footer-bottom-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    justify-items: center;
  }
  .footer-logo img { width: 160px; }
  .footer-info, .footer-copy { font-size: 1rem; }
}

/* ============================================================
   BREADCRUMBS (trilha de navegação acima do conteúdo)
   ============================================================ */
.breadcrumbs {
  padding: .85rem 1.25rem .25rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  align-items: center;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}
.breadcrumbs li + li::before {
  content: "›";
  margin-right: .55rem;
  color: var(--text-muted);
  font-weight: 700;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--eita-orange);
  text-decoration: underline;
}
.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE — ajustes finos pra telas muito pequenas
   ============================================================ */
@media (max-width: 768px) {
  .header-inner { justify-content: center; text-align: center; }
  .hero { padding: 2rem 0 1.5rem; }

  /* Em mobile, esconde o último item do breadcrumb quando tem 3+ items
     (o título do post já aparece como h1 logo abaixo — evita duplicar) */
  .breadcrumbs li:nth-last-child(1):nth-child(n+3) { display: none; }
  .breadcrumbs { font-size: .8rem; padding: .65rem 1rem .25rem; }
}

@media (max-width: 500px) {
  .container { padding: 0 1rem; }
  /* Banner mobile herda aspect-ratio do <768px */
  .social-nav { top: 21px; right: 8px; gap: .3rem; }
  .social-nav a { width: 26px; height: 26px; }

  .latest-post-body { padding: 1rem 1.25rem; }
  .latest-post-body h2 { font-size: 1.25rem; }
  .latest-post-thumb { min-height: 200px; }

  :root { --radius-card: 19px; }
  .post-card-body { padding: 1rem 0.5rem 4px; }
  .posts-section { padding: 1.5rem 0 2.5rem; }
  .section-title { margin-bottom: 1.5rem; }

  .sidebar-popular { padding: 1.25rem 1.25rem 1rem; }
  .sidebar-popular h3 { font-size: 1.35rem; margin-bottom: 1rem; }
  .sidebar-popular a { grid-template-columns: 64px 1fr; gap: .85rem; font-size: .95rem; }
  .sidebar-popular img { width: 64px; height: 64px; border-radius: 12px; }

  .footer-nav-bar { padding: .85rem 1rem; }
  .footer-nav li + li::before { margin: 0 .75rem; }
  .footer-nav a { font-size: .95rem; padding: .25rem 0; }
  .footer-instagram { padding: 1.25rem .5rem .5rem; }
  .footer-instagram-title { font-size: 1rem; }

  .page-cta { padding: 1.75rem 1rem; }
  .page-cta p { font-size: 1rem; }
  .page-cta-btn { font-size: 1rem; padding: .8rem 1.75rem; }
}
