/* ── HEADER ALTERNATIVO ───────────────────────────────────────── */
.mc-site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--parchment);
  border-bottom: 1px solid var(--parchment-deep);
  transition: box-shadow 0.3s;
}

.mc-site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(26, 20, 16, 0.08);
}

/* Compensa a admin bar do WP (fixed elements não são empurrados pela
   margin-top que o WP aplica ao <html> quando o usuário está logado). */
body.admin-bar .mc-site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .mc-site-header {
    top: 46px;
  }
}

.mc-header-inner {
  height: 64px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.mc-header-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  font-style: italic;
  flex-shrink: 0;
}

.mc-header-logo span {
  font-style: normal;
  font-weight: 400;
  color: var(--sepia);
  font-size: 0.72rem;
  display: block;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: -2px;
}

/* Nav */
.mc-header-nav { flex: 1; display: flex; justify-content: center; }

.mc-nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.mc-nav-list li { position: relative; }

.mc-nav-list > li > a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  padding: 0.25rem 0;
  position: relative;
}

.mc-nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--sepia);
  transition: width 0.3s;
}

.mc-nav-list > li > a:hover,
.mc-nav-list > li.current-menu-item > a,
.mc-nav-list > li.current-menu-ancestor > a {
  color: var(--sepia);
}

.mc-nav-list > li > a:hover::after,
.mc-nav-list > li.current-menu-item > a::after {
  width: 100%;
}

/* Submenu */
.mc-nav-list .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 200px;
  background: var(--cream-white);
  border: 1px solid var(--parchment-deep);
  border-top: 2px solid var(--sepia);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(26,20,16,0.08);
}

.mc-nav-list li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mc-nav-list .sub-menu a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
  display: block;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--parchment-deep);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
}

.mc-nav-list .sub-menu li:last-child a { border-bottom: none; }
.mc-nav-list .sub-menu a:hover { color: var(--sepia); background: var(--parchment); }

/* Ações */
.mc-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Busca */
.mc-search-wrap { position: relative; display: flex; align-items: center; }

.mc-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 0.3rem;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.mc-search-toggle:hover { color: var(--sepia); }

.mc-search-form {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  background: var(--cream-white);
  border: 1px solid var(--parchment-deep);
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: width 0.4s ease, opacity 0.3s ease;
  pointer-events: none;
}

.mc-search-form.is-open {
  width: 240px;
  opacity: 1;
  pointer-events: all;
}

.mc-search-input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  outline: none;
  width: 100%;
}

.mc-search-input::placeholder { color: var(--sepia-light); }

.mc-search-submit {
  background: none;
  border: none;
  border-left: 1px solid var(--parchment-deep);
  color: var(--sepia);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: color 0.3s;
}

.mc-search-submit:hover { color: var(--ink); }

/* Hambúrguer */
.mc-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  width: 32px;
  height: 32px;
}

.mc-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
  transform-origin: center;
}

.mc-hamburger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mc-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mc-hamburger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menu mobile */
.mc-mobile-menu {
  background: var(--cream-white);
  border-top: 1px solid var(--parchment-deep);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mc-mobile-menu.is-open { max-height: 80vh; overflow-y: auto; }

.mc-mobile-nav-list {
  list-style: none;
  padding: 1rem 5vw 2rem;
}

.mc-mobile-nav-list li a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--parchment-deep);
  transition: color 0.3s;
}

.mc-mobile-nav-list li a:hover,
.mc-mobile-nav-list li.current-menu-item > a { color: var(--sepia); }

.mc-mobile-nav-list .sub-menu {
  list-style: none;
  padding-left: 1rem;
}

.mc-mobile-nav-list .sub-menu a {
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.04em;
}

/* Breadcrumb */
.mc-breadcrumb {
  background: var(--parchment-warm);
  border-bottom: 1px solid var(--parchment-deep);
}

.mc-breadcrumb-inner {
  padding: 0.6rem 5vw;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--sepia-light);
}

.mc-breadcrumb-inner a {
  color: var(--sepia);
  text-decoration: none;
  transition: color 0.3s;
}

.mc-breadcrumb-inner a:hover { color: var(--rust); }

