/* =========================================================
   Velt Development — base.css
   Reset, tokens neutros, layout, tipografia e componentes.
   Cada site carrega ainda o seu ficheiro de tema:
   velt.css | dentaria.css | quinta.css | solar.css
   ========================================================= */

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

* {
  margin: 0;
}

:root {
  --radius: 1rem;
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;

  --background: #0a0f1a;
  --foreground: #ffffff;
  --card: #121a29;
  --card-foreground: #ffffff;
  --primary: #3fd0e0;
  --primary-foreground: #08111c;
  --secondary: #1a2233;
  --secondary-foreground: #f7fafc;
  --muted: #1a2233;
  --muted-foreground: #a5b0c2;
  --accent: #223049;
  --accent-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.12);
  --input: rgba(255, 255, 255, 0.14);
  --ring: var(--primary);

  --gradient-brand: linear-gradient(120deg, #57e08a, #3fd0e0);
  --shadow-sm: 0 1px 2px rgba(8, 12, 22, 0.08);
  --shadow-md: 0 12px 30px -18px rgba(8, 12, 22, 0.35);
  --shadow-glow: 0 10px 40px -12px rgba(63, 208, 224, 0.55);

  --container: 1120px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ---------------- layout ---------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-narrow {
  max-width: 760px;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
}

.section-tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 {
  grid-template-columns: 1fr;
}
.grid-3 {
  grid-template-columns: 1fr;
}
.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 3rem;
  }
  .split-aside {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.row-between {
  justify-content: space-between;
}
.row-center {
  justify-content: center;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stack-sm {
  gap: 0.5rem;
}
.center {
  text-align: center;
}
.mt-sm {
  margin-top: 0.75rem;
}
.mt {
  margin-top: 1.5rem;
}
.mt-lg {
  margin-top: 2.5rem;
}
.full {
  width: 100%;
}
.hide-mobile {
  display: none !important;
}
.hide-desktop {
  display: inline-flex;
}

[data-nav-toggle] [data-icon-close] {
  display: none;
}
[data-nav-toggle].is-open [data-icon-open] {
  display: none;
}
[data-nav-toggle].is-open [data-icon-close] {
  display: inline-block;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: inline-flex !important;
  }
  .hide-desktop {
    display: none !important;
  }
}

/* ---------------- tipografia ---------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
}
h2 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
}
h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.3;
}

p {
  text-wrap: pretty;
}

.lead {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: var(--muted-foreground);
}

.muted {
  color: var(--muted-foreground);
}

.small {
  font-size: 0.875rem;
}
.tiny {
  font-size: 0.78rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
}

.gradient-text {
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head.center {
  margin-inline: auto;
}

/* ---------------- botões ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
  will-change: transform;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-image: var(--gradient-brand);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-solid {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-outline {
  border-color: var(--border);
  color: var(--foreground);
  background: color-mix(in oklab, var(--card) 45%, transparent);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  color: var(--muted-foreground);
}
.btn-ghost:hover {
  color: var(--foreground);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn-square {
  border-radius: var(--radius);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 45%, transparent);
  cursor: pointer;
  color: inherit;
  flex: 0 0 auto;
}

.icon-btn.square {
  border-radius: calc(var(--radius) * 0.75);
}

/* ---------------- cartões ---------------- */

.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  height: 100%;
}

.card-hover:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--primary) 55%, transparent);
  box-shadow: var(--shadow-glow);
}

.glass {
  background: color-mix(in oklab, var(--card) 55%, transparent);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: calc(var(--radius) * 0.9);
  background: color-mix(in oklab, var(--primary) 16%, transparent);
  color: var(--primary);
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.chip {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .metrics-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
}

.list-check li,
.list-dot li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.list-dot li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--primary);
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
}

.halo {
  position: absolute;
  inset-inline: 0;
  top: -10%;
  height: 70%;
  pointer-events: none;
  background: radial-gradient(
    60% 60% at 50% 0%,
    color-mix(in oklab, var(--primary) 32%, transparent),
    transparent 70%
  );
  z-index: 0;
}

.relative {
  position: relative;
  z-index: 1;
}

