:root {
  --bg: #0b0b0b;
  --bg-soft: #151515;
  --surface: #ffffff;
  --surface-muted: #f5f5f5;
  --text: #111111;
  --muted: #5f5f5f;
  --accent: #f2c94c;
  --accent-strong: #d4a20f;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  /* background-color: #111111; */
  background:
    radial-gradient(circle at top left, #2A2F36, transparent 28%),
    linear-gradient(135deg, #2a2f36c4 0%, #2a2f369f 100%);
  min-height: 100vh;
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 1rem;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(199, 154, 77, 0.3);
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-strong);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0 2rem;
  color:#FFC107;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.12;
  color: #FFC107;
}

.hero-text,
/* .info-card p, */
.project-content p,
.contact-copy p,
.contact-details a,
.contact-details span {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
  Color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
  color:#0b0b0b;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  /* background: linear-gradient(135deg, var(--accent), var(--accent-strong)); */
  background: #FFC107;
  color: #111;
  font-weight: 700;
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}

.info-card,
.project-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.project-card p {
  color:#0b0b0b;
}

.project-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color:#FFC107;
}

.hero-visual .carousel-stage {
  min-height: 360px;
}

.hero-visual .project-card img {
  height: 300px;
  object-fit: cover;
}

.section {
  padding: 2rem 0;
  scroll-margin-top: 110px;
}

.institutional-section {
  padding: 2.2rem;
  border-radius: 28px;
  background:
    /*linear-gradient(135deg, rgba(242, 201, 76, 0.2), rgba(17, 17, 17, 0.92)),*/
    url('../img/painel.jpg') center/cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.institutional-section .section-heading,
.institutional-section .info-card,
.institutional-section .card-grid {
  position: relative;
  z-index: 1;
}

.section-heading {
  margin-bottom: 1.15rem;
}

.partner-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.partner-main-image {
  width: min(460px, 100%);
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 20px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.partner-card {
  padding: 1.2rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  color:#0b0b0b;
}

.partner-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 0.9rem;
  background: #f7f7f7;
  padding: 0.8rem;
}

.partner-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.partner-card#partner-camargo h3 {
  background-color: #FFC107;
  border: 1px solid #d4a20f;
  -webkit-text-stroke: 0.02px #000;
  color: #0d0d0d;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  width:fit-content;
  margin: 0 auto 0.45rem;
}

.partner-card#partner-bma h3 {
  background-color: #0766ffef;
  border: 1px solid #0766ffef;
  -webkit-text-stroke: 0.02px #000;
  color: #fff;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  width:fit-content;
  margin: 0 auto 0.45rem;
}

.partner-card#partner-itm h3 {
  background-color: #033382ef;
  border: 1px solid #033382ef;
  -webkit-text-stroke: 0.02px #000;
  color: #fff;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  width:fit-content;
  margin: 0 auto 0.45rem;
}

.partner-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  color:#0b0b0b;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.carousel-stage {
  position: relative;
  min-height: 520px;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  background: #fff7d7;
}

.project-slide {
  display: none;
}

.project-slide.active {
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.25);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent-strong);
}

.institutional-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.institutional-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.institutional-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFC107;
  /* background: linear-gradient(135deg, var(--accent), var(--accent-strong)); */
  color: #111;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.institutional-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: #FFC107;
}

.institutional-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  color: #111;
  font-style: bold;
}

.info-card,
.project-card {
  overflow: hidden;
}

.info-card {
  padding: 1.3rem;
  color: #0b0b0b;
}

.project-card {
  border-radius: 24px;
  background: var(--surface);
}

.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  background: #f5f5f5;
}

.project-content {
  padding: 1.1rem 1.15rem 1.2rem;
}

.project-content h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.project-cta {
  display: inline-flex;
  margin-top: 0.65rem;
  color: #ffffff;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.7rem 0.7rem;
  width:fit-content;
  margin: 0 auto 0.45rem;
  background-color: #FFC107;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  padding: 1.6rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  border: 1px solid var(--border);
}

.contact-card p {
  color:#000;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.8rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #FFC107;
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
  padding: 1.1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-details a,
.contact-details span {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--accent-strong);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-images img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.footer {
  padding: 2rem 0 0.5rem;
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
}

.scroll-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .hero,
  .contact-card,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .project-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .contact-images,
  .partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .contact-images,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.2rem;
  }
}

@media (max-width: 600px) {
  .institutional-item {
    align-items: flex-start;
  }

  .institutional-icon {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
}

@media (max-width: 700px) {
  .site-shell {
    width: min(100% - 1rem, 1180px);
  }

  .topbar {
    border-radius: 24px;
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0.8rem;
    min-width: 180px;
    z-index: 10;
  }

  .nav-links.open {
    display: flex;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .hero-visual .project-card img {
    height: 220px;
  }
}