.mc-breadcrumb-sep { opacity: 0.5; font-size: 0.7rem; }

.mc-breadcrumb-current {
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Espaçador (compensa header fixed) */
.mc-header-spacer {
  height: 64px; /* altura do header */
}

/* ── FOOTER ALTERNATIVO ───────────────────────────────────────── */
.mc-site-footer {
  background: var(--ink);
  color: var(--parchment);
}

.mc-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 7vw 3rem;
}

/* Logo */
.mc-footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  color: var(--parchment);
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.mc-footer-logo span {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sepia-light);
  display: block;
  margin-top: 2px;
}

.mc-footer-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.5);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

/* Redes sociais */
.mc-footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mc-social-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.mc-social-link:hover { color: var(--sepia-light); }

/* Colunas */
.mc-footer-col-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sepia-light);
  margin-bottom: 1.2rem;
}

.mc-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mc-footer-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.55);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mc-footer-links a:hover { color: var(--parchment-warm); }

.mc-footer-cat-count {
  font-size: 0.72rem;
  opacity: 0.5;
}

/* Widget area opcional */
.mc-footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 0 7vw 2rem;
}

.mc-footer-widget {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.7;
}

/* Linha divisória */
.mc-footer-rule {
  height: 1px;
  background: rgba(245, 240, 232, 0.08);
  margin: 0 7vw;
}

/* Base */
.mc-footer-bottom {
  padding: 1.5rem 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.mc-footer-copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.28);
  letter-spacing: 0.05em;
}

.mc-footer-legal-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.mc-footer-legal-list a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.3);
  text-decoration: none;
  transition: color 0.3s;
}

.mc-footer-legal-list a:hover { color: var(--sepia-light); }

.mc-back-to-top {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.3);
  text-decoration: none;
  transition: color 0.3s;
}

.mc-back-to-top:hover { color: var(--sepia-light); }

/* ── PÁGINAS GERAIS (page.php) ────────────────────────────────── */
.mc-page {
  width: 100%;
}

/* Com imagem destacada o hero sobe até o topo do viewport e o header
   flutua por cima — mesmo padrão do single. */
body.mc-page-has-hero .mc-header-spacer,
body.mc-page-has-hero .mc-breadcrumb {
  display: none;
}

/* Hero com imagem */
.mc-page-hero {
  position: relative;
  width: 100%;
  height: 68vh;
  min-height: 420px;
  max-height: 640px;
  overflow: hidden;
}

.mc-page-hero-image {
  position: absolute;
  inset: 0;
  background: var(--midnight) center/cover no-repeat;
  transform: scale(1.06);
  animation: mc-page-hero-settle 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes mc-page-hero-settle {
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mc-page-hero-image { animation: none; transform: none; }
}

.mc-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 20, 16, 0.80) 0%,
    rgba(26, 20, 16, 0.52) 45%,
    rgba(26, 20, 16, 0.48) 100%
  );
}

.mc-page-hero-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* compensa o header fixo que cobre o topo do hero, para o título ficar
     no centro óptico e não no centro geométrico */
  padding-top: 64px;
}

.mc-page-hero-inner {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 5vw;
}

.mc-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--parchment);
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.mc-page-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: rgba(245, 240, 232, 0.72);
  line-height: 1.6;
  max-width: 34em;
  margin: 1.1rem auto 0;
}

/* Fio ornamental sob o título */
.mc-page-title-rule {
  width: 64px;
  height: 1px;
  margin: 1.6rem auto 0;
  background: var(--sepia-light);
  opacity: 0.75;
}

/* Header sem imagem — cabeçalho editorial, sem bloco chapado */
.mc-page-header {
  background: var(--cream-white);
  padding: 5rem 5vw 0;
  text-align: center;
}

.mc-page-header .mc-page-title {
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
  text-shadow: none;
}

.mc-page-header .mc-page-subtitle {
  color: var(--ink-soft);
  opacity: 0.85;
}

.mc-page-header .mc-page-title-rule {
  background: var(--sepia);
  opacity: 0.45;
}

/* Conteúdo */
.mc-page-wrap {
  padding: 4rem 7vw;
  background: var(--cream-white);
}

