@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #0057ff;
  --blue-dark: #04375f;
  --navy: #061c35;
  --green: #00c853;
  --green-bright: #00e639;
  --red: #ff2d2d;
  --sand: #e8d5b5;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --ink: #152130;
  --muted: #667085;
  --line: #dfe4ea;
  --shadow: 0 20px 60px rgba(6, 28, 53, .12);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
body.dark {
  --paper: #071727;
  --surface: #0d2238;
  --ink: #f7fafc;
  --muted: #b4c0cd;
  --line: rgba(255,255,255,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.3);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.prototype-notice {
  padding: 7px 20px;
  background: var(--navy);
  color: white;
  text-align: center;
  font-size: .76rem;
  letter-spacing: .05em;
}

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-main { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { width: 208px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { border: 0; background: transparent; color: var(--ink); border-radius: 999px; width: 42px; height: 42px; display: grid; place-items: center; transition: .2s ease; }
.icon-button:hover { background: color-mix(in srgb, var(--blue) 9%, transparent); color: var(--blue); }
.menu-toggle { display: none; }
.primary-nav { border-top: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 30px; min-height: 48px; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.nav-inner a { position: relative; padding: 15px 0; }
.nav-inner a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -1px; height: 3px; background: var(--blue); transition: .2s ease; }
.nav-inner a:hover::after, .nav-inner a.active::after { right: 0; }
.nav-spacer { flex: 1; }
.social-label { color: var(--blue); text-transform: none; letter-spacing: 0; }

.breaking { background: var(--surface); border-bottom: 1px solid var(--line); }
.breaking-inner { min-height: 42px; display: flex; align-items: center; gap: 16px; overflow: hidden; }
.breaking-badge { background: var(--red); color: white; padding: 7px 11px; border-radius: 6px; font-weight: 800; font-size: .72rem; text-transform: uppercase; flex: 0 0 auto; }
.breaking-track { white-space: nowrap; overflow: hidden; position: relative; flex: 1; color: var(--muted); font-size: .85rem; }
.breaking-track span { display: inline-block; animation: ticker 24s linear infinite; }
@keyframes ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

main { min-height: 60vh; }
.section { padding: 64px 0; }
.section.compact { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 9px; }
.section-title, .page-title { margin: 0; font-family: 'EB Garamond', Georgia, serif; color: var(--navy); font-weight: 700; line-height: .98; }
body.dark .section-title, body.dark .page-title { color: white; }
.section-title { font-size: clamp(2rem, 4vw, 3.4rem); }
.page-title { font-size: clamp(2.7rem, 7vw, 5.4rem); }
.text-link { color: var(--blue); font-weight: 700; font-size: .86rem; }

.hero { padding: 32px 0 20px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .85fr); gap: 18px; }
.hero-main { position: relative; min-height: 580px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.hero-main img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(3,18,34,.93) 100%); }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(26px, 5vw, 54px); color: white; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 11px; font-size: .68rem; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; background: var(--green); color: #032510; }
.hero-copy h1 { max-width: 850px; margin: 14px 0 12px; font-family: 'EB Garamond', Georgia, serif; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .94; letter-spacing: -.02em; }
.hero-copy p { max-width: 680px; margin: 0 0 18px; color: rgba(255,255,255,.85); font-size: 1.02rem; }
.meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .78rem; }
.hero-copy .meta { color: rgba(255,255,255,.72); }
.hero-side { display: grid; gap: 14px; }
.side-story { min-height: 134px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 120px 1fr; gap: 15px; align-items: center; transition: .25s ease; }
.side-story:hover, .news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.side-story img { width: 120px; height: 96px; object-fit: cover; border-radius: 12px; }
.side-story h3 { margin: 5px 0 8px; font-size: 1rem; line-height: 1.18; }
.category-label { color: var(--blue); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.service-strip { background: linear-gradient(115deg, var(--blue-dark), var(--blue)); color: white; border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: 1.15fr repeat(4, 1fr); gap: 12px; align-items: stretch; box-shadow: var(--shadow); }
.service-intro h2 { margin: 4px 0 6px; font-family: 'EB Garamond', Georgia, serif; font-size: 2rem; }
.service-intro p { margin: 0; color: rgba(255,255,255,.76); font-size: .82rem; }
.service-item { border-left: 1px solid rgba(255,255,255,.22); padding: 10px 16px; display: flex; flex-direction: column; justify-content: center; }
.service-item strong { font-size: .92rem; }
.service-item span { color: rgba(255,255,255,.7); font-size: .75rem; }

.cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s ease; }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card-body { padding: 18px; }
.news-card h3 { margin: 8px 0 10px; font-family: 'EB Garamond', Georgia, serif; font-size: 1.55rem; line-height: 1.05; }
.news-card p { color: var(--muted); font-size: .86rem; margin: 0 0 16px; }

