/* EcoEnergia — Estilos Globais
   Design #3107: Orgânico & Natural | Branco + Preto + Vermelho
   Tipografia: Archivo (títulos) + Newsreader (corpo)
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&family=Newsreader:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --branco:    #FFFFFF;
  --preto:     #0A0A0A;
  --vermelho:  #CC2020;
  --terra-l:   #F8F3EE;
  --terra-m:   #EDE4D6;
  --terra-d:   #7A6A5C;
  --cinza-s:   #F2F2F2;
  --cinza-t:   #D4D0CB;
  --raio:      18px;
  --raio-sm:   10px;
  --fonte-h:   'Archivo', sans-serif;
  --fonte-b:   'Newsreader', serif;
  --max-w:     1280px;
  --espaço:    clamp(3rem, 7vw, 7rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--branco);
  color: var(--preto);
  font-family: var(--fonte-b);
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Tipografia ─── */
h1, h2, h3, h4 {
  font-family: var(--fonte-h);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

/* ─── Layout helpers ─── */
.contentor { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 4rem); }
.secção { padding: var(--espaço) 0; }
.secção--clara { background: var(--terra-l); }
.secção--media { background: var(--terra-m); }

/* ─── Barra de topo ─── */
.barra-topo {
  background: var(--preto);
  color: var(--branco);
  font-family: var(--fonte-h);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 0;
  text-align: center;
}
.barra-topo span { color: var(--vermelho); margin: 0 0.4rem; }

/* ─── Navegação ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--branco);
  border-bottom: 1.5px solid var(--terra-m);
  padding: 1rem 0;
}
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.nav__links {
  display: flex;
  gap: 1.8rem;
  font-family: var(--fonte-h);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__links--esq { justify-content: flex-end; }
.nav__links--dir { justify-content: flex-start; }
.nav__links a {
  color: var(--preto);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--vermelho);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav__links a:hover { color: var(--vermelho); }
.nav__links a:hover::after, .nav__links a.ativo::after { transform: scaleX(1); }
.nav__links a.ativo { color: var(--vermelho); }

.nav__logo {
  text-align: center;
  font-family: var(--fonte-h);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
  color: var(--preto);
}
.nav__logo span { color: var(--vermelho); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero__fundo {
  position: absolute;
  inset: 0;
  background: var(--preto);
}
.hero__fundo img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.52;
}
.hero__conteúdo {
  position: relative;
  z-index: 2;
  color: var(--branco);
  padding: 0 0 5rem;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--vermelho);
  color: var(--branco);
  font-family: var(--fonte-h);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}
.hero__titulo {
  color: var(--branco);
  max-width: 14ch;
  margin-bottom: 1.6rem;
}
.hero__subtítulo {
  font-family: var(--fonte-b);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.82);
  max-width: 48ch;
  margin-bottom: 2.5rem;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Galeria de Prévia ─── */
