/* ===========================================
   Projeto Meta II — Formação de Preço
   Recriação fiel do site (paleta navy + teal)
   =========================================== */

:root {
  --navy: #16276a;          /* dark navy (banners, headings) */
  --navy-deep: #0e1c46;     /* hero background */
  --navy-btn: #1b1c8c;      /* indigo action buttons */
  --teal: #1f9fb0;          /* primary teal accent */
  --teal-dark: #17808f;
  --teal-bright: #2bb6c8;
  --teal-band: #bcdfe3;     /* light teal bands */
  --teal-soft: #e0f0f2;
  --cyan: #26a9c0;
  --gray-phase: #d3d6d8;

  /* legacy aliases still referenced across rules */
  --green-dark: #16276a;
  --green: #1f9fb0;
  --green-bright: #2bb6c8;
  --green-soft: #e0f0f2;
  --accent: #1f9fb0;
  --link: #1f8f9f;

  --ink: #3d3d3d;
  --text: #3a3a3a;
  --text-mute: #6a6a6a;
  --border: #e2e2e2;
  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.09);
  --container: 1180px;
  --radius: 4px;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--teal-bright); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.6em 0;
  line-height: 1.22;
  font-weight: 700;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ================= HEADER / NAV ================= */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo-ccee img { height: 40px; width: auto; }
.logo-psr img { height: 46px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav li { position: relative; }

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: #4a4a4a;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}

.main-nav a:hover, .main-nav a.is-active {
  color: var(--navy-btn);
  background: transparent;
  text-decoration: none;
}

.main-nav li.has-sub > a::after { content: " ▾"; font-size: 0.7em; opacity: 0.6; }

.main-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  list-style: none;
  margin: 4px 0 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
  z-index: 50;
}

.main-nav li.has-sub:hover .submenu,
.main-nav li.has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .submenu li { display: block; }

.main-nav .submenu a {
  display: block;
  padding: 8px 16px;
  font-weight: 500;
  border-radius: 0;
}

/* ================= HERO ================= */
.hero {
  background:
    linear-gradient(rgba(9,17,48,0.45), rgba(9,17,48,0.55)),
    url("img/hero.avif") center/cover no-repeat, #0c1a42;
  color: #fff;
  padding: 96px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,0.05) 0, transparent 38%),
    radial-gradient(circle at 82% 72%, rgba(43,182,200,0.10) 0, transparent 42%);
  pointer-events: none;
}

.hero-inner { max-width: 960px; margin: 0 auto; position: relative; }

.hero .eyebrow, .hero h1 {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 700;
  margin: 0 0 26px 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.hero h2 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 40px 0;
  opacity: 0.96;
  line-height: 1.4;
}

/* ================= PAGE HEADER (interior pages) ================= */
.page-header {
  background:
    linear-gradient(rgba(8,16,44,0.30), rgba(8,16,44,0.45)),
    url("img/cabecalho.avif") center/cover no-repeat, #0e1c46;
  color: #fff;
  padding: 78px 24px 70px;
  text-align: center;
}

