/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
}

.btn:hover {
  color: inherit;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-yellow);
  color: var(--color-teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.btn--primary:hover {
  background: var(--color-yellow-hot);
  color: var(--color-teal-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-color: var(--color-yellow);
}

.btn--outline {
  background: transparent;
  color: var(--color-teal);
  border: 2px solid var(--color-teal);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.btn--outline:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--soft {
  background: var(--color-sand-deep);
  color: var(--color-teal-deep);
  font-weight: 700;
}

.btn--soft:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--xl {
  min-height: 3.5rem;
  padding: 0.95rem 2rem;
  font-size: var(--text-base);
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
}

/* Top utility bar */
.a11y-bar {
  background: var(--color-teal-deep);
  color: var(--color-white);
  font-size: var(--text-xs);
  overflow: hidden;
}

.a11y-bar__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.5rem;
  padding-block: 0.35rem;
}

.news-ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.news-ticker__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.news-ticker__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: tickerScroll 28s linear infinite;
  will-change: transform;
}

.news-ticker__track:hover {
  animation-play-state: paused;
}

.news-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.news-ticker__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-yellow);
  flex-shrink: 0;
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    gap: 0.75rem 1.25rem;
  }

  .news-ticker__viewport {
    mask-image: none;
  }
}

.a11y-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.a11y-bar button,
.a11y-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--color-sand);
  text-decoration: none;
  opacity: 0.85;
}

.a11y-bar button:hover,
.a11y-bar a:hover,
.a11y-bar button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

/* Site header — logo à esquerda + menu à direita */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-teal);
  border-bottom: none;
}

.site-header__stripe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 0.35rem;
}

.site-header__stripe span:nth-child(1) { background: #fdb913; }
.site-header__stripe span:nth-child(2) { background: #f39200; }
.site-header__stripe span:nth-child(3) { background: #1f9d55; }
.site-header__stripe span:nth-child(4) { background: #0056cf; }

.site-header__inner {
  display: none;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.75rem;
  width: min(100% - (var(--gutter) * 2), var(--container-wide));
  margin-inline: auto;
  padding-block: 0.65rem;
}

.header-main__brand {
  flex: 0 0 auto;
  justify-content: flex-start;
}

.header-main__left {
  display: none;
}

.header-main__center {
  display: none;
}

.header-main__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
  margin-left: auto;
}

.header-main__right > .nav {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--color-white);
}

.brand:hover {
  color: var(--color-white);
}

.brand__logo {
  display: block;
  height: clamp(4.5rem, 8.5vw, 6.25rem);
  width: auto;
  max-width: min(100%, 26rem);
  object-fit: contain;
  object-position: left center;
  background: none !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  mix-blend-mode: normal;
}

.brand__mark {
  display: none;
}

.brand__text {
  display: none;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand__tag {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--color-white);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-white);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Menu com dropdowns (integrado no header) */
.nav-bar {
  display: none;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
  flex: 0 0 auto;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.15rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.nav__link:hover,
.nav__item:hover > .nav__link,
.nav__link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-yellow);
}

.nav__icon {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.nav__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav__caret {
  font-size: 0.75rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.dropdown {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  min-width: 15.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--color-teal);
  border-top: 3px solid var(--color-orange, #f39200);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35rem);
  transition:
    opacity var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft),
    visibility var(--dur-fast);
  z-index: 120;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 1.4rem;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--color-orange, #f39200);
}

.nav__item:hover > .dropdown,
.nav__item:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__item {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.dropdown__item:last-child {
  border-bottom: none;
}

.dropdown__item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.dropdown__item > a:hover {
  background: rgba(0, 0, 0, 0.18);
  color: var(--color-yellow);
}

.dropdown__arrow {
  opacity: 0.8;
  font-size: 0.75rem;
}

.dropdown--nested {
  top: 0;
  left: calc(100% - 2px);
  min-width: 16rem;
}

.has-flyout:hover > .dropdown--nested,
.has-flyout:focus-within > .dropdown--nested {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-flyout > .dropdown--nested {
  opacity: 0;
  visibility: hidden;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--color-teal-deep);
  padding: 0.5rem var(--gutter) 1.25rem;
  max-height: min(75vh, 36rem);
  overflow: auto;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__link,
.mobile-nav__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  font-size: var(--text-sm);
  text-align: left;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.mobile-nav__panel {
  display: none;
  padding-left: 0.75rem;
  background: rgba(0, 0, 0, 0.15);
}

.mobile-nav__group.is-open > .mobile-nav__panel {
  display: block;
}

.mobile-nav__panel .mobile-nav__link,
.mobile-nav__panel .mobile-nav__toggle {
  font-size: 0.8rem;
  text-transform: none;
  font-weight: 600;
}

.mobile-nav .depth-1 .mobile-nav__link,
.mobile-nav .depth-1 .mobile-nav__toggle {
  padding-left: 0.5rem;
}

@media (min-width: 1100px) {
  .header-main__right > .nav {
    display: flex;
  }

  .header-actions .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .site-header {
    border-bottom: 3px solid var(--color-orange);
  }
}

@media (max-width: 1099px) {
  .brand__logo {
    height: 3.75rem;
    max-width: 15rem;
  }
}


/* Service tiles */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 9.5rem;
  padding: 1.25rem;
  background: var(--surface-elevated);
  border: 1px solid rgba(20, 32, 27, 0.08);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-ink);
  overflow: hidden;
  transition:
    border-color var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out),
    background var(--dur-med) var(--ease-out);
}

.service-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-forest-soft), var(--color-ocean-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}

