/* CBDO website — base stylesheet */

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Quicksand-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Quicksand-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Quicksand-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Quicksand-Bold.woff2') format('woff2');
}

:root {
  --bg: #2c49c8;
  --bg-soft: rgba(38, 29, 215, 0.63);
  --surface: rgb(250, 249, 255);
  --surface-2: #c5c6c7;
  --text: #2a1618;
  --muted: #312c59;
  --line: rgb(58, 62, 6);
  --primary: #322a91;
  --primary-2: #7b85de;
  --accent: #87bbe6;
  --accent-2: #c6c4e3;
  --max-width: 1180px;
  --sidebar-width: 200px;
  --topbar-height: 48px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 30px rgba(35, 32, 90, 0.1);
  --shadow-soft: 0 6px 18px rgba(42, 32, 90, 0.08);
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
a,
li,
p,
span,
button,
input,
textarea {
  font-family: 'Quicksand', sans-serif;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
  line-height: 1.55;
  padding-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

main {
  padding-top: 1.5rem;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.1;
  color: var(--primary);
}

.section-subtitle {
  margin: 0 auto 2.2rem 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Barra superior */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-height);
  background: var(--bg);
  color: #fff;
  font-size: 0.94rem;
  z-index: 1300;
  display: flex;
  align-items: center;
}

.topbar .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.5rem;
}

/* Barra lateral esquerda */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg);
  border-right: 1px solid rgba(255,255,255,0.14);
  overflow-y: auto;
  z-index: 1200;
}

.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  padding: calc(var(--topbar-height) + 1.2rem) 1.2rem 1.5rem;
  text-align: center;
}

.site-header h2 {
  margin: 0 0 2rem 0;
  width: 100%;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
}

.nav-links a {
  display: block;
  width: 100%;
  padding: 0.7rem 0.5rem;
  border-radius: 12px;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.nav-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), background var(--transition);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
  background: var(--accent-2);
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.98;
  color: var(--primary);
}

.hero-copy p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.88);
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: all var(--transition);
}

.button {
  background: var(--primary);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: rgba(201, 93, 99, 0.10);
}

/* Cards principais */
.hero-card,
.banner-card,
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.banner-placeholder {
  min-height: 280px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px dashed rgba(169, 68, 75, 0.22);
  background: linear-gradient(135deg, rgba(201,93,99,0.08), rgba(217,140,43,0.10));
  display: grid;
  place-items: center;
  color: var(--primary);
  text-align: center;
  padding: 1.5rem;
  font-weight: 700;
}

.hero-card h3,
.banner-card h3,
.card h3,
.card h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero-card ul,
.info-list,
.list-clean,
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card li,
.info-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.hero-card li:last-child,
.info-list li:last-child {
  border-bottom: 0;
}

.card p,
.card li {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.highlight {
  background: linear-gradient(135deg, rgba(105, 93, 201, 0.08), rgba(31, 45, 226, 0.1));
  border: 1px solid rgba(64, 71, 181, 0.14);
}

.list-clean li + li {
  margin-top: 0.8rem;
}

/* Footer */
.footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  background: var(--bg);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.footer h4 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: #fff;
}

.footer p,
.footer a,
.footer li,
.footer-bottom {
  color: rgba(255,255,255,0.92);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 1rem 0 1.8rem;
  font-size: 0.82rem;
}

/* Página interna */
.page-hero {
  padding: 4rem 0 2.2rem;
}

.page-hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  color: var(--primary);
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.table th,
.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  background: #f8eeee;
  color: var(--primary);
}

.notice {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(210, 217, 43, 0.12);
  color: var(--text);
  border: 1px solid rgba(213, 217, 43, 0.25);
}

/* Responsivo */
@media (max-width: 780px) {
  body {
    padding-left: 0;
    padding-top: 0;
  }

  .topbar {
    position: static;
    width: 100%;
    height: auto;
  }

  .topbar .container {
    justify-content: center;
    padding: 0.7rem 1rem;
  }

  .site-header {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }

  .navbar {
    min-height: auto;
    padding: 1.2rem 1rem;
  }

  .hero-grid,
  .split,
  .footer-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-cta {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.3rem 0;
  }

  .hero {
    padding: 2.4rem 0 2rem;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .nav-links a,
  .nav-cta,
  .button,
  .button-secondary {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}

.banner-image-wrapper {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
}

.banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner {
  width: 100%;
}

.banner-full {
  width: 100%;
  display: block;
}

.map-wrapper {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.map-wrapper iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.award-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
}

.award-image img {
  width: 100%;
  height: auto;
  display: block;
}

.award-text {
  width: 100%;
}

@media (max-width: 768px) {
  .award-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .award-image {
    max-width: 220px;
    margin: 0 auto;
  }
}

.award-image img {
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.form-wrapper {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.form-wrapper iframe {
  width: 100%;
  height: 1000px;
  border: 0;
  display: block;
}

.tribute-block {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 2rem;
  overflow: hidden;
}

.tribute-title {
  margin: 0 0 1.5rem 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  color: var(--primary);
}

.tribute-image {
  float: left;
  width: 260px;
  max-width: 40%;
  margin: 0 1.5rem 1rem 0;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.tribute-block p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--muted);
  text-align: justify;
}

@media (max-width: 768px) {
  .tribute-image {
    float: none;
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 1.5rem auto;
  }

  .tribute-title {
    text-align: center;
  }
}