/* Componentes e estilos de bloco do tema Futuro Rico. */
:root {
  --fr-forest: #17483b;
  --fr-forest-deep: #12382f;
  --fr-paper: #f7f3ea;
  --fr-paper-light: #fffdf8;
  --fr-terracotta: #cf6b4d;
  --fr-sage: #dce8de;
  --fr-ink: #252b27;
  --fr-muted: #657169;
  --fr-line: rgba(37,43,39,.16);
  --fr-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --fr-sans: "DM Sans", Aptos, system-ui, -apple-system, "Segoe UI", sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--fr-sans); }
:focus-visible { outline: 3px solid var(--fr-terracotta); outline-offset: 4px; }
.wp-site-blocks { overflow: clip; }
.wp-block-post-title, h1, h2, h3 { letter-spacing: -.04em; }
.wp-block-button__link, .fr-button { min-height: 48px; padding: 12px 20px; border-radius: 999px; background: var(--fr-forest); color: var(--fr-paper-light); font-family: var(--fr-sans); font-size: .9rem; font-weight: 700; text-decoration: none; transition: transform .16s ease, background .16s ease; }
.wp-block-button__link:hover, .fr-button:hover { background: var(--fr-forest-deep); color: var(--fr-paper-light); transform: translateY(-2px); }
.fr-announcement { background: var(--fr-forest); color: var(--fr-paper); font-size: .72rem; letter-spacing: .06em; text-align: center; }
.fr-site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--fr-line); background: rgba(247,243,234,.97); }
.fr-header-inner { max-width: 1200px; min-height: 78px; margin: 0 auto; padding: 10px 28px; }
.fr-brand { gap: 10px; color: var(--fr-forest); }
.fr-brand-mark { width: 40px; height: 40px; flex: none; }
.fr-site-title, .fr-site-title a { color: var(--fr-forest); font-family: var(--fr-serif); font-size: 1.4rem; font-weight: 600; letter-spacing: -.04em; text-decoration: none; }
.fr-nav a { color: #39443d; font-size: .8rem; font-weight: 600; text-decoration: none; }
.fr-nav a:hover, .fr-nav .current-menu-item > a { color: var(--fr-terracotta); }
.fr-mobile-toggle { display: none; }
.fr-main { min-height: 55vh; }
.fr-hero { max-width: 1200px; margin: 0 auto; padding: clamp(52px, 8vw, 90px) 28px; }
.fr-hero-grid { align-items: center; gap: clamp(36px, 6vw, 82px); }
.fr-kicker, .fr-eyebrow { margin: 0 0 12px; color: var(--fr-terracotta); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fr-hero h1 { max-width: 720px; margin: 0 0 20px; color: var(--fr-forest-deep); font-family: var(--fr-serif); font-size: clamp(3rem, 6.3vw, 5.8rem); font-weight: 500; line-height: 1.03; }
.fr-hero h1 em, .fr-section-title em { color: var(--fr-terracotta); font-weight: 400; }
.fr-hero-lede { max-width: 590px; color: #4e5a52; font-size: clamp(1rem, 1.35vw, 1.16rem); }
.fr-hero-actions { gap: 18px; margin-top: 24px; }
.fr-hero-art { position: relative; min-height: 420px; display: grid; place-items: center; overflow: hidden; border-radius: 4px 110px 4px 4px; background: var(--fr-sage); }
.fr-hero-art::before, .fr-hero-art::after { position: absolute; width: 300px; height: 300px; border: 1px solid rgba(23,72,59,.22); border-radius: 50%; content: ""; }
.fr-hero-art::before { transform: translate(65px, 50px); }
.fr-hero-art::after { width: 220px; height: 220px; transform: translate(-50px, -35px); }
.fr-art-paper { position: relative; z-index: 1; width: 64%; min-height: 245px; padding: 28px; background: var(--fr-paper-light); box-shadow: 13px 17px 0 rgba(18,56,47,.15); transform: rotate(-5deg); }
.fr-art-paper::before { display: block; width: 65%; height: 1px; margin-bottom: 24px; background: var(--fr-line); box-shadow: 0 17px 0 var(--fr-line), 0 34px 0 var(--fr-line); content: ""; }
.fr-art-sun { position: absolute; top: 30px; right: 23px; width: 56px; height: 56px; border-radius: 50%; background: var(--fr-terracotta); }
.fr-art-horizon { position: absolute; right: 0; bottom: 24px; left: 0; height: 1px; background: rgba(23,72,59,.5); }
.fr-art-word { position: absolute; right: 10%; bottom: 43px; color: var(--fr-forest); font-family: var(--fr-serif); font-size: 1.2rem; }
.fr-principles { padding: 22px max(28px, calc((100% - 1200px) / 2)); border-block: 1px solid var(--fr-line); background: #f0ece2; }
.fr-principles p { margin: 0; color: var(--fr-forest); font-family: var(--fr-serif); font-size: 1.05rem; }
.fr-section { max-width: 1200px; margin: 0 auto; padding: 72px 28px; }
.fr-section-head { margin-bottom: 30px; }
.fr-section-title { margin: 0; color: var(--fr-forest-deep); font-family: var(--fr-serif); font-size: clamp(2.5rem, 4.4vw, 4rem); font-weight: 500; line-height: 1.08; }
.fr-pillar-grid { gap: 14px; }
.fr-pillar { min-height: 245px; padding: 24px; border: 1px solid var(--fr-line); background: var(--fr-paper-light); transition: transform .18s ease, border-color .18s ease; }
.fr-pillar:hover { border-color: #9bb3a1; transform: translateY(-4px); }
.fr-pillar:nth-child(1) { background: var(--fr-sage); }
.fr-pillar h3 { margin: 14px 0 10px; color: var(--fr-forest); font-family: var(--fr-serif); font-size: 1.8rem; }
.fr-pillar p { color: var(--fr-muted); font-size: .88rem; }
.fr-feature-band { padding: 48px; background: var(--fr-forest); color: var(--fr-paper); }
.fr-feature-band h2 { color: var(--fr-paper); font-family: var(--fr-serif); font-size: clamp(2.2rem, 4vw, 3.8rem); }
.fr-feature-band p { color: rgba(247,243,234,.82); }
.fr-story-grid { gap: 18px; }
.fr-story-card { height: 100%; padding: 22px; border: 1px solid var(--fr-line); background: var(--fr-paper-light); }
.fr-story-card h3 { color: var(--fr-forest); font-family: var(--fr-serif); font-size: 1.55rem; }
.fr-story-card p { color: var(--fr-muted); font-size: .88rem; }
.fr-article { max-width: 1100px; margin: 0 auto; padding: 65px 28px 90px; }
.fr-article-header { max-width: 820px; margin: 0 auto 32px; }
.fr-article-header h1 { color: var(--fr-forest-deep); font-family: var(--fr-serif); font-size: clamp(2.8rem, 5vw, 4.7rem); font-weight: 500; line-height: 1.05; }
.fr-article-deck { color: var(--fr-muted); font-family: var(--fr-serif); font-size: 1.25rem; }
.fr-article-meta { color: var(--fr-muted); font-size: .78rem; }
.fr-article-content { max-width: 740px; margin: 30px auto 0; }
.fr-article-content h2 { margin-top: 2em; color: var(--fr-forest); font-family: var(--fr-serif); }
.fr-article-content a { color: var(--fr-forest); text-decoration: underline; text-decoration-color: var(--fr-terracotta); text-underline-offset: 3px; }
.fr-editorial-note, .fr-draft-alert { padding: 18px 20px; border-left: 4px solid var(--fr-terracotta); background: #efe2d9; color: #594238; }
.fr-site-footer { padding: 52px 28px 20px; background: var(--fr-forest-deep); color: var(--fr-paper); }
.fr-footer-inner { max-width: 1200px; margin: 0 auto; }
.fr-site-footer a { color: rgba(247,243,234,.82); text-decoration: none; }
.fr-site-footer a:hover { color: #fff; text-decoration: underline; }
.fr-site-footer h2 { color: #e9aa90; font-family: var(--fr-sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.fr-footer-bottom { max-width: 1200px; margin: 28px auto 0; padding-top: 17px; border-top: 1px solid rgba(247,243,234,.2); color: rgba(247,243,234,.62); font-size: .72rem; }
.fr-calculator { display: flex; flex-direction: column; gap: 10px; max-width: 780px; margin: 35px auto; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--fr-line); background: var(--fr-paper-light); }
.fr-calculator h2 { margin: 0; color: var(--fr-forest); font-family: var(--fr-serif); font-size: 2rem; }
.fr-calculator label { margin-top: 9px; color: var(--fr-forest); font-size: .84rem; font-weight: 700; }
.fr-calculator input, .fr-calculator select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b8c0b8; border-radius: 7px; background: #fff; color: var(--fr-ink); font: inherit; }
.fr-calculator .fr-button { align-self: flex-start; margin-top: 10px; border: 0; cursor: pointer; }
.fr-private-note, .fr-caution { color: var(--fr-muted); font-size: .78rem; }
.fr-calculator-result { min-height: 125px; margin-top: 8px; padding: 20px; background: var(--fr-forest); color: var(--fr-paper); }
.fr-result-label { color: #efaa8f; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fr-result-amount { display: block; margin: 7px 0; color: var(--fr-paper); font-family: var(--fr-serif); font-size: 2.6rem; line-height: 1.1; }
.fr-result-detail { color: rgba(247,243,234,.8); font-size: .84rem; }
.fr-calculator-result p { color: rgba(247,243,234,.8); font-size: .84rem; }
@media (max-width: 850px) {
  .fr-header-inner { padding-inline: 20px; }
  .fr-nav { gap: 13px; }
  .fr-nav a { font-size: .73rem; }
  .fr-hero-art { min-height: 340px; }
}
@media (max-width: 680px) {
  .fr-header-inner { min-height: 70px; }
  .fr-mobile-toggle { display: inline-flex; }
  .fr-nav { display: none; width: 100%; align-items: stretch; padding: 8px 0 16px; }
  .fr-nav.is-open { display: flex; flex-direction: column; }
  .fr-nav a { padding: 10px 0; border-bottom: 1px solid var(--fr-line); font-size: .9rem; }
  .fr-hero { padding: 45px 20px; }
  .fr-hero-grid { gap: 28px; }
  .fr-hero h1 { font-size: clamp(3rem, 12vw, 4.4rem); }
  .fr-hero-art { min-height: 280px; }
  .fr-section { padding: 55px 20px; }
  .fr-feature-band { padding: 28px 21px; }
  .fr-article { padding: 45px 20px 65px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Busca nativa do WordPress no cabeçalho. */
.fr-header-search { flex: 0 1 156px; width: 156px; margin: 0; }
.fr-header-search .wp-block-search__inside-wrapper { min-height: 40px; gap: 4px; padding: 2px 3px 2px 10px; border: 1px solid var(--fr-line); border-radius: 999px; background: var(--fr-paper-light); }
.fr-header-search .wp-block-search__input { min-width: 0; padding: 4px; border: 0; background: transparent; color: var(--fr-ink); font: inherit; font-size: .76rem; }
.fr-header-search .wp-block-search__button { display: inline-flex; align-items: center; justify-content: center; width: 34px; min-width: 34px; min-height: 34px; margin: 0; padding: 7px; border: 0; border-radius: 50%; background: var(--fr-forest); color: var(--fr-paper); cursor: pointer; }
.fr-header-search .wp-block-search__button svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 850px) {
  .fr-header-search { flex-basis: 136px; }
}
@media (max-width: 680px) {
  .fr-header-search { flex: 1 0 100%; width: 100%; max-width: 100%; order: 4; margin: 4px 0 10px; }
  .fr-header-search .wp-block-search__inside-wrapper { max-width: 420px; }
}
