/* ViField: estilos específicos da homepage (index.html). */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--sp-8) 5rem;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vf-green-800);
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  position: relative;
}

.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--vf-green-400);
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--vf-green-950);
  margin-bottom: var(--sp-2);
  position: relative;
  max-width: 820px;
}

.hero-title em {
  font-style: normal;
  color: var(--vf-green-600);
}

.hero-model {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vf-text-muted);
  margin-bottom: var(--sp-6);
  position: relative;
}

.hero-desc {
  font-size: 1rem;
  color: var(--vf-text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin: 0 auto var(--sp-8);
  position: relative;
}

.hero-cta {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vf-text-muted);
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--vf-green-600), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ── TECHNOLOGY CARDS ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.tech-card {
  background: white;
  border: 1px solid var(--vf-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: box-shadow .2s, transform .2s;
}

.tech-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  transform: translateY(-2px);
}

.tech-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--vf-green-100);
  border: 1px solid var(--vf-green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--vf-green-800);
}

.tech-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--vf-green-950);
}

.tech-card p {
  font-size: 13.5px;
  color: var(--vf-text-muted);
  line-height: 1.7;
}

/* ── INDUSTRIES ── */
.industry-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.industry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--vf-border);
}

.industry-row:first-child { border-top: none; padding-top: 0; }
.industry-row.reverse { direction: rtl; }
.industry-row.reverse > * { direction: ltr; }

.industry-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--vf-border);
  background: var(--vf-neutral-100);
  aspect-ratio: 16 / 10;
}

.industry-media video,
.industry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.industry-text .section-label { margin-bottom: var(--sp-2); }

.industry-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--vf-green-950);
  margin-bottom: var(--sp-3);
}

.industry-text p {
  font-size: 14.5px;
  color: var(--vf-text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-6);
  max-width: 46ch;
}

.pill-row {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

.pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vf-green-800);
  background: var(--vf-green-100);
  border: 1px solid var(--vf-green-200);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.industry-cta {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ── SOLUTIONS / PRODUCT ── */
.product-card {
  background: white;
  border: 1px solid var(--vf-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.product-media {
  position: relative;
  overflow: hidden;
  background: var(--vf-neutral-100);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.product-card:hover .product-media img { transform: scale(1.03); }

.product-info {
  padding: var(--sp-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-6);
}

.product-info .section-label { margin-bottom: 0; }

.product-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--vf-green-950);
  line-height: 1.1;
}

.product-desc {
  font-size: 14.5px;
  color: var(--vf-text-muted);
  line-height: 1.75;
}

.product-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.product-specs li {
  font-size: 13.5px;
  color: var(--vf-text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.spec-check {
  width: 18px;
  height: 18px;
  border-radius: var(--r-sm);
  background: var(--vf-green-100);
  border: 1px solid var(--vf-green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-check svg { width: 10px; height: 10px; }

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.team-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  aspect-ratio: 4 / 4.35;
  border-radius: 0;
  background: var(--vf-neutral-100);
  border: 1px solid var(--vf-border);
  isolation: isolate;
  cursor: default;
}

.team-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .5s ease, filter .35s ease;
}

.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 20, 10, .78) 0%, rgba(0, 20, 10, .28) 42%, rgba(0, 20, 10, 0) 72%);
  opacity: .88;
  transition: opacity .35s ease, background .35s ease;
}

.team-card:hover img,
.team-card:focus-within img {
  transform: scale(1.045);
  filter: brightness(.72);
}

.team-card:hover::after,
.team-card:focus-within::after {
  opacity: 1;
  background: linear-gradient(to top, rgba(0, 20, 10, .92) 0%, rgba(0, 20, 10, .58) 56%, rgba(0, 20, 10, .12) 100%);
}

.team-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--sp-6);
  color: white;
  transform: translateY(calc(100% - 96px));
  transition: transform .38s ease;
}

.team-card:hover .team-overlay,
.team-card:focus-within .team-overlay {
  transform: translateY(0);
}

.team-name {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: white;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .28);
  margin-bottom: var(--sp-2);
}

.team-bio {
  font-size: 13px;
  color: rgba(255, 255, 255, .86);
  line-height: 1.65;
  max-width: 34ch;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease .06s, transform .3s ease .06s;
}

.team-card:hover .team-bio,
.team-card:focus-within .team-bio {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .team-overlay {
    transform: translateY(0);
  }

  .team-bio {
    opacity: 1;
    transform: none;
  }
}

/* Spin-off note */
.spinoff-note {
  background: var(--vf-green-50);
  border: 1px solid var(--vf-green-200);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-12);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  margin-top: var(--sp-8);
}

.spinoff-note-text {
  flex: 1;
}

.spinoff-note-text p {
  font-size: 14px;
  color: var(--vf-text-muted);
  line-height: 1.7;
}

.spinoff-logos {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-shrink: 0;
}

.spinoff-logos img {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  filter: saturate(0.2) brightness(0.5);
}

/* ── CONTACT ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact-info .section-title { margin-bottom: var(--sp-4); }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--vf-green-100);
  border: 1px solid var(--vf-green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--vf-green-800);
}

.contact-item-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--vf-text-muted);
  margin-bottom: 2px;
}

.contact-item-val {
  font-size: 14px;
  color: var(--vf-text);
  font-weight: 500;
}

.contact-item-val a { color: var(--vf-green-800); }
.contact-item-val a:hover { color: var(--vf-green-600); }

/* Contact form */
.contact-form-card {
  background: white;
  border: 1px solid var(--vf-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
}

.form-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--vf-green-950);
  margin-bottom: var(--sp-1);
}

.form-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--vf-text-muted);
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}

.form-group { margin-bottom: var(--sp-4); }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--vf-text);
  margin-bottom: var(--sp-2);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--vf-border);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--vf-bg);
  color: var(--vf-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--vf-green-600);
  box-shadow: 0 0 0 3px var(--vf-green-100);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--vf-neutral-400);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.submit-btn {
  width: 100%;
  background: var(--vf-green-950);
  color: white;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -.01em;
  padding: 12px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .15s, transform .12s;
  margin-top: var(--sp-2);
}

.submit-btn:hover { background: var(--vf-green-800); transform: translateY(-1px); }

.form-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--vf-text-muted);
  text-align: center;
  margin-top: var(--sp-3);
  letter-spacing: .04em;
}

.form-note a { color: var(--vf-green-800); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-row, .industry-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: var(--sp-6); }
  .product-card { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 16/9; min-height: 260px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .spinoff-note { flex-direction: column; gap: var(--sp-4); }
  .spinoff-logos { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .tech-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Fotografia da equipa clicável (link opcional) */
.team-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vf-green-200);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
  margin: -2px 0 var(--sp-2);
}
