/* Vellaris Group — tipografia: Poppins (pesos variados) */

html {
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 3px;
}

html::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 2px;
}

html::-webkit-scrollbar-track {
  background: var(--navy);
}

.vg-root {
  --navy: #080f1f;
  --navy-mid: #0d1a30;
  --navy-light: #142240;
  --orange: #e8621a;
  --orange-light: #f07a35;
  --cream: #f4f1ec;
  --cream-dim: rgba(244, 241, 236, 0.55);
  --cream-faint: rgba(244, 241, 236, 0.1);
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  font-family: var(--font);
  font-weight: 300;
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100%;
}

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

/* NAV */
.vg-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(8, 15, 31, 0.97);
  border-bottom: 1px solid rgba(244, 241, 236, 0.06);
}

.vg-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.vg-logo:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.vg-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .vg-logo-img {
    height: 32px;
  }
}

.vg-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.vg-nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}

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

.vg-nav-cta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(232, 98, 26, 0.4);
  padding: 7px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.vg-nav-cta:hover {
  background: var(--orange);
  color: var(--navy);
}

/* HERO */
.vg-hero {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 32px 80px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  text-align: center;
}

.vg-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 85% 50%, rgba(232, 98, 26, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 35% 45% at 15% 75%, rgba(13, 26, 48, 0.8) 0%, transparent 60%);
  pointer-events: none;
}

.vg-hero-line {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(232, 98, 26, 0.6), transparent);
}

.vg-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  width: 100%;
  max-width: 720px;
}

.vg-h1 {
  font-family: var(--font);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 720px;
  width: 100%;
}

.vg-h1 em {
  font-style: italic;
  color: var(--orange);
}

.vg-h1-strong {
  font-style: normal;
  font-weight: 700;
  color: var(--orange);
}

.vg-hero-sub {
  margin-top: 28px;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--cream-dim);
  max-width: 520px;
  width: 100%;
}

.vg-hero-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.vg-btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  padding: 13px 32px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.vg-btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
}

.vg-btn-ghost {
  color: var(--cream-dim);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 236, 0.25);
  padding-bottom: 2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500;
  transition: all 0.2s;
}

.vg-btn-ghost:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

.vg-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vg-scroll-line {
  width: 32px;
  height: 1px;
  background: var(--orange);
  opacity: 0.5;
}

.vg-scroll-hint span {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* DESAFIO */
.vg-desafio {
  background: var(--navy-mid);
  padding: 80px 32px;
}

.vg-section-tag {
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vg-section-tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--orange);
}

.vg-desafio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.vg-h2 {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
}

.vg-h2 em {
  font-style: italic;
  color: var(--orange);
}

.vg-desafio-body {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--cream-dim);
  margin-top: 20px;
}

.vg-pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vg-pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--cream-dim);
  padding: 14px 18px;
  background: var(--cream-faint);
  border-left: 2px solid var(--orange);
  border-radius: 2px;
  transition: all 0.2s;
}

.vg-pain-list li:hover {
  background: rgba(244, 241, 236, 0.07);
  color: var(--cream);
}

.vg-pain-icon {
  color: var(--orange);
  flex-shrink: 0;
}

/* ECOSSISTEMA */
.vg-eco {
  background: var(--navy);
  padding: 80px 32px;
}

.vg-eco-header {
  max-width: 1000px;
  margin: 0 auto 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.vg-eco-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--cream-dim);
  max-width: 300px;
}

.vg-eco-cards {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.vg-eco-card {
  background: var(--navy-mid);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}

.vg-eco-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.vg-eco-card:hover {
  background: var(--navy-light);
}

.vg-eco-card:hover::after {
  transform: scaleX(1);
}

.vg-eco-num {
  font-family: var(--font);
  font-size: 2.6rem;
  font-weight: 200;
  color: rgba(232, 98, 26, 0.15);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.4s;
}

.vg-eco-card:hover .vg-eco-num {
  color: rgba(232, 98, 26, 0.4);
}

.vg-eco-card-title {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.vg-eco-card-sub {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.vg-eco-card-body {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--cream-dim);
}

.vg-eco-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vg-eco-tag {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(232, 98, 26, 0.3);
  padding: 4px 10px;
  border-radius: 2px;
}

/* PROCESSO */
.vg-processo {
  background: var(--navy-mid);
  padding: 80px 32px;
}

.vg-processo-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.vg-processo-head {
  margin-bottom: 60px;
}

.vg-steps {
  display: flex;
  flex-direction: column;
}

.vg-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--cream-faint);
  align-items: start;
}

