:root {
  --dark:    #0D0D0D;
  --dark2:   #161616;
  --dark3:   #1E1E1E;
  --offwhite:#F4EFE6;
  --cream:   #EDE8DE;
  --lime:    #C8FF00;
  --orange:  #FF4D00;
  --gray:    #5C5C5C;
  --lgray:   #ABABAB;
  --xlgray:  #D0CBC0;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--offwhite);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────── */
.trakz-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
}

.trakz-nav .nav-brand {
  font-family: 'Bebas Neue', cursive;
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--offwhite);
  text-decoration: none;
}

.trakz-nav .nav-brand span { color: var(--lime); }

/* nav-links is now the wp:navigation wrapper <nav> — reset WP defaults */
.trakz-nav .nav-links { background: transparent !important; color: inherit !important; padding: 0 !important; }
.trakz-nav .nav-links .wp-block-navigation__container { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }

.trakz-nav .nav-links a {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lgray);
  text-decoration: none;
  transition: color 0.2s;
}
.trakz-nav .nav-links a:hover { color: var(--lime); }

/* nav-cta class lands on the <li> in wp:navigation-link */
.trakz-nav .nav-cta > a {
  display: inline-block !important;
  background: var(--lime);
  color: var(--dark) !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 1px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background 0.2s !important;
}
.trakz-nav .nav-cta > a:hover { background: var(--orange) !important; color: var(--dark) !important; }

/* ── SECTIONS ────────────────────────────────────── */
section { padding: 120px 48px; }

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--lime);
  margin-bottom: 20px;
  display: block;
}

h1, h2, h3 { font-family: 'Bebas Neue', cursive; letter-spacing: 2px; line-height: 1; }

/* ── HERO ────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 140px;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,255,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,255,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-stripe {
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--lime);
}

.hero-content { position: relative; max-width: 900px; }

.hero-overline {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 3px;
  color: var(--lgray); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-overline::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--lime);
}

.hero-title {
  font-size: clamp(72px, 10vw, 120px);
  line-height: 0.92;
  margin-bottom: 32px;
}

.hero-title .accent { color: var(--lime); }
.hero-title .dim { color: var(--gray); }

.hero-tagline {
  font-size: 16px; color: var(--lgray); line-height: 1.6;
  max-width: 520px; margin-bottom: 48px;
}

.hero-route {
  display: flex; align-items: center; gap: 0; margin-bottom: 64px;
  position: relative;
}

.route-node {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: relative; z-index: 1;
}

.route-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--dark3); border: 2px solid var(--lgray);
  transition: all 0.3s;
}

.route-dot.active { background: var(--lime); border-color: var(--lime); width: 16px; height: 16px; }
.route-dot.end    { background: var(--orange); border-color: var(--orange); }

.route-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 1px;
  color: var(--lgray); white-space: nowrap;
}

.route-line {
  flex: 1; height: 1px; margin-bottom: 26px;
  background: repeating-linear-gradient(90deg, var(--lgray) 0, var(--lgray) 6px, transparent 6px, transparent 12px);
}

.hero-ctas { display: flex; gap: 16px; align-items: center; }

.btn-primary {
  background: var(--lime); color: var(--dark);
  padding: 16px 36px; font-weight: 700;
  font-family: 'Space Mono', monospace;
  font-size: 12px; letter-spacing: 1px;
  text-decoration: none; display: inline-block;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--orange); transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--dark3); color: var(--lgray);
  padding: 16px 36px; font-family: 'Space Mono', monospace;
  font-size: 12px; letter-spacing: 1px;
  text-decoration: none; display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ── MANIFESTO ───────────────────────────────────── */
#manifesto {
  background: var(--offwhite);
  color: var(--dark);
}

.manifesto-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.manifesto-left h2 { font-size: clamp(48px, 5vw, 72px); color: var(--dark); margin-bottom: 24px; }
.manifesto-left .underline-lime { display: inline-block; border-bottom: 4px solid var(--lime); padding-bottom: 4px; }

.manifesto-left p { font-size: 16px; color: var(--gray); line-height: 1.8; margin-bottom: 20px; }

.manifesto-right blockquote {
  font-family: 'Bebas Neue', cursive;
  font-size: 42px; line-height: 1.1; color: var(--dark);
  border-left: 4px solid var(--lime);
  padding-left: 28px;
  margin-bottom: 40px;
}

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.value-item {
  background: var(--cream);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.value-dot { width: 8px; height: 8px; background: var(--lime); flex-shrink: 0; }
.value-text { font-size: 13px; font-weight: 500; color: var(--dark); }

/* ── SOBRE ───────────────────────────────────────── */
#sobre { background: var(--dark2); }

.sobre-header { margin-bottom: 64px; }
.sobre-header h2 { font-size: clamp(48px, 5vw, 72px); margin-bottom: 16px; }

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 80px;
}

.stat-card {
  background: var(--dark3);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--lime);
}
.stat-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 52px; color: var(--lime); line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 1px; color: var(--lgray); text-transform: uppercase;
}

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

