/* =============================================
   RUPREC INDUSTRIES — style.css
   ============================================= */

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #161616;
  --green-dark: #0a2218;
  --green-mid: #0d3222;
  --accent: #c8e000;
  --accent-dim: #9eb000;
  --white: #ffffff;
  --grey: #888888;
  --grey-light: #cccccc;
  --border: rgba(255,255,255,0.08);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --nav-h: 72px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

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

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
  background: rgba(10,10,10,0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(10px);
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-light);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: var(--grey-light);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius);
}

.flag { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }

.btn-contact {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.btn-contact:hover {
  background: var(--accent);
  color: var(--black);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.92) 40%,
    rgba(10,10,10,0.55) 70%,
    rgba(10,10,10,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 680px;
  animation: fadeUp 1s 0.3s both;
}

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

.hero-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 130px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title .white { color: var(--white); }
.hero-title .accent { color: var(--accent); }

.hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey-light);
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--black);
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}
.btn-primary:hover { background: #d8f000; transform: translateY(-1px); }

.btn-outline {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--white); }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  writing-mode: vertical-lr;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--grey);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: var(--accent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* =============================================
   TICKER
   ============================================= */
.ticker-wrap {
  overflow: hidden;
  background: var(--green-dark);
  border-top: 1px solid rgba(200,224,0,0.2);
  border-bottom: 1px solid rgba(200,224,0,0.2);
  padding: 12px 0;
}

.ticker {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200,224,0,0.7);
  white-space: nowrap;
}

.ticker .sep { color: rgba(200,224,0,0.3); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  display: flex;
  background: var(--green-mid);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(200,224,0,0.05); }

.stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num sup {
  font-size: 18px;
  vertical-align: super;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.section-title .white { color: var(--white); }
.section-title .ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}
.section-title .ghost-light {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.15);
}

.section-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey-light);
  max-width: 540px;
}

.section-header { padding: 80px 80px 48px; }
.section-header.light { background: var(--green-mid); padding: 80px 80px 48px; }

/* =============================================
   EMPRESA
   ============================================= */
.section-empresa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.empresa-image {
  position: relative;
  overflow: hidden;
}

.empresa-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.empresa-image:hover img { transform: scale(1.03); }

.empresa-content {
  background: var(--dark);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.empresa-content p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

.empresa-content p strong { color: var(--white); font-weight: 500; }

.certif-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.certif-tags span {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(200,224,0,0.3);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 2px;
}

/* =============================================
   SERVIÇOS
   ============================================= */
.section-servicos {
  background: var(--dark2);
  padding-bottom: 80px;
}

.servicos-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 340px 340px;
  gap: 3px;
  padding: 0 3px 3px;
}

.servico-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.servico-card.large {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.servico-card:not(.large):nth-child(2) { grid-column: 2; grid-row: 1; }
.servico-card:not(.large):nth-child(3) { grid-column: 3; grid-row: 1; }
.servico-card:not(.large):nth-child(4) { grid-column: 2; grid-row: 2; }
.servico-card:not(.large):nth-child(5) { grid-column: 3; grid-row: 2; }

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

/* Inject background images via JS */
.servico-card[data-img] .card-bg {
  background-image: var(--card-img);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%);
  transition: background 0.3s;
}

.servico-card:hover .card-bg { transform: scale(1.05); }
.servico-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 32px;
  z-index: 2;
}

.card-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-content p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 360px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.servico-card:hover .card-content p {
  opacity: 1;
  transform: translateY(0);
}

.card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 2px;
  transition: background 0.2s;
}
.card-arrow:hover { background: var(--accent); color: var(--black); }

/* =============================================
   PROCESSO
   ============================================= */
.section-processo {
  background: var(--green-mid);
  padding-bottom: 80px;
}

.processo-timeline {
  position: relative;
  padding: 0 80px 20px;
}

.timeline-line {
  position: absolute;
  top: 32px;
  left: 80px;
  right: 80px;
  height: 1px;
  background: rgba(200,224,0,0.3);
}

.processo-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  position: relative;
}

.processo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  position: relative;
  z-index: 2;
  transition: background 0.3s;
}

.processo-step:hover .step-circle {
  background: var(--accent);
  color: var(--black);
}

.step-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.step-desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.5);
}

/* =============================================
   GALERIA
   ============================================= */
