/*
Theme Name: Frases de Crianças
Theme URI: https://frasesdecriancas.com
Author: Frases de Crianças
Description: Tema oficial do Frases de Crianças — As pérolas das nossas pérolas
Version: 1.3.5
License: GNU General Public License v2 or later
Text Domain: frasesdecriancas
Tags: blog, quotes, children, responsive
*/

/* =============================================
   FONT FACE — Interstate (fonte oficial da marca)
   ============================================= */
@font-face {
  font-family: 'Interstate';
  src: url('assets/fonts/Interstate-Light.woff2') format('woff2'),
       url('assets/fonts/Interstate-Light.otf')   format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Interstate';
  src: url('assets/fonts/Interstate-Regular.woff2') format('woff2'),
       url('assets/fonts/Interstate-Regular.otf')   format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Interstate';
  src: url('assets/fonts/Interstate-Bold.woff2') format('woff2'),
       url('assets/fonts/Interstate-Bold.otf')   format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Interstate';
  src: url('assets/fonts/Interstate-Black.woff2') format('woff2'),
       url('assets/fonts/Interstate-Black.otf')   format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   CSS VARIABLES — BRAND IDENTITY
   Extraídas dos assets originais (logo + templates)
   ============================================= */
:root {
  /* Paleta real da marca */
  --fdc-teal:       #7AADB5;   /* balão de fala — cor principal */
  --fdc-teal-dark:  #5A8A94;   /* teal escuro */
  --fdc-mint:       #B8D4CC;   /* verde-menta suave */
  --fdc-cream:      #F0EDCC;   /* creme amarelado (fundo do card_fdc) */
  --fdc-coral:      #F0C0B0;   /* coral pastel (acento) */
  --fdc-orange:     #E2773A;   /* laranja quente — destaque de título */
  --fdc-gray-card:  #AAAAAA;   /* borda dos cards / templates */
  --fdc-gray-bg:    #E8E6E0;   /* fundo levemente acinzentado dos templates */
  --fdc-white:      #FFFFFF;
  --fdc-dark:       #3D3D3D;
  --fdc-gray:       #666666;
  --fdc-light-gray: #999999;

  /* Tipografia — Interstate (fonte oficial da marca) */
  --font-heading: 'Interstate', 'Arial Narrow', sans-serif;
  --font-body:    'Interstate', Arial, sans-serif;

  --radius:  10px;
  --shadow:  0 2px 12px rgba(0,0,0,0.08);
  --card-border: 3px solid var(--fdc-gray-card);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Reset headings — previne browser UA stylesheet e wp-block-library de sobrescrever */
h1, h2, h3, h4, h5, h6 {
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
  font-family: var(--font-heading);
  line-height: 1.3;
  margin: 0;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--fdc-dark);
  background: #F5F3EE;
  line-height: 1.7;
}
a { color: var(--fdc-teal-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--fdc-teal); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =============================================
   CONTAINER
   ============================================= */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--fdc-white);
  border-bottom: 4px solid var(--fdc-teal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
/* Logo */
.site-branding .custom-logo { height: 52px; width: auto; }
.site-title-link {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--fdc-teal-dark);
}
/* Nav */
.primary-nav { flex: 1; }
.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0;
  margin: 0;
}
.nav-menu a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  padding: 7px 14px;
  border-radius: 20px;
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
}
/* Negativar: fundo branco + texto teal no hover */
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-page-ancestor > a {
  background: #fff;
  color: var(--fdc-teal-dark);
}
/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Redes sociais no header */
.header-socials {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fdc-teal-dark);
  opacity: .7;
  transition: opacity .2s, color .2s;
  text-decoration: none;
  line-height: 1;
}
.header-social-link:hover {
  opacity: 1;
  color: var(--fdc-teal);
}