.team-card {
  background: var(--dark3); padding: 40px;
  position: relative; overflow: hidden;
}

.team-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.team-card.bruno::before { background: var(--lime); }
.team-card.thais::before { background: var(--orange); }

.team-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', cursive; font-size: 24px;
  margin-bottom: 20px;
}
.team-card.bruno .team-avatar { background: rgba(200,255,0,0.1); color: var(--lime); border: 2px solid var(--lime); }
.team-card.thais .team-avatar { background: rgba(255,77,0,0.1); color: var(--orange); border: 2px solid var(--orange); }

.team-name { font-family: 'Bebas Neue', cursive; font-size: 28px; margin-bottom: 4px; }
.team-role {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px;
}
.team-card.bruno .team-role { color: var(--lime); }
.team-card.thais .team-role { color: var(--orange); }

.team-bio { font-size: 14px; color: var(--lgray); line-height: 1.7; margin-bottom: 24px; }

.team-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px; padding: 4px 12px; letter-spacing: 0.5px;
  background: var(--dark2);
}
.team-card.bruno .tag { color: var(--lime); border: 1px solid rgba(200,255,0,0.3); }
.team-card.thais .tag { color: var(--orange); border: 1px solid rgba(255,77,0,0.3); }

/* ── SERVIÇOS ────────────────────────────────────── */
#servicos { background: var(--dark); }

.servicos-header { margin-bottom: 64px; }
.servicos-header h2 { font-size: clamp(48px, 5vw, 72px); margin-bottom: 16px; }

.servicos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.servico-card--wide { grid-column: span 3; }

.servico-card {
  background: var(--dark2); padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: background 0.3s, transform 0.3s;
  cursor: default;
}
.servico-card:hover { background: var(--dark3); transform: translateY(-4px); }

.servico-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: transparent; transition: background 0.3s;
}
.servico-card:hover::after { background: var(--lime); }
.servico-card:nth-child(even):hover::after { background: var(--orange); }

.servico-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 2px; margin-bottom: 20px;
}
.servico-card:nth-child(odd) .servico-num { color: var(--lime); }
.servico-card:nth-child(even) .servico-num { color: var(--orange); }

.servico-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px; letter-spacing: 1px; margin-bottom: 16px;
  line-height: 1.1;
}

.servico-desc { font-size: 13px; color: var(--lgray); line-height: 1.7; margin-bottom: 20px; }

.servico-items { list-style: none; }
.servico-items li {
  font-size: 12px; color: var(--gray);
  padding: 6px 0; border-bottom: 1px solid var(--dark3);
  display: flex; align-items: flex-start; gap: 8px;
}
.servico-items li::before {
  content: '→'; font-size: 11px; flex-shrink: 0; margin-top: 1px;
}
.servico-card:nth-child(odd) .servico-items li::before { color: var(--lime); }
.servico-card:nth-child(even) .servico-items li::before { color: var(--orange); }

/* ── PROCESSO ────────────────────────────────────── */
#processo { background: var(--offwhite); color: var(--dark); }

#processo .section-label { color: var(--dark); opacity: 0.4; }
#processo h2 { font-size: clamp(48px, 5vw, 72px); color: var(--dark); margin-bottom: 16px; }
#processo .sub { color: var(--gray); margin-bottom: 72px; font-size: 16px; }

.processo-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 0 60px;
}

.processo-track::before {
  content: '';
  position: absolute;
  top: 24px; left: 24px; right: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--dark3) 0, var(--dark3) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}

.processo-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1; padding: 0 8px;
}

.step-node {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--offwhite); border: 3px solid var(--xlgray);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700;
  color: var(--gray); margin-bottom: 20px;
  transition: all 0.3s;
}

.processo-step:hover .step-node {
  background: var(--lime); border-color: var(--lime); color: var(--dark);
}

.step-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 16px; letter-spacing: 1px; color: var(--dark);
  text-align: center; margin-bottom: 10px;
}
.step-desc {
  font-size: 12px; color: var(--gray); text-align: center; line-height: 1.6;
}

.processo-callout {
  background: var(--dark); color: var(--offwhite);
  padding: 28px 40px;
  display: flex; align-items: center; gap: 20px;
  margin-top: 48px;
}
.processo-callout::before {
  content: ''; width: 4px; height: 40px; background: var(--lime); flex-shrink: 0;
}
.processo-callout p { font-size: 16px; font-weight: 500; }

/* ── PORTFOLIO ───────────────────────────────────── */
#portfolio { background: var(--dark2); }

.portfolio-header { margin-bottom: 64px; }
.portfolio-header h2 { font-size: clamp(48px, 5vw, 72px); margin-bottom: 16px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.portfolio-item {
  background: var(--dark3);
  aspect-ratio: 4/3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  border: 1px solid var(--dark3);
  transition: border-color 0.3s;
  cursor: default;
}
.portfolio-item:hover { border-color: rgba(200,255,0,0.2); }

.portfolio-soon {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 3px; color: var(--gray);
}

.portfolio-cta {
  margin-top: 48px; text-align: center;
  padding: 40px; background: var(--dark3);
}
.portfolio-cta p { color: var(--lgray); margin-bottom: 24px; font-size: 16px; }

/* ── CONTATO ─────────────────────────────────────── */
#contato {
  background: var(--dark);
  position: relative; overflow: hidden;
}

