*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #faf8f6;
  --color-surface: #ffffff;
  --color-surface-alt: #f3efe9;
  --color-text: #1a1714;
  --color-text-muted: #5c564e;
  --color-accent: #8b3a2a;
  --color-accent-dark: #6b2d21;
  --color-ativa: #1d6b3a;
  --color-border: #e5ddd4;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26, 23, 20, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
  color: #fff;
  padding: 2rem 0;
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.brand__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.brand__subtitle {
  margin-top: 0.35rem;
  opacity: 0.9;
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge--ativa {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Hero */
.hero {
  padding: 2.5rem 0;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 42rem;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section--legal {
  padding-bottom: 3rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-accent-dark);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.card__value {
  font-size: 1rem;
  font-weight: 500;
  word-break: break-word;
}

.card__value--muted {
  color: var(--color-text-muted);
  font-weight: 400;
}

.card__hint {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Activities */
.activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.activity__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-accent);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.activity__tag--secondary {
  background: var(--color-text-muted);
}

.activity__code {
  font-weight: 600;
  font-size: 1.05rem;
}

.activity__desc {
  margin-top: 0.15rem;
}

.activity__note {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-block__title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.address {
  font-style: normal;
  line-height: 1.7;
}

.address__note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-line {
  margin-bottom: 0.75rem;
}

.contact-line__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.contact-line a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-line a:hover {
  text-decoration: underline;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.data-table th,
.data-table td {
  padding: 0.9rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: none;
}

.data-table th {
  width: 42%;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
  vertical-align: top;
}

.text-ativa {
  color: var(--color-ativa);
}

/* Legal */
.legal-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 40rem;
}

.legal-note + .legal-note {
  margin-top: 0.75rem;
}

.legal-note--source {
  font-size: 0.85rem;
}

/* Footer */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.75rem 0;
  font-size: 0.9rem;
}

.footer__inner {
  text-align: center;
}

.footer__city {
  margin-top: 0.25rem;
  opacity: 0.7;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table th {
    padding-bottom: 0.25rem;
    border-bottom: none;
  }

  .data-table td {
    padding-top: 0;
  }
}