.vg-step:last-child {
  border-bottom: 1px solid var(--cream-faint);
}

.vg-step-num {
  font-family: var(--font);
  font-size: 2.4rem;
  font-weight: 200;
  color: var(--orange);
  opacity: 0.5;
  line-height: 1;
}

.vg-step-title {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.vg-step-body {
  font-size: 0.86rem;
  line-height: 1.9;
  color: var(--cream-dim);
}

/* CTA */
.vg-cta {
  background: var(--navy);
  padding: 100px 32px;
  text-align: center;
}

.vg-cta-inner {
  max-width: 580px;
  margin: 0 auto;
}

.vg-cta-h {
  font-family: var(--font);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 200;
  line-height: 1.05;
  margin-bottom: 24px;
}

.vg-cta-h em {
  font-style: italic;
  color: var(--orange);
}

.vg-cta-sub {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--cream-dim);
  margin-bottom: 44px;
}

.vg-cta-btn {
  display: inline-block;
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 16px 48px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.vg-cta-btn:hover {
  background: var(--orange);
  color: var(--navy);
  transform: translateY(-2px);
}

.vg-cta-divider {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, rgba(232, 98, 26, 0.5), transparent);
  margin: 48px auto 0;
}

/* FOOTER */
.vg-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--cream-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy);
}

.vg-footer-logo {
  line-height: 0;
}

.vg-footer-logo-img {
  height: 26px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .vg-footer-logo-img {
    height: 30px;
  }
}

.vg-footer-copy {
  font-size: 0.68rem;
  color: var(--cream-dim);
  letter-spacing: 0.06em;
}

/* SECTION INDICATOR */
.vg-indicator {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 99;
}

.vg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 241, 236, 0.25);
  cursor: pointer;
  transition: all 0.3s;
  display: block;
  text-decoration: none;
  border: none;
  padding: 0;
  font-size: 0;
}

.vg-dot:hover {
  background: rgba(244, 241, 236, 0.45);
}

.vg-dot.active {
  background: var(--orange);
  transform: scale(1.4);
}

.vg-section-tag--center {
  justify-content: center;
}

/* CONTACT MODAL */
/* Closed <dialog> must stay hidden: author `display` overrides UA `display:none`. */
.vg-modal:not([open]) {
  display: none;
}

.vg-modal {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 16px;
  border: none;
  background: transparent;
  color: var(--cream);
  box-sizing: border-box;
}

.vg-modal[open] {
  display: grid;
  place-items: center;
}

.vg-modal::backdrop {
  background: rgba(8, 15, 31, 0.82);
  cursor: pointer;
}

.vg-modal-panel {
  position: relative;
  width: min(92vw, 520px);
  max-width: 100%;
  background: var(--navy-mid);
  border: 1px solid var(--cream-faint);
  border-radius: 4px;
  padding: 28px 24px 24px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.vg-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--cream-dim);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.vg-modal-close:hover {
  color: var(--orange);
}

.vg-modal-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.vg-modal-title {
  font-family: var(--font);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 500;
  margin: 0 40px 8px 0;
  letter-spacing: -0.02em;
}

.vg-modal-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--cream-dim);
  margin: 0 0 22px;
}

.vg-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

@media (min-width: 480px) {
  .vg-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.vg-modal-desc strong {
  color: var(--cream);
  font-weight: 600;
}

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

.vg-form-field label,
.vg-form-legend {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.vg-form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cream-dim);
  opacity: 0.85;
}

.vg-form input[type="text"],
.vg-form input[type="email"],
.vg-form input[type="tel"],
.vg-form textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--cream);
  background: rgba(8, 15, 31, 0.55);
  border: 1px solid rgba(244, 241, 236, 0.12);
  border-radius: 2px;
  padding: 10px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vg-form textarea {
  resize: vertical;
  min-height: 96px;
}

.vg-form input::placeholder,
.vg-form textarea::placeholder {
  color: rgba(244, 241, 236, 0.35);
}

.vg-form input:focus-visible,
.vg-form textarea:focus-visible {
  outline: none;
  border-color: rgba(232, 98, 26, 0.55);
  box-shadow: 0 0 0 1px rgba(232, 98, 26, 0.25);
}

.vg-form-fieldset {
  border: 1px solid rgba(244, 241, 236, 0.1);
  border-radius: 2px;
  padding: 14px 14px 12px;
  margin: 0;
}

.vg-form-fieldset:focus-within {
  border-color: rgba(232, 98, 26, 0.35);
}