/* Mini search */
.header-search .search-form-mini {
  display: flex;
  align-items: center;
  background: #f2f1ed;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid #ddd;
}
.header-search .search-field {
  border: none;
  background: transparent;
  padding: 7px 14px;
  font-size: 0.84rem;
  width: 160px;
  outline: none;
}
.header-search .search-submit {
  background: none;
  border: none;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--fdc-teal-dark);
  display: flex;
  align-items: center;
}

/* =============================================
   NAV BAR — barra de menu abaixo do header
   ============================================= */
.site-nav-bar {
  background: var(--fdc-teal);
  border-bottom: 3px solid var(--fdc-teal-dark);
  position: sticky;
  top: 76px; /* altura do .site-header */
  z-index: 90;
}
.nav-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
}

/* =============================================
   HERO BANNER — imagem do Drive
   ============================================= */
.hero {
  background: #EEECC8; /* creme do header, fallback */
  border-bottom: 3px solid var(--fdc-teal);
  line-height: 0;
}
.hero-banner {
  display: block;
  width: 100%;
  height: auto;
}

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 16px 20px;
  background: var(--fdc-white);
  border-bottom: 1px solid #e8e6e0;
  max-width: 1180px;
  margin: 0 auto;
}
.filter-btn {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  background: #EEECE6;
  color: var(--fdc-gray);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all .18s;
  border: 2px solid transparent;
}
.filter-btn:hover { background: var(--fdc-mint); color: var(--fdc-dark); }
.filter-btn.active { background: var(--fdc-teal); color: var(--fdc-white); border-color: var(--fdc-teal-dark); }

/* =============================================
   MAIN LAYOUT — content + sidebar
   ============================================= */
.site-main { padding: 28px 0 48px; }
.main-with-sidebar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.content-area { flex: 1; min-width: 0; }

/* =============================================
   POSTS GRID
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* =============================================
   WHATSAPP BANNER — chamada discreta entre posts
   ============================================= */
