/* Alterna a ordem visual do 1º filho num grid de 2 colunas (linhas ímpares) */
@media (min-width: 768px) {
  .alt-row > *:first-child { order: 2; }
}

/* Hero genérico de página interna (Serviços, Projetos, Carreiras, Contactos) */
.page-hero { padding: 8rem 0 4rem; border-bottom: 1px solid var(--border); }
.page-hero--tight { padding-top: 7rem; padding-bottom: 2rem; border-bottom: none; }
.page-hero h1 { font-size: 2.5rem; max-width: 48rem; line-height: 1.1; }
.page-hero p.lead { max-width: 40rem; margin-top: 1.5rem; }
@media (min-width: 768px) {
  .page-hero h1 { font-size: 3.75rem; }
}

.back-link { font-size: 0.875rem; color: var(--muted-foreground); display: inline-flex; align-items: center; gap: 0.5rem; }
.back-link:hover { color: var(--accent); }

/* Listas com bullet ponto accent -------------------------------------- */
.list-check { display: grid; gap: 0.75rem; margin: 0; padding: 0; }
.list-check li { display: flex; gap: 0.75rem; font-size: 0.9375rem; line-height: 1.6; }
.list-check li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 0.55rem;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .list-check--2col { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
}

/* Ícone circular -------------------------------------------------------- */
.icon-badge {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--accent) 10%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.icon-badge svg { width: 1.5rem; height: 1.5rem; }

/* Bloco de serviço (imagem/descrição alternados) ------------------------ */
.service-block { display: grid; gap: 2.5rem; align-items: start; }
.service-block__panel { padding: 2rem; }
.service-block__index { color: var(--accent); font-size: 0.875rem; font-family: ui-monospace, monospace; margin-bottom: 0.75rem; }
.service-block__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted-foreground); margin-bottom: 1rem; }
@media (min-width: 768px) {
  .service-block { grid-template-columns: 5fr 7fr; gap: 2.5rem; }
}

/* Card de trabalho realizado / vaga -------------------------------------- */
.work-card { overflow: hidden; display: flex; flex-direction: column; }
.work-card__img { aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover .work-card__img img { transform: scale(1.05); }
.work-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.work-card__cat { color: var(--accent); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.work-card__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.work-card__client { font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.work-card__client b { color: var(--foreground); font-weight: 500; }
.work-card__desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* CTA em bloco de cor primária ------------------------------------------ */
.cta-band { background: var(--primary); color: var(--primary-foreground); text-align: center; padding-block: 5rem; }
.cta-band h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-band p { color: color-mix(in oklch, var(--primary-foreground) 70%, transparent); max-width: 36rem; margin-inline: auto; margin-bottom: 2rem; }

.cta-band-light { background: var(--secondary); text-align: center; padding-block: 5rem; }
.cta-band-light h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-band-light p { color: var(--muted-foreground); max-width: 36rem; margin-inline: auto; margin-bottom: 2rem; }

/* Lightbox (usado nos "Serviços realizados") ----------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(0 0 0 / 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.lightbox.is-open { display: flex; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  color: rgb(255 255 255 / 0.85);
  background: rgb(255 255 255 / 0.1);
  border-radius: 999px;
  padding: 0.6rem;
  border: none;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgb(255 255 255 / 0.2); color: #fff; }
.lightbox__close { top: 1rem; right: 1rem; z-index: 2; }
.lightbox__nav--prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav svg, .lightbox__close svg { width: 1.5rem; height: 1.5rem; }

.lightbox__panel {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 72rem;
  width: 100%;
  max-height: 90vh;
  display: grid;
}
.lightbox__img { background: #000; display: flex; align-items: center; justify-content: center; max-height: 45vh; overflow: hidden; }
.lightbox__img img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__info { padding: 1.5rem; overflow-y: auto; }
.lightbox__info .cat { color: var(--accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.lightbox__info h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.lightbox__info .field-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); margin-bottom: 0.25rem; }
.lightbox__info .client-block { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.lightbox__counter { margin-top: 2rem; font-size: 0.75rem; color: var(--muted-foreground); }
@media (min-width: 768px) {
  .lightbox__panel { grid-template-columns: 3fr 2fr; max-height: 90vh; }
  .lightbox__img { max-height: 90vh; }
}

/* Ficha técnica lateral (detalhe de projeto) ----------------------------- */
.spec-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; background: color-mix(in oklch, var(--secondary) 40%, transparent); }
.spec-box h3 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 1rem; }
.spec-box dl { display: grid; gap: 0.75rem; font-size: 0.875rem; margin: 0; }
.spec-box dt { color: var(--muted-foreground); }
.spec-box dd { margin: 0; font-weight: 500; }

/* Vagas ------------------------------------------------------------------- */
.job-card {
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}
.job-card__title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.75rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.job-card__desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; max-width: 40rem; }
.job-card .btn { flex-shrink: 0; }

.benefit-card { padding: 1.5rem; }
.benefit-dot { width: 0.5rem; height: 0.5rem; background: var(--accent); border-radius: 999px; margin-bottom: 1rem; }
.benefit-card h3 { font-weight: 600; margin-bottom: 0.5rem; }
.benefit-card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* Contactos: botões de ação rápida --------------------------------------- */
.quick-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.btn-whatsapp { background: #25d366; color: #fff; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-whatsapp:hover { opacity: 0.9; }
.btn-outline { border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary-icon { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn svg { width: 1.125rem; height: 1.125rem; }

.highlight-card { padding: 1.5rem; }
.highlight-card svg { width: 1.5rem; height: 1.5rem; color: var(--accent); margin-bottom: 1rem; }
.highlight-card h3 { font-weight: 600; margin-bottom: 0.5rem; }
.highlight-card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* Layout de 2 colunas do formulário de contacto (form 3fr / sidebar 2fr) */
.contact-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 3fr 2fr; align-items: start; }
}

/* Formulário --------------------------------------------------------------- */
.form-panel { padding: 2rem; }
.form-field label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; display: block; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}
.form-field.has-error input, .form-field.has-error textarea { border-color: #dc2626; }
.form-error { font-size: 0.75rem; color: #dc2626; margin-top: 0.25rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: repeat(2, 1fr); } }
.form-alert { margin-bottom: 1.5rem; padding: 1rem; border-radius: var(--radius); font-size: 0.875rem; }
.form-alert--success { background: color-mix(in oklch, var(--accent) 10%, transparent); border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent); }
.form-alert--error { background: color-mix(in oklch, #dc2626 8%, transparent); border: 1px solid color-mix(in oklch, #dc2626 30%, transparent); color: #b91c1c; }

.contact-card { padding: 1.5rem; border-radius: var(--radius); }
.contact-card--primary { background: var(--primary); color: var(--primary-foreground); }
.contact-card--primary h3 { margin-bottom: 1rem; }
.contact-card--primary ul { display: grid; gap: 1rem; font-size: 0.875rem; }
.contact-card--primary li { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-card--primary svg { width: 1.25rem; height: 1.25rem; color: var(--accent); flex-shrink: 0; margin-top: 0.15rem; }
.contact-card--primary a:hover { color: var(--accent); }

.whatsapp-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #25d366;
  color: #fff;
  font-weight: 500;
}
.whatsapp-banner:hover { opacity: 0.9; }
.whatsapp-banner svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.whatsapp-banner small { display: block; font-weight: 400; opacity: 0.9; font-size: 0.75rem; margin-top: 0.15rem; }

/* Honeypot anti-spam (campo escondido) ------------------------------------ */
.hp-field { position: absolute; left: -9999px; top: -9999px; }