.vg-form-legend {
  padding: 0 6px;
}

.vg-form-hint {
  font-size: 0.75rem;
  color: var(--cream-dim);
  margin: 0 0 10px;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.02em;
}

.vg-form-hint--field {
  margin: -4px 0 6px;
}

.vg-form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vg-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--cream-dim);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.vg-form-check input {
  margin-top: 3px;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.vg-form-check--lgpd {
  line-height: 1.5;
}

.vg-form-field--checkbox {
  margin-top: 4px;
}

.vg-form-inline-link {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vg-form-inline-link:hover {
  color: var(--orange-light);
}

.vg-form-error {
  font-size: 0.78rem;
  color: var(--orange-light);
  margin: 8px 0 0;
}

.vg-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 4px;
}

.vg-form-cancel {
  padding: 10px 0;
}

.vg-form-submit {
  padding: 12px 28px;
}

.vg-modal-success {
  text-align: center;
  padding: 12px 8px 8px;
}

.vg-modal-success[hidden] {
  display: none !important;
}

.vg-modal-body[hidden] {
  display: none !important;
}

.vg-modal-success-title {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 12px;
}

.vg-modal-success-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--cream-dim);
  margin: 0 0 24px;
}

.vg-modal-success .vg-btn-primary {
  padding: 12px 24px;
}

/* ---------- Responsivo: telemóvel e tablets estreitos ---------- */

@media (max-width: 900px) {
  .vg-eco-cards {
    grid-template-columns: 1fr;
  }

  .vg-eco-card {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .vg-nav {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
  }

  .vg-nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    width: 100%;
    max-width: 100%;
  }

  .vg-nav-links a,
  .vg-nav-cta {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding-inline: 4px;
  }

  .vg-nav-cta {
    padding: 8px 14px;
  }

  .vg-hero {
    min-height: min(100dvh, 560px);
    padding: 48px 20px 88px;
  }

  .vg-hero-line {
    display: none;
  }

  .vg-eyebrow {
    letter-spacing: 0.18em;
    font-size: 0.62rem;
  }

  .vg-hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 14px;
  }

  .vg-hero-actions .vg-btn-primary,
  .vg-hero-actions .vg-btn-ghost {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .vg-btn-ghost {
    padding-bottom: 10px;
  }

  .vg-section-tag {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    flex-wrap: wrap;
  }

  .vg-desafio,
  .vg-eco,
  .vg-processo {
    padding: 56px 20px;
  }

  .vg-desafio-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .vg-eco-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }

  .vg-eco-desc {
    max-width: none;
  }

  .vg-step {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 28px 0;
  }

  .vg-step-num {
    font-size: 1.85rem;
  }

  .vg-step-title {
    font-size: 1.35rem;
  }

  .vg-cta {
    padding: 72px 20px 96px;
  }

  .vg-cta-btn {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
  }

  .vg-footer {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 20px 16px 56px;
  }

  .vg-footer-copy {
    max-width: 100%;
  }

  .vg-modal {
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .vg-modal-panel {
    width: 100%;
    max-width: 100%;
    padding: 24px 16px 20px;
    max-height: min(92dvh, 720px);
  }

  .vg-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .vg-form-actions .vg-btn-primary,
  .vg-form-actions .vg-btn-ghost {
    width: 100%;
    text-align: center;
  }

  .vg-form-cancel {
    padding: 12px 0;
  }

  .vg-modal-success .vg-btn-primary {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .vg-indicator {
    right: auto;
    left: 50%;
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom, 8px));
    transform: translateX(-50%);
    flex-direction: row;
    gap: 14px;
    padding: 0 12px;
  }

  .vg-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
  }

  .vg-dot.active {
    transform: scale(1.25);
  }

  .vg-pain-list li {
    font-size: 0.82rem;
    padding: 12px 14px;
  }

  .vg-h2 {
    font-size: clamp(1.75rem, 8vw, 2.75rem);
  }

  .vg-cta-h {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }
}

@media (max-width: 380px) {
  .vg-nav-links {
    gap: 8px 10px;
  }

  .vg-nav-links a,
  .vg-nav-cta {
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .vg-btn-primary:hover,
  .vg-btn-ghost:hover,
  .vg-cta-btn:hover,
  .vg-nav-cta:hover,
  .vg-eco-card,
  .vg-eco-card::after,
  .vg-pain-list li,
  .vg-dot {
    transition: none;
  }

  .vg-btn-primary:hover,
  .vg-cta-btn:hover {
    transform: none;
  }
}
