/* Rede Harmoniza — mobile-first, sem frameworks */
:root {
  --home-bg: #fff;
  --bg: #fdfaf6;
  --surface: #ffffff;
  --text: #2f2925;
  --muted: #7a6b61;
  --accent: #d48f72;
  --accent-dark: #b87659;
  --accent-soft: #fceee7;
  --border: #efdfd5;
  --success: #6e9b84;
  --warn: #be8a52;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(13, 115, 119, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --focus: 2px solid var(--accent);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f1f1f;
  text-decoration: none;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* Hero + home */
.hero {
  background: var(--home-bg);
  padding: 0;
}

.hero__grid {
  display: grid;
  gap: 1.35rem;
  align-items: center;
}

.hero .wrap.hero__grid {
  max-width: 100%;
  padding-right: 0;
}

.hero__content {
  padding: 0;
  align-self: center;
  justify-self: stretch;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 34rem);
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 800;
  max-width: 14ch;
}

.hero__lead {
  margin: 0 0 0.8rem;
  font-size: 0.94rem;
  color: var(--text);
  max-width: 45ch;
}

.hero__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0;
}

.hero__media {
  margin: 0;
  min-height: 10.5rem;
  border-radius: 0;
  overflow: hidden;
  background: #d8e8e8;
}

.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 54rem) {
  .hero {
    padding: 0;
  }

  .hero__grid {
    grid-template-columns: minmax(20rem, 42rem) 1fr;
    gap: 1.4rem;
  }

  .hero .wrap.hero__grid {
    padding-left: clamp(1.1rem, 3.8vw, 4rem);
  }

  .hero__media {
    min-height: 17rem;
  }
}

/* Search */
.search-bar {
  padding: 0 1.1rem 1.5rem;
  margin-top: 0.5rem;
}