#contato::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 40%;
  background: var(--dark2);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}

.contato-inner { position: relative; z-index: 1; }
.contato-inner h2 { font-size: clamp(56px, 7vw, 96px); margin-bottom: 8px; }
.contato-inner h2 .lime { color: var(--lime); }
.contato-inner .sub { color: var(--lgray); font-size: 16px; margin-bottom: 64px; max-width: 560px; }

.contato-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 80px;
}

.contato-card {
  background: var(--dark3); padding: 24px;
  border-left: 3px solid var(--lime);
  transition: transform 0.2s;
}
.contato-card:nth-child(even) { border-left-color: var(--orange); }
.contato-card:hover { transform: translateY(-4px); }

.contato-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--lime); margin-bottom: 10px;
}
.contato-card:nth-child(even) .contato-label { color: var(--orange); }

.contato-value { font-size: 14px; color: var(--offwhite); font-weight: 500; }

.footer-brand {
  text-align: center; padding-top: 64px;
  border-top: 1px solid var(--dark3);
}
.footer-brand .logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 56px; letter-spacing: 8px;
  margin-bottom: 8px;
}
.footer-lime { width: 64px; height: 3px; background: var(--lime); margin: 0 auto 20px; }
.footer-sub {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 2px; color: var(--gray); text-transform: uppercase;
}

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .trakz-nav { padding: 0 24px; }
  .trakz-nav .nav-links { display: none !important; }
  section { padding: 80px 24px !important; }
  .manifesto-inner, .team-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .servicos-grid { grid-template-columns: 1fr; }
  .servico-card--wide { grid-column: span 1; }
  .contato-grid { grid-template-columns: repeat(2, 1fr); }
  .processo-track { flex-direction: column; gap: 32px; }
  .processo-track::before { display: none; }
  .processo-step { align-items: flex-start; flex-direction: row; gap: 20px; }
}

/* ── WORDPRESS ADMIN BAR ─────────────────────────── */
.admin-bar .trakz-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .trakz-nav { top: 46px; } }

/* ── WORDPRESS BLOCK THEME FIXES ─────────────────── */
header.wp-block-template-part { display: contents; }
.wp-block-html { margin: 0; padding: 0; }

/* Remove padding injected by WordPress on the .wp-site-blocks wrapper */
.wp-site-blocks { padding-left: 0 !important; padding-right: 0 !important; }

/* Navigation block item padding reset */
.trakz-nav .wp-block-navigation-item__content { padding: 0 !important; }
.trakz-nav .wp-block-navigation__responsive-container { display: none !important; }

/* ── WORDPRESS BUTTON BLOCK OVERRIDES ─────────── */
.wp-block-button { margin: 0; }
.wp-block-buttons { gap: 16px; }

.btn-primary-wrap .wp-block-button__link {
  background: var(--lime);
  color: var(--dark);
  padding: 16px 36px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s, transform 0.2s;
  border-radius: 0;
  border: none;
}
.btn-primary-wrap .wp-block-button__link:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.btn-ghost-wrap .wp-block-button__link {
  border: 1px solid var(--dark3);
  color: var(--lgray);
  padding: 16px 36px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
  border-radius: 0;
}
.btn-ghost-wrap .wp-block-button__link:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* Portfolio grid using CSS grid on wp:group */
.portfolio-grid.wp-block-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio-grid .wp-block-group.portfolio-item {
  margin: 0;
  background: var(--dark3);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--dark3);
  transition: border-color 0.3s;
  cursor: default;
}
.portfolio-grid .wp-block-group.portfolio-item:hover {
  border-color: rgba(200,255,0,0.2);
}
.portfolio-grid .wp-block-group.portfolio-item p { margin: 0; }

/* ── HAMBURGER ────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
}

/* ── MOBILE OVERLAY ───────────────────────────────── */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nav-mobile-overlay.is-open { display: flex; }

.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--lime);
  padding: 8px;
}
.nav-mobile-close svg { stroke: var(--lime); display: block; }

.nav-mobile-links,
.nav-mobile-links ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mobile-links a {
  font-family: 'Bebas Neue', cursive;
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--offwhite);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mobile-links a:hover { color: var(--lime); }
.nav-mobile-links .nav-cta > a {
  background: var(--lime);
  color: var(--dark) !important;
  padding: 8px 24px;
  font-size: 20px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.nav-mobile-links .nav-cta > a:hover { background: var(--orange) !important; }

/* Manifesto quote block */
.manifesto-quote.wp-block-quote {
  font-family: 'Bebas Neue', cursive;
  font-size: 42px;
  line-height: 1.1;
  color: var(--dark);
  border-left: 4px solid var(--lime);
  padding-left: 28px;
  margin-bottom: 40px;
  border-right: none;
}
.manifesto-quote.wp-block-quote p {
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
}