.section-galeria { background: var(--dark); padding-bottom: 80px; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 3px;
  padding: 0 3px 3px;
}

.galeria-item {
  background-size: cover;
  background-position: center;
  background-color: var(--dark2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s;
  position: relative;
}

.galeria-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200,224,0,0);
  transition: background 0.3s;
}

.galeria-item:hover { transform: scale(0.99); }
.galeria-item:hover::after { background: rgba(200,224,0,0.08); }

/* =============================================
   MÁQUINAS
   ============================================= */
.section-maquinas { background: var(--black); padding-bottom: 0; }

.maquinas-strip {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}
.maquinas-strip::-webkit-scrollbar { display: none; }

.maquina-item {
  flex: 1 1 0;
  min-width: 80px;
  height: 480px;
  background-size: cover;
  background-position: center;
  background-color: var(--dark2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}

.maquina-item:hover { flex: 0 0 320px; }

.maquina-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%);
}

.maquina-item span {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

/* =============================================
   PROJECTOS
   ============================================= */
.section-projectos { background: var(--dark2); padding-bottom: 80px; }

.projectos-strip {
  display: flex;
  width: 100%;
}

.projecto-item {
  flex: 1 1 0;
  min-width: 200px;
  height: 520px;
  background-size: cover;
  background-position: center;
  background-color: var(--dark);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s ease;
}

.projecto-item:hover { flex: 0 0 600px; }

.projecto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
  transition: background 0.3s;
}

.projecto-item:hover .projecto-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%);
}

.projecto-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 2;
}

.projecto-info h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #ffffff;
}

.projecto-info p {
  font-size: 13px;
  color: #ffffff;
}

/* =============================================
   CONTACTO
   ============================================= */
.section-contacto {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  background: var(--green-dark);
  min-height: 80vh;
}

.contacto-left {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border-right: 1px solid var(--border);
}

.contacto-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  max-width: 360px;
}

.contacto-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-icon { font-size: 18px; }

.detail-item strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 3px;
}

.detail-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.contacto-right {
  padding: 80px 60px;
  display: flex;
  align-items: center;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group select option { background: var(--dark); }

.form-group textarea { resize: vertical; min-height: 120px; }

.full-btn { width: 100%; text-align: center; padding: 16px; font-size: 14px; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 80px;
  border-bottom: 1px solid var(--border);
  gap: 40px;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo { height: 32px; width: auto; }

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--grey);
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--grey);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 80px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--grey);
}

.footer-certs {
  display: flex;
  gap: 12px;
}

.footer-certs span {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--grey);
  padding: 4px 10px;
  border-radius: 2px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .section-empresa { grid-template-columns: 1fr; }
  .empresa-image { height: 400px; }
  .processo-steps { grid-template-columns: repeat(4, 1fr); }
  .section-contacto { grid-template-columns: 1fr; }
  .contacto-left { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-top { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 768px) {
  #navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-right .btn-contact { display: none; }
  .hamburger { display: flex; }

  .hero-content { padding: 0 24px; }
  .stats-bar { flex-wrap: wrap; }
  .stat { flex: 0 0 50%; }
  .section-header { padding: 60px 24px 32px; }
  .section-header.light { padding: 60px 24px 32px; }
  .servicos-grid { grid-template-columns: 1fr; }
  .servico-card.wide { grid-column: auto; }
  .galeria-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 200px); }
  .processo-timeline { padding: 0 24px 20px; }
  .timeline-line { left: 24px; right: 24px; }
  .processo-steps { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .contacto-left, .contacto-right { padding: 48px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top, .footer-bottom { padding: 40px 24px; }
  .footer-links { gap: 24px; }
  .scroll-hint { display: none; }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================
   GALERIA PAINEL (expansão dos cards)
   ============================================= */
.galeria-painel {
  display: none;
  background: var(--dark2);
  border-top: 2px solid var(--accent);
  padding: 60px 80px;
  animation: painelOpen 0.4s ease;
}

.galeria-painel.aberto {
  display: block;
}

@keyframes painelOpen {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.galeria-painel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.galeria-painel-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.galeria-painel-titulo h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.galeria-painel-titulo p {
  font-size: 14px;
  color: var(--grey-light);
  max-width: 500px;
  line-height: 1.6;
}

.galeria-painel-fechar {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--grey-light);
  padding: 10px 20px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
  margin-top: 4px;
}

.galeria-painel-fechar:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.galeria-painel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px;
}

.galeria-painel-grid .painel-foto {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--dark);
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
  border-radius: var(--radius);
  overflow: hidden;
}

