/* ============================================================
   STUDIO VEXO — styles.css
   Paleta: dark base (#0a0a0f), accent laranja (#f97316),
   texto claro (#f0ede8), superfícies (#13131a / #1c1c28)
   Tipografia: Syne (display) + DM Sans (body)
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Cores */
  --bg:           #0a0a0f;
  --bg-surface:   #13131a;
  --bg-elevated:  #1c1c28;
  --accent:       #f97316;       /* laranja vibrante */
  --accent-dim:   #c2590f;
  --accent-glow:  rgba(249,115,22,.18);
  --text:         #f0ede8;
  --text-muted:   #9896a0;
  --text-faint:   #55535e;
  --border:       rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.16);

  /* Tipografia */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Espaçamentos */
  --section-py: clamp(5rem, 10vw, 8rem);
  --container:  1200px;
  --radius:     12px;
  --radius-lg:  20px;

  /* Transições */
  --ease: cubic-bezier(.25,.46,.45,.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- UTILITÁRIOS ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-py);
}

.section-dark {
  background-color: var(--bg-surface);
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}

/* Estado scrollado — adicionado via JS */
.header.scrolled {
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  transition: opacity .2s;
}
.logo span { color: var(--accent); }
.logo:hover { opacity: .8; }

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 2rem);
}

.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
  position: relative;
  padding-block: .25rem;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .25s var(--ease);
}
.nav-link:hover       { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active      { color: var(--text); }

/* Link CTA no nav */
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid rgba(249,115,22,.35);
  border-radius: 40px;
  padding: .35rem 1.1rem !important;
  transition: background .2s, border-color .2s !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover  { background: var(--accent-glow); border-color: var(--accent); }

/* Hamburguer */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
/* Estado aberto */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 6rem;
  text-align: center;
}

/* Grade de pontos de fundo */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

/* Brilho central */
.hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: .6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;  transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: fade-up .6s .1s var(--ease) forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
  opacity: 0;
  animation: fade-up .7s .25s var(--ease) forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--text-muted);
}
.hero-title .highlight {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  max-width: 560px;
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.8;
  opacity: 0;
  animation: fade-up .7s .4s var(--ease) forwards;
}

.br-desktop { display: none; }

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 40px;
  padding: .85rem 1.8rem;
  transition: all .25s var(--ease);
  white-space: nowrap;
  opacity: 0;
  animation: fade-up .7s .55s var(--ease) forwards;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--text);
  animation: none;
  opacity: 1;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-large {
  font-size: 1rem;
  padding: 1rem 2.4rem;
  letter-spacing: .05em;
}

.btn-sm {
  font-size: .8rem;
  padding: .55rem 1.2rem;
  border-radius: 40px;
  background: #fff;
  color: #0a0a0f;
  font-family: var(--font-display);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  opacity: 1;
  animation: none;
  transition: background .2s, transform .2s;
}
.btn-sm:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-hover);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  opacity: 0;
  animation: fade-in 1s 1.2s forwards;
}
.scroll-indicator span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-bounce 2s infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  80%       { transform: translateY(12px); opacity: 0; }
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.section-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--text);
}

.section-desc {
  max-width: 520px;
  color: var(--text-muted);
  font-size: .97rem;
}

/* ---------- SERVIÇOS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  /* estado inicial para animação via JS */
  opacity: 0;
  transform: translateY(24px);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity .6s var(--ease),
    transform .6s var(--ease),
    border-color .3s var(--ease),
    box-shadow .3s var(--ease);
}
.service-card:hover {
  border-color: rgba(249,115,22,.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-glow);
  border: 1px solid rgba(249,115,22,.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }

.service-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.service-desc {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---------- POR QUE ESCOLHER ---------- */
.por-que-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.por-que-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.diferenciais-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.diferencial-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .97rem;
  color: var(--text-muted);
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s, color .25s, transform .25s;
  /* animação */
  opacity: 0;
  transform: translateX(20px);
}
.diferencial-item.visible {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity .5s var(--ease),
    transform .5s var(--ease),
    border-color .25s,
    color .25s;
}
.diferencial-item:hover {
  border-color: rgba(249,115,22,.35);
  color: var(--text);
  transform: translateX(4px);
}

.diferencial-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--accent-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
}

/* ---------- PORTFÓLIO ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}
.portfolio-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity .65s var(--ease),
    transform .65s var(--ease),
    border-color .3s,
    box-shadow .3s;
}
.portfolio-card:hover {
  border-color: rgba(249,115,22,.35);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  max-height: 280px;
}
.portfolio-img-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  transition: transform .5s var(--ease);
}
.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s var(--ease);
  backdrop-filter: blur(2px);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.portfolio-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.portfolio-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}

.tag {
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 40px;
  letter-spacing: .04em;
}
.tag-html { background: rgba(249,115,22,.15); color: #f97316; }
.tag-css  { background: rgba(56,189,248,.12); color: #38bdf8; }
.tag-gh   { background: rgba(148,163,184,.1); color: #94a3b8; }

/* ---------- CTA FINAL ---------- */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,.14) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 700px;
  line-height: 1.2;
}

.cta-desc {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.cta-section .btn {
  animation: none;
  opacity: 1;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-logo span { color: var(--accent); }

.footer-copy {
  font-size: .82rem;
  color: var(--text-faint);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 90;
  width: 42px;
  height: 42px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s, color .2s;
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { color: var(--accent); transform: translateY(-3px); }

/* ---------- ANIMAÇÕES KEYFRAMES ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: .7; }
}

/* ---------- RESPONSIVO ---------- */
@media (min-width: 900px) {
  .br-desktop { display: block; }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(10,10,15,.97);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
    z-index: 100;
  }
  .nav.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .nav-link { font-size: 1.5rem; }
  .nav-cta  { padding: .6rem 2rem !important; }

  /* Por que escolher: empilha */
  .por-que-grid {
    grid-template-columns: 1fr;
  }

  /* Footer empilha */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  /* WhatsApp e back-to-top em mobile */
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; }
  .back-to-top    { bottom: 4.75rem; right: 1.25rem; }
}

@media (max-width: 480px) {
  .portfolio-img-wrap,
  .portfolio-img-wrap img { max-height: 220px; height: 220px; }
}