.page-header h1 { color: #fff; margin: 0; font-size: 3rem; font-weight: 700; }

.page-header.teal {
  background: var(--teal-band);
}
.page-header.teal h1 { color: var(--navy); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--navy-btn);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 2px solid var(--navy-btn);
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #24259e; border-color: #24259e; color: #fff; text-decoration: none; }

/* teal filled (hero + media buttons) */
.btn-outline, .btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-outline:hover, .btn-teal:hover { background: var(--teal-bright); border-color: var(--teal-bright); color: #fff; }

/* ghost = navy filled (Serviços / Produtos CTAs) */
.btn-ghost { background: var(--navy-btn); color: #fff; border-color: var(--navy-btn); }
.btn-ghost:hover { background: #24259e; border-color: #24259e; color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 12px; }

/* ================= SECTIONS ================= */
section { padding: 70px 0; }
section.tight { padding: 0; }
section.alt { background: var(--bg-alt); }

section.dark { background: var(--navy-deep); }
section.dark .section-title, section.dark .section-eyebrow { color: #fff; }

.section-eyebrow {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 40px; font-weight: 700; color: #4a4a4a; }
.section-title.left { text-align: left; }

/* ================= QUICK-LINKS BAND (home) ================= */
.quick-band { background: var(--teal-band); padding: 34px 0; }

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 56px;
}
.quick-links .quick-link { width: 150px; }

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 10px 16px;
  background: transparent;
  border: none;
  transition: transform 0.2s ease;
  color: var(--navy);
  text-decoration: none;
}
.quick-link:hover { transform: translateY(-3px); text-decoration: none; }
.quick-link img { width: 78px; height: 78px; object-fit: contain; }
.quick-link span { font-weight: 500; font-size: 1.05rem; color: #33484a; }

/* ================= TWO-COL CONTENT ================= */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.two-col img { border-radius: 4px; }

/* ================= EXECUTORS ================= */
.executor {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 50px;
  align-items: center;
  padding: 34px 0;
}
.executor.reverse { grid-template-columns: 1fr 240px; }
.executor p { text-align: justify; }
.executor .logo-wrap { display: flex; align-items: center; justify-content: center; padding: 10px; }
.executor .logo-wrap img { max-width: 100%; height: auto; }

/* ================= PARTNERS ================= */
.partners { display: flex; flex-wrap: wrap; gap: 60px; align-items: center; justify-content: center; padding: 20px 0; }
.partners a { display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.partners a:hover { transform: scale(1.04); }
.partners img { max-height: 96px; width: auto; }

/* ================= PHASES (home) ================= */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 40px 0; }

.phase {
  border-radius: 4px;
  padding: 30px 28px 34px;
  text-align: left;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  color: #40484a;
}
.phase:nth-child(1) { background: #a9d3d6; }
.phase:nth-child(2) { background: var(--gray-phase); }
.phase:nth-child(3) { background: var(--cyan); color: #123; }

.phase-num { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px; opacity: 0.85; }
.phase h3 { font-size: 1.55rem; margin-bottom: 16px; color: inherit; font-weight: 700; }
.phase .start { font-size: 1rem; color: inherit; margin: auto 0 0; opacity: 0.92; }
.phase .start strong { font-weight: 700; }
.phase-icon { width: 54px; height: 54px; margin-bottom: 16px; }
.phase-icon svg { width: 100%; height: 100%; display: block; stroke: currentColor; fill: none; opacity: 0.85; }

/* ================= NEWS ================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.news-card {
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}
.news-card:hover { transform: translateY(-3px); }

.news-card .thumb { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-deep); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 10px 0; line-height: 1.35; }
.news-card h3 a { color: #444; }
.news-card h3 a:hover { color: var(--teal); text-decoration: none; }
.news-card .excerpt { color: var(--text-mute); font-size: 0.92rem; margin: 0; }

/* ================= FOOTER ================= */
.site-footer { background: #ffffff; color: var(--text); padding: 34px 24px; border-top: 1px solid var(--border); }

.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer .logo-ccee img { height: 40px; }
.site-footer .logo-psr img { height: 46px; }
.site-footer .copyright { font-size: 0.85rem; color: var(--text-mute); text-align: center; }

/* ================= TEXT CONTENT (interior pages) ================= */
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.7rem; color: #4a4a4a; text-align: center; font-weight: 700; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.3rem; color: var(--navy); font-weight: 700; }
.prose p { font-size: 1.03rem; text-align: justify; }
.prose ul, .prose ol { font-size: 1.03rem; }
.prose figure { margin: 34px 0; text-align: center; }
.prose figure img { margin: 0 auto; max-width: 100%; border-radius: 4px; }
.prose figure figcaption { font-size: 0.9rem; color: var(--text-mute); margin-top: 8px; font-style: italic; }

/* ================= COLLABORATOR TABLES ================= */
.collab-section { max-width: 1060px; margin: 0 auto; }
.collab-section h3 {
  font-size: 1.7rem;
  color: #4a4a4a;
  font-weight: 700;
  margin: 46px 0 10px;
}
.collab-table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 0.98rem; }
.collab-table thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 15px 20px;
  font-weight: 600;
}
.collab-table td { padding: 15px 20px; border-bottom: 1px solid #e6ebef; vertical-align: top; }
.collab-table tbody tr:nth-child(odd) { background: #eef4f7; }
.collab-table td:first-child { font-weight: 700; color: #2b2b2b; white-space: nowrap; }
@media (max-width: 720px) {
  .collab-table, .collab-table thead, .collab-table tbody, .collab-table th, .collab-table td, .collab-table tr { display: block; }
  .collab-table thead { display: none; }
  .collab-table td { border: none; padding: 4px 16px; }
  .collab-table tr { border: 1px solid #e0e6ea; border-radius: 4px; margin-bottom: 12px; padding: 10px 0; }
  .collab-table td:first-child { padding-top: 12px; }
}

/* ================= PROGRAMAÇÃO / SCHEDULE ================= */
.schedule { max-width: 860px; margin: 0 auto; }
.sched-title { text-align: center; color: var(--navy); font-size: 2rem; margin: 8px 0 30px; }
.sched-block-title { text-align: center; color: var(--navy); font-size: 1.5rem; font-weight: 700; margin: 40px 0 18px; }
.sched-row { display: grid; grid-template-columns: 150px 1fr; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden; }
.sched-row .time { padding: 16px 22px; font-weight: 700; color: var(--navy); white-space: nowrap; align-self: center; }
.sched-row .act { padding: 16px 22px; }
.sched-row .parts { display: flex; flex-direction: column; }
.sched-part { padding: 16px 22px; }
.sched-part:nth-child(even) { background: #eef2f6; }
.sched-part strong { color: var(--ink); display: block; margin-bottom: 4px; }
.sched-part ul { list-style: none; margin: 0; padding: 0; }
.sched-part ul li { margin: 0; line-height: 1.5; }
.sched-row.center { display: block; text-align: center; }
.sched-row.center .act { font-weight: 600; }
.sched-note { text-align: center; font-weight: 600; color: var(--ink); margin: 6px 0 18px; }
.sched-simple { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px 0; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.sched-simple .line { display: flex; gap: 18px; padding: 14px 22px; }
.sched-simple .line:nth-child(even) { background: #eef2f6; }
.sched-simple .line .b { font-weight: 700; color: var(--navy); }
@media (max-width: 640px) {
  .sched-row { grid-template-columns: 1fr; }
  .sched-row .time { padding-bottom: 0; }
}

/* ================= NEWS ARTICLE ================= */
.article { max-width: 820px; }
.article .back-link { display: inline-block; margin-bottom: 18px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); }
.article h1 { font-size: 2.1rem; line-height: 1.25; color: var(--navy); margin-bottom: 16px; text-align: left; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--text-mute); font-size: 0.9rem; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.article-meta .author { font-weight: 700; color: var(--teal); }
.article p { text-align: justify; }
.article figure { margin: 0 0 28px; }
.article figure img { width: 100%; border-radius: 4px; }
.article ol, .article ul { margin: 0 0 1em; padding-left: 1.4em; }
.article ol li, .article ul li { margin-bottom: 8px; }
.recent-posts { margin-top: 20px; }
.recent-posts h2 { font-size: 1.4rem; color: var(--navy); margin-bottom: 22px; text-align: left; }
.recent-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.recent-list a { display: block; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 20px 22px; color: #444; font-weight: 600; line-height: 1.35; transition: all 0.2s ease; }
.recent-list a:hover { border-color: var(--teal); box-shadow: var(--shadow-md); text-decoration: none; color: var(--teal); }
@media (max-width: 700px) { .recent-list { grid-template-columns: 1fr; } }

/* ================= TIMELINE (Contexto) ================= */
.timeline { position: relative; max-width: 1000px; margin: 50px auto 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: #e3e6ea;
  transform: translateX(-50%);
}
.tl-item {
  display: grid;
  grid-template-columns: 1fr 170px 1fr;
  align-items: center;
  margin-bottom: 30px;
}
.tl-text { grid-column: 1; text-align: right; padding-right: 40px; align-self: center; }
.tl-item:nth-child(even) .tl-text { grid-column: 3; text-align: left; padding-right: 0; padding-left: 40px; }
.tl-badge { grid-column: 2; align-self: center; }
.tl-text h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.tl-text p { font-size: 0.96rem; margin: 0; color: #4a4a4a; }
.tl-badge {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 0 0 12px #eef0f2;
  position: relative;
  z-index: 1;
}
.tl-c1 { background: #b0d6d8; color: #37767c; }
.tl-c2 { background: var(--teal); }
.tl-c3 { background: #4a4a4a; }
.tl-c4 { background: var(--navy); }
.tl-c1h { color: #6bb3ba; }
.tl-c2h { color: var(--teal); }
.tl-c3h { color: #4a4a4a; }
.tl-c4h { color: var(--navy); }

/* ================= EVENTS GRID ================= */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 40px; }

.event-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.2s ease; }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-card .banner { width: 100%; overflow: hidden; background: #fff; display: flex; }
.event-card .banner img { width: 100%; height: auto; object-fit: contain; }
.event-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-card h3 { color: var(--navy); font-size: 1.2rem; }
.event-card .actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.event-card .actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s ease;
}
.event-card .actions a:hover { background: var(--teal-bright); color: #fff; text-decoration: none; }
.event-card .actions a.primary { background: var(--navy-btn); }
.event-card .actions a.primary:hover { background: #24259e; }

/* ================= WORKSHOP / SPEAKERS ================= */
.workshop-banner { display: flex; justify-content: center; margin-bottom: 30px; }
.workshop-banner img { max-width: 100%; border-radius: 6px; box-shadow: var(--shadow-md); }

.workshop-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 30px 0 50px; }
.workshop-actions .btn, .workshop-actions .btn-ghost { background: var(--teal); border-color: var(--teal); color: #fff; }
.workshop-actions .btn:hover, .workshop-actions .btn-ghost:hover { background: var(--teal-bright); border-color: var(--teal-bright); }

.speakers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 34px 24px; margin-top: 30px; }
.speaker { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.speaker .avatar { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-md); background: var(--bg-alt); }
.speaker .avatar img { width: 100%; height: 100%; object-fit: cover; }
.speaker .name { font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.3; margin: 0; }
.speaker .org { font-size: 0.9rem; color: var(--text-mute); margin: 0; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .executor, .executor.reverse { grid-template-columns: 1fr; gap: 20px; }
  .main-nav { display: none; }
  .hero .eyebrow, .hero h1 { font-size: 2rem; }
  .hero h2 { font-size: 1.2rem; }
  .page-header h1 { font-size: 2rem; }
  .timeline::before { left: 26px; }
  .tl-item { grid-template-columns: 70px 1fr; }
  .tl-badge { grid-column: 1; width: 70px; height: 70px; font-size: 0.72rem; box-shadow: 0 0 0 6px #eef0f2; }
  .tl-text, .tl-item:nth-child(even) .tl-text { grid-column: 2; text-align: left; padding: 0 0 0 24px; }
  .site-footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 50px 0; }
  .quick-links { grid-template-columns: 1fr; }
}