.territories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.territory-card { position: relative; min-height: 330px; border-radius: var(--radius); overflow: hidden; color: white; }
.territory-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.territory-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(3,18,34,.88)); }
.territory-card div { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; }
.territory-card h3 { font-family: 'EB Garamond', Georgia, serif; font-size: 2rem; margin: 4px 0; }
.territory-card p { font-size: .8rem; color: rgba(255,255,255,.75); margin: 0; }

.feature-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: stretch; }
.feature-photo { border-radius: var(--radius-lg); min-height: 480px; overflow: hidden; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-panel { border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 58px); background: var(--navy); color: white; display: flex; flex-direction: column; justify-content: center; }
.feature-panel h2 { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .92; margin: 10px 0 22px; }
.feature-panel p { color: rgba(255,255,255,.72); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; background: var(--blue); color: white; font-weight: 800; font-size: .8rem; }
.button.secondary { background: transparent; border-color: rgba(255,255,255,.28); }
.button.light { background: white; color: var(--navy); }

.newsletter { background: var(--sand); color: var(--navy); border-radius: var(--radius-lg); padding: clamp(30px, 7vw, 72px); display: grid; grid-template-columns: 1fr .9fr; gap: 30px; align-items: center; }
.newsletter h2 { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .9; margin: 0 0 16px; }
.newsletter p { max-width: 600px; }
.newsletter form { display: flex; background: white; padding: 7px; border-radius: 999px; }
.newsletter input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 16px; background: transparent; }

.page-hero { padding: 68px 0 42px; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 1.05rem; }
.results-count { color: var(--muted); margin-top: 20px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 48px 0 80px; }
.article-head { margin-bottom: 30px; }
.article-head h1 { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .92; letter-spacing: -.03em; margin: 14px 0 18px; color: var(--navy); }
body.dark .article-head h1 { color: white; }
.article-head .lead { font-size: 1.18rem; color: var(--muted); max-width: 850px; }
.article-cover { width: 100%; max-height: 680px; object-fit: cover; border-radius: var(--radius-lg); margin: 30px 0 12px; }
.caption { font-size: .72rem; color: var(--muted); }
.article-body { max-width: 760px; font-family: 'EB Garamond', Georgia, serif; font-size: 1.34rem; line-height: 1.7; }
.article-body p:first-child::first-letter { float: left; font-size: 4.5rem; line-height: .8; padding: 12px 8px 0 0; color: var(--blue); font-weight: 700; }
.article-sidebar { position: sticky; top: 160px; align-self: start; }
.sidebar-box { padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); margin-bottom: 16px; }
.sidebar-box h3 { margin: 0 0 12px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 12px; font-size: .74rem; }

