/* ==========================================================================
   Criavia — variáveis e reset
   ========================================================================== */

:root {
  --color-bg: #14181d;
  --color-bg-alt: #1b2027;
  --color-copper: #c9a485;
  --color-copper-glow: #e8cbb3;
  --color-cyan: #00e5ff;
  --color-coral: #ff6f61;
  --color-text: #f5f3f0;
  --color-text-muted: #a9afb8;
  --color-border: #2a303a;

  --font-heading: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;

  --container-width: 1120px;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

a {
  color: inherit;
}

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

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-coral);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Botões
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary,
.btn--cta {
  background-color: var(--color-coral);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 111, 97, 0.25);
}

.btn--primary:hover,
.btn--cta:hover {
  box-shadow: 0 12px 28px rgba(255, 111, 97, 0.35);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(20, 24, 29, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
}

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-copper);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 97px 0 0 0;
  background-color: rgba(20, 24, 29, 0.85);
  backdrop-filter: blur(6px);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 20px;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
}

.site-nav a:not(.btn):hover {
  color: var(--color-copper-glow);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-block: 72px 56px;
  background:
    radial-gradient(circle at 85% 0%, rgba(0, 229, 255, 0.08), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(201, 164, 133, 0.1), transparent 50%);
}

.hero__inner {
  max-width: 720px;
}

.hero__title {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  background: linear-gradient(90deg, var(--color-text), var(--color-copper-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 1.05rem;
  max-width: 50ch;
  margin-bottom: 2em;
}

/* ==========================================================================
   Section titles
   ========================================================================== */

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-copper-glow);
}

.section-subtitle {
  max-width: 55ch;
  margin-bottom: 2.5em;
}

.services,
.process {
  padding-block: 64px;
}

.process {
  background-color: var(--color-bg-alt);
}

/* ==========================================================================
   Serviços
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover,
.service-card:focus-within {
  border-color: var(--color-copper);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201, 164, 133, 0.3);
}

.service-card__icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--color-copper);
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--color-text);
  text-align: center;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Como trabalhamos
   ========================================================================== */

.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.process-step {
  position: relative;
  padding-left: 8px;
  border-left: 2px solid var(--color-border);
  padding-left: 24px;
}

/* Ciclo de 24s: 12s de preenchimento (3s por linha) + 12s de esvaziamento (3s por linha,
   uma de cada vez, em sequência). `left` e `width` animam juntos (em vez de
   transform/scaleX) para que o esvaziamento também avance da esquerda para a
   direita, ancorando o fim da barra na direita. `box-shadow` acompanha a largura
   para dar um brilho dourado suave à parte acesa. */

@keyframes timeline-fill-1 {
  0% {
    left: 0%;
    width: 0%;
    box-shadow: 0 0 0 rgba(201, 164, 133, 0);
  }
  12.5% {
    left: 0%;
    width: 100%;
    box-shadow: 0 0 8px 1px rgba(201, 164, 133, 0.65);
  }
  50% {
    left: 0%;
    width: 100%;
    box-shadow: 0 0 8px 1px rgba(201, 164, 133, 0.65);
  }
  62.5%,
  100% {
    left: 100%;
    width: 0%;
    box-shadow: 0 0 0 rgba(201, 164, 133, 0);
  }
}

@keyframes timeline-fill-2 {
  0%,
  12.5% {
    left: 0%;
    width: 0%;
    box-shadow: 0 0 0 rgba(201, 164, 133, 0);
  }
  25% {
    left: 0%;
    width: 100%;
    box-shadow: 0 0 8px 1px rgba(201, 164, 133, 0.65);
  }
  62.5% {
    left: 0%;
    width: 100%;
    box-shadow: 0 0 8px 1px rgba(201, 164, 133, 0.65);
  }
  75%,
  100% {
    left: 100%;
    width: 0%;
    box-shadow: 0 0 0 rgba(201, 164, 133, 0);
  }
}

@keyframes timeline-fill-3 {
  0%,
  25% {
    left: 0%;
    width: 0%;
    box-shadow: 0 0 0 rgba(201, 164, 133, 0);
  }
  37.5% {
    left: 0%;
    width: 100%;
    box-shadow: 0 0 8px 1px rgba(201, 164, 133, 0.65);
  }
  75% {
    left: 0%;
    width: 100%;
    box-shadow: 0 0 8px 1px rgba(201, 164, 133, 0.65);
  }
  87.5%,
  100% {
    left: 100%;
    width: 0%;
    box-shadow: 0 0 0 rgba(201, 164, 133, 0);
  }
}

@keyframes timeline-fill-4 {
  0%,
  37.5% {
    left: 0%;
    width: 0%;
    box-shadow: 0 0 0 rgba(201, 164, 133, 0);
  }
  50% {
    left: 0%;
    width: 100%;
    box-shadow: 0 0 8px 1px rgba(201, 164, 133, 0.65);
  }
  87.5%,
  100% {
    left: 100%;
    width: 0%;
    box-shadow: 0 0 0 rgba(201, 164, 133, 0);
  }
}

.process-step__icon {
  width: 84px;
  height: 84px;
  color: var(--color-cyan);
  margin-bottom: 8px;
}

.process-step__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-copper);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.process-step h3 {
  font-size: 1.05rem;
}

.process-step p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  padding-block: 64px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.faq-item {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px 24px;
  transition: border-color 0.2s ease;
}

.faq-item[open],
.faq-item:hover {
  border-color: var(--color-copper);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

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

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-copper);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  font-size: 0.95rem;
  padding-bottom: 20px;
  margin: 0;
}

/* ==========================================================================
   CTA final
   ========================================================================== */

.cta-final {
  padding-block: 72px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 164, 133, 0.12), transparent 60%);
}

.cta-final__inner {
  max-width: 560px;
}

.cta-final h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--color-text);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: 48px 32px;
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-footer__brand img {
  height: 100px;
  width: auto;
  margin-bottom: 16px;
}

.site-footer__brand p {
  max-width: 40ch;
  font-size: 0.9rem;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.site-footer__contact a:hover {
  color: var(--color-copper-glow);
}

.site-footer__contact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.site-footer__copy {
  font-size: 0.8rem;
  margin: 0;
}

/* ==========================================================================
   Botão flutuante de WhatsApp
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 111, 97, 0.35);
  z-index: 200;
  transition: transform 0.15s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   Tablet — 600px+
   ========================================================================== */

@media (min-width: 600px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .site-footer__copy {
    width: 100%;
  }

  .site-footer__brand img {
    height: 130px;
  }
}

/* ==========================================================================
   Desktop — 1024px+
   ========================================================================== */

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    flex-direction: row;
    justify-content: flex-end;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    padding: 0;
    gap: 32px;
    flex: 1;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 28px;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process__steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-step {
    border-left: none;
    border-top: 2px solid var(--color-border);
    padding-left: 0;
    padding-top: 20px;
  }

  .process-step::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-copper);
    pointer-events: none;
  }

  .process-step:nth-child(1)::after {
    animation: timeline-fill-1 24s ease-in-out infinite;
  }

  .process-step:nth-child(2)::after {
    animation: timeline-fill-2 24s ease-in-out infinite;
  }

  .process-step:nth-child(3)::after {
    animation: timeline-fill-3 24s ease-in-out infinite;
  }

  .process-step:nth-child(4)::after {
    animation: timeline-fill-4 24s ease-in-out infinite;
  }

  .site-footer__brand img {
    height: 160px;
  }
}

/* ==========================================================================
   Movimento reduzido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .process-step::after {
    animation: none;
    width: 0%;
    box-shadow: none;
  }
}