.service-tile:hover {
  transform: translateY(-4px);
  border-color: transparent;
  color: var(--color-ink);
  background: linear-gradient(180deg, #fff, #f3f8f5);
}

.service-tile:hover::after {
  transform: scaleX(1);
}

.service-tile__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(11, 61, 46, 0.08);
  color: var(--color-forest);
}

.service-tile__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.service-tile strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 550;
}

.service-tile span {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  margin-top: auto;
}

/* News */
.news-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .news-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(20, 32, 27, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-med) var(--ease-out);
}

.news-card:hover {
  transform: translateY(-3px);
  color: inherit;
}

.news-card__media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(11, 61, 46, 0.55), rgba(10, 77, 104, 0.35)),
    url("https://images.unsplash.com/photo-1548625149-fc4a29cf7092?auto=format&fit=crop&w=1200&q=80")
      center / cover;
}

.news-card--featured .news-card__media {
  aspect-ratio: 16 / 11;
  min-height: 16rem;
  background:
    linear-gradient(135deg, rgba(11, 61, 46, 0.5), rgba(10, 77, 104, 0.4)),
    url("https://images.unsplash.com/photo-1529107386315-e1a2ed48a620?auto=format&fit=crop&w=1400&q=80")
      center / cover;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
}

.news-card__meta {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ocean-mid);
  font-weight: 600;
}

.news-card h3 {
  font-size: var(--text-xl);
}

.news-card p {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.news-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-stack .news-card {
  flex-direction: column;
  min-height: 0;
}

.news-stack .news-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.news-stack .news-card__body {
  padding: 1rem 1.1rem;
}

.news-stack .news-card h3 {
  font-size: var(--text-base);
}

@media (min-width: 560px) {
  .news-stack .news-card {
    flex-direction: row;
  }

  .news-stack .news-card__media {
    width: 38%;
    min-width: 7.5rem;
    aspect-ratio: auto;
    align-self: stretch;
  }
}

.news-stack .news-card:nth-child(2) .news-card__media {
  background:
    linear-gradient(135deg, rgba(10, 77, 104, 0.55), rgba(11, 61, 46, 0.35)),
    url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=800&q=80")
      center / cover;
}

.news-stack .news-card:nth-child(3) .news-card__media {
  background:
    linear-gradient(135deg, rgba(196, 163, 90, 0.4), rgba(11, 61, 46, 0.45)),
    url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=800&q=80")
      center / cover;
}

.news-list {
  display: grid;
  gap: 1.25rem;
}

.news-list .news-card {
  flex-direction: column;
}

.news-list .news-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (min-width: 720px) {
  .news-list .news-card {
    flex-direction: row;
    min-height: 10rem;
  }

  .news-list .news-card__media {
    width: 42%;
    min-width: 10rem;
    aspect-ratio: auto;
    align-self: stretch;
  }
}

/* Secretarias */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .sec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .sec-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sec-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-white);
  transition:
    background var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft);
}