.mc-page-ornament {
  text-align: center;
  font-size: 2rem;
  color: var(--sepia-light);
  margin-bottom: 3rem;
  opacity: 0.6;
  line-height: 1;
}

.mc-page-content {
  font-family: var(--font-text);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.mc-page-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.mc-page-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  margin: 2rem 0 0.8rem;
  line-height: 1.2;
}

.mc-page-content h4,
.mc-page-content h5,
.mc-page-content h6 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin: 1.5rem 0 0.6rem;
  text-transform: uppercase;
}

.mc-page-content p {
  margin-bottom: 1.2rem;
}

.mc-page-content p:last-of-type {
  margin-bottom: 0;
}

.mc-page-content a {
  color: var(--sepia);
  text-decoration: underline;
  transition: color 0.3s;
}

.mc-page-content a:hover {
  color: var(--rust);
  text-decoration-thickness: 2px;
}

.mc-page-content ul,
.mc-page-content ol {
  margin: 1.5rem 0 1.5rem 2rem;
  padding: 0;
}

.mc-page-content li {
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.mc-page-content li p {
  margin: 0;
  display: inline;
}

.mc-page-content blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  color: var(--sepia);
  border-left: 4px solid var(--sepia-light);
  padding: 1.5rem 0 1.5rem 2rem;
  margin: 2rem 0;
  line-height: 1.7;
  background: rgba(240, 230, 208, 0.3);
}

.mc-page-content blockquote p {
  margin: 0;
}

.mc-page-content blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sepia-light);
  margin-top: 0.8rem;
}

.mc-page-content img,
.mc-page-content figure {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  display: block;
}

.mc-page-content figcaption {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--sepia-light);
  text-align: center;
  margin-top: 0.5rem;
}

.mc-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border: 1px solid var(--parchment-deep);
}

.mc-page-content table th,
.mc-page-content table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--parchment-deep);
}

.mc-page-content table th {
  background: var(--parchment-warm);
  font-weight: 600;
  color: var(--ink);
}

.mc-page-content table tr:hover {
  background: rgba(240, 230, 208, 0.2);
}

.mc-page-content code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  background: var(--parchment-warm);
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  color: var(--rust);
}

.mc-page-content pre {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  background: var(--ink);
  color: var(--parchment);
  padding: 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 2rem 0;
  line-height: 1.5;
}

.mc-page-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  border-radius: 0;
}

.mc-page-end-rule {
  text-align: center;
  font-size: 1.5rem;
  color: var(--sepia-light);
  margin-top: 3rem;
  opacity: 0.5;
  line-height: 1;
}

.mc-page-end-rule span {
  display: inline-block;
}

/* ── RESPONSIVO ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .mc-footer-top { grid-template-columns: 1fr 1fr; }
  .mc-footer-brand-col { grid-column: 1 / -1; }
  .mc-footer-widgets { grid-template-columns: 1fr 1fr; }
  .mc-header-nav { display: none; }
  .mc-hamburger { display: flex; }

  .mc-page-hero { height: 56vh; min-height: 340px; }
  .mc-page-header { padding: 4rem 5vw 0; }
  .mc-page-wrap { padding: 3rem 5vw; }
  .mc-page-content { font-size: 1rem; }
}

@media (max-width: 600px) {
  .mc-footer-top { grid-template-columns: 1fr; padding: 3rem 5vw 2rem; }
  .mc-footer-widgets { grid-template-columns: 1fr; padding: 0 5vw 1rem; }
  .mc-footer-rule, .mc-footer-bottom { margin-left: 5vw; margin-right: 5vw; }
  .mc-footer-bottom { flex-direction: column; align-items: flex-start; }
  .mc-header-inner { padding: 0 5vw; }

  .mc-page-hero { height: 50vh; min-height: 300px; }
  .mc-page-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .mc-page-subtitle { font-size: 0.95rem; margin-top: 0.9rem; }
  .mc-page-title-rule { margin-top: 1.2rem; width: 48px; }
  .mc-page-header { padding: 3rem 5vw 0; }
  .mc-page-wrap { padding: 2rem 5vw; }
  .mc-page-content h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
  .mc-page-content h3 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
  .mc-page-content ul, .mc-page-content ol { margin-left: 1.5rem; }
}
