/*
Theme Name: SED Conteúdos v8
Theme URI: https://sedsites.com.br/
Author: SED Sites
Description: Tema editorial da área de conteúdos da SED.
Version: 0.8.0
Text Domain: sed-conteudos
*/

:root {
  --navy: #101828;
  --navy-deep: #081121;
  --blue: #2563ff;
  --blue-soft: #9db8ff;
  --soft: #f4f7fb;
  --ink: #101828;
  --muted: #5e6675;
  --line: #d8deea;
  --shell: min(1180px, 92vw);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 400 17px/1.65 Manrope, Arial, sans-serif; background: #fff; }
a { color: inherit; text-decoration: none; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 104px;
  display: flex;
  align-items: center;
  padding: 14px 3%;
  color: #fff;
  background: linear-gradient(180deg, rgba(6, 12, 25, .76), transparent);
  transition: height .35s, background .35s, box-shadow .35s, backdrop-filter .35s;
}

.site-header.scrolled { height: 74px; background: rgba(16,24,40,.72); backdrop-filter: blur(18px) saturate(145%); -webkit-backdrop-filter: blur(18px) saturate(145%); box-shadow: 0 1px rgba(255,255,255,.12), 0 14px 40px rgba(5,10,20,.16); }
.brand { display: flex; align-items: center; }
.brand-mark { display: block; width: 118px; line-height: 0; }
.brand-mark svg, .brand-mark img { display: block; width: 100%; height: auto; }
.brand-mark strong { font: 700 2rem/1 Manrope, Arial, sans-serif; color: #fff; }
.header-return { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; color: #fff; font: 700 .73rem/1.2 Manrope, Arial, sans-serif; letter-spacing: .055em; text-transform: uppercase; opacity: .9; transition: opacity .25s, transform .25s; }
.header-return:hover { opacity: 1; transform: translateX(3px); }
.header-return span { font-size: 1rem; line-height: 1; }

.hero {
  min-height: 50svh;
  display: flex;
  align-items: center;
  padding: 132px 0 66px;
  color: #fff;
  background: linear-gradient(120deg, var(--navy-deep), #14264a 72%, var(--blue));
}

.eyebrow {
  margin: 0 0 34px;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .16em;
  color: #9db8ff;
  text-transform: uppercase;
}

.hero h1 {
  max-width: none;
  margin: 0;
  font: 400 clamp(3.1rem, 4.5vw, 5.4rem)/1 Anton, Impact, sans-serif;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.hero h1 span { display: block; }
.hero h1 span:last-child { white-space: nowrap; }
.hero-description { max-width: 620px; margin: 32px 0 0; color: #dce5f8; font-size: 1.05rem; }

.article { padding: clamp(85px, 11vw, 150px) 0; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.content-card { min-height: 390px; padding: 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: .25s; }
.card-thumbnail { display: block; width: 100%; aspect-ratio: 16 / 10; margin: 0 0 28px; overflow: hidden; border-radius: 9px; background: linear-gradient(135deg, #14264a, var(--blue)); }
.card-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.content-card:hover .card-thumbnail img { transform: scale(1.03); }
.card-thumbnail-placeholder { background: radial-gradient(circle at 73% 28%, rgba(157,184,255,.75) 0 9%, transparent 10%), linear-gradient(135deg, #0c1830, #1a4fd8 64%, #7ba0ff); }
.content-card:hover { background: var(--soft); transform: translateY(-5px); }
.content-card .meta { color: var(--blue); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.content-card h2 { margin: 25px 0 18px; font: 400 clamp(1.7rem, 2.1vw, 2.35rem)/1.03 "Inter Tight", Arial, sans-serif; letter-spacing: -.04em; }
.content-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.read { margin-top: auto; padding-top: 28px; font-size: .8rem; font-weight: 700; }

.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(45px, 9vw, 130px); }
.article-aside { font-size: .75rem; color: var(--muted); }
.article-aside strong { display: block; margin-top: 8px; color: var(--blue); }
.article-copy { max-width: 800px; }
.article-copy h1 { margin: 0 0 42px; font: 400 clamp(3rem, 6vw, 6.5rem)/.98 "Inter Tight", Arial, sans-serif; letter-spacing: -.05em; }
.article-copy h2 { margin: 48px 0 12px; font: 500 1.7rem/1.1 "Inter Tight", Arial, sans-serif; }
.article-copy p { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.16rem); }

.cta { padding: 95px 0; background: var(--blue); color: #fff; }
.cta h2 { max-width: 1100px; margin: 0; font: 400 clamp(2.8rem, 6vw, 6rem)/.98 Anton, Impact, sans-serif; text-transform: uppercase; }
.glow-button { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 58px; margin-top: 46px; padding: 14px 20px; overflow: hidden; border: 1px solid rgba(130,164,255,.55); border-radius: 10px; background: linear-gradient(180deg,#17233a,#101828); color: #fff; font: 600 .92rem/1.2 Manrope,sans-serif; letter-spacing: .035em; text-transform: uppercase; box-shadow: inset 0 1px rgba(255,255,255,.16), inset 0 -14px 30px rgba(37,99,255,.12), 0 15px 38px rgba(3,10,24,.28); transition: transform .3s,border-color .3s,box-shadow .3s; }
.glow-button::before { content:""; position:absolute; z-index:-1; inset:-1px; border-radius:inherit; background:linear-gradient(105deg,transparent 5%,rgba(37,99,255,.04) 28%,rgba(157,184,255,.62) 48%,rgba(37,99,255,.07) 68%,transparent 92%); transform:translateX(-110%); transition:transform .75s cubic-bezier(.2,.8,.2,1); }
.glow-button:hover { transform:translateY(-3px); border-color:var(--blue-soft); box-shadow:inset 0 1px rgba(255,255,255,.22),inset 0 -14px 30px rgba(37,99,255,.2),0 20px 46px rgba(3,10,24,.34); }
.glow-button:hover::before { transform:translateX(110%); }
.glow-button .glow-icon { color:var(--blue-soft); font-size:1.12rem; }
.glow-button b { margin-left:6px; font-size:1rem; }
.site-footer { padding: 35px 0; background: var(--navy); color: #aebbd2; font-size: .78rem; }
.footer-line { display: flex; justify-content: space-between; gap: 20px; }

.article-hero { min-height: 50svh; display: flex; align-items: center; padding: 132px 0 66px; color: #fff; background: linear-gradient(120deg, var(--navy-deep), #14264a 72%, var(--blue)); }
.article-hero h1 { max-width: 100%; margin: 0; font: 400 clamp(2.8rem, 4.2vw, 5rem)/.98 "Inter Tight", Arial, sans-serif; letter-spacing: -.055em; text-wrap: balance; }
.article-hero p:last-child { max-width: 55ch; margin: 32px 0 0; color: #dce5f8; }
.article-body { padding: clamp(85px, 10vw, 150px) 0; }
.article-layout { display: grid; grid-template-columns: .35fr 1.35fr .55fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.article-aside { display: grid; gap: 8px; font-size: .78rem; }
.article-aside span, .related-label { color: var(--blue); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-aside strong { color: var(--ink); }
.article-aside a { margin-top: 18px; font-weight: 700; color: var(--blue); }
.article-copy { max-width: 760px; }
.article-copy p { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.16rem); }
.article-copy h2 { margin: 48px 0 12px; font: 500 1.7rem/1.1 "Inter Tight", Arial, sans-serif; letter-spacing: -.035em; }
.related-content { display: grid; gap: 15px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.related-content a { font: 500 1.05rem/1.18 "Inter Tight", Arial, sans-serif; }
.related-content .related-item { display: grid; gap: 11px; }
.related-item img, .related-thumb-placeholder { display: block; width: 100%; height: 124px; object-fit: cover; background: linear-gradient(135deg, #14264a, var(--blue)); }
.related-content a:last-child { margin-top: 10px; color: var(--blue); font: 700 .78rem/1.2 Manrope, Arial, sans-serif; }

/* Links dentro do corpo dos artigos */
.article-copy a:not(.wp-block-button__link):not(.button):not(.btn) {
  color: var(--blue, #2563ff);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.article-copy a:not(.wp-block-button__link):not(.button):not(.btn):visited {
  color: var(--blue, #2563ff);
}

.article-copy a:not(.wp-block-button__link):not(.button):not(.btn):hover {
  color: #1746b8;
  text-decoration-thickness: 2px;
}

.article-copy a:not(.wp-block-button__link):not(.button):not(.btn):focus-visible {
  outline: 2px solid var(--blue, #2563ff);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 760px) {
  .site-header { height: 72px; padding-inline: 20px; background: rgba(16,24,40,.78); backdrop-filter: blur(14px); }
  .site-header.scrolled { height: 68px; }
  .brand-mark { width: 92px; }
  .header-return { gap: 6px; font-size: .62rem; letter-spacing: .035em; }
  .hero { min-height: 58svh; padding: 118px 0 62px; }
  .eyebrow { margin-bottom: 28px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.7rem); line-height: .98; }
  .hero h1 span:last-child { white-space: normal; }
  .content-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-hero { min-height: 58svh; padding: 116px 0 62px; }
  .article-hero h1 { font-size: clamp(2.65rem, 10vw, 4.2rem); }
  .article-layout { gap: 42px; }
  .related-content { order: 3; }
  .cta h2 { max-width: 100%; font-size: clamp(2.55rem, 10.5vw, 4.2rem); }
  .footer-line { display: grid; gap: 10px; }
}
