/*
Theme Name: Jerê Ensina
Theme URI: https://jereensina.com/
Description: Tema filho do Twenty Twenty-Five, com identidade visual editorial para o site Jerê Ensina.
Author: OpenAI
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
Template: twentytwentyfive
Text Domain: jere-ensina
*/

:root {
  --je-green: #1F3A32;
  --je-coral: #E87A5D;
  --je-chalk: #FAF6F0;
  --je-mustard: #E9C46A;
  --je-white: #FFFFFF;
  --je-line: #E7DED3;
  --je-muted: #68756D;
  --je-shadow: 0 12px 35px rgba(31, 58, 50, .07);
}

html { scroll-behavior: smooth; }
body {
  background: var(--je-chalk);
  color: var(--je-green);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.wp-block-site-title,
.wp-block-post-title {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}

a { text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--je-coral); }
:focus-visible { outline: 3px solid var(--je-coral); outline-offset: 3px; }

/* Cabeçalho: título, navegação e pesquisa na mesma linha em telas amplas. */
.je-header {
  position: relative;
  z-index: 20;
  background: var(--je-chalk);
  border-bottom: 2px solid var(--je-coral);
}
.je-header__inner {
  min-height: 88px;
  padding-top: .8rem;
  padding-bottom: .8rem;
  gap: clamp(1rem, 2vw, 2rem);
}
.je-brand, .je-brand a {
  color: var(--je-green) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 1.65vw, 1.8rem) !important;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.je-brand a:hover { color: var(--je-coral) !important; }
.je-nav { flex: 1 1 auto; justify-content: center; }
.je-nav .wp-block-navigation__container { gap: clamp(.7rem, 1.3vw, 1.35rem); }
.je-nav .wp-block-navigation-item__content {
  padding: .6rem 0;
  color: var(--je-green);
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}
.je-nav .wp-block-navigation-item__content:hover,
.je-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--je-coral); }
.je-search { flex: 0 1 220px; min-width: 170px; }
.je-search .wp-block-search__inside-wrapper {
  min-height: 42px;
  padding: 2px 3px 2px 15px;
  border: 1px solid var(--je-line);
  border-radius: 999px;
  background: var(--je-white);
}
.je-search .wp-block-search__input {
  min-width: 0;
  padding: .35rem .15rem;
  border: 0;
  background: transparent;
  color: var(--je-green);
  font-size: .86rem;
  outline: 0;
  box-shadow: none;
}
.je-search .wp-block-search__button {
  min-width: 35px;
  width: 35px;
  height: 35px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--je-coral);
  color: var(--je-green);
}
.je-search .wp-block-search__button:hover { background: var(--je-mustard); }

/* Página inicial. */
.je-main { margin-block-start: 0 !important; }
.je-hero {
  position: relative;
  overflow: hidden;
  margin-block-start: 0 !important;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem clamp(4rem, 7vw, 6rem);
  border-bottom: 4px solid var(--je-coral);
  background: var(--je-green);
  color: var(--je-chalk);
}
.je-hero::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 5px;
  background: var(--je-mustard);
  content: "";
}
.je-hero__inner { max-width: 1240px; }
.je-eyebrow, .je-kicker {
  margin: 0 0 1rem;
  color: var(--je-coral);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}
.je-hero .je-eyebrow { color: var(--je-mustard); }
.je-hero__title {
  max-width: 950px;
  margin: 0 0 1.25rem;
  color: var(--je-chalk);
  font-size: clamp(2.7rem, 6.1vw, 5.4rem);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.055em;
}
.je-hero__text {
  max-width: 690px;
  margin: 0;
  color: rgba(250, 246, 240, .88);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
}
.je-hero__buttons { margin-top: 2rem; gap: .8rem; }
.je-hero .wp-block-button__link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: var(--je-coral);
  color: var(--je-green);
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.je-hero .wp-block-button__link:hover { background: var(--je-mustard); transform: translateY(-2px); }
.je-hero .je-button-outline .wp-block-button__link {
  border: 1px solid rgba(250, 246, 240, .56);
  background: transparent;
  color: var(--je-chalk);
}
.je-hero .je-button-outline .wp-block-button__link:hover { border-color: var(--je-mustard); color: var(--je-mustard); }
.je-hero__note { margin: 1.5rem 0 0; color: rgba(250,246,240,.65); font-size: .86rem; }