.sec-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(196, 163, 90, 0.55);
  color: var(--color-white);
}

.sec-chip__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}

.sec-chip span {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.3;
}

/* Mayor band */
.mayor-band {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .mayor-band {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

.mayor-band__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, transparent 40%, rgba(11, 61, 46, 0.55)),
    url("https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&w=900&q=80")
      center / cover;
  min-height: 22rem;
}

.mayor-band__quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  font-weight: 450;
  max-width: 28ch;
}

.mayor-band__meta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(20, 32, 27, 0.12);
}

.mayor-band__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.mayor-band__meta span {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(120deg, var(--color-teal-deep) 0%, var(--color-teal) 55%, var(--color-teal-mid) 100%);
  color: var(--color-white);
  border-bottom: 4px solid var(--color-yellow);
}

.page-hero h1 {
  color: var(--color-white);
  font-size: var(--text-3xl);
  max-width: 18ch;
  text-transform: uppercase;
  font-weight: 800;
}

.page-hero p {
  margin-top: 0.85rem;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-lg);
  font-weight: 500;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0.9;
}

.breadcrumb a {
  color: var(--color-yellow);
  text-decoration: none;
}

/* Content layouts */
.prose {
  max-width: 65ch;
}

.prose p + p {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: var(--text-xl);
}

.content-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr 18rem;
    gap: 3rem;
  }
}

.side-card {
  padding: 1.5rem;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 32, 27, 0.08);
}

.side-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 1rem;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.side-card dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink-muted);
  font-weight: 600;
}

.side-card dd {
  margin: 0.2rem 0 0;
  font-weight: 500;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(20, 32, 27, 0.08);
  text-decoration: none;
  font-weight: 500;
}

.link-list a:hover {
  color: var(--color-ocean-mid);
}

.hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 32, 27, 0.08);
  text-decoration: none;
  color: inherit;
  min-height: 10rem;
  transition: border-color var(--dur-fast) var(--ease-soft);
}

.hub-card:hover {
  border-color: var(--color-forest-soft);
  color: inherit;
}

.hub-card strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.hub-card span {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  margin-top: auto;
}

/* Tables / lists */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: var(--text-sm);
}

.data-table th,
.data-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(20, 32, 27, 0.08);
}

.data-table th {
  background: var(--color-teal);
  color: var(--color-white);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--open {
  background: rgba(15, 122, 74, 0.12);
  color: var(--color-success);
}

.badge--closed {
  background: rgba(180, 35, 24, 0.1);
  color: var(--color-danger);
}

.badge--soon {
  background: rgba(181, 71, 8, 0.12);
  color: var(--color-warning);
}

/* Forms */
.form-stack {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(20, 32, 27, 0.18);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--color-ocean-soft);
  outline-offset: 1px;
  border-color: transparent;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: var(--color-white);
  color: var(--color-ink-muted);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  margin-top: auto;
  border-top: 1px solid rgba(0, 85, 114, 0.12);
}

.site-footer a {
  color: var(--color-teal);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--color-teal-mid);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-brand .brand {
  color: var(--color-teal-deep);
}

.footer-brand .brand:hover {
  color: var(--color-teal-deep);
}

.footer-brand .brand__logo {
  background: transparent;
  padding: 0;
  height: 4.5rem;
  max-width: 20rem;
  /* rodapé claro: usa logo com texto escuro */
  content: normal;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 28ch;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-ink-muted);
}

.footer-col h4 {
  color: var(--color-teal-deep);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 800;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
}

.footer-col li,
.footer-col a {
  font-size: var(--text-sm);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1rem var(--gutter);
  background: var(--color-yellow);
  color: var(--color-teal-deep);
  font-size: var(--text-xs);
  font-weight: 700;
}