.search-panel { margin: 28px 0 40px; display: flex; gap: 10px; }
.search-panel input { flex: 1; min-width: 0; padding: 17px 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; outline: 0; }
.search-panel input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 15%, transparent); }
.search-results { display: grid; gap: 14px; }
.result-item { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.result-item img { width: 220px; height: 145px; object-fit: cover; border-radius: 12px; }
.result-item h2 { margin: 7px 0; font-family: 'EB Garamond', Georgia, serif; font-size: 2rem; line-height: 1; }
.result-item p { color: var(--muted); margin: 0 0 12px; }
.empty-state { padding: 50px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(3,18,34,.78); backdrop-filter: blur(15px); display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.search-overlay.open { display: flex; }
.search-dialog { width: min(760px, calc(100% - 32px)); background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.search-dialog form { display: flex; gap: 10px; }
.search-dialog input { flex: 1; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.search-close { float: right; margin-bottom: 10px; }

.site-footer { background: var(--navy); color: white; padding: 64px 0 28px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { width: 210px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,.66); max-width: 360px; }
.footer-col h4 { margin: 0 0 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-bright); }
.footer-col a { display: block; color: rgba(255,255,255,.72); margin: 8px 0; font-size: .85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.5); font-size: .74rem; }

.toast { position: fixed; right: 20px; bottom: 20px; background: var(--navy); color: white; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .2s ease; z-index: 150; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .territories { grid-template-columns: repeat(2, 1fr); }
  .service-strip { grid-template-columns: repeat(2, 1fr); }
  .service-intro { grid-column: 1 / -1; }
  .service-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 800px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-main { min-height: 68px; }
  .brand img { width: 168px; }
  .menu-toggle { display: grid; }
  .primary-nav { display: none; position: fixed; inset: 69px 0 auto; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.open { display: block; }
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 0; padding: 15px 20px 24px; }
  .nav-inner a { width: 100%; padding: 13px 0; }
  .nav-spacer, .social-label { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 560px; }
  .hero-side { grid-template-columns: repeat(2, 1fr); }
  .side-story { grid-template-columns: 1fr; }
  .side-story img { width: 100%; height: 150px; }
  .feature-split, .newsletter { grid-template-columns: 1fr; }
  .feature-photo { min-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .prototype-notice { font-size: .64rem; }
  .hero { padding-top: 16px; }
  .hero-main { min-height: 530px; border-radius: 20px; }
  .hero-copy { padding: 24px; }
  .hero-copy h1 { font-size: 2.65rem; }
  .hero-side { grid-template-columns: 1fr; }
  .side-story { grid-template-columns: 110px 1fr; min-height: 118px; }
  .side-story img { width: 110px; height: 90px; }
  .service-strip { grid-template-columns: 1fr; }
  .cards-grid, .territories, .article-sidebar { grid-template-columns: 1fr; }
  .territory-card { min-height: 270px; }
  .section { padding: 48px 0; }
  .newsletter form, .search-panel, .search-dialog form { flex-direction: column; border-radius: 18px; }
  .result-item { grid-template-columns: 1fr; }
  .result-item img { width: 100%; height: 210px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .article-body { font-size: 1.18rem; }
}

/* WordPress integration */
body.admin-bar .site-header { top: 32px; }
.custom-logo { width: auto; max-height: 54px; }
.wp-caption, .gallery-caption { color: var(--muted); font-size: .8rem; }
.alignwide { width: min(1100px, 100%); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.current-menu-item > a, .current-menu-ancestor > a { color: var(--blue); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { min-width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.post-edit-link { font-size: .75rem; color: var(--blue); }
.article-body > * { max-width: 760px; }
.article-body figure, .article-body .wp-block-image { max-width: 100%; }
.article-body h2, .article-body h3 { font-family: 'EB Garamond', Georgia, serif; line-height: 1.05; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.comment-form .submit { width: auto; border-radius: 999px; background: var(--blue); color: white; border: 0; font-weight: 800; padding: 12px 18px; }
.site-main-empty { padding: 80px 0; }
.fep-demo-note { margin-top: 12px; color: var(--muted); font-size: .75rem; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.nav-inner { list-style: none; padding-left: 0; padding-right: 0; }
.nav-inner li { list-style: none; }
@media (max-width: 800px) {
  .nav-inner li { width: 100%; }
  .nav-inner li a { display: block; width: 100%; }
}


/* Acessibilidade — link de salto */
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  transform: translateY(-180%);
  background: #fff;
  color: #04375f;
  border: 2px solid #0057ff;
  border-radius: .5rem;
  padding: .75rem 1rem;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