.galeria-prev {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -4rem;
  position: relative;
  z-index: 3;
}
.galeria-prev__item {
  border-radius: var(--raio);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.galeria-prev__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.galeria-prev__item:hover img { transform: scale(1.04); }

/* ─── Botões ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--fonte-h);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--raio-sm);
  transition: all 0.22s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--prim {
  background: var(--vermelho);
  color: var(--branco);
  border-color: var(--vermelho);
}
.btn--prim:hover { background: #A81818; border-color: #A81818; }
.btn--sec {
  background: transparent;
  color: var(--branco);
  border-color: rgba(255,255,255,0.6);
}
.btn--sec:hover { background: rgba(255,255,255,0.12); border-color: var(--branco); }
.btn--esc {
  background: transparent;
  color: var(--preto);
  border-color: var(--preto);
}
.btn--esc:hover { background: var(--preto); color: var(--branco); }

/* ─── Secção: 3 cartões ─── */
.cartões {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cartão {
  background: var(--branco);
  border: 1.5px solid var(--terra-m);
  border-radius: var(--raio);
  padding: 2.2rem 2rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.cartão:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.cartão__num {
  display: inline-flex;
  width: 2.8rem; height: 2.8rem;
  align-items: center; justify-content: center;
  background: var(--vermelho);
  color: var(--branco);
  font-family: var(--fonte-h);
  font-weight: 900;
  font-size: 1.05rem;
  border-radius: 50%;
  margin-bottom: 1.4rem;
}
.cartão h3 { margin-bottom: 0.75rem; }
.cartão p { color: var(--terra-d); font-size: 0.95rem; }
.cartão__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--fonte-h);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vermelho);
  margin-top: 1.5rem;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.cartão__link:hover { opacity: 0.75; }

/* ─── Bloco Ziguezague ─── */
.zigzag { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 6rem); }
.zigzag__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}
.zigzag__item:nth-child(even) .zigzag__img { order: 2; }
.zigzag__item:nth-child(even) .zigzag__txt { order: 1; }
.zigzag__img {
  border-radius: var(--raio);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.zigzag__img img { width: 100%; height: 100%; object-fit: cover; }
.zigzag__rótulo {
  font-family: var(--fonte-h);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vermelho);
  margin-bottom: 0.8rem;
}
.zigzag__txt h2 { margin-bottom: 1rem; }
.zigzag__txt p { color: var(--terra-d); }
.zigzag__txt .btn { margin-top: 1.8rem; }

/* ─── Bloco de Citação ─── */
.citação-bloco {
  background: var(--preto);
  color: var(--branco);
  border-radius: var(--raio);
  padding: clamp(2.5rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}
.citação-bloco::before {
  content: '"';
  position: absolute;
  top: -0.3em; left: 0.15em;
  font-family: var(--fonte-h);
  font-size: 18rem;
  font-weight: 900;
  color: var(--vermelho);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}
.citação-bloco blockquote {
  font-family: var(--fonte-b);
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  max-width: 34ch;
  position: relative;
  z-index: 1;
}
.citação-bloco cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--fonte-h);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vermelho);
}

/* ─── Stats / Números ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat__num {
  font-family: var(--fonte-h);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--vermelho);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat__txt {
  font-family: var(--fonte-b);
  font-size: 0.95rem;
  color: var(--terra-d);
  line-height: 1.4;
}

/* ─── Lista numerada ─── */
.lista-num { display: flex; flex-direction: column; gap: 1.6rem; }
.lista-num__item { display: flex; gap: 1.4rem; align-items: flex-start; }
.lista-num__badge {
  flex-shrink: 0;
  width: 2.6rem; height: 2.6rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--vermelho);
  color: var(--branco);
  font-family: var(--fonte-h);
  font-weight: 900;
  font-size: 0.95rem;
  border-radius: 50%;
  margin-top: 0.15rem;
}
.lista-num__corpo h4 { margin-bottom: 0.4rem; }
.lista-num__corpo p { color: var(--terra-d); font-size: 0.95rem; margin: 0; }

/* ─── Caixa de destaque ─── */
.destaque {
  border-left: 4px solid var(--vermelho);
  padding: 1.2rem 1.6rem;
  background: var(--terra-l);
  border-radius: 0 var(--raio-sm) var(--raio-sm) 0;
  margin: 2rem 0;
}
.destaque p { color: var(--preto); font-style: italic; margin: 0; }

/* ─── Secção Hero Interior (subpáginas) ─── */
.hero-int {
  background: var(--preto);
  color: var(--branco);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-int::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: var(--vermelho);
  opacity: 0.07;
  clip-path: ellipse(80% 100% at 100% 50%);
}
.hero-int__rótulo {
  font-family: var(--fonte-h);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vermelho);
  margin-bottom: 1rem;
}
.hero-int h1 { color: var(--branco); max-width: 22ch; margin-bottom: 1.2rem; }
.hero-int__desc {
  font-family: var(--fonte-b);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  max-width: 50ch;
}