.search-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.search-input {
  width: 100%;
  max-width: 28rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

.search-help {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
  max-width: 32rem;
}

/* City grid */
.section-title {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.section-kicker {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40em;
}

.cities {
  padding-bottom: 2.5rem;
}

.city-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 32rem) {
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 52rem) {
  .city-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 75rem) {
  .city-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.city-card {
  margin: 0;
  list-style: none;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.city-card.is-hidden {
  display: none;
}

.city-card:hover {
  border-color: #b8d0d0;
  box-shadow: 0 4px 20px rgba(13, 115, 119, 0.12);
}

.city-card__link {
  display: block;
  padding: 1rem 1.1rem;
  color: inherit;
  text-decoration: none;
}

.city-card__link:hover {
  text-decoration: none;
}

.city-card__title {
  font-size: 1.02rem;
  margin: 0 0 0.35rem;
  color: #1f1f1f;
}

.city-card__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Static blocks on home */
.static-blocks {
  padding: 0 0 2.5rem;
}

.prose-block {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 46rem;
}

.prose-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

/* City page */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
  padding-top: 0.4rem;
}

.breadcrumbs a {
  font-weight: 600;
}

.breadcrumbs__current {
  color: var(--text);
  font-weight: 500;
}

.page-title {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin: 0 0 0.75rem;
  line-height: 1.2;
  color: var(--text);
}

.lede {
  font-size: 1.02rem;
  color: var(--text);
  margin: 0 0 0.7rem;
  max-width: 40em;
}

.lede--secondary {
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 0.25rem;
}

.callout {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid #c5dedf;
  background: var(--accent-soft);
  margin: 0 0 1.4rem;
  max-width: 40em;
}

.callout p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

/* Pro list */
.pro-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.25rem;
}

.pro-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (min-width: 40rem) {
  .pro-card {
    grid-template-columns: 160px 1fr;
  }
}

/* Listagem de cidade: faixa à esquerda (sem foto); classe pro-card--city-list marca o cartão no HTML */

.card-media--stripe {
  min-height: 0.6rem;
  background: linear-gradient(145deg, var(--accent-soft) 0%, #b8d9da 100%);
  border-bottom: 4px solid var(--accent);
  box-sizing: border-box;
  margin: 0;
}

@media (min-width: 40rem) {
  .card-media--stripe {
    min-height: 100%;
    min-width: 0;
    border-bottom: none;
    border-right: 4px solid var(--accent);
    box-shadow: inset 0 0 0 1px rgba(9, 90, 93, 0.12);
  }
}

.card-media {
  min-height: 8rem;
  background: #e4ecec;
  margin: 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 8rem;
}

.card-media--empty {
  min-height: 0;
  display: none;
}

@media (min-width: 40rem) {
  .card-media--empty {
    display: block;
    min-height: 100%;
  }
}

.card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-rank {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.card-title {
  font-size: 1.12rem;
  margin: 0;
  line-height: 1.3;
  color: var(--text);
}

.card-cat {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.card-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 0.2rem 0 0.25rem;
}

.score-pill {
  font-size: 0.85rem;
  background: var(--accent-soft);
  color: var(--text);
  padding: 0.25em 0.6em;
  border-radius: 6px;
}

.score-pill strong {
  color: var(--success);
  font-size: 1.02em;
}

.card-badge--warn {
  background: #fff3e0;
  color: var(--warn);
  font-size: 0.8rem;
  margin: 0.15rem 0 0;
  padding: 0.35em 0.5em;
  border-radius: 4px;
  max-width: max-content;
}

.card-line {
  font-size: 0.9rem;
  margin: 0.1rem 0 0;
  color: var(--text);
}

.card-line .label {
  font-size: 0.78em;
  color: var(--muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15em;
}

.phone-link {
  font-weight: 600;
  word-break: break-all;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn--secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.btn--outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.card-title__link {
  color: inherit;
  text-decoration: none;
}

.card-title__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* How ranking + FAQ */
.how-rank {
  margin: 0 0 1.5rem;
  max-width: 40em;
}

.how-rank h2,
.faq h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.how-rank p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.faq {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  max-width: 40em;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.75rem 0.25rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.45rem 0 0.35rem;
  color: var(--text);
}

.faq p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  padding-top: 0.15rem;
}

/* Footer */
.site-footer {
  background: #0f191c;
  color: #c8d4d6;
  margin-top: 1.5rem;
  padding: 2rem 1.1rem 1.2rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #9ed9dc;
  font-weight: 600;
}

.site-footer a:hover {
  color: #c5eeee;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 40rem) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr;
  }
}

.footer-heading {
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  color: #fff;
}

.site-footer p {
  margin: 0;
  line-height: 1.5;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0.25em 0;
}

.footer-disclaimer,
.footer-note {
  font-size: 0.82rem;
  max-width: 50rem;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
  color: #8fa5a8;
}

.footer-note {
  border-top: 1px solid #1e3237;
  padding-top: 1rem;
  margin-top: 1rem;
}

.footer-copy {
  text-align: center;
  color: #6a8083;
  font-size: 0.8rem;
  margin: 0.6rem 0 0;
}

/* Municípios do mesmo estado (página da capital) */
.satellite-section {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.5rem;
  max-width: 40em;
}

.satellite-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.satellite-intro {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.5;
  max-width: 44em;
}

.satellite-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 30rem) {
  .satellite-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.satellite-box {
  display: block;
  height: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafcfc;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(13, 115, 119, 0.06);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.satellite-box:hover {
  border-color: #9ec5c7;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.satellite-box__name {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--accent);
}

.satellite-box__meta {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.satellite-box__cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* Página de detalhe do local */
.pro-page {
  max-width: 40rem;
}

.pro-hero-fig {
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f3dcca;
  max-width: 100%;
}

.pro-hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pro-page__h1 {
  margin-top: 0.25rem;
}

.pro-page__cat {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.pro-page__scores {
  margin-bottom: 0.75rem;
}

.lede--small {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 44em;
  margin: 0 0 1rem;
}

.pro-services {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pro-services__title {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.pro-services__kicker {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.pro-services__kicker--empty {
  margin-bottom: 0;
}

.pro-services__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
  line-height: 1.5;
}

.pro-services__item {
  margin: 0.25rem 0;
}

.pro-page__body {
  margin: 0.5rem 0 0.25rem;
}

.pro-page__actions {
  margin-top: 0.5rem;
}

.pro-detail {
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
  color: var(--text);
}

.pro-detail .label {
  display: block;
  font-size: 0.78em;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1em;
}

.back-p {
  margin: 0 0 0.75rem;
}

.back-link {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Páginas estáticas (Sobre, Contato) */
.static-page {
  padding: 0 0 2.5rem;
  max-width: 46rem;
}

body[data-page="cidades"] .static-page {
  max-width: var(--max);
}

body[data-page="cidades"] .cities.wrap {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.lede--aux {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  max-width: 38em;
}

.home-aux {
  padding-bottom: 2.5rem;
  max-width: 40rem;
  margin: 0 auto;
}

.lede--mt {
  margin-top: 0.5rem;
}

.contact-form {
  margin-top: 0.75rem;
}

.form-row {
  margin: 0 0 0.75rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
