/* ============================================================
   HYPETEX — Folha de estilos partilhada
   Paleta: aço/grafite industrial + acento cian-técnico
   Tipografia: Space Grotesk (display) + Inter (corpo)
   ============================================================ */

:root {
  --ink:        #1c232c;   /* marinho escuro */
  --ink-2:      #2b333c;   /* aço */
  --paper:      #f5f6f4;   /* branco-máquina */
  --paper-2:    #eceee9;
  --line:       #d5d8d2;
  --muted:      #6a7178;
  --accent:     #0aa4bf;   /* cian técnico */
  --accent-2:   #ff5a1f;   /* laranja de sinalização */
  --accent-ink: #067c92;
  --accent-light: #6fd8ec;  /* cian claro, para fundos escuros */
  --white:      #ffffff;
  --radius:     3px;
  --maxw:       1180px;
  --shadow:     0 1px 3px rgba(20,24,29,.08), 0 8px 30px rgba(20,24,29,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* eyebrow / labels técnicos */
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #191919;   /* cinzento escuro, sólido */
  border-bottom: 2px solid var(--white);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 12px;
}
.brand .dot { color: var(--accent); }
.brand small {
  display: block; font-size: 9px; letter-spacing: 0.22em;
  font-weight: 500; color: var(--muted); text-transform: uppercase;
  margin-top: 2px;
}
.brand { flex-shrink: 0; }
.brand-logo { height: 29px; width: auto; max-width: none; flex-shrink: 0; display: block; }
.site-footer .brand-logo-chip {
  display: inline-flex; background: var(--paper); padding: 8px 12px;
  border-radius: var(--radius); margin-bottom: 8px;
}
.site-footer .brand-logo-chip .brand-logo { height: 21px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--white);
  padding: 6px 0; position: relative; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-light); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--accent-light);
}
.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 10px 18px !important; border-radius: var(--radius);
  font-weight: 600; transition: background .2s;
}
.nav-cta:hover { background: var(--accent-light); color: var(--ink) !important; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 14px; padding: 13px 24px; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent; transition: all .2s;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 16px 30px; font-size: 15px; }

/* ---------- Hero / slider ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--white);
  padding: 0; /* anula o padding vertical genérico de section */
}
/* ocupa todo o ecrã visível, descontando o cabeçalho fixo.
   --header-h é medido em app.js para acompanhar mudanças de altura do cabeçalho */
.hero-slider {
  position: relative;
  height: calc(100vh - var(--header-h, 71px));
  height: calc(100dvh - var(--header-h, 71px)); /* evita o salto das barras do browser no telemóvel */
  min-height: 480px;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s ease; display: flex; align-items: center;
}
/* texto de todos os slides: alinhado à esquerda, a começar a 1/4 do ecrã,
   com o centro a 78% da altura. Ajuste top e padding-left para afinar. */
