/* =========================
   Variáveis
========================= */
:root {
  --footer-height: 40px;
  --font-family: 'Segoe UI', sans-serif;

  --bg-color: #fff;
  --text-color: #1a1a1a;
  --primary-color: #5f788a;
  --secondary-color: #e0e0e0;
  --border-color: #ddd;
  --hlt-color: #ff9326;

  --navbar-bg-color: #1e1e1e;
  --navbar-color: #aaa;
  --navbar-btn-color: #fff;
  --navbar-btn-hv-color: #859099;

  --sidebar-bg: #e9ecef;
  --footer-bg: #f1f1f1;
}

body.dark-mode {
  --bg-color: #1e1e1e;
  --text-color: #e0e0e0;
  --secondary-color: #3a3a3a;
  --border-color: #444;
  --sidebar-bg: #252526;
  --footer-bg: #2d2d2d;
}

/* =========================
   Reset e base
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.container.centro {
  text-align: center;
}

/* =========================
   Header e navegação
========================= */
header {
  background-color: var(--navbar-bg-color);
  color: var(--navbar-color);
  padding: 1.5rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 60px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--navbar-color);
  font-weight: 600;
}

nav ul li a:hover {
  color: var(--navbar-btn-hv-color);
}

.acesso-discreto {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--hlt-color);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--hlt-color);
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.acesso-discreto:hover {
  background-color: var(--hlt-color);
  color: #fff;
}

/* =========================
   Hero e slogans
========================= */
.hero {
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem;
  color: #fff;
  background-image: url("/oficina.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero .container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 45%);
  z-index: -1;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.botao-cta {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--hlt-color);
  color: #000;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 4px;
}

.botao-cta:hover {
  background-color: #e67e00;
  color: #fff;
}

.slogan1,
.slogan2 {
  position: relative;
  background-color: var(--bg-color);
  text-align: center;
}

.slogan1 .container::before,
.slogan2 .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 /60%);
  z-index: 0;
}

.slogan1 h1,
.slogan2 h1 {
  color: var(--text-color);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  animation: fadeInUp 1s ease both;
  text-shadow: 6px 6px 16px rgb(200 200 200 / 60%);
}

.slogan1 .container,
.slogan2 .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem;
  color: #fff;
  background-image: url("/oficina3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Secções e layout flexível
========================= */
.secao {
  padding: 3rem 0;
  background-color: var(--bg-color);
  font-size: 1.1rem;
}

.secao.clara {
  background-color: var(--secondary-color);
}

.secao.escura {
  background-color: var(--navbar-bg-color);
}

.secao h1 {
  color: var(--bg-color);
  font-size: 2rem;
}

.secao h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.secao-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.secao-flex.reverse {
  flex-direction: row-reverse;
}

.secao-flex .texto {
  flex: 1 1 60%;
}

.secao-flex .imagem {
  flex: 1 1 35%;
}

.secao-flex .imagem img,
.secao-flex .imagem-dupla img {
  display: block;
  width: 80%;
  height: auto;
  margin-bottom: 1rem;
}

/* =========================
   Listas, testemunhos e contacto
========================= */
.lista-funcionalidades {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

blockquote {
  background-color: var(--sidebar-bg);
  padding: 1rem;
  margin: 1rem 0;
  border-left: 4px solid var(--primary-color);
}

cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: bold;
}

#contacto a {
  color: var(--hlt-color);
  font-weight: 500;
}

#contacto a:hover {
  text-decoration: underline;
}

.destaque-contacto {
  margin-top: 2rem;
  padding: 1rem;
  background-color: var(--sidebar-bg);
  border-left: 4px solid var(--hlt-color);
  font-size: 1.1rem;
  font-weight: bold;
}

.destaque-contacto span {
  font-weight: normal;
}

/* =========================
   Planos de assinatura
========================= */
.secao-flex.planos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: stretch;
}

.plano {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 1 280px;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgb(0 0 0 /8%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plano:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgb(0 0 0 / 15%);
}

.plano h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.plano p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.plano ul {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  font-size: 0.9rem;
}

.plano ul li {
  margin: 0.35rem 0;
}

.plano .preco,
.plano .preco-desconto {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.plano .preco {
  color: var(--hlt-color);
}

.plano .preco-desconto {
  color: var(--text-color);
}

.plano .botao-cta {
  background-color: var(--hlt-color);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
}

.plano .botao-cta:hover {
  background-color: #e67e00;
  color: #fff;
}

.plano.destaque {
  border: 2px solid var(--hlt-color);
  transform: scale(1.03);
}

/* =========================
   Tabela comparativa
========================= */
.tabela-comparativa {
  overflow-x: auto;
  margin-top: 2rem;
}

.tabela-comparativa table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.95rem;
}

.tabela-comparativa th,
.tabela-comparativa td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
}

.tabela-comparativa th {
  background-color: var(--secondary-color);
  font-weight: bold;
}

.tabela-comparativa td:first-child {
  text-align: left;
  font-weight: 500;
}

.tabela-comparativa td {
  min-width: 100px;
}

.tabela-comparativa td:nth-child(n+2) {
  font-weight: 600;
}

/* =========================
   Garantia
========================= */
#garantia {
  text-align: left;
}

#garantia h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

#garantia ul li {
  list-style: "✔ ";
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* =========================
   Formulário
========================= */
.form-contato {
  background: var(--bg-color);
  padding: 2rem;
  box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
  margin-top: 2rem;
}

.form-contato .linha-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-contato .campo-form {
  flex: 1;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}

.form-contato label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.form-contato input,
.form-contato textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-contato input:focus,
.form-contato textarea:focus {
  border-color: var(--hlt-color);
  outline: none;
  box-shadow: 0 0 6px rgb(255 147 38 / 40%);
}

.form-contato button {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.05rem;
  border: none;
  outline: none;
  border-radius: 6px;
  cursor: pointer;
}

.form-contato .botoes-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.form-contato .botoes-form button {
  flex: 1;
  max-width: 200px;
  text-align: center;
}

.form-contato .botoes-form .cancelar {
  background-color: #ccc;
  color: #000;
}

.form-contato .botoes-form .cancelar:hover {
  background-color: #999;
  color: #fff;
}

/* =========================
   Imagens utilitárias (com toggle)
========================= */
.img-toggle {
  display: none; /* checkbox oculto */
}

.img-ampliavel {
  cursor: zoom-in;
  display: block;
  max-width: 80%;
  height: auto;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.img-toggle:checked + label .img-ampliavel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  z-index: 1000;
  cursor: zoom-out;
  background: transparent;
  padding: 0.5rem;
}

/* =========================
   Footer
========================= */
footer {
  background-color: var(--footer-bg);
  font-size: 0.75rem;
  color: var(--text-color);
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Responsividade
========================= */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .secao-flex,
  .secao-flex.reverse {
    flex-direction: column;
  }

  .secao-flex .imagem-dupla {
    flex-direction: column;
    align-items: center;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .botao-cta {
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 992px) {
  .secao-flex.planos {
    flex-direction: column;
    align-items: center;
  }

  .plano {
    width: 100%;
    max-width: 320px;
  }
}
