/* Da Frota Tecnologia — site público (visual igual ao site Next.js). Depende de tokens.css. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 6rem;
  scroll-margin-top: 6rem;
}

.section--band {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.text-gradient {
  background-image: linear-gradient(90deg, var(--brand), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-glow {
  background-image: radial-gradient(60% 50% at 50% 0%, rgba(247, 73, 5, 0.18), transparent 70%);
  background-image: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--brand) var(--glow, 18%), transparent), transparent 70%);
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn--primary {
  background: var(--brand);
  color: var(--ink);
}

.btn--primary:hover:not(:disabled) {
  background: var(--brand-hot);
  box-shadow: 0 0 32px -4px var(--brand);
}

.btn--light {
  background: var(--snow);
  color: var(--ink);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn--block {
  width: 100%;
}

/* ---------- navbar (pílula flutuante) ---------- */
.site-header {
  position: fixed;
  inset: 1rem 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  width: 100%;
  max-width: 64rem;
  pointer-events: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: rgba(18, 18, 20, 0.8);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
}

.nav__logo {
  flex: none;
  display: block;
}

.nav__logo img {
  height: 2rem;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  display: block;
  border-radius: 9999px;
  padding: 0.5rem 0.75rem;
  color: var(--mute);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--snow);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__cta {
  display: none;
  padding: 0.625rem 1.25rem;
}

.nav__toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 9999px;
  background: var(--surface-2);
  padding: 0;
}