.hero-slide > .wrap {
  position: absolute; left: 0; right: 0; transform: translateY(-50%);
  top: 71%;             /* deixa folga para os pontos de navegação */
  max-width: none;      /* liberta o texto da largura do conteúdo */
  padding-left: 10vw;   /* afastamento da margem esquerda */
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide .slide-visual {
  position: absolute; inset: 0; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
/* foto/vídeo do slide: preenche sempre o painel sem deformar */
.hero-slide .slide-visual img,
.hero-slide .slide-visual video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* caixa de cor por trás do texto: garante leitura sobre qualquer fotografia */
.hero-slide .slide-caption {
  position: relative; z-index: 2; max-width: 720px; margin: 0; text-align: left;
  display: inline-block;
  background: rgba(15, 18, 22, .42);
  backdrop-filter: blur(3px);   /* mantém a leitura mesmo com pouca opacidade */
  padding: 30px 34px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.hero-slide .slide-caption .eyebrow { justify-content: flex-start; }
.hero-slide .slide-caption h2 { font-size: clamp(32px, 5vw, 54px); margin: 16px 0 16px; color: var(--white); }
.hero-slide .slide-caption h2 .hl { color: var(--accent); }
.hero-slide .slide-caption p { font-size: 17px; color: var(--white); max-width: 560px; margin: 0; }
/* logótipo de marca sobre a imagem, ao centro e junto ao topo */
.hero-slide .slide-brand {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  width: clamp(156px, 18vw, 260px); height: auto; z-index: 3;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
}

/* texto solto no topo da imagem, opcional por slide (sem caixa) */
.hero-slide > .wrap.slide-top {
  top: 0; transform: none;
  padding-top: 128px;
}
.hero-slide .slide-headline {
  max-width: 640px; margin: 0; text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(19px, 2vw, 25px); line-height: 1.35; font-weight: 500;
  color: var(--white);
}
.hero-slide .slide-headline strong {
  display: block;
  font-family: 'Anton', 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4.2vw, 62px);
  font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 1.02;
  white-space: nowrap;   /* uma linha só; encolhe abaixo se não couber */
  color: var(--white);
  margin-bottom: 14px;
}
.hero-slide .eyebrow { color: #6fd8ec; }
.hero-slide .eyebrow::before { background: var(--accent); }

.hero-dots {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 3;
  display: flex; gap: 10px;
  /* area folgada a volta dos pontos, para o rato os apanhar com facilidade */
  padding: 12px 18px;
}
.hero-dot {
  width: 26px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3);
  border: none; cursor: pointer; padding: 0; transition: background .2s;
}
.hero-dot.is-active { background: var(--accent); }
/* setas ocultas: navegação pelos pontos e por swipe no telemóvel */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(20,24,29,.4); color: var(--white); cursor: pointer;
  align-items: center; justify-content: center; transition: background .2s, border-color .2s;
  display: none;
}
.hero-arrow:hover { background: rgba(20,24,29,.7); border-color: rgba(255,255,255,.5); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* ---------- Secções ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

.bg-alt { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink .section-head p { color: #a5acb2; }

/* ---------- Pilares / serviços ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillars > *, .prod-grid > *, .info-cards > *, .course-grid > *, .value-grid > * { min-width: 0; }
.pillar {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pillar:hover::before { transform: scaleX(1); }
.pillar .ico {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--paper-2); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--accent-ink);
}
.pillar h3 { font-size: 20px; margin-bottom: 10px; }
.pillar p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.pillar .lnk { font-size: 13px; font-weight: 600; color: var(--accent-ink); font-family: 'Space Grotesk', sans-serif; }
.pillar .lnk::after { content: " →"; }

/* ---------- Grelha de produtos ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.prod-thumb {
  aspect-ratio: 4/3; background: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  color: #5c666e; position: relative; overflow: hidden;
}
.prod-thumb svg { width: 60px; height: 60px; color: var(--accent); opacity: .9; }
.prod-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* fotos inteiras, sem cortes: a sobra fica a branco (igual ao fundo das fotos com transparencia) */
.prod-thumb:has(img), .gallery-main:has(img), .gallery-thumb:has(img) { background: #fff; }
.prod-thumb .tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--white);
  font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 2px;
  font-family: 'Space Grotesk', sans-serif; letter-spacing: .04em;
}
.prod-body { padding: 20px 22px 24px; }
.prod-body .cat { font-size: 12px; color: var(--accent-ink); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.prod-body h3 { font-size: 19px; margin: 8px 0 8px; }
.prod-body p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

/* ---------- CTA faixa ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent-ink), var(--accent));
  color: var(--white); border-radius: var(--radius);
  padding: 52px 48px; display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 30px; max-width: 560px; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 8px; }
.cta-band .btn-primary { background: var(--white); color: var(--accent-ink); }
.cta-band .btn-primary:hover { background: var(--ink); color: var(--white); }

/* ---------- Formulário ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 110px; }

/* Paginas de produto: formulario de pedido mais perto do produto */
section:has(> .wrap > .detail) { padding-bottom: 36px; }
section:has(> .wrap > .detail) + section.bg-alt { padding: 36px 0; }
#pedido { padding-top: 36px; }
#pedido .section-head { margin-bottom: 20px; }
#pedido .section-head h2 { font-size: clamp(22px, 3vw, 28px); margin: 8px 0 6px; }
#pedido .section-head p { font-size: 15px; }

/* ---------- Info cards contactos ---------- */
.info-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 40px; }
.info-card {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.info-card .ico { color: var(--accent-ink); margin-bottom: 14px; }
.info-card h3 { font-size: 16px; margin-bottom: 8px; }
.info-card p { font-size: 14.5px; color: var(--muted); }
.info-card .hint { display: block; font-size: 12px; color: var(--accent-ink); font-weight: 600; margin-top: 10px; font-family: 'Space Grotesk', sans-serif; }

/* ---------- Página interior: cabeçalho ---------- */
.page-head {
  background: var(--ink); color: var(--white); padding: 22px 0;
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 20px);
}
.page-head .eyebrow { color: #6fd8ec; position: relative; z-index: 2; display: flex; font-size: 10px; line-height: 1.3; }
.page-head h1 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.1; margin: 6px 0 0; position: relative; z-index: 2; }
.page-head p { color: #b8bec4; max-width: 620px; font-size: 17px; position: relative; z-index: 2; }
.crumb { font-size: 12px; line-height: 1.35; color: #8b929a; margin-bottom: 5px; position: relative; z-index: 2; }
.crumb a:hover { color: var(--accent); }

/* ---------- Filtros ---------- */
.filters {
  display: flex; gap: 10px; margin-bottom: 40px; /* +2px de padding = 42px ate aos produtos */
  /* sempre numa so linha; se nao couber (telemovel), desliza para o lado */
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px;
}
.filters::-webkit-scrollbar { display: none; }
/* faixa azul -> botoes = botoes -> produtos (42px; 30px no telemovel) */
section:has(> .wrap > .filters) { padding-top: 42px; }
.filters .chip { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 640px) {
  /* a linha vai de ponta a ponta do ecra, para se perceber que ha mais botoes */
  .filters { gap: 6px; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; margin-bottom: 28px; }
  section:has(> .wrap > .filters) { padding-top: 30px; }
  .filters .chip { padding: 7px 12px; font-size: 12px; }
}
.chip {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 40px;
  background: var(--white); cursor: pointer; transition: all .2s; color: var(--ink-2);
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Listas de features ---------- */
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.feature-list li::before {
  content: "→"; color: var(--accent); font-weight: 700; flex-shrink: 0;
}

/* ---------- Perguntas frequentes ---------- */
.faq .wrap { max-width: 860px; }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: clamp(20px, 2.4vw, 24px); margin-bottom: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 10px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; position: relative;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }
.faq-mais { margin-top: 10px; color: var(--muted); }
.faq-group { scroll-margin-top: calc(var(--header-h, 71px) + 16px); }
.faq-callout {
  margin-top: 48px; padding: 30px 32px; background: var(--white);
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius);
  display: grid; gap: 18px;
}
.faq-callout h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 10px 0 8px; }
.faq-callout p { color: var(--muted); max-width: 640px; }
.faq-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.faq-links a {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 40px;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.faq-links a:hover { border-color: var(--accent); color: var(--accent-ink); }
.faq-callout .btn { justify-self: start; }
@media (max-width: 640px) { .faq-callout { padding: 22px 18px; margin-top: 32px; } }
.faq-mais a { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 640px) {
  .faq-item summary { padding: 14px 42px 14px 16px; font-size: 15px; }
  .faq-item summary::after { right: 16px; }
  .faq-item p { padding: 0 16px 16px; font-size: 14px; }
}

/* ---------- Paginas legais ---------- */
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); }
.legal a { color: var(--accent-ink); }
.legal .legal-data { margin-top: 32px; font-size: 13px; }

/* ---------- Split (imagem + texto) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .media {
  aspect-ratio: 4/3; background: var(--ink-2); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #5c666e;
  font-family: 'Space Grotesk', sans-serif; letter-spacing: .08em; text-transform: uppercase; font-size: 12px;
}
.split .media svg { width: 84px; height: 84px; color: var(--accent); opacity: .9; }
.split h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 16px; }

/* ---------- Formações (cards) ---------- */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.course-card {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.course-card .lvl {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); font-family: 'Space Grotesk', sans-serif; margin-bottom: 12px;
}
.course-card h3 { font-size: 21px; margin-bottom: 10px; }
.course-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.course-meta { display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 16px; }
.course-meta span { display: flex; align-items: center; gap: 6px; }

/* ---------- Valores / stats faixa ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-item { padding: 4px; }
.value-item .n { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700; color: var(--accent); }
.value-item h3 { font-size: 18px; margin: 6px 0 8px; }
.value-item p { font-size: 14px; color: var(--muted); }
.bg-ink .value-item p { color: #a5acb2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb4ba; padding: 32px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 22px; }
.footer-grid > * { min-width: 0; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer h4 { color: var(--white); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; font-family: 'Space Grotesk', sans-serif; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer li a, .site-footer p { font-size: 14px; color: #aeb4ba; }
.site-footer li a:hover { color: var(--accent); }
.footer-desc { font-size: 14px; color: #8b929a; max-width: 280px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 36px; height: 36px; border: 1px solid #333c44; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: #aeb4ba; transition: all .2s;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #2a323a; padding-top: 14px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #7b838b;
}
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Newsletter mini ---------- */
.nl-form { display: flex; gap: 8px; margin-top: 14px; }
.nl-form input {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #333c44; border-radius: var(--radius);
  background: #1c2228; color: var(--white); font-family: inherit; font-size: 14px;
}
.nl-form input::placeholder { color: #6b727a; }
.nl-form button { padding: 11px 18px; }

/* ---------- Página de detalhe (produto / serviço / formação) ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.gallery-main {
  aspect-ratio: 4/3; background: var(--ink-2); border-radius: var(--radius);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .ph {
  display: flex; flex-direction: column; align-items: center; gap: 12px; color: #5c666e;
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.gallery-main .ph svg { width: 74px; height: 74px; color: var(--accent); opacity: .9; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs:empty { display: none; }
.gallery-thumb {
  aspect-ratio: 1/1; background: var(--ink-2); border: 2px solid transparent;
  border-radius: var(--radius); overflow: hidden; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; transition: border-color .2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb svg { width: 26px; height: 26px; color: var(--accent); opacity: .75; }
.gallery-thumb:hover { border-color: var(--muted); }
.gallery-thumb.is-active { border-color: var(--accent); }

.detail-info .cat {
  font-size: 12px; color: var(--accent-ink); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.detail-info h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 10px 0 14px; }
.detail-info .lead { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.spec-table th { color: var(--muted); font-weight: 500; width: 46%; }
.spec-table td { font-weight: 500; }
/* etiqueta de estado (Novo, Usado, Em stock...) */
.estado-tag {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--white); background: var(--accent-ink);
  padding: 4px 9px; border-radius: 40px;
}

/* preco */
.detail-preco {
  font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700;
  color: var(--ink); margin: -4px 0 14px;
}
.card-preco {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 14px;
}

/* video incorporado */
.detail-video { margin-top: 44px; }
.detail-video iframe {
  width: 100%; aspect-ratio: 16/9; border: 0;
  border-radius: var(--radius); display: block; background: var(--ink-2);
}

/* listagem sem fichas */
.grelha-vazia {
  grid-column: 1 / -1; margin: 0; padding: 44px 30px; text-align: center;
  color: var(--muted); font-size: 16px; line-height: 1.6;
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius);
}

.spec-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px;
}