/* ---------------- header / navegação ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  height: 2.9rem;
  width: auto;
  flex: 0 0 auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--foreground);
  background: color-mix(in oklab, var(--foreground) 6%, transparent);
}

.nav-link.is-active {
  color: var(--primary);
  font-weight: 600;
}

.nav-mobile {
  display: none;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile .container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
}

.nav-mobile a {
  border-radius: calc(var(--radius) * 0.75);
  padding: 0.7rem 0.75rem;
  font-size: 0.92rem;
  color: var(--muted-foreground);
}

.nav-mobile a:hover {
  color: var(--foreground);
  background: color-mix(in oklab, var(--foreground) 6%, transparent);
}

.nav-mobile a.btn-primary,
.nav-mobile a.btn-primary:hover {
  color: var(--primary-foreground);
  background: var(--primary);
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}

/* ---------------- barra de demo ---------------- */

.velt-bar {
  background: #0a0f1a;
  color: #e8eef7;
  font-size: 0.8rem;
}

.velt-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.9rem;
  padding-block: 0.6rem;
  text-align: center;
}

.velt-bar strong {
  color: #57e08a;
  font-weight: 600;
}

.velt-bar a {
  border-bottom: 1px solid rgba(87, 224, 138, 0.5);
  color: #57e08a;
  font-weight: 600;
}

/* ---------------- rodapé ---------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
}

.site-footer .footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 700px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.1rem;
  font-size: 0.78rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ---------------- formulários ---------------- */
.formulario {
  display: flex;
  gap: 0.75rem;
  max-width: 32rem;
  margin-inline: auto;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
}

.input,
.textarea,
.select {
  width: 100%;
  border-radius: calc(var(--radius) * 0.75);
  border: 1px solid var(--input);
  background: color-mix(in oklab, var(--card) 65%, transparent);
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.textarea {
  min-height: 7rem;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 22%, transparent);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted-foreground);
}

.field-error {
  font-size: 0.76rem;
  color: #e5484d;
  min-height: 1rem;
}

.form-note {
  font-size: 0.76rem;
  color: var(--muted-foreground);
}

.form-success {
  border-radius: calc(var(--radius) * 1.2);
  border: 1px solid color-mix(in oklab, var(--primary) 45%, transparent);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  padding: 1.5rem;
}

/* Contentor principal do formulário */
.formulario {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px; /* Efeito pílula completo */
    padding: 6px 8px 6px 20px;
    max-width: 480px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.formulario:focus-within {
    border-color: #dbdfe0; /* Cor accent da Velt */
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Campo de input */
.formulario input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fafafa;
    font-size: 0.95rem;
    font-family: inherit;
    min-width: 0;
}

.formulario input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Botão de submissão */
.formulario button {
    background-image: var(--gradient-brand);
    color: #050505;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 9999px;
    padding: 12px 24px;
    cursor: pointer;
    white-space: nowrap; /* Impede a palavra de quebrar em duas linhas */
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.formulario button:hover {
    background: #7dd3fc;
    transform: translateY(-1px);
}

.formulario button:active {
    transform: translateY(0);
}
.inline-form .input {
  border-radius: 999px;
}

/* ---------------- toasts ---------------- */

.toast-region {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
}

.toast {
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--card-foreground);
  padding: 0.8rem 1rem;
  font-size: 0.86rem;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(10px);
}

/* ---------------- FAQ ---------------- */

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2rem 1rem 0;
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.9rem;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding-bottom: 1rem;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

/* ---------------- imagens / mapas ---------------- */

.map-frame {
  border-radius: calc(var(--radius) * 1.2);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 15rem;
  background:
    linear-gradient(
      120deg,
      color-mix(in oklab, var(--primary) 16%, transparent),
      color-mix(in oklab, var(--accent) 35%, transparent)
    ),
    var(--secondary);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}

.ratio {
  position: relative;
  border-radius: calc(var(--radius) * 1.2);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--secondary);
}

.ratio > * {
  width: 100%;
  display: block;
}

/* ---------------- animação (GSAP) ---------------- */

[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
}

.gsap-off [data-reveal],
.no-js [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .card-hover:hover {
    transform: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px
  ;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


@media (max-width: 640px) {
    .formulario {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 50px !important;
        padding: 4px 6px 4px 16px !important;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        height: 52px; /* Altura fixa controlada */
    }

    .formulario input[type="email"] {
        flex: 1;
        height: 100%;
        background: transparent !important;
        border: none !important;
        outline: none;
        padding: 0 !important;
        font-size: 0.9rem;
    }

    .formulario button {
        height: 42px;
        padding: 0 16px !important;
        border-radius: 40px !important;
        font-size: 0.85rem;
        white-space: nowrap;
        margin: 0 !important;
    }
}