.footer-bottom a {
  color: var(--color-teal-deep);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Botão voltar ao topo */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(243, 146, 0, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem);
  transition:
    opacity var(--dur-fast) var(--ease-soft),
    visibility var(--dur-fast),
    transform var(--dur-fast) var(--ease-soft),
    background var(--dur-fast) var(--ease-soft);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #d67d00;
  color: var(--color-white);
}

.back-to-top svg {
  width: 1rem;
  height: 1rem;
}

.footer-bottom .back-to-top-link {
  color: var(--color-teal-deep);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-bottom .back-to-top-link:hover {
  color: var(--color-teal);
}

/* Layout institucional / órgão (estilo portal transparência) */
.org-page {
  background: #eef1f4;
}

.org-page .page-hero--slim {
  padding: 1.1rem 0;
  border-bottom: 3px solid var(--color-orange);
  background: var(--color-teal-deep);
}

.org-page .page-hero--slim h1 {
  font-size: var(--text-xl);
  max-width: none;
}

.org-page .page-hero--slim p {
  display: none;
}

.org-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .org-layout {
    grid-template-columns: 20.5rem 1fr;
    gap: 1.75rem;
  }
}

.org-sidebar {
  display: grid;
  gap: 1rem;
}

.org-services-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.85rem 1rem;
  background: var(--color-orange);
  color: var(--color-white);
  border-radius: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: var(--text-sm);
  box-shadow: 0 6px 16px rgba(243, 146, 0, 0.35);
}

.org-services-btn:hover {
  filter: brightness(1.05);
  color: var(--color-white);
}

.org-services-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.org-card {
  background: var(--color-white);
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 36, 48, 0.08);
}

.org-profile {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
}

.org-profile__photo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 0.4rem;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0, 61, 82, 0.35)),
    url("https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&w=400&q=80")
      center / cover;
}

.org-profile__role {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal-mid);
  margin-bottom: 0.25rem;
}

.org-profile__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-teal-deep);
  line-height: 1.2;
}

.org-contact {
  background: #f3f5f7;
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.85rem;
}

.org-contact li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: var(--text-sm);
  color: var(--color-ink);
  font-weight: 500;
  line-height: 1.35;
}

.org-contact__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-orange);
  margin-top: 0.1rem;
}

.org-contact__icon svg {
  width: 100%;
  height: 100%;
}

.org-main {
  display: grid;
  gap: 1.75rem;
}

.org-block__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #2b3540;
}

.org-block__title::before {
  content: "";
  width: 0.28rem;
  height: 1.15rem;
  background: var(--color-orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.org-panel {
  background: var(--color-white);
  border-radius: 0.65rem;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 4px 18px rgba(15, 36, 48, 0.08);
}

.org-panel__legal {
  color: var(--color-orange);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: 0.85rem;
}

.org-panel__legal a {
  color: var(--color-orange);
  text-decoration: none;
}

.org-panel__legal a:hover {
  text-decoration: underline;
}

.org-panel h3 {
  font-size: var(--text-base);
  margin: 0.75rem 0 0.35rem;
  color: #2b3540;
}

.org-panel p {
  color: #4b5563;
  font-size: var(--text-sm);
  line-height: 1.65;
}

.org-panel p + p {
  margin-top: 0.75rem;
}

.org-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.15rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-orange);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.org-more:hover {
  color: #d67d00;
}

.org-panel__extra {
  display: none;
  margin-top: 0.75rem;
}

.org-panel.is-expanded .org-panel__extra {
  display: block;
  animation: orgReveal 0.35s var(--ease-out);
}

@keyframes orgReveal {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .org-panel.is-expanded .org-panel__extra {
    animation: none;
  }
}

.org-deps {
  display: grid;
  gap: 0.65rem;
}

.org-dep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--color-white);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
  font-size: var(--text-sm);
  box-shadow: 0 2px 10px rgba(15, 36, 48, 0.06);
  border-left: 3px solid var(--color-orange);
  transition: transform var(--dur-fast) var(--ease-soft);
}

.org-dep:hover {
  transform: translateX(3px);
  color: var(--color-teal);
}

.org-dep span {
  color: var(--color-ink-muted);
  font-weight: 500;
  font-size: var(--text-xs);
}