.wpp-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f0f8f9;
  border: 1.5px solid var(--fdc-teal);
  border-radius: var(--radius);
  padding: 16px 22px;
}
.wpp-banner-icon { flex-shrink: 0; line-height: 0; }
.wpp-banner-text {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--fdc-dark);
  line-height: 1.5;
  margin: 0;
}
.wpp-banner-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 20px;
  background: var(--fdc-orange);
  color: var(--fdc-white) !important;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.wpp-banner-btn:hover { background: #c9662e; color: var(--fdc-white) !important; }

/* =============================================
   POST CARD — design fiel aos templates da marca
   Fundo branco, borda cinza, balão angular
   ============================================= */
.post-card {
  background: var(--fdc-white);
  border: var(--card-border);
  border-radius: 4px 4px 0 4px; /* canto inferior direito reto p/ "tail" */
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .15s;
  overflow: visible;
}
.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
/* Speech-bubble tail (angular, como nos templates) */
.post-card::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: 20px;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 0 solid transparent;
  border-top: 16px solid var(--fdc-gray-card);
}
/* White fill layer for tail */
.post-card::before {
  content: '';
  position: absolute;
  bottom: -11px;
  right: 22px;
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 0 solid transparent;
  border-top: 13px solid var(--fdc-white);
  z-index: 1;
}
/* Small chat bubble icon top-left (brand identity) */
.card-bubble-icon {
  position: absolute;
  top: -12px;
  left: 12px;
  width: 32px;
  height: 32px;
  background: var(--fdc-teal);
  border-radius: 50% 50% 50% 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.card-bubble-icon span {
  display: flex;
  gap: 2px;
  align-items: center;
}
.card-bubble-icon span i {
  display: block;
  width: 4px; height: 4px;
  background: #fff;
  border-radius: 50%;
}
/* Card link */
.card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 18px 16px;
  color: inherit;
  text-decoration: none;
}
.card-link:hover { color: inherit; }
/* Quote text — leve e pequeno, como nos posts de redes sociais */
.card-quote {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 300;       /* Interstate Light */
  line-height: 1.55;
  color: var(--fdc-gray);
  margin-bottom: 6px;
  font-style: normal;
}
.card-quote p { margin: 0 0 4px; }
.card-quote p:last-child { margin-bottom: 0; }
/* Attribution — (Nome, X anos) — sem linha separadora */
.card-attribution {
  margin-top: 8px;        /* fixo: 1 linha de respiro, sem stretch */
  padding-top: 0;
}
.card-attribution cite {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fdc-light-gray);
  font-family: var(--font-heading);
}
/* Category chips */
.card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.card-cat {
  background: var(--fdc-mint);
  color: var(--fdc-teal-dark);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 2px 9px;
  border-radius: 10px;
}
/* Share buttons on card */
.card-share {
  display: flex;
  gap: 6px;
  padding: 8px 18px 12px;
  border-top: 1px solid #f0ede6;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: opacity .2s;
  color: #fff;
  text-decoration: none;
}
.share-btn:hover { opacity: .82; color: #fff; }
.share-btn--large { padding: 10px 18px; font-size: 0.9rem; }
/* Ícone sem texto, tamanho reduzido */
.share-btn--sm {
  width: 28px;
  height: 28px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  gap: 0;
}
/* Botão "Comentar" no post individual */
.share-btn--comment {
  background: var(--fdc-mint);
  color: var(--fdc-teal-dark);
}
.share-btn--comment:hover { background: var(--fdc-teal); color: #fff; opacity: 1; }
.share-wa  { background: #25D366; }
.share-fb  { background: #1877F2; }
.share-tw  { background: #1DA1F2; }
/* WA outline — só borda, sem fundo, usado no post individual */
.share-wa--outline {
  background: transparent;
  border: 1.5px solid #25D366;
  color: #25D366;
}
.share-wa--outline:hover { background: #25D366; color: #fff; opacity: 1; }

/* Botão de comentário nos cards */
.card-comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 12px;
  background: #f0ede6;
  color: var(--fdc-gray);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: background .18s, color .18s;
  text-decoration: none;
  line-height: 1;
}
.card-comment-btn:hover { background: var(--fdc-mint); color: var(--fdc-teal-dark); }

/* Like button */
.card-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 12px;
  background: #f0ede6;
  color: var(--fdc-gray);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border: none;
  cursor: pointer;
  transition: background .18s, color .18s;
  line-height: 1;
}
.card-like-btn:hover           { background: #fdeef1; color: #e0405a; }
.card-like-btn.is-liked        { background: #fdeef1; color: #e0405a; }
.card-like-btn.is-liked svg    { fill: #e0405a; stroke: #e0405a; }
.card-like-btn:disabled        { cursor: default; opacity: .8; }
.card-like-btn.is-animating svg { animation: fdc-heart-pop .35s ease; }

@keyframes fdc-heart-pop {
  0%   { transform: scale(1);    }
  40%  { transform: scale(1.5);  }
  70%  { transform: scale(0.88); }
  100% { transform: scale(1);    }
}

/* Versão no post individual — com label "Curtir" */
.card-like-btn--single {
  padding: 6px 14px;
  font-size: 0.8rem;
}
.card-like-btn--single .card-like-count { font-size: 0.8rem; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 132px; /* header (76px) + nav-bar (44px) + folga */
}
.sidebar-widget {
  background: var(--fdc-white);
  border: 2px solid #e8e6e0;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-widget-title {
  background: var(--fdc-teal);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  margin: 0;
}
.sidebar-cat-list { padding: 8px 0; }
.sidebar-cat-list li { border-bottom: 1px solid #f2f0ea; }
.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  padding: 9px 16px;
  font-size: 0.85rem;
  color: var(--fdc-gray);
  font-family: var(--font-heading);
  font-weight: 400;
  transition: background .15s, color .15s;
  box-sizing: border-box;
}
.sidebar-cat-list a:hover {
  background: var(--fdc-cream);
  color: var(--fdc-teal-dark);
}
.sidebar-cat-list a.active-cat {
  background: var(--fdc-mint);
  color: var(--fdc-teal-dark);
  font-weight: 800;
}
.sidebar-cat-count {
  margin-left: auto;
  background: #EEECE6;
  color: var(--fdc-light-gray);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Sidebar top-list (Mais lidas / Mais curtidas) ─────────────────────────── */
.sidebar-top-list a {
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
}
.sidebar-top-rank {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fdc-teal);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  margin-top: 1px;
}
.sidebar-top-title {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--fdc-gray);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.sidebar-top-list a:hover .sidebar-top-title { color: var(--fdc-teal-dark); }
.sidebar-top-list .sidebar-cat-count { margin-top: 2px; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  margin: 32px 0 8px;
}
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}
.pagination li { list-style: none; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  background: var(--fdc-white);
  color: var(--fdc-gray);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: all .18s;
}
.pagination .page-numbers:hover { background: var(--fdc-mint); border-color: var(--fdc-teal); color: var(--fdc-dark); }
.pagination .page-numbers.current { background: var(--fdc-teal); border-color: var(--fdc-teal-dark); color: #fff; }

/* =============================================
   ARCHIVE HEADER
   ============================================= */
.archive-header {
  background: var(--fdc-cream);
  padding: 36px 20px;
  border-bottom: 3px solid var(--fdc-teal);
}
.archive-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fdc-orange);
  margin-bottom: 4px;
}
.archive-description { color: var(--fdc-light-gray); font-size: 0.84rem; }

/* =============================================
   SINGLE POST — layout elegante e compacto
   ============================================= */
.single-container {
  max-width: 620px;        /* coluna estreita = mais elegante */
  margin: 0 auto;
  padding: 0 20px 48px;
}
.breadcrumb {
  font-size: 0.68rem;
  color: var(--fdc-light-gray);
  padding: 16px 0 10px;
  letter-spacing: 0.2px;
}
.breadcrumb a { color: var(--fdc-teal-dark); }
.breadcrumb span[aria-current="page"] { text-transform: uppercase; }
.single-post { margin-bottom: 36px; }

/* Chips de categoria — mais discretos */
.single-cats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.single-cat-link {
  background: transparent;
  border: 1px solid var(--fdc-mint);
  color: var(--fdc-teal-dark);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 2px 9px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Título — label editorial laranja, discreto */
.single-post-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--fdc-orange);
  line-height: 1.45;
  margin-bottom: 14px;
}

/* Card da citação */
.single-quote-card {
  background: var(--fdc-white);
  border: var(--card-border);
  border-radius: 4px 4px 0 4px;
  padding: 26px 24px 22px;
  margin-bottom: 20px;
  position: relative;
}
.single-quote-card::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: 22px;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-top: 16px solid var(--fdc-gray-card);
}
.single-quote-card::before {
  content: '';
  position: absolute;
  bottom: -11px;
  right: 25px;
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-top: 12px solid var(--fdc-white);
  z-index: 1;
}

/* Texto da citação — leve e compacto */
.single-quote {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--fdc-gray);
  font-style: normal;
}
.single-quote p { margin: 0 0 7px; }
.single-quote p:last-child { margin-bottom: 0; }

/* Atribuição — mesmo estilo do texto da frase, sem itálico */
.single-attribution {
  margin-top: 10px;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--fdc-gray);
}
.single-attribution cite {
  font-style: normal;
}

/* Linha de compartilhamento */
.single-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 20px;
}
.share-label {
  font-weight: 600;
  color: var(--fdc-light-gray);
  font-size: 0.7rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Metadados */
.single-meta {
  font-size: 0.68rem;
  color: var(--fdc-light-gray);
  padding: 10px 0;
  border-top: 1px solid #eee;
}
.single-meta a { color: var(--fdc-teal-dark); }
.meta-sep { margin: 0 5px; }

/* Navegação entre posts */
.post-nav { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0; }
.post-nav-link {
  flex: 1; max-width: 48%;
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 14px;
  background: var(--fdc-white);
  border: 1.5px solid #e8e6e0;
  border-radius: var(--radius);
  transition: border-color .2s;
}
.post-nav-link:hover { border-color: var(--fdc-teal); }
.post-nav-next { text-align: right; margin-left: auto; }
.nav-label { font-size: 0.65rem; color: var(--fdc-light-gray); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-title { font-size: 0.78rem; color: var(--fdc-dark); font-weight: 400; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.4px; }

/* Posts relacionados */
.related-posts { margin-top: 36px; }
.related-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--fdc-orange);
}
.posts-grid--small { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.comments-wrap { margin-top: 32px; border-top: 1px solid #eee; padding-top: 24px; }

/* =============================================
   PAGE TEMPLATES
   ============================================= */
/* =============================================
   INNER PAGES — sistema unificado
   (Sobre · Envie sua Frase · Termos de Uso)
   ============================================= */

/* Container estreito para páginas internas */
.page-container {
  max-width: 660px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* Cabeçalho comum */
.ipage-header {
  margin-bottom: 28px;
}
/* Especificidade dupla (.page-content .ipage-title) para ganhar de wp-block-library */
.page-content .ipage-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fdc-orange);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.page-content .ipage-intro {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fdc-gray);
  line-height: 1.75;
  margin: 0;
}

/* Área de conteúdo comum */
.ipage-content,
.ipage-content p,
.ipage-content li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fdc-gray);
  line-height: 1.8;
}
.ipage-content p { margin-bottom: 14px; }
.ipage-content h1,
.ipage-content h2 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fdc-teal-dark);
  margin: 28px 0 10px;
}
.ipage-content h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fdc-teal-dark);
  margin: 20px 0 8px;
}
.ipage-content strong,
.ipage-content b  { font-weight: 600; color: var(--fdc-teal-dark); }
.ipage-content a  { color: var(--fdc-teal-dark); font-weight: 600; }
.ipage-content ol,
.ipage-content ul { padding-left: 20px; margin-bottom: 16px; }
.ipage-content li { margin-bottom: 10px; }

