/* Ajustes para nomes longos e quantidades variáveis de ações no modelo de Santana. */
.hero-copy,
.hero-grid > *,
.section-heading h2 {
  min-width: 0;
}

@media (min-width: 761px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  }

  .achievements .photo-card:last-of-type:nth-child(odd) {
    grid-column: 1 / -1;
    grid-template-columns: minmax(120px, .4fr) minmax(0, 1.6fr);
  }
}

.hero-copy h1,
.achievements .card-content h3,
.next-project h3 {
  overflow-wrap: anywhere;
}

.achievement-list > .achievement-brief:last-child {
  grid-column: auto;
}

.achievement-list > .achievement-brief:last-child:nth-child(odd),
.upcoming-projects > .next-project:only-child {
  grid-column: 1 / -1;
}

.achievement-list > .achievement-brief:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

.next-project-status {
  text-transform: uppercase;
}

.next-project h3:first-child {
  margin-top: 0;
}

.city-source {
  padding-bottom: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.city-source a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.city-directory {
  min-height: 100vh;
  background: linear-gradient(135deg, #f47721db, #ab4306df), url('fundo.jpg') center / cover fixed;
}

.city-directory-main {
  padding-block: 48px;
}

.city-directory-panel {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #ffffffa6;
  border-radius: 18px;
  background: #fffaf3f5;
}

.city-directory-panel h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -1.8px;
}

.city-directory-panel > p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.city-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.city-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  min-height: 72px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.city-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero-copy h1 {
    font-size: clamp(36px, 4.8vw, 53px);
    letter-spacing: -1.8px;
  }
}

@media (max-width: 760px) {
  .achievement-list > .achievement-brief:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid var(--line);
  }

  .city-directory-main {
    padding-block: 24px;
  }

  .city-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .city-links a {
    min-height: 64px;
    font-size: 17px;
  }
}

@media (max-width: 360px) {
  .js .main-nav {
    left: -16px;
    right: -16px;
  }
}