.galeria-painel-grid .painel-foto:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.aberto {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-fechar {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 32px;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-fechar:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 16px;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Cards clickable cursor */
.servico-card,
.projecto-item { cursor: pointer; }

.servico-card.ativo .card-arrow,
.maquina-item.ativo,
.projecto-item.ativo { outline: 2px solid var(--accent); }

.servico-card.ativo .card-arrow {
  background: var(--accent);
  color: var(--black);
  content: '−';
}

@media (max-width: 768px) {
  .galeria-painel { padding: 40px 24px; }
  .galeria-painel-header { flex-direction: column; gap: 16px; }
  .galeria-painel-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   CONTACTO — botões de email
   ============================================= */
.section-contacto {
  background: var(--green-dark);
  padding: 80px;
}

.contacto-inner {
  max-width: 860px;
  margin: 0 auto;
}

.contacto-botoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
}

.contacto-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, background 0.2s;
  color: var(--white);
}

.contacto-card:hover {
  border-color: var(--accent);
  background: rgba(200,224,0,0.06);
}

.contacto-card-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.contacto-card-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacto-card-texto strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.contacto-card-texto span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.contacto-card-texto p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

.contacto-card-arrow {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.contacto-card:hover .contacto-card-arrow {
  transform: translateX(4px);
}

.contacto-details {
  display: flex;
  gap: 40px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .section-contacto { padding: 60px 24px; }
  .contacto-botoes { grid-template-columns: 1fr; }
  .contacto-details { flex-direction: column; gap: 20px; }
}

/* =============================================
   FULLSCREEN OVERLAY
   ============================================= */
.fs-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}

.fs-overlay.aberto {
  opacity: 1;
  pointer-events: all;
}

.fs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 80px 36px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 10;
}

.fs-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.fs-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.fs-header p {
  font-size: 14px;
  color: var(--grey-light);
  max-width: 500px;
  line-height: 1.6;
}

.fs-fechar {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--grey-light);
  padding: 12px 24px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}

.fs-fechar:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 4px;
  padding: 4px;
  flex: 1;
}

.fs-grid .painel-foto {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--dark2);
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
}

.fs-grid .painel-foto:hover {
  transform: scale(1.01);
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .fs-header { padding: 32px 24px 24px; flex-direction: column; gap: 16px; }
  .fs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   LANG SWITCHER DROPDOWN
   ============================================= */
.lang-switch {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 90px;
  z-index: 100;
}

.lang-switch.aberto .lang-dropdown { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey-light);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.lang-option:hover {
  background: rgba(200,224,0,0.08);
  color: var(--accent);
}

.lang-option.activo { color: var(--accent); }

/* =============================================
   FULLSCREEN OVERLAY — NOVO LAYOUT
   ============================================= */

/* Hero do overlay */
.fs-hero {
  position: relative;
  height: 50vh;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--dark2);
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.fs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.3) 60%);
}

.fs-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 80px;
}

.fs-hero-content .fs-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.fs-hero-content h2 {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 0.9;
  margin: 0;
}

.fs-titulo2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  -webkit-text-stroke: 0;
  line-height: 0.9;
  margin: 0;
}

.fs-fechar {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 10;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.fs-fechar:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

/* Corpo */
.fs-body {
  background: var(--black);
  flex: 1;
}

/* Info (descrição + bullets) */
.fs-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 80px;
  border-bottom: 1px solid var(--border);
}

.fs-info-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fs-info-left p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

.fs-info-left p strong { color: var(--white); font-weight: 500; }

.fs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.fs-tags span {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(200,224,0,0.3);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 2px;
}

.fs-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fs-bullets li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}

.fs-bullets li:hover {
  background: rgba(200,224,0,0.05);
  border-color: rgba(200,224,0,0.2);
}

.fs-bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Galeria */
.fs-galeria-wrap {
  padding: 60px 80px;
  border-bottom: 1px solid var(--border);
}

.fs-galeria-titulo {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 32px;
  line-height: 1;
}

.fs-galeria-titulo .white { color: var(--white); }
.fs-galeria-titulo .ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}

.fs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 4px;
}

