/*
Theme Name: Dicas de Foz do Iguacu
Theme URI: https://www.dicasfozdoiguacu.com.br/
Author: Dicas de Foz do Iguacu
Description: Tema editorial de viagem para guias de Foz do Iguacu. Otimizado para SEO, leitura longa e velocidade.
Version: 2.5.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dicasfoz
Tags: blog, travel, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --jungle: #064e3b;
  --jungle-deep: #043027;
  --jungle-soft: #0f766e;
  --sunset: #f59e0b;
  --sunset-deep: #b45309;
  --river: #0ea5e9;
  --sand: #fef3c7;

  --bg: #fffdf8;
  --surface: #ffffff;
  --muted: #f4f1ea;
  --text: #1c2321;
  --text-soft: #58635f;
  --border: #e6e1d6;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow-soft: 0 6px 24px -12px rgba(6, 78, 59, .28);
  --shadow-card: 0 18px 48px -24px rgba(6, 78, 59, .35);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--jungle); text-decoration: none; }
a:hover { color: var(--sunset-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
blockquote {
  margin: 1.8em 0; padding: 1.1em 1.4em; border-left: 4px solid var(--sunset);
  background: var(--sand); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic;
}
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .95rem; }
th, td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
th { background: var(--muted); font-weight: 600; }
:focus-visible { outline: 3px solid var(--sunset); outline-offset: 2px; }

/* ==========================================================================
   3. Layout
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 999; background: #fff; padding: 10px 16px; border-radius: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 999px; background: var(--jungle);
  display: grid; place-items: center; padding: 6px; box-shadow: var(--shadow-soft);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.05; color: var(--text); }
.brand__name small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .65; }

.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: .93rem; font-weight: 500; color: var(--text); }
.main-nav .current-menu-item > a { color: var(--sunset-deep); }
.header-cta {
  background: var(--sunset); color: #26200a; font-weight: 600; font-size: .9rem;
  padding: .65rem 1.25rem; border-radius: 999px; transition: transform .2s ease;
}
.header-cta:hover { transform: scale(1.04); color: #26200a; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--text); }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--surface); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px 0; }
.mobile-nav a { display: block; padding: 12px 20px; font-weight: 500; color: var(--text); }
.mobile-nav a:hover { background: var(--muted); }

@media (max-width: 960px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,48,39,.72), rgba(4,48,39,.9));
}
.hero__inner { position: relative; z-index: 2; padding: clamp(5rem, 12vw, 9rem) 0; max-width: 780px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.12rem; opacity: .9; max-width: 620px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); margin-bottom: 1.2rem;
}
.hero__stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 2.4rem; }
.hero__stats strong { display: block; font-family: var(--font-display); font-size: 1.9rem; }
.hero__stats span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; border-radius: 999px;
  padding: .85rem 1.6rem; transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--sunset); color: #26200a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); color: #26200a; }
.btn-ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* ==========================================================================
   6. Cards
   ========================================================================== */
.eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--sunset-deep); margin-bottom: .6rem;
}
.section__head { max-width: 680px; margin-bottom: 2.6rem; }
.section__head p { color: var(--text-soft); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--muted); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 1.2rem; margin: 0; }
.card__title a { color: var(--text); }
.card__excerpt { color: var(--text-soft); font-size: .95rem; margin: 0; }
.card__meta { margin-top: auto; font-size: .78rem; color: var(--text-soft); display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--sand); color: var(--sunset-deep); padding: .32rem .7rem; border-radius: 999px;
}

/* ==========================================================================
   7. Artigo
   ========================================================================== */
.article-hero { background: var(--jungle-deep); color: #fff; padding: 3.4rem 0 3rem; }
.article-hero h1 { color: #fff; max-width: 900px; }
.article-hero .breadcrumbs, .article-hero .entry-meta { font-size: .84rem; opacity: .8; }
.breadcrumbs a { color: var(--sand); }
.entry-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1rem; }

.article-layout { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) 320px; padding: 3rem 0 4rem; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } }

