/* ===========================================================
   BaseForge Labs — styles
   =========================================================== */

:root {
  --yellow: #FFD600;
  --yellow-soft: rgba(255, 214, 0, 0.12);
  --bg: #1A1A1A;
  --bg-alt: #202020;
  --surface: #242424;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 214, 0, 0.4);
  --text: #F2F2F0;
  --muted: #A0A09B;
  --radius: 14px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand { font-family: 'Space Grotesk', 'Inter', sans-serif; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--yellow); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand__accent { color: var(--yellow); }

.brand__mark {
  width: 18px;
  height: 18px;
  background: var(--yellow);
  transform: rotate(45deg);
  border-radius: 3px;
  box-shadow: 0 0 0 4px var(--yellow-soft);
}

.brand--sm { font-size: 1rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

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

.nav__cta {
  color: var(--yellow) !important;
  border: 1px solid var(--line-strong);
  padding: 7px 16px;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav__cta:hover {
  background: var(--yellow);
  color: var(--bg) !important;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1.5px solid var(--yellow);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
}

.btn__icon { width: 20px; height: 20px; fill: currentColor; }

.btn--primary {
  color: var(--yellow);
  background: transparent;
}

.btn--primary:hover {
  background: var(--yellow);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(255, 214, 0, 0.45);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line);
  background: transparent;
}

.btn--ghost .btn__icon { fill: none; stroke: currentColor; stroke-width: 1.8; }

.btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 96px 0 112px;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: -20% -10% auto;
  height: 140%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(700px) rotateX(58deg) scale(1.6);
  transform-origin: top center;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 18%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 18%, #000 0%, transparent 72%);
  opacity: 0.7;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid var(--line-strong);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- SECTIONS ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section__head { margin-bottom: 48px; max-width: 640px; }

.section__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section__lead {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1.05rem;
}

/* ---------- CARDS (serviços) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.card__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--yellow-soft);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title { font-size: 1.25rem; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 0.97rem; }

/* ---------- STEPS (como funciona) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

.step:hover::before { transform: scaleY(1); }

.step__num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--yellow);
  opacity: 0.5;
  margin-bottom: 12px;
}

.step__title { font-size: 1.22rem; margin-bottom: 10px; }
.step__text { color: var(--muted); font-size: 0.97rem; }

/* ---------- PORTFÓLIO ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 214, 0, 0.04) 0,
      rgba(255, 214, 0, 0.04) 12px,
      transparent 12px,
      transparent 24px
    ),
    var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s var(--ease);
}

.shot:hover { border-color: var(--line-strong); }

.shot__tag {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- CONTATO ---------- */
.contact__inner { text-align: center; max-width: 620px; }
.contact__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- RODAPÉ ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__note { color: var(--muted); font-size: 0.88rem; }

/* ---------- REVEAL (animação de entrada) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* stagger leve em grids */
.cards .reveal:nth-child(2),
.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3),
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 860px) {
  .cards, .steps, .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .nav__links { gap: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 64px 0; }
  .cards, .steps, .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .footer__inner { justify-content: center; text-align: center; }
}