/* Stats strip (Sobre) */
.ipage-stats {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid #ede9e1;
}
.stat-item {
  text-align: center;
  background: var(--fdc-mint);
  border-radius: var(--radius);
  padding: 18px 24px;
}
.stat-item strong {
  display: block;
  font-size: 1.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--fdc-teal-dark);
}
.stat-item span { font-size: 0.8rem; color: var(--fdc-gray); }

/* ── Sobre page ──────────────────────────────────────────────────────────── */

/* Move stats acima do conteúdo na página Sobre */
.sobre-page .ipage-stats {
  margin-top: 0;
  margin-bottom: 32px;
  border-top: none;
  padding-top: 0;
  border-bottom: 1px solid #ede9e1;
  padding-bottom: 28px;
}

/* Links sociais inline */
.sobre-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.sobre-social-btn {
  display: inline-block;
  padding: 5px 14px;
  border: 1.5px solid var(--fdc-teal);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--fdc-teal-dark);
  transition: background .2s, color .2s;
}
.sobre-social-btn:hover {
  background: var(--fdc-teal);
  color: #fff;
}

/* CTA final */
.sobre-cta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #ede9e1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.sobre-cta-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fdc-dark);
  margin: 0;
}
.sobre-cta-hint {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--fdc-light-gray);
  margin: 0;
}