.entry-content { max-width: 74ch; font-size: 1.06rem; }
.entry-content h2 { margin-top: 2.2em; padding-top: .2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content img, .entry-content figure { border-radius: var(--radius); margin: 2em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--text-soft); text-align: center; margin-top: .6em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content li { margin-bottom: .5em; }

.toc { background: var(--muted); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 2.4rem; }
.toc strong { display: block; margin-bottom: .6rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.toc ol { margin: 0; }

.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.widget-title { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 1rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .94rem; }
.widget li:last-child { border-bottom: 0; }
.sticky-sidebar { position: sticky; top: 100px; }

.related { border-top: 1px solid var(--border); padding-top: 2.4rem; margin-top: 3rem; }

/* ==========================================================================
   8. Newsletter / Footer
   ========================================================================== */
.newsletter { background: var(--jungle); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.4rem); }
.newsletter h2 { color: #fff; }
.newsletter form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4rem; }
.newsletter input[type="email"] {
  flex: 1 1 260px; padding: .9rem 1.2rem; border-radius: 999px; border: 0; font: inherit;
}

.site-footer { background: var(--jungle-deep); color: rgba(255,255,255,.86); margin-top: 4rem; }
.site-footer a { color: rgba(255,255,255,.86); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 42px; grid-template-columns: 1.3fr repeat(3, 1fr); padding: 4rem 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer-brand__identity { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; color: #fff; font-family: var(--font-display); font-size: 1.35rem; }
.footer-brand__identity img { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; background: var(--jungle); padding: 6px; }
.footer-brand p { opacity: .72; font-size: .92rem; max-width: 34ch; }
.footer-contact { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--sand); }
.footer-column a { display: inline-block; padding: 2px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); font-size: .8rem; opacity: .7; padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 18px; }

/* ==========================================================================
   9. Paginacao e comentarios
   ========================================================================== */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 3rem 0; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 500;
}
.pagination .current { background: var(--jungle); color: #fff; border-color: var(--jungle); }

.comments-area { max-width: 74ch; margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 12px; font: inherit; margin-bottom: 12px;
}
.comment-form input[type="submit"], .btn-submit {
  width: auto; background: var(--jungle); color: #fff; border: 0; border-radius: 999px;
  padding: .8rem 1.8rem; font-weight: 600; cursor: pointer;
}

/* ==========================================================================
   10. Utilidades WordPress
   ========================================================================== */
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.sticky .card { border-color: var(--sunset); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* -------------------------------------------------------------------------
 * 12. Noticias, arquivos e componentes editoriais
 * ---------------------------------------------------------------------- */
.section--muted { background: var(--muted); }

.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--border); border-radius: 999px;
  padding: .8rem 1.5rem; font-weight: 500; color: var(--text);
  background: var(--surface); transition: .2s ease;
}
.btn-ghost-dark:hover { border-color: var(--jungle); color: var(--jungle); transform: translateY(-1px); }

.link-more { font-weight: 600; color: var(--jungle); }

/* Post em destaque */
.feature-post {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
}
.feature-post__media { display: block; min-height: 320px; }
.feature-post__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-post__body { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.feature-post__body h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.feature-post__body h2 a { color: var(--text); }
.feature-post__body h2 a:hover { color: var(--jungle); }
.feature-post__body p { color: var(--text-soft); margin: 0; }
@media (max-width: 860px) { .feature-post { grid-template-columns: 1fr; } .feature-post__media { min-height: 220px; } }

/* Lista horizontal */
.post-list { display: grid; gap: 20px; }
.post-list-item {
  display: grid; grid-template-columns: 240px 1fr; gap: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: .25s ease;
}
.post-list-item:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.post-list-item__media { display: block; }
.post-list-item__media img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.post-list-item__body { padding: 1.2rem 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.post-list-item__body h3 { margin: 0; font-size: 1.22rem; }
.post-list-item__body h3 a { color: var(--text); }
.post-list-item__body h3 a:hover { color: var(--jungle); }
.post-list-item__body p { margin: 0; color: var(--text-soft); font-size: .95rem; }
@media (max-width: 700px) { .post-list-item { grid-template-columns: 1fr; } }

/* Pills e cartoes de categoria */
.term-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; }
.term-pills--lg { gap: 16px; margin-bottom: 0; }
.term-card {
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1rem 1.4rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); min-width: 170px;
  transition: .2s ease;
}
.term-card:hover { border-color: var(--jungle); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.term-card strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); }
.term-card span { font-size: .82rem; color: var(--text-soft); }