.je-section, .je-latest { padding-top: clamp(3.5rem, 6vw, 5.6rem); }
.je-section-heading { width: 100%; margin-bottom: 1.6rem; gap: 1rem; }
.je-section-heading h2, .je-upcoming h2, .je-latest h2, .je-explore-more h2 {
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 2.8rem);
  letter-spacing: -.04em;
}
.je-section-caption { margin: 0 0 .2rem; color: var(--je-muted); font-size: .95rem; }
.je-area-grid { margin-top: 0; margin-bottom: 1rem; }
.je-area-card {
  box-sizing: border-box;
  height: 100%;
  padding: clamp(1.2rem, 2vw, 1.7rem);
  border: 1px solid var(--je-line);
  border-radius: 15px;
  background: var(--je-white);
  box-shadow: 0 3px 14px rgba(31,58,50,.025);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.je-area-card:hover { transform: translateY(-3px); border-color: var(--je-coral); box-shadow: var(--je-shadow); }
.je-area-card .je-card-number {
  margin: 0 0 1.25rem;
  color: var(--je-coral);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.je-area-card h3 { margin: 0 0 .6rem; font-size: clamp(1.45rem, 2vw, 1.8rem); }
.je-area-card h3 a { color: var(--je-green); text-decoration: none; }
.je-area-card h3 a:hover { color: var(--je-coral); }
.je-area-card p:not(.je-card-number):not(.je-card-link) { margin: 0; color: var(--je-muted); font-size: .93rem; line-height: 1.6; }
.je-area-card .je-card-link { margin: 1.15rem 0 0; font-size: .82rem; font-weight: 750; }
.je-area-card .je-card-link a { color: var(--je-green); text-decoration: none; }
.je-area-card .je-card-link a:hover { color: var(--je-coral); }
.je-area-card--coral { border-color: var(--je-coral); background: var(--je-coral); }
.je-area-card--coral .je-card-number, .je-area-card--coral .je-card-link a { color: var(--je-green); }
.je-area-card--coral h3 a { color: var(--je-green); }
.je-area-card--coral p:not(.je-card-number):not(.je-card-link) { color: rgba(31,58,50,.82); }
.je-area-card--coral:hover { border-color: var(--je-green); }

.je-upcoming { padding-bottom: clamp(3rem, 6vw, 5rem); }
.je-section-intro { margin: .75rem 0 1.6rem; color: var(--je-muted); }
.je-upcoming-grid { gap: 1rem; }
.je-upcoming-card {
  height: 100%;
  padding: 1.5rem;
  border-top: 3px solid var(--je-coral);
  border-radius: 0 0 13px 13px;
  background: #FFFFFF;
}
.je-upcoming-card .je-upcoming-category { margin: 0 0 .8rem; color: var(--je-coral); font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.je-upcoming-card h3 { margin: 0 0 .75rem; font-size: 1.45rem; line-height: 1.18; }
.je-upcoming-card p:last-child { margin: 0; color: var(--je-muted); font-size: .92rem; }
.je-latest { padding-bottom: clamp(4rem, 7vw, 6.5rem); border-top: 1px solid var(--je-line); }
.je-post-grid { margin-top: 1.5rem; }
.je-post-grid .wp-block-post-template { gap: 1.2rem; }
.je-post-card {
  height: 100%;
  padding: 0 0 1.35rem;
  overflow: hidden;
  border: 1px solid var(--je-line);
  border-radius: 14px;
  background: var(--je-white);
}
.je-post-card .wp-block-post-featured-image { margin: 0 0 1rem; }
.je-post-card .wp-block-post-featured-image img { width: 100%; height: auto; object-fit: cover; }
.je-post-card .wp-block-post-date,
.je-post-card .wp-block-post-title,
.je-post-card .wp-block-post-excerpt { margin-right: 1.2rem; margin-left: 1.2rem; }
.je-post-card .wp-block-post-date { color: var(--je-muted); font-size: .78rem; }
.je-post-card .wp-block-post-title { margin-top: .5rem; margin-bottom: .6rem; font-size: 1.4rem; line-height: 1.18; }
.je-post-card .wp-block-post-title a { color: var(--je-green); text-decoration: none; }
.je-post-card .wp-block-post-title a:hover { color: var(--je-coral); }
.je-post-card .wp-block-post-excerpt { color: var(--je-muted); font-size: .9rem; line-height: 1.6; }
.je-empty-posts { padding: 1.5rem; border-left: 3px solid var(--je-mustard); background: #FFFFFF; color: var(--je-muted); }

/* Páginas de conteúdo e artigos. */
.je-content-main { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(4rem, 7vw, 6rem); }
.je-page-heading { padding: clamp(2rem, 4vw, 3.2rem) 0 1.4rem; border-bottom: 1px solid var(--je-line); }
.je-page-heading h1, .je-article-heading h1, .je-archive-heading h1, .je-archive-heading .wp-block-query-title {
  margin: 0 0 1rem;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  line-height: 1;
}
.je-page-heading__lead { max-width: 720px; margin: 0; color: var(--je-muted); font-size: 1.15rem; }
.je-page-content { padding-top: 1rem; }
.je-page-content > * { margin-top: 1.2rem; margin-bottom: 1.2rem; }
.je-page-content .je-page-intro { color: var(--je-green); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.55; }
.je-page-content h2 { margin-top: 2.8rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.je-topic-list { padding: 1.2rem 1.5rem 1.2rem 2.7rem; border-left: 3px solid var(--je-coral); background: rgba(255,255,255,.75); }
.je-topic-list li { margin: .65rem 0; }
.je-content-note { color: var(--je-muted); font-size: .92rem; }
.je-explore-more { margin-top: 3rem; padding: 2rem; border-radius: 16px; background: #F1EAE0; }
.je-explore-more > p:not(.je-kicker) { color: var(--je-muted); }
.je-topic-buttons { margin-top: 1rem; gap: .6rem; }
.je-topic-buttons .wp-block-button__link { border: 1px solid var(--je-green); background: transparent; color: var(--je-green); text-decoration: none; }
.je-topic-buttons .wp-block-button__link:hover { background: var(--je-green); color: var(--je-chalk); }
.je-article-heading { padding-bottom: 1.5rem; }
.je-article-heading .wp-block-post-featured-image { margin-top: 2rem; border-radius: 14px; overflow: hidden; }
.je-article-content { padding-top: 1.4rem; }
.je-article-content > * { margin-block: 1.25rem; }
.je-article-content p, .je-article-content li { line-height: 1.85; }
.je-post-date { color: var(--je-muted); font-size: .82rem; }
.je-post-tags a { display: inline-block; padding: .35rem .7rem; border-radius: 999px; background: #F1EAE0; color: var(--je-green); text-decoration: none; font-size: .8rem; }
.je-archive-heading { padding: 1rem 0 2rem; }
.je-archive-heading > p { color: var(--je-muted); }
.je-not-found { min-height: 55vh; padding: clamp(5rem, 10vw, 9rem) 1.5rem; text-align: center; }
.je-not-found h1 { max-width: 800px; margin: 0 auto 1rem; font-size: clamp(2.5rem, 5vw, 4rem); }
.je-not-found .wp-block-search { max-width: 520px; margin: 2rem auto; }

/* Rodapé. */
.je-footer {
  padding: 2rem 1.5rem;
  border-top: 4px solid var(--je-coral);
  background: var(--je-green);
  color: var(--je-chalk);
}
.je-footer__inner { gap: 1rem 2rem; }
.je-footer__brand, .je-footer__brand a { color: var(--je-chalk) !important; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem !important; font-weight: 700; text-decoration: none; }
.je-footer__tagline, .je-footer__copyright { margin: 0; color: rgba(250,246,240,.78); font-size: .85rem; }

/* Ajustes responsivos: navegação sem sobreposição e cards empilhados em telas pequenas. */
@media (max-width: 1120px) {
  .je-header__inner { flex-wrap: wrap !important; justify-content: space-between; }
  .je-nav { order: 3; flex-basis: 100%; }
  .je-nav .wp-block-navigation__container { flex-wrap: wrap; justify-content: flex-start; }
  .je-search { flex: 0 1 240px; }
}
@media (max-width: 781px) {
  .je-header__inner { padding-top: .75rem; padding-bottom: .75rem; gap: .6rem 1rem; }
  .je-nav { order: 2; flex-basis: auto; margin-left: auto; }
  .je-search { order: 3; flex-basis: 100%; max-width: none; }
  .je-area-grid > .wp-block-column, .je-upcoming-grid > .wp-block-column { flex-basis: 100% !important; }
  .je-area-grid--secondary > .wp-block-column { flex-basis: 100% !important; }
  .je-section-heading { align-items: flex-start !important; }
  .je-hero { padding-right: 1.15rem; padding-left: 1.15rem; }
  .je-hero__title { font-size: clamp(2.55rem, 11vw, 4rem); }
  .je-hero__buttons { align-items: flex-start; }
  .je-footer__inner { align-items: flex-start !important; flex-direction: column; }
}
@media (max-width: 480px) {
  .je-brand, .je-brand a { font-size: 1.4rem !important; }
  .je-hero__buttons { flex-direction: column; }
  .je-hero__buttons .wp-block-button, .je-hero__buttons .wp-block-button__link { width: 100%; box-sizing: border-box; }
  .je-topic-buttons .wp-block-button { width: auto; }
  .je-area-card { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