/* Legado — mantido para não quebrar nada */
.page-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--fdc-orange); }
.entry-content h2 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin: 26px 0 10px; color: var(--fdc-teal-dark); }
.entry-content p  { margin-bottom: 14px; color: var(--fdc-gray); line-height: 1.8; font-size: 0.9rem; font-weight: 300; }
.entry-content a  { color: var(--fdc-teal-dark); font-weight: 600; }

/* Contact */
.contact-socials { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.contact-social-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; background: var(--fdc-teal); color: #fff;
  border-radius: 28px; font-weight: 700; font-family: var(--font-heading);
  transition: background .2s;
}
.contact-social-btn:hover { background: var(--fdc-teal-dark); color: #fff; }

/* =============================================
   SUBMIT / CONTACT FORM
   ============================================= */
.submit-form-wrap { margin-top: 32px; }
.submit-form { max-width: 580px; margin: 0 auto; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--fdc-gray);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 0.84rem;
  font-weight: 300;
  font-family: var(--font-body);
  background: #faf9f7;
  color: var(--fdc-dark);
  transition: border-color .2s, background .2s;
}
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--fdc-teal); background: #fff; }
.form-row--checkbox { display: flex; align-items: flex-start; gap: 10px; }
.form-row--checkbox label { display: flex; gap: 10px; font-weight: 400; cursor: pointer; align-items: flex-start; }
.form-row--checkbox input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; accent-color: var(--fdc-teal); }
/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--fdc-teal);
  color: var(--fdc-white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background .2s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--fdc-teal-dark); color: #fff; }