@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Notas / avisos ---------- */
.notice {
  background: #fff8ee; border: 1px solid #f0d9b5; border-left: 3px solid var(--accent-2);
  border-radius: var(--radius); padding: 16px 20px; font-size: 14px; color: #7a5a20;
  margin-top: 20px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .prod-grid, .info-cards, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split .media { order: -1; }
}
/* menu recolhido (botao ☰) ate 960px: com 8 entradas o menu nao cabe numa linha em tablets */
@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: #191919; flex-direction: column; align-items: stretch;
    gap: 0; padding: 10px 24px 24px; border-bottom: 1px solid rgba(0,0,0,.35);
    transform: translateY(-140%); transition: transform .3s; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links a.active::after { display: none; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .pillars, .prod-grid, .info-cards, .value-grid, .course-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  /* rodape no telemovel: so logotipo + Contacto; sem Empresa/Servicos; links legais em letra pequena */
  .footer-grid > :nth-child(2), .footer-grid > :nth-child(3) { display: none; }
  .footer-bottom { font-size: 11.5px; gap: 4px 16px; }
  /* "Contacto" alinhado com a 1.a linha de "Sediados em Barcelos" (abaixo do logotipo) */
  .footer-grid > :last-child { padding-top: 49px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 28px; }
  section { padding: 60px 0; }
  .hero-arrow { width: 36px; height: 36px; }
  /* telemovel: slides a 75% da altura do ecra (no computador ocupam o ecra todo) */
  .hero-slider { height: 75vh; height: 75dvh; min-height: 420px; }
  .hero-slide > .wrap { padding-left: 16px; top: 72%; }
  .hero-slide .slide-caption { padding: 20px 20px; border-left-width: 3px; }
  .hero-slide > .wrap.slide-top { padding-top: 88px; }
  /* texto dos slides preso ao fundo (acima dos pontos), para caber mesmo em ecras baixos */
  .hero-slide > .wrap, .hero-slide > .wrap.slide-top { top: auto; bottom: 52px; transform: none; padding-top: 0; }
  .hero-slide .slide-caption h2 { font-size: 30px; }
  .hero-slide .slide-caption p { font-size: 15px; }

  /* cartões a duas colunas: compactar para caber no ecrã do telemóvel */
  .wrap { padding: 0 16px; }
  .pillar { padding: 18px 14px; }
  .pillar .ico { width: 38px; height: 38px; margin-bottom: 12px; }
  .pillar h3 { font-size: 16px; }
  .pillar p { font-size: 13px; margin-bottom: 12px; }
  .pillar .lnk { font-size: 12px; }
  .prod-body { padding: 14px 14px 18px; }
  .prod-body h3 { font-size: 15px; }
  .prod-body p { font-size: 13px; }
  .prod-body .cat { font-size: 11px; }
  .prod-thumb .tag { font-size: 10px; padding: 3px 7px; top: 8px; left: 8px; }
  /* produtos (maquinas, consumiveis, usados): um por linha no telemovel,
     com texto em tamanho normal ja que o cartao ocupa a largura toda */
  .prod-grid { grid-template-columns: 1fr; gap: 18px; }
  .prod-grid .prod-body { padding: 18px 18px 22px; }
  .prod-grid .prod-body h3 { font-size: 18px; }
  .prod-grid .prod-body p { font-size: 14px; }
  .prod-grid .prod-body .cat { font-size: 12px; }
  .prod-grid .prod-thumb .tag { font-size: 11px; padding: 4px 9px; top: 12px; left: 12px; }
  .info-card { padding: 16px 14px; }
  .info-card p { font-size: 13px; }
  .course-card { padding: 18px 14px; }
  .course-card h3 { font-size: 17px; }
  .course-card p { font-size: 13px; }
  .course-meta { flex-direction: column; gap: 6px; font-size: 12px; }
  .value-item .n { font-size: 30px; }
  .btn { padding: 11px 16px; font-size: 13px; }
}