/* ─── Acordeão de FAQ ─── */
.faq { display: flex; flex-direction: column; gap: 0.5rem; }
.faq__item {
  border: 1.5px solid var(--terra-m);
  border-radius: var(--raio-sm);
  overflow: hidden;
}
.faq__perg {
  font-family: var(--fonte-h);
  font-weight: 700;
  font-size: 1rem;
  padding: 1.2rem 1.6rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--branco);
  transition: background 0.2s;
}
.faq__perg:hover { background: var(--terra-l); }
.faq__perg::after { content: '+'; font-size: 1.4rem; color: var(--vermelho); font-weight: 400; }
.faq__resp {
  padding: 0 1.6rem 1.4rem;
  font-size: 0.96rem;
  color: var(--terra-d);
  background: var(--terra-l);
}

/* ─── Formulário de Contacto ─── */
.form { display: flex; flex-direction: column; gap: 1.2rem; }
.form__grupo { display: flex; flex-direction: column; gap: 0.4rem; }
.form__label {
  font-family: var(--fonte-h);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--preto);
}
.form__input, .form__textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--terra-m);
  border-radius: var(--raio-sm);
  font-family: var(--fonte-b);
  font-size: 1rem;
  color: var(--preto);
  background: var(--branco);
  transition: border-color 0.2s;
  outline: none;
}
.form__input:focus, .form__textarea:focus { border-color: var(--vermelho); }
.form__textarea { min-height: 130px; resize: vertical; }

/* ─── Grid de 2 colunas ─── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* ─── Cartão Benefício ─── */
.benefícios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.benefício {
  background: var(--branco);
  border: 1.5px solid var(--terra-m);
  border-radius: var(--raio);
  padding: 1.8rem 1.6rem;
}
.benefício__num {
  font-family: var(--fonte-h);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--vermelho);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.benefício h4 { margin-bottom: 0.5rem; }
.benefício p { color: var(--terra-d); font-size: 0.92rem; margin: 0; }

/* ─── CTA Banner ─── */
.cta-banner {
  background: var(--vermelho);
  color: var(--branco);
  border-radius: var(--raio);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--branco); max-width: 28ch; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 40ch; margin: 0.6rem 0 0; }
.btn--bco {
  background: var(--branco);
  color: var(--vermelho);
  border-color: var(--branco);
  font-family: var(--fonte-h);
  font-weight: 700;
  flex-shrink: 0;
}
.btn--bco:hover { background: var(--terra-l); }

/* ─── Rodapé ─── */
.rodapé {
  background: var(--preto);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 2.5rem;
}
.rodapé__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.rodapé__logo {
  font-family: var(--fonte-h);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.05em;
  color: var(--branco);
  margin-bottom: 1rem;
}
.rodapé__logo span { color: var(--vermelho); }
.rodapé__desc { font-size: 0.92rem; line-height: 1.65; }
.rodapé h5 {
  font-family: var(--fonte-h);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--branco);
  margin-bottom: 1.2rem;
}
.rodapé ul li { margin-bottom: 0.55rem; }
.rodapé ul li a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.rodapé ul li a:hover { color: var(--vermelho); }
.rodapé__divisor {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.8rem;
}
.rodapé__fundo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ─── Migalhas de pão ─── */
.migalhas {
  font-family: var(--fonte-h);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1rem 0;
  color: var(--terra-d);
  border-bottom: 1px solid var(--terra-m);
}
.migalhas a { color: var(--terra-d); }
.migalhas a:hover { color: var(--vermelho); }
.migalhas span { color: var(--preto); }

/* ─── Responsivo ─── */
@media (max-width: 1024px) {
  .cartões { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .rodapé__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links--dir { display: none; }
  .nav__links--esq { display: none; }
  .nav__inner .nav__links--esq-m {
    display: flex;
    gap: 1.2rem;
    order: 3;
    grid-column: 1/-1;
    flex-wrap: wrap;
    font-size: 0.8rem;
  }
  .galeria-prev { grid-template-columns: 1fr; }
  .cartões { grid-template-columns: 1fr; }
  .zigzag__item { grid-template-columns: 1fr; }
  .zigzag__item:nth-child(even) .zigzag__img { order: 0; }
  .zigzag__item:nth-child(even) .zigzag__txt { order: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .benefícios { grid-template-columns: 1fr; }
  .rodapé__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-banner { flex-direction: column; text-align: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.2rem; }
}
