/* =========================================================
   CONTAINERS — THEME SYSTEM
   ========================================================= */

/* =========================================================
   POSTS ALIGNMENT (CONTENT + SIDEBAR)
   ========================================================= */

.align-posts {
  width: var(--container-md);
  max-width: var(--container-xl);
  margin: 0 auto;

  display: flex;
  align-items: flex-start;
}

/* Footer alignment below content */
.content-footer {
  margin-top: 35px; /* no base token available */
  text-align: center;
}

/* =========================================================
   POSTS ALIGNMENT — MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .align-posts {
    flex-direction: column;
    width: 100%;
    padding: 0 16px; /* mobile side breathing */
  }
}

/* =========================================================
   RECIPE STICKY — BASE
   ========================================================= */

#recipe-sticky {
  background: var(--beige);
  overflow: hidden;
  margin: 0 0 50px 0; /* bottom spacing without token */
}

/* =========================================================
   RECIPE STICKY — HEADER
   ========================================================= */

.recipe-sticky-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px; /* no base spacing token */
  padding: 20px 0; /* vertical rhythm preserved */
}

/* Sticky section title */
.recipe-sticky-title {
  display: block;

  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================================
   RECIPE STICKY — TOGGLE BUTTON
   ========================================================= */

.recipe-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;

  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   RECIPE STICKY — COLLAPSIBLE CONTENT
   ========================================================= */

#recipe-sticky-content {
  max-height: 1000px;
  opacity: 1;

  transition:
    max-height 0.6s ease,
    opacity 0.4s ease;
}

/* Closed state */
#recipe-sticky:not(.is-open) #recipe-sticky-content {
  max-height: 0;
  opacity: 0;
}

/* =========================================================
   RECIPE STICKY — ICONS
   ========================================================= */

.icon {
  font-size: 18px;
  line-height: 1;
}

.icon-open {
  font-size: 19px;
  font-weight: 400;
  transform: translateY(-3px);
}

.icon-close {
  font-size: 18px;
  font-weight: 400;
}

/* Closed → show arrow */
#recipe-sticky:not(.is-open) .icon-close {
  display: none;
}

/* Open → show close icon */
#recipe-sticky.is-open .icon-open {
  display: none;
}

/* =========================================================
   GENERIC CONTAINERS
   ========================================================= */

/* Default container (home, taxonomy, archive) */
.container {
  width: var(--container-md);
  max-width: var(--container-xl);
  margin: 30px auto; /* no margin token available */
  padding: 0 var(--container-padding);
}

/* Large container (grids, visual sections) */
.container-lg {
  width: var(--container-md);
  max-width: var(--container-xl);
  margin: 0 auto;

  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Editorial page container */
.container-page {
  width: var(--container-sm);
  max-width: var(--container-page);
  margin: var(--container-margin) auto;

  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Reading container (single post) */
.container-blog {
  max-width: var(--container-blog);
  margin: 10px 0; /* preserved */
  padding: 10px 0;
}

.content-recipe {
  max-width:1100px;
margin: 0 auto;}


/* 1. colunas com mesma altura */
.wp-block-columns.is-layout-flex {
  align-items: stretch;
}

/* 2. APENAS colunas que têm imagem viram flex */
.wp-block-column:has(figure.wp-block-image) {
  display: flex;
}

/* 3. wrapper da imagem ocupa a coluna */
.wp-block-column:has(figure.wp-block-image)
figure.wp-block-image {
  width: 100%;
  height: 100%;
  margin: 0;
}

/* 4. imagem ocupa toda a altura da coluna */
.wp-block-column:has(figure.wp-block-image)
figure.wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================================================
   CONTAINER BLOG — MOBILE
   ========================================================= */



@media (max-width: 1024px) {
  .container-blog {
    width: 100%;
    max-width: 100%;
    padding: 0 16px; /* mobile breathing */
  }
}



/* =========================================================
   MENU PRINCIPAL — WRAPPER
========================================================= */

.menu {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: var(--z-menu);
  background: var(--off-white);

  transition:
    background-color 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   MENU PRINCIPAL — WRAPPER
========================================================= */

.menu {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: var(--z-menu);
  background: var(--off-white);
}

/* =========================================================
   MENU — CONTAINER INTERNO
========================================================= */

.menu-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-md);

  display: flex;
  justify-content: space-between;
  align-items: center;

  transition: padding 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   MENU ESQUERDO (CATEGORIAS)
========================================================= */

.categories {
  display: flex;
  align-items: center;
}

.categories a {
  padding: 0 15px;
  font-family: var(--font-base);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  transition: opacity 0.3s ease, font-size 0.3s ease;
}

.categories a:hover {
  opacity: 0.6;
}

.menu.is-scrolled .categories a {
  font-size: var(--font-size-xxs);
}

/* =========================================================
   LOGO — COM OFFSET MANUAL (RESTAURADO)
========================================================= */

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: -80px;
}

.logo a {
  display: inline-flex;
}

.logo img {
  width: 80px;
  height: auto;
  display: block;
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* SCROLLED */
.menu.is-scrolled .logo img {
  width: 48px;
  margin-left: 10px;
}

/* =========================================================
   MENU DIREITO (SAZONAL + BUSCA)
========================================================= */

.sazonal-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0 8px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-base);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  transition: opacity 0.3s ease, font-size 0.3s ease;
}

