/* ===== Variáveis ===== */
:root {
  --bg: #0b0f0c;
  --surface: #141a15;
  --surface-2: #1b231d;
  --text: #f2f5f2;
  --muted: #a7b3a9;
  --green: #4caf3d;
  --green-dark: #2f7d27;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 18px;
  --topo-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.contentor { width: min(1120px, 100% - 32px); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico-grande { width: 2.4rem; height: 2.4rem; color: var(--green); margin-bottom: .9rem; }
.etiqueta {
  display: inline-block; margin-bottom: .8rem;
  color: var(--green); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.destaque { color: var(--green); }

/* ===== Botões ===== */
.botoes { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.3rem;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primario { background: var(--green); color: #07140a; }
.btn-primario:hover { background: #5bc24a; }
.btn-whatsapp { background: #25d366; color: #05210f; }
.btn-whatsapp:hover { background: #3be07a; }
.btn-contorno { border-color: var(--line); color: var(--text); background: transparent; }
.btn-contorno:hover { border-color: var(--green); }

/* ===== Topo ===== */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topo-h);
  background: rgba(11, 15, 12, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topo-interior {
  width: min(1120px, 100% - 32px); height: 100%; margin-inline: auto;
  display: flex; align-items: center; gap: .75rem;
}
.marca { display: flex; align-items: center; margin-right: auto; line-height: 0; }
/* logótipo: mesmas formas do original, verdes mais claros para fundo escuro */
.logo {
  display: block; height: 54px; width: auto; aspect-ratio: 300 / 128; overflow: visible;
  --lg-nome: #62c24f; --lg-folha: #4cb040; --lg-sub: #c9d6cb;
}
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; font-size: .85rem; }
.js .menu { display: none; font-size: 1rem; }
.menu a { text-decoration: none; font-weight: 500; color: var(--muted); }
.menu a:hover { color: var(--text); }
.topo-ligar { min-height: 42px; padding: .5rem 1rem; }

.menu-toggle {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: transparent; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.js .menu-toggle { display: flex; }
.menu-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 899px) {
  .js .menu.aberto {
    display: flex; flex-direction: column; gap: 1.1rem;
    position: absolute; top: var(--topo-h); left: 0; right: 0;
    padding: 1.25rem 16px 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .js .menu.aberto a { font-size: 1.1rem; color: var(--text); }
}
/* ecrãs muito estreitos: botão Ligar só com o ícone */
@media (max-width: 400px) {
  .topo-ligar-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topo-ligar { padding: .5rem .7rem; }
  .logo { height: 48px; }
}

/* ===== Hero ===== */
.hero {
  padding: calc(var(--topo-h) + 2.5rem) 0 3.5rem;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(76, 175, 61, .22), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(76, 175, 61, .10), transparent 70%),
    var(--bg);
}
.hero-grelha { display: grid; gap: 2.5rem; align-items: center; }
.hero-apoio { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.hero-horario { display: flex; align-items: center; gap: .5rem; color: var(--muted); margin-top: 1.4rem; font-size: .95rem; }
.hero-foto { max-width: 560px; margin-inline: auto; }
.hero-foto img {
  width: 100%; border-radius: 28px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 8px rgba(76, 175, 61, .08);
  aspect-ratio: 16 / 10; object-fit: cover;
}

/* ===== Secções ===== */
.seccao { padding: 4.5rem 0; }
.seccao-escura { background: var(--surface); border-block: 1px solid var(--line); }
.seccao-apoio { color: var(--muted); max-width: 56ch; margin-bottom: 2rem; }

.sobre-grelha { display: grid; gap: 2.5rem; align-items: center; }
.sobre-foto img { width: 100%; border-radius: 24px; border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.sobre-foto { order: 2; } /* telemóvel: texto primeiro, para não ficar foto atrás de foto */
.sobre-grelha p { color: var(--muted); }
.sobre-lista { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.sobre-lista li { display: flex; align-items: center; gap: .6rem; }
.sobre-lista .ico { color: var(--green); }

.grelha-servicos { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.servico {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: transform .2s ease, border-color .2s ease;
}
.servico:hover { transform: translateY(-4px); border-color: rgba(76, 175, 61, .5); }
.servico p { color: var(--muted); margin: 0; font-size: .97rem; }

.destaque-grelha { display: grid; gap: 2.5rem; align-items: center; }
.destaque-foto { max-width: 360px; margin-inline: auto; }
.destaque-foto img { width: 100%; border-radius: 24px; border: 1px solid var(--line); aspect-ratio: 4 / 5; object-fit: cover; }
.destaque-foto.quadrada img { aspect-ratio: 1 / 1; }
.destaque-grelha p { color: var(--muted); }

.passos { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.passos li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.passos p { color: var(--muted); margin: 0; }
.passo-num {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--green); color: #07140a; font-weight: 800;
}

.grelha-lojas { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.loja { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.loja h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.linha { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); margin-bottom: .6rem; }
.linha .ico { color: var(--green); margin-top: .2em; }

/* ===== Rodapé ===== */
.rodape { padding: 3.5rem 0 1.5rem; border-top: 1px solid var(--line); }
.rodape-grelha { display: grid; gap: 2rem; }
.rodape h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.rodape .marca { display: inline-flex; margin: 0; }
.rodape .logo { height: 64px; }
.rodape-slogan { margin-top: .8rem; color: var(--muted); }
.link-rodape { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text); word-break: break-word; }
.link-rodape:hover { color: var(--green); }
.link-rodape .ico { color: var(--green); }
.redes { list-style: none; display: flex; gap: .75rem; padding: 0; margin: 0; }
.redes a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); transition: border-color .15s, color .15s;
}
.redes a:hover { border-color: var(--green); color: var(--green); }
.direitos { text-align: center; color: var(--muted); font-size: .85rem; margin: 2.5rem 16px 0; }

/* ===== Revelar ao rolar (só com JavaScript) ===== */
.js .revelar { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .revelar.visivel { opacity: 1; transform: none; }

/* ===== Ecrãs maiores ===== */
@media (min-width: 640px) {
  .grelha-servicos { grid-template-columns: repeat(2, 1fr); }
  .passos { grid-template-columns: repeat(3, 1fr); }
  .grelha-lojas { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .js .menu-toggle { display: none; }
  .menu, .js .menu { display: flex; gap: 2rem; font-size: 1rem; }
  .hero-grelha { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .hero-foto { max-width: none; margin-inline: 0; justify-self: stretch; }
  .destaque-grelha { grid-template-columns: 1fr 1.2fr; }
  .destaque-grelha.inversa { grid-template-columns: 1.2fr 1fr; }
  .destaque-grelha.inversa .destaque-foto { order: 2; }
  .sobre-grelha { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
  .sobre-foto { order: 0; }
  .grelha-servicos { grid-template-columns: repeat(3, 1fr); }
  .rodape-grelha { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* ===== Movimento reduzido ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .revelar { opacity: 1; transform: none; }
}