/* Estado vazio */
.empty-state { text-align: center; max-width: 620px; margin-inline: auto; padding: 2rem 0 3rem; }
.empty-state p { color: var(--text-soft); }

/* Caixa do autor */
.author-box {
  display: flex; gap: 20px; align-items: flex-start; margin-top: 3rem;
  padding: 1.6rem; border-radius: var(--radius-lg);
  background: var(--muted); border: 1px solid var(--border);
}
.author-box__avatar { border-radius: 50%; flex-shrink: 0; }
.author-box h3 { margin: .2rem 0 .4rem; }
.author-box p { margin: 0 0 .6rem; color: var(--text-soft); font-size: .95rem; }
@media (max-width: 560px) { .author-box { flex-direction: column; } }

/* Compartilhar */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 2.2rem; font-size: .9rem; }
.share span { color: var(--text-soft); }
.share a {
  border: 1px solid var(--border); border-radius: 999px; padding: .42rem 1rem;
  color: var(--text); transition: .2s ease;
}
.share a:hover { background: var(--jungle); border-color: var(--jungle); color: #fff; }

/* Navegacao entre artigos */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2.4rem; }
.post-nav__item {
  padding: 1.1rem 1.3rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; gap: .3rem; transition: .2s ease;
}
.post-nav__item:hover { border-color: var(--jungle); box-shadow: var(--shadow-soft); }
.post-nav__item span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.post-nav__item strong { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.post-nav__item--next { text-align: right; align-items: flex-end; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav__item--next { text-align: left; align-items: flex-start; } }

/* Conteudo largo */
.entry-content--wide { max-width: none; }

/* Blocos do editor Gutenberg */
.entry-content .wp-block-image img { border-radius: var(--radius); }
.entry-content .wp-block-quote {
  border-left: 4px solid var(--sunset); padding: .4rem 0 .4rem 1.2rem;
  font-family: var(--font-display); font-size: 1.15rem; margin: 2rem 0;
}
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th {
  border: 1px solid var(--border); padding: .7rem .9rem; text-align: left;
}
.entry-content .wp-block-table th { background: var(--muted); font-family: var(--font-body); font-weight: 600; }
.entry-content .wp-block-button__link { background: var(--jungle); border-radius: 999px; padding: .8rem 1.6rem; }

/* ---------- Blocos da home (v2.4.0) ---------- */
.section--muted { background: var(--muted); }
.pillar { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.pillar__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--muted); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pillar:hover .pillar__media img { transform: scale(1.05); }
.pillar__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.pillar__body strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--text); }
.pillar__body span { color: var(--text-soft); font-size: .95rem; }
.pillar__body em { font-style: normal; font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--sunset-deep); }

.itinerary { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--sunset); border-radius: var(--radius); padding: 26px 26px 22px; }
.itinerary__day { display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sunset-deep); font-weight: 700; }
.itinerary h3 { margin: .4rem 0 .9rem; font-size: 1.25rem; }
.itinerary ul { margin: 0; padding-left: 1.1rem; color: var(--text-soft); }
.itinerary li { margin-bottom: .45rem; font-size: .95rem; }

.quote { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.quote__stars { color: var(--sunset); letter-spacing: .18em; font-size: .95rem; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.5; color: var(--text); }
.quote figcaption { font-size: .85rem; color: var(--text-soft); }
.quote figcaption strong { display: block; color: var(--text); }

.faq { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--sunset-deep); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: .9rem 0 0; color: var(--text-soft); font-size: .97rem; }