/* Botão laranja — ação primária de envio */
.btn-orange {
  display: inline-block;
  background: var(--fdc-orange);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background .2s;
  text-decoration: none;
}
.btn-orange:hover { background: #c9662e; color: #fff; }
.btn-large { padding: 14px 34px; font-size: 1rem; }

/* =============================================
   SUBMIT / ENVIE SUA FRASE PAGE
   (usa o sistema ipage-* para header)
   ============================================= */
/* aliases para compatibilidade */
.submit-page-title  { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--fdc-orange); margin: 0 0 12px; }
.submit-page-intro  { font-family: var(--font-body); font-size: 0.9rem; font-weight: 300; color: var(--fdc-gray); line-height: 1.75; margin: 0; }

/* Card container do formulário — ocupa toda a largura do page-container */
.submit-form-card {
  background: #fff;
  border: 1.5px solid #e8e5de;
  border-radius: 14px;
  padding: 28px 32px 24px;
  margin: 0 0 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}

/* Linhas do formulário */
.sform-row {
  margin-bottom: 18px;
}
.sform-row label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fdc-gray);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.sform-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fdc-light-gray);
  font-size: 0.7rem;
  margin-left: 4px;
}
.sform-row input[type="text"],
.sform-row input[type="email"],
.sform-row textarea {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 0.88rem;
  font-weight: 300;
  font-family: var(--font-body);
  background: #faf9f7;
  color: var(--fdc-dark);
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
}
.sform-row input:focus,
.sform-row textarea:focus { outline: none; border-color: var(--fdc-teal); background: #fff; }

/* Dois campos lado a lado */
.sform-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Checkbox de consentimento */
.sform-consent {
  margin-bottom: 24px;
}
.sform-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--fdc-gray);
  line-height: 1.5;
  cursor: pointer;
}
.sform-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--fdc-teal);
  cursor: pointer;
}

/* Botão de envio centralizado */
.sform-actions {
  text-align: center;
}

/* Linha de compartilhamento */
/* Confirmação de envio */
.submit-confirmation {
  text-align: center;
  padding: 40px 24px 32px;
}
.submit-confirmation-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 16px;
}
.submit-confirmation h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fdc-dark);
  margin: 0 0 14px;
  line-height: 1.4;
}
.submit-confirmation p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fdc-gray);
  line-height: 1.8;
  margin: 0 0 24px;
}

/* Mensagem de erro */
.submit-error {
  background: #fff5f5;
  border: 1.5px solid #f5c6cb;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.submit-error p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #c0392b;
  margin: 0;
}

.submit-share-wrap {
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid #ede9e1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.submit-share-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fdc-light-gray);
  white-space: nowrap;
  margin: 0;
}
.submit-share-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* =============================================
   SEARCH
   ============================================= */
