/* Twork – folha de estilos do site */
:root {
  color-scheme: light;
  --bg: #ffffcd;
  --surface: #fff;
  --verde: #205b1b;
  --verde-escuro: #174315;
  --ouro: #e8be17;
  --texto: #1b1b1b;
  --texto-suave: #333a32;
  --linha: #e4e4c5;
  --sombra: 0 4px 14px rgb(32 91 27 / 9%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}
main { flex: 1; padding-bottom: 2rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--verde); }
.container { width: min(1120px, 92%); margin-inline: auto; }

/* Acessibilidade */
.skip { position: absolute; left: -999px; }
.skip:focus {
  z-index: 99;
  top: 8px;
  left: 8px;
  padding: .5rem 1rem;
  background: var(--surface);
}
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; }

/* Cabeçalho e navegação */
header {
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.topo {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) auto minmax(128px, 1fr);
  align-items: center;
  gap: .75rem 1rem;
  padding: .85rem 0;
}
.marca {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  min-height: clamp(82px, 8vw, 128px);
  align-items: center;
  color: var(--verde-escuro);
  text-decoration: none;
}
.marca img {
  width: clamp(82px, 8vw, 128px);
  height: clamp(82px, 8vw, 128px);
  border-radius: 4px;
  object-fit: cover;
}
.marca-info {
  grid-column: 2;
  grid-row: 1 / 3;
  text-align: center;
}
.marca-info b {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -.055em;
  line-height: 1;
}
.contacto-topo {
  margin: 0;
  color: var(--texto);
  font-size: .95rem;
}
.areas-nav {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  width: min(100%, 380px);
}
.areas-nav ul {
  display: grid;
  gap: .2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}
.areas-nav a {
  color: var(--texto-suave);
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}
.areas-nav a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Títulos de secção */
.barra {
  margin: 2.25rem 0 1.4rem;
  padding: .6rem 1rem;
  color: var(--ouro);
  background: var(--verde);
  border-radius: 0;
  text-align: center;
}
.barra h1,
.barra h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.3;
}
h2.simples {
  margin: 2.25rem 0 .85rem;
  padding-left: .85rem;
  color: var(--verde-escuro);
  border-left: 4px solid var(--ouro);
  font-size: 1.4rem;
  line-height: 1.35;
}

/* Texto e imagens */
.duas {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .duas { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .5rem 1rem .5rem 0;
}
.texto p {
  margin: 0 0 1rem;
  color: var(--texto-suave);
  text-align: justify;
}
.texto p:last-child { margin-bottom: 0; }
.carrossel {
  position: relative;
  overflow: hidden;
  background: #f1f1d8;
  border: 1px solid var(--linha);
  border-radius: 4px;
}
.faixa {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.faixa::-webkit-scrollbar { display: none; }
.faixa img {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  scroll-snap-align: center;
}
.carrossel button {
  position: absolute;
  top: 50%;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgb(23 67 45 / 84%);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color .18s ease, transform .18s ease;
}
.carrossel button:hover,
.carrossel button:focus-visible {
  background: var(--verde-escuro);
  transform: translateY(-50%) scale(1.06);
}
.carrossel button[data-dir="-1"] { left: .65rem; }
.carrossel button[data-dir="1"] { right: .65rem; }

/* Conteúdo das páginas de serviço */
.migalhas {
  margin: 1.2rem 0 0;
  color: var(--texto-suave);
  font-size: .92rem;
}
.migalhas a {
  color: var(--verde);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.lista,
.passos {
  display: grid;
  gap: .7rem;
  margin: .8rem 0 1.6rem;
  padding: 0;
  list-style: none;
}
.lista { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.lista li,
.passos li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-width: 0;
  padding: .9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--linha);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgb(23 67 45 / 5%);
}
.lista li::before {
  flex: 0 0 .55rem;
  width: .55rem;
  height: .55rem;
  margin-top: .55rem;
  background: var(--ouro);
  border-radius: 50%;
  content: "";
}
.lista li a {
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.lista li a:hover { color: var(--verde-escuro); }
.passos { counter-reset: etapa; }
.passos li::before {
  display: grid;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  margin-top: .05rem;
  color: var(--verde-escuro);
  background: #f7e9a7;
  border-radius: 50%;
  content: counter(etapa);
  counter-increment: etapa;
  font-size: .9rem;
  font-weight: 750;
}
main .container > p {
  margin: .8rem 0 1.5rem;
  color: var(--texto-suave);
}
details {
  margin-bottom: .7rem;
  padding: .85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--linha);
  border-radius: 9px;
  box-shadow: 0 3px 12px rgb(23 67 45 / 5%);
}
summary { color: var(--verde-escuro); cursor: pointer; font-weight: 700; }
details p { margin: .6rem 0 0; color: var(--texto-suave); }

/* Botões e chamada à ação */
.botao {
  display: inline-block;
  padding: .72rem 1.25rem;
  color: #fff;
  background: var(--verde);
  border: 2px solid var(--verde);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.botao:hover,
.botao:focus-visible {
  color: #fff;
  background: var(--verde-escuro);
  border-color: var(--verde-escuro);
  transform: translateY(-1px);
}
.cta { padding: 1.5rem 0 2rem; text-align: center; }
.cta p { margin: .4rem 0; }
button.botao { font: inherit; font-weight: 700; cursor: pointer; }

/* Rodapé */
.rodape {
  padding: 1.5rem 1rem;
  color: #fff;
  background: var(--verde-escuro);
  border-top: 4px solid var(--ouro);
  text-align: center;
}
.rodape a { color: var(--ouro); }
.rodape-conteudo > p { margin: 0 0 .75rem; }
.rodape nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rodape nav a { text-underline-offset: .2em; }

/* Aviso de cookies */
.cookies {
  position: fixed;
  z-index: 9;
  bottom: 0;
  left: 50%;
  display: none;
  width: min(900px, 95%);
  padding: 1rem;
  color: #fff;
  background: #202722;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 30px rgb(0 0 0 / 20%);
  font-size: 1rem;
  transform: translateX(-50%);
}
.cookies a { color: #ffdc61; }
.cookies button {
  margin-top: .5rem;
  padding: .45rem 1rem;
  background: var(--ouro);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 760px) {
  .topo { position: relative; grid-template-columns: minmax(0, 1fr); }
  .marca { position: absolute; top: .85rem; left: 0; min-height: 68px; }
  .marca img { width: 68px; height: 68px; }
  .marca-info { grid-column: 1; grid-row: 1; min-height: 68px; display: flex; flex-direction: column; justify-content: center; }
  .contacto-topo { max-width: 100%; overflow-wrap: anywhere; }
  .areas-nav { grid-column: 1; grid-row: 2; }
  .areas-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
  .barra { margin-top: 1.6rem; padding: .8rem .9rem; }
  .texto { padding: .5rem 0; }
  .lista { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .faixa { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: .01ms !important; }
}
