/* 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);
  -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: 45% 35%;
  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 */
}

/* Nav-bar pill central — sobreposta ao banner por baixo (sem cobrir o logo) */
.main-nav-bar {
  background: var(--eita-orange);
  border-radius: var(--radius-pill);
  max-width: 1180px;
  margin: -28px auto 2rem;     /* overlap menor pra não cobrir o logo "EITA" */
  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 {
  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); }

@media (max-width: 768px) {
  .banner { height: 180px; }
  .social-nav { top: 60px; right: 10px; gap: .35rem; }
  .social-nav a { width: 30px; height: 30px; }
  .main-nav-bar {
    max-width: none;
    margin: -28px 1rem 1.5rem;
    border-radius: 22px;
  }
  .nav-inner { padding: .65rem .9rem; flex-wrap: wrap; gap: .65rem; }
  .main-nav { width: 100%; justify-content: center; gap: 1.2rem; order: 1; }
  .search-form { order: 2; width: 100%; min-width: 0; }
}

/* ============================================================
   LATEST POST (destaque embaixo do menu)
   ============================================================ */
.latest-post {
  margin: 2.5rem auto;
}
.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: 320px;
  overflow: hidden;
}
.latest-post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.latest-post-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  color: var(--white);
}
.latest-post-body h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  margin: .25rem 0 .5rem;
}
.latest-post-body p {
  color: rgba(255,255,255,.95);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}
.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);
  margin-right: .35rem;
}
.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;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.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);
}
.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 {
  max-width: 1100px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--eita-cream-dark);
}
.related h2 { text-align: center; margin-bottom: 2rem; }

/* ============================================================
   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 + NEWSLETTER + 404
   ============================================================ */
.search-form { display: flex; gap: .25rem; }
/* (regras .search-form antigas/duplicadas removidas — usar as do header) */

.newsletter {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.newsletter h3 { color: var(--eita-orange); margin: 0 0 .25em; }
.newsletter p { color: var(--text-muted); margin: 0 0 1rem; }
.newsletter-row { display: flex; gap: .5rem; }
.newsletter input {
  flex: 1;
  border: 1px solid var(--eita-cream-dark);
  border-radius: var(--radius-pill);
  padding: .65rem 1.1rem;
  font: inherit;
}
.newsletter button {
  border: 0;
  background: var(--eita-orange);
  color: var(--white);
  font-weight: 800;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.newsletter button:hover { background: var(--eita-orange-dark); }

.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; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--eita-cream-dark);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .875rem;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.site-footer nav a {
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8125rem;
}
.footer-info, .footer-copy { margin: .25rem 0; }
.footer-copy { opacity: .75; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .header-inner { justify-content: center; text-align: center; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .hero { padding: 2rem 0 1.5rem; }
}