.search-form-wrap { max-width: 520px; margin: 0 auto 28px; }
.search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--fdc-teal);
  border-radius: 30px;
  overflow: hidden;
}
.search-form .search-field {
  flex: 1; border: none; padding: 11px 18px;
  font-size: 0.95rem; outline: none; background: transparent;
}
.search-form .search-submit {
  background: var(--fdc-teal); border: none; padding: 11px 16px;
  cursor: pointer; color: #fff; display: flex; align-items: center;
  transition: background .2s;
}
.search-form .search-submit:hover { background: var(--fdc-teal-dark); }
.no-results { text-align: center; padding: 40px 24px; }
.no-results p { color: var(--fdc-gray); margin-bottom: 14px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--fdc-teal-dark);
  color: rgba(255,255,255,.8);
  padding: 40px 20px 28px;
  margin-top: 0;
}
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-nav { margin-bottom: 20px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 0; margin: 0; }
.footer-menu a { color: rgba(255,255,255,.65); font-size: 0.84rem; padding: 4px 10px; border-radius: 14px; transition: all .2s; }
.footer-menu a:hover { color: #fff; background: rgba(255,255,255,.12); }
.footer-social { display: flex; gap: 14px; justify-content: center; margin-top: 18px; }
.footer-social a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-social a:hover { color: #fff; }
.footer-copy { text-align: center; margin-top: 18px; font-size: 0.78rem; color: rgba(255,255,255,.45); }
.footer-copy a { color: rgba(255,255,255,.6); }
.widget-title { font-family: var(--font-heading); font-weight: 800; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,.5); margin-bottom: 10px; }

/* =============================================
   SKIP LINK / ACCESSIBILITY
   ============================================= */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--fdc-teal); color: #fff;
  padding: 8px 16px; z-index: 999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 16px; }
.no-posts {
  text-align: center;
  padding: 48px;
  color: var(--fdc-light-gray);
  font-size: 1.05rem;
  grid-column: 1 / -1;
}

/* =============================================
   SHARE ICON BUTTONS — contorno, discretos
   ============================================= */
.share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid currentColor;
  cursor: pointer;
  transition: opacity .2s, background .2s;
  text-decoration: none;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.share-icon-btn:hover  { opacity: .65; color: inherit; }

.share-icon-wa    { color: #25D366; }
.share-icon-fb    { color: #1877F2; }
.share-icon-tw    { color: #000;    }
.share-icon-tg    { color: #0088CC; }
.share-icon-pi    { color: #E60023; }
.share-icon-li    { color: #0A66C2; }
.share-icon-email { color: var(--fdc-gray); }
.share-icon-copy  { color: var(--fdc-gray); font-family: inherit; font-size: inherit; }

/* Separador vertical entre ícones e botão Comentar */
.share-sep {
  width: 1px;
  height: 22px;
  background: #e0ddd7;
  align-self: center;
  margin: 0 2px;
  flex-shrink: 0;
}

/* =============================================
   COMMENTS — alinhado ao design do site
   ============================================= */
.comments-area {
  margin-top: 36px;
  border-top: 2px solid #eee;
  padding-top: 28px;
}
.comments-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--fdc-light-gray);
  margin-bottom: 18px;
}

/* Lista de comentários */
.comment-list { list-style: none; padding: 0; margin: 0 0 28px; }
.comment-list li + li { margin-top: 10px; }
.comment-body {
  background: var(--fdc-white);
  border: 1.5px solid #eeece6;
  border-radius: var(--radius);
  padding: 14px 16px;
}
.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.comment-author.vcard { display: flex; align-items: center; gap: 7px; }
.comment-author .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.comment-author .fn {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fdc-dark);
}
.comment-author .fn a { color: var(--fdc-dark); }
.comment-author .says { display: none; }
.comment-metadata {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--fdc-light-gray);
}
.comment-metadata a { color: var(--fdc-light-gray); }
.comment-metadata a:hover { color: var(--fdc-teal-dark); }
.comment-content p {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--fdc-gray);
  line-height: 1.65;
  margin: 0;
}
.reply { margin-top: 8px; }
.comment-reply-link {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--fdc-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
}
.comment-reply-link:hover { color: var(--fdc-teal); }

/* Formulário de resposta */
.comment-respond {
  background: var(--fdc-white);
  border: 1.5px solid #eeece6;
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}
.comment-reply-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--fdc-light-gray);
  margin-bottom: 14px;
}
#cancel-comment-reply-link {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fdc-light-gray);
  margin-left: 8px;
}
.comment-form .comment-notes,
.comment-form .logged-in-as {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--fdc-gray);
  margin-bottom: 12px;
  line-height: 1.5;
}
.comment-form .logged-in-as a {
  color: var(--fdc-teal-dark);
  font-weight: 400;
}
.comment-form .logged-in-as a:hover { color: var(--fdc-teal); }
.comment-form .required { color: var(--fdc-orange); }
.comment-form > p { margin-bottom: 10px; }

