:root {
  --verde: #007864;
  --verde-escuro: #005b4c;
  --cinza: #666666;
  --branco: #ffffff;
  --fundo-desktop: #e9efee;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Fira Sans", sans-serif;
  background: var(--fundo-desktop);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Tela: sempre com largura de celular (402px no Figma), centralizada no desktop */
.tela {
  position: relative;
  width: 100%;
  max-width: 402px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 403px) {
  .tela {
    box-shadow: 0 0 48px rgba(0, 40, 33, 0.12);
  }
}

/* Logo: símbolo + texto sobrepostos, como no Figma */
.logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 100px;
  height: 137px;
}

.logo img {
  position: absolute;
  display: block;
}

.logo-simbolo {
  left: 0;
  top: 0;
}

.logo-texto {
  left: 4.84px;
  top: 100.82px;
}

/* Botões */
.botoes {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 261px;
}

.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 32px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.botao:active {
  transform: scale(0.98);
}

.botao:focus-visible {
  outline: 2px solid var(--verde-escuro);
  outline-offset: 3px;
}

/* Espaço flexível que empurra o rodapé para o fim da tela */
.espaco {
  flex: 1 0 auto;
}

/* ---------- Tela inicial ---------- */
.tela--inicio {
  background: var(--verde);
  color: var(--branco);
}

.grafismo {
  position: absolute;
  top: -119px;
  left: 50%;
  transform: translateX(calc(-50% - 2.5px));
  display: block;
}

.tela--inicio .logo {
  margin-top: 81px;
}

.inicio-titulo {
  position: relative;
  margin-top: 78px;
  width: 269px;
  font-weight: 400;
  font-size: 28px;
  line-height: 38px;
  text-wrap: balance;
}

.tela--inicio .botoes {
  margin-top: 31px;
}

.botao--cidade {
  background: var(--branco);
  color: var(--verde-escuro);
}

.botao--cidade:hover {
  background: #e6f1ef;
}

.botao--cidade:focus-visible {
  outline-color: var(--branco);
}

.tela--inicio .espaco {
  flex-basis: 39px;
}

.inicio-rodape {
  margin-bottom: 68px;
  padding: 0 16px;
  text-wrap: balance;
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
}

/* ---------- Tela da filial ---------- */
.tela--filial {
  background: var(--branco);
}

.voltar {
  position: absolute;
  top: 16px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--verde);
  transition: background-color 0.15s ease;
}

.voltar:hover {
  background: #e6f1ef;
}

.voltar:focus-visible {
  outline: 2px solid var(--verde-escuro);
  outline-offset: 2px;
}

.tela--filial .logo {
  margin-top: 68px;
}

.filial-titulo {
  margin-top: 48px;
  width: 269px;
  font-weight: 700;
  font-size: 34px;
  line-height: 44px;
  color: var(--verde);
  text-wrap: balance;
}

.filial-subtitulo {
  margin-top: 16px;
  padding: 0 16px;
  text-wrap: balance;
  font-weight: 300;
  font-size: 16px;
  line-height: 28px;
  color: var(--cinza);
}

.tela--filial .botoes {
  margin-top: 48px;
}

.botao--whatsapp {
  background: var(--verde);
  color: var(--branco);
}

a.botao--whatsapp[href]:hover {
  background: var(--verde-escuro);
}

.botao--whatsapp img {
  display: block;
  flex-shrink: 0;
}

.tela--filial .espaco {
  flex-basis: 48px;
}

.filial-endereco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 245px;
  margin-bottom: 47px;
  font-weight: 300;
  font-size: 16px;
  line-height: 28px;
  color: var(--cinza);
  white-space: pre-line;
  text-wrap: balance;
}

.filial-endereco img {
  display: block;
}

.filial-endereco:hover span {
  text-decoration: underline;
}