.menu-button img {
  width: 15px;
  height: 15px;
  display: block;
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-button:hover {
  opacity: 0.6;
}

.menu.is-scrolled .menu-button {
  font-size: var(--font-size-xxs);
}

.menu.is-scrolled .menu-button img {
  width: 13px;
}

/* =========================================================
   ESTADO SCROLLED — MENU
========================================================= */

.menu.is-scrolled .menu-inner {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* =========================================================
   MENU MOBILE (BOTTOM)
========================================================= */

#menu-mob {
  display: none;
}

/* =========================================================
   TABLET (≤ 1024px)
========================================================= */

@media (max-width: 1024px) {

  .menu-inner {
    padding: var(--space-sm);
    gap: 24px;
  }

  .categories a {
    padding: 0 10px;
    font-size: var(--font-size-xxs);
  }

 
  

  .logo img {
    width: 64px;
  }

  .menu.is-scrolled .logo img {
    margin-left: 0;
  }

  .sazonal-section {
    gap: 12px;
  }

  .menu-button {
    font-size: var(--font-size-xxs);
  }

  .menu-button img {
    width: 13px;
    height: 13px;
  }
}

/* =========================================================
   MOBILE (≤ 768px)
========================================================= */

@media (max-width: 768px) {

  .categories {
    display: none;
  }

  .menu-inner {
    padding: var(--space-sm);
  }

  .logo {
    margin-left: 10px;
  }

  .logo img {
    width: 68px;
  }

  .menu.is-scrolled .logo img {
    width: 48px;
  }

  #menu-mob {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-menu);
    justify-content: center;
    padding: var(--space-md);
    background: var(--medium);
  }

  #menu-mob a {
    font-family: var(--font-base);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark);
    padding: 0 20px;
    text-decoration: none;
  }
}
/* =========================================================
   FOOTER
   ========================================================= */

/* =========================================================
   SOCIAL MEDIA FOOTER — DESKTOP / BASE
   ========================================================= */

.site-footer-midia {
  width: 100%;
  background: var(--medium);
  padding: 40px 0; /* no spacing token equivalent */
}

.site-footer-midia ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px; /* no spacing token equivalent */

  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-midia img {
  max-width: 12px;
}

.site-footer-midia a {
  padding: 8px 0 0 20px;

  display: flex;
  align-items: center;
  gap: 5px;

  font-family: var(--font-base);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;

  color: var(--dark);
  transition: opacity var(--transition-fast);
}

.site-footer-midia a:hover {
  opacity: 0.6;
}

/* =========================================================
   FOOTER SIMPLE — DESKTOP / BASE
   ========================================================= */

.site-footer-simple {
  width: 100%;
  padding-bottom: 60px; /* preserved */
  text-align: center;
}

.footer-simple-inner {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 30px; /* preserved */

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* =========================================================
   FOOTER NAVIGATION
   ========================================================= */

.footer-simple-nav ul {
  margin: 0;
  padding: 0;

  display: flex;
  gap: 12px;
  list-style: none;
}

.footer-simple-nav a {
  padding: 0 15px;

  display: flex;
  align-items: center;
  gap: 5px;

  font-family: var(--font-base);
  font-size: var(--font-size-xxs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;

  color: var(--dark);
  transition: opacity var(--transition-fast);
}

.footer-simple-nav a:hover {
  opacity: 0.6;
}

/* =========================================================
   FOOTER CREDITS
   ========================================================= */

.footer-simple-credits {
  font-family: var(--font-base);
  font-size: 12px;
  line-height: 1.6;

  color: var(--medium-dark);
  text-align: right;
}

.footer-simple-credits strong {
  font-weight: 700;
  color: var(--dark);
}

/* =========================================================
   FOOTER — MOBILE (≤ 768px)
   ========================================================= */

@media (max-width: 768px) {

  /* Social media stack */
  .site-footer-midia {
    padding: 24px 0;
  }

  .site-footer-midia ul {
    flex-direction: column;
    gap: 12px;
  }

  .site-footer-midia a {
    padding: 0;
    font-size: 10px;
  }

  /* Footer simple layout */
  .footer-simple-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 32px 24px;
  }

  /* Navigation full width */
  .footer-simple-nav {
    width: 100%;
  }

  .footer-simple-nav ul {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .footer-simple-nav a {
    padding: 0;
    font-size: 10px;
  }

  /* Credits below */
  .footer-simple-credits {
    width: 100%;
    margin-bottom: 20px;

    text-align: center;
    font-size: 11px;
    line-height: 1.5;
  }
}

/* =========================================================
   GENERIC BLOCKS
   ========================================================= */

#navigation {
  width: 100%;
}

.elm-button {
  margin: 3vw 0;

  background: none !important;
  border: none;

  font-family: var(--font-display);
  font-size: 24px;
  color: var(--black);
}

.block-title {
  margin: 80px 0 40px 0; /* preserved */
}

/* =========================================================
   MANIFEST BLOCK
   ========================================================= */

.block-manifest {
  margin: 40px 0;
  padding: 30px;

  background: var(--beige);
}

.block-manifest ul {
  margin: 20px 0;
}

.block-manifest li {
  margin: 0 20px;

  display: flex;
  align-items: center;
  list-style: none;
}

.block-manifest h1 {
  padding-top: 80px;
}

/* =========================================================
   PAGE BLOCK
   ========================================================= */

.block-page {
  margin: 20px 10px;
  padding: 5% 20%;

  background: var(--beige);
}

/* =========================================================
   SEARCH TERM — HERO
   ========================================================= */

.search-term {
  display: block;
  text-align: center;

  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-term strong {
  padding: 0 10px;

  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-transform: capitalize;

  color: var(--dark);
}