/* Labels */
.comment-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--fdc-gray);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Campos de texto */
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--fdc-dark);
  background: #faf9f7;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  transition: border-color .2s, background .2s;
  outline: none;
  box-sizing: border-box;
}
.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
  border-color: var(--fdc-teal);
  background: #fff;
}
.comment-form textarea {
  resize: vertical;
  min-height: 88px;
}

/* Checkbox de cookies */
.comment-form-cookies-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
}
.comment-form-cookies-consent label {
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--fdc-light-gray);
  cursor: pointer;
  display: inline;
  margin: 0;
}
.comment-form-cookies-consent input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--fdc-teal);
  cursor: pointer;
}

/* Botão de envio */
#submit,
.comment-form .submit {
  display: inline-block;
  background: var(--fdc-teal);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px 22px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  transition: background .2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#submit:hover,
.comment-form .submit:hover { background: var(--fdc-teal-dark); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 210px; }
}
@media (max-width: 820px) {
  .main-with-sidebar { flex-direction: column; }
  .sidebar { width: 100%; position: static; }
  .sidebar-cat-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .sidebar-cat-list li { border: none; }
  .sidebar-cat-list a {
    background: #EEECE6;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.8rem;
    border: 1.5px solid transparent;
  }
  .sidebar-cat-list a:hover,
  .sidebar-cat-list a.active-cat { background: var(--fdc-teal); color: #fff; }
  .sidebar-cat-count { display: none; }
  .posts-grid--small { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--fdc-teal-dark);
    border-top: 2px solid rgba(255,255,255,.2);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 200;
  }
  .primary-nav.nav-open { display: block; }
  .nav-menu { flex-direction: column; gap: 3px; padding: 14px; align-items: stretch; }
  .nav-menu a { text-align: center; color: #fff; }
  .nav-menu a:hover,
  .nav-menu .current-menu-item > a { background: #fff; color: var(--fdc-teal-dark); }
  .header-search { display: none; }
  .header-socials { display: none; }
  .site-nav-bar { top: 62px; } /* header menor em mobile */
  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid--small { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; }
  .post-nav-link { max-width: 100%; }
  .post-nav-next { text-align: left; margin-left: 0; }
  .footer-widgets { grid-template-columns: 1fr; gap: 20px; }
  .single-quote-card { padding: 28px 20px; }
  .card-quote { font-size: 0.95rem; }
  .card-attribution cite { font-size: 0.85rem; }
  .sform-cols { grid-template-columns: 1fr; gap: 0; }
  .submit-form-card { padding: 24px 18px 20px; }
  .submit-share-wrap { flex-direction: column; gap: 10px; }
  .wpp-banner { flex-direction: column; text-align: center; gap: 12px; padding: 18px 16px; }
  .wpp-banner-btn { width: 100%; text-align: center; }
}