.fs-grid .painel-foto {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--dark2);
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
}

.fs-grid .painel-foto:hover {
  transform: scale(1.01);
  filter: brightness(1.1);
}

/* CTA */
.fs-cta {
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.fs-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
}

.fs-cta p {
  font-size: 15px;
  color: var(--grey-light);
  max-width: 480px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .fs-hero-content { padding: 32px 24px; }
  .fs-info { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
  .fs-galeria-wrap { padding: 40px 24px; }
  .fs-grid { grid-template-columns: repeat(2, 1fr); }
  .fs-cta { padding: 48px 24px; }
}

/* Bullets projectos no overlay */
.fs-bullets-proj {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
}

.fs-bullets-proj li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.fs-bullets-proj li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 16px;
}

/* =============================================
   MOBILE FIXES
   ============================================= */
@media (max-width: 768px) {

  /* Hero */
  .hero-content { padding: 0 24px; max-width: 100%; }
  .hero-title { font-size: clamp(56px, 16vw, 90px); }

  /* Navbar */
  #navbar { padding: 0 20px; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    padding: 24px;
    gap: 20px;
    z-index: 999;
    border-bottom: 1px solid var(--border);
  }

  /* Stats */
  .stats-bar { flex-wrap: wrap; }
  .stat { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.06); }

  /* Empresa */
  .section-empresa { grid-template-columns: 1fr; }
  .empresa-image { height: 300px; }
  .empresa-content { padding: 40px 24px; }

  /* Serviços */
  .section-header { padding: 48px 24px 32px; }
  .servicos-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .servico-card.large { grid-column: auto; grid-row: auto; }
  .servico-card:not(.large):nth-child(2),
  .servico-card:not(.large):nth-child(3),
  .servico-card:not(.large):nth-child(4),
  .servico-card:not(.large):nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }
  .servico-card { min-height: 260px; }

  /* Processo */
  .processo-timeline { padding: 0 24px 20px; }
  .timeline-line { left: 24px; right: 24px; }
  .processo-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Máquinas */
  .maquinas-strip { overflow-x: auto; }
  .maquina-item { flex: 0 0 140px; height: 320px; }
  .maquina-item:hover { flex: 0 0 240px; }

  /* Projetos */
  .projectos-strip { flex-direction: column; }
  .projecto-item { flex: none; width: 100%; height: 280px; }
  .projecto-item:hover { flex: none; }

  /* Contacto */
  .section-contacto { padding: 48px 24px; }
  .contacto-botoes { grid-template-columns: 1fr; }
  .contacto-details { flex-direction: column; gap: 16px; }

  /* Footer */
  .footer-top { padding: 40px 24px; flex-direction: column; }
  .footer-bottom { padding: 20px 24px; flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { flex-wrap: wrap; gap: 24px; }

  /* Overlay */
  .fs-hero-content { padding: 24px; }
  .fs-hero-content h2 { font-size: clamp(32px, 8vw, 56px); }
  .fs-titulo2 { font-size: clamp(20px, 5vw, 36px); }
  .fs-info { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .fs-galeria-wrap { padding: 32px 24px; }
  .fs-grid { grid-template-columns: repeat(2, 1fr); }
  .fs-cta { padding: 40px 24px; }
  .fs-fechar { top: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(48px, 14vw, 72px); }
  .stat { flex: 0 0 100%; }
  .processo-steps { grid-template-columns: repeat(2, 1fr); }
  .fs-grid { grid-template-columns: 1fr; }
}

/* =============================================
   MAQUINA INFO BAR
   ============================================= */
.maquina-tooltip { display: none; }

.maquina-info-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--dark2);
  border-top: 2px solid var(--accent);
  padding: 20px 40px;
  min-height: 64px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.maquina-info-bar.visivel { opacity: 1; }

.maquina-info-nome {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  min-width: 140px;
}

.maquina-info-medidas {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.maquina-info-medidas span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
}

.maquina-info-medidas span em {
  font-style: normal;
  color: var(--grey);
  margin-right: 4px;
}

/* =============================================
   EMPRESA BULLETS
   ============================================= */
.empresa-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}

.empresa-bullets li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding: 12px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}

.empresa-bullets li:hover {
  background: rgba(200,224,0,0.05);
  border-color: rgba(200,224,0,0.2);
}

.empresa-bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