.nav__toggle .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.nav__toggle .icon--close {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon--open {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon--close {
  display: block;
}

.menu-mobile {
  margin-top: 0.5rem;
  max-height: calc(100dvh - 6rem);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(18, 18, 20, 0.95);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  padding: 0.75rem;
}

.menu-mobile a:not(.btn) {
  display: block;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  transition: background-color 0.2s;
}

.menu-mobile a:not(.btn):hover {
  background: var(--surface-2);
}

.menu-mobile li:last-child {
  padding: 0.5rem;
}

@media (min-width: 40rem) {
  .nav__cta {
    display: inline-flex;
  }
}

@media (min-width: 64rem) {
  .nav__links {
    display: flex;
  }

  .nav__toggle,
  .menu-mobile {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 9rem 0 6rem;
}

.hero__glow,
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__glow {
  --glow: 22%;
}

/* Grade sutil: a opacidade (0,045) é limitada pelo contraste do texto pequeno do eyebrow. */
.hero__grid {
  opacity: 0.045;
  background-image: linear-gradient(var(--snow) 1px, transparent 1px), linear-gradient(90deg, var(--snow) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}

.hero__inner {
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1rem;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 1.25rem;
  letter-spacing: 0.25em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero__lead {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  color: var(--mute);
  font-size: 1.125rem;
  line-height: 1.75rem;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.circuit {
  display: flex;
  align-items: center;
}

.circuit__dot {
  width: 0.625rem;
  height: 0.625rem;
  flex: none;
  border: 2px solid var(--brand);
  border-radius: 9999px;
}

.circuit__dot:last-child {
  border-color: var(--magenta);
}

.circuit__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--magenta));
}

.hero .circuit {
  max-width: 28rem;
  margin: 4rem auto 0;
}

@media (min-width: 40rem) {
  .hero {
    padding: 11rem 0 8rem;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .hero__actions {
    flex-direction: row;
  }
}

/* ---------- títulos de seção ---------- */
.heading {
  max-width: 42rem;
}

.heading--center {
  margin-inline: auto;
  text-align: center;
}

.heading h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.heading p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--mute);
  text-wrap: pretty;
}

@media (min-width: 40rem) {
  .heading h2 {
    font-size: 2.25rem;
    line-height: 1.2;
  }
}

/* ---------- serviços ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  padding: 1.75rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card--service:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(247, 73, 5, 0.6);
  box-shadow: 0 0 48px -16px var(--brand);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  background: rgba(247, 73, 5, 0.15);
  color: var(--brand);
}

.card__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.75rem;
}

.card__text {
  margin-top: 0.5rem;
  color: var(--mute);
  font-size: 0.875rem;
}

.ticks {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

.ticks li {
  display: flex;
  gap: 0.5rem;
}

.ticks .icon {
  margin-top: 0.125rem;
  color: var(--brand);
}

@media (min-width: 40rem) {
  .grid--services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .grid--services {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- processo ---------- */
.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.step__n {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.step h3 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.75rem;
}

.step p {
  margin-top: 0.5rem;
  color: var(--mute);
  font-size: 0.875rem;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- soluções ---------- */
.card--solution {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
}

.tag {
  display: inline-block;
  border: 1px solid rgba(247, 73, 5, 0.4);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
}

.card--solution h3 {
  margin-top: 1.25rem;
}

@media (min-width: 48rem) {
  .grid--solutions {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- sobre ---------- */
.about {
  display: grid;
  gap: 3rem;
}

.pillars {
  display: grid;
  gap: 1rem;
}

.card--pillar {
  border-radius: 1.5rem;
  background: var(--ink);
  padding: 1.5rem;
}

.card--pillar h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

@media (min-width: 40rem) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .about {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- contato ---------- */
.contact {
  display: grid;
  gap: 3rem;
}

.contact__links {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: 0.875rem;
}

.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--snow);
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.contact__links a:hover {
  color: var(--brand);
}

.contact__links .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand);
}

@media (min-width: 64rem) {
  .contact {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* ---------- formulário ---------- */
.form {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  padding: 1.5rem;
}

.form__row {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.field .hint {
  color: var(--mute);
  font-weight: 400;
}

.input {
  display: block;
  width: 100%;
  scroll-margin-top: 8rem;
  border: 1px solid var(--field);
  border-radius: 0.75rem;
  background: var(--surface-2);
  padding: 0.75rem 1rem;
  color: var(--snow);
  line-height: 1.5rem;
  transition: border-color 0.2s;
}

.input::placeholder {
  color: var(--mute);
  opacity: 1;
}

.input:focus-visible {
  border-color: var(--brand);
  outline-offset: 2px;
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9rem) 50%;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

select.input:invalid {
  color: var(--mute);
}

select.input option {
  color: var(--snow);
  background: var(--surface-2);
}

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

.field-error {
  margin-top: 0.375rem;
  color: var(--danger);
  font-size: 0.875rem;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--mute);
  font-size: 0.875rem;
}

.consent input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0.25rem 0 0;
  scroll-margin-top: 8rem;
  accent-color: var(--brand);
}

.consent a {
  color: var(--snow);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form__status {
  min-height: 1.25rem;
  color: var(--danger);
  font-size: 0.875rem;
}

.form__status a {
  color: var(--snow);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.success {
  scroll-margin-top: 8rem;
  border: 1px solid rgba(247, 73, 5, 0.4);
  border-radius: 1.5rem;
  background: rgba(247, 73, 5, 0.1);
  padding: 2rem;
  text-align: center;
}

.success__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 800;
  line-height: 2rem;
}

.success p:not(.success__title) {
  margin-top: 0.5rem;
  color: var(--mute);
}

.success .btn {
  margin-top: 1.5rem;
}

@media (min-width: 40rem) {
  .form {
    padding: 2rem;
  }

  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- rodapé ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 3.5rem;
}

.footer .circuit {
  margin-bottom: 2.5rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

.footer__logo {
  height: 2.25rem;
  width: auto;
}

.footer__about {
  max-width: 24rem;
  margin-top: 1rem;
  color: var(--mute);
  font-size: 0.875rem;
}

.footer h2 {
  margin-bottom: 0.75rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1rem;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 0.5rem;
  color: var(--mute);
  font-size: 0.875rem;
}

.footer a {
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--snow);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 3rem;
}

.footer__copy {
  margin: 0;
  color: var(--mute);
  font-size: 0.75rem;
}

/* porta de entrada discreta para a equipe (painel administrativo) */
.footer .footer__adm {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--field);
  border-radius: 999px;
  color: var(--mute);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: color 0.2s, border-color 0.2s;
}

.footer .footer__adm:hover,
.footer .footer__adm:focus-visible {
  border-color: var(--brand);
  color: var(--snow);
}

@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ---------- atalho do WhatsApp ---------- */
.fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 8px 32px -4px var(--brand);
  transition: transform 0.2s var(--ease), background-color 0.2s;
}

.fab:hover {
  transform: scale(1.05);
  background: var(--brand-hot);
}

.fab .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* ---------- entrada suave ao rolar (só abaixo da dobra; sem JS tudo fica visível) ---------- */
.rv-hidden {
  opacity: 0;
  transform: translateY(24px);
}

.rv-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* ---------- páginas legais e 404 ---------- */
.legal {
  max-width: 48rem;
  margin-inline: auto;
  padding: 9rem 1.25rem 6rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 800;
  line-height: 2.5rem;
}

.legal__updated {
  margin-top: 0.5rem;
  color: var(--mute);
  font-size: 0.875rem;
}

.legal__body {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  color: var(--mute);
}

.legal__body h2 {
  margin-top: 1.25rem;
  color: var(--snow);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.75rem;
}

.legal__body strong {
  color: var(--snow);
}

.legal__body a {
  color: var(--snow);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal__body a:hover {
  color: var(--brand);
}

.legal__body li {
  margin-left: 1.25rem;
  list-style: disc;
}

.notfound {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.25rem;
}

.notfound__box {
  width: 100%;
  max-width: 28rem;
  text-align: center;
}

.notfound__logo {
  display: inline-block;
  margin-bottom: 2rem;
}

.notfound__logo img {
  height: 2.25rem;
  width: auto;
}

.notfound h1 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 800;
  line-height: 2.5rem;
}

.notfound p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: var(--mute);
}

.notfound .eyebrow {
  letter-spacing: 0.25em;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  border-radius: 9999px;
  background: var(--snow);
  padding: 0.5rem 1rem;
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}
