/* ============================================
   PEDRO BRAGANÇA — SITE OFICIAL
   Design System: Dark Premium Minimal
   ============================================ */

:root {
  --bg: #080808;
  --bg-light: #0f0f0f;
  --bg-card: #111111;
  --text: #F5F5F5;
  --text-muted: #999999;
  --text-dim: #666666;
  --red: #E10600;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.15);
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- SECTIONS COMMON ---- */
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.dot {
  color: var(--red);
  font-size: 0.6em;
  vertical-align: middle;
}

.text-red {
  color: var(--red);
}

.arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.arrow-down {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-transform: uppercase;
}

.btn--red {
  background: var(--red);
  color: #fff;
}

.btn--red:hover {
  background: #c00500;
  transform: translateY(-2px);
}

.btn--red:hover .arrow-down {
  transform: translateY(3px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

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

.btn--outline:hover .arrow {
  transform: translate(2px, -2px);
}

.btn--lg {
  padding: 22px 48px;
  font-size: 16px;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav--scrolled {
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav__logo .dot {
  font-size: 10px;
  margin-left: 2px;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  transition: color 0.3s;
}

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

.nav .btn--outline {
  padding: 10px 24px;
  font-size: 12px;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s var(--ease);
}

.nav__hamburger.open span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav__hamburger.open span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--text-muted);
  transition: color 0.3s;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero__location {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__location .dot {
  font-size: 8px;
}

.hero__title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 2rem;
}

.hero__sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.hero__tags {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__tags span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

/* ============================================
   PHOTO SECTION
   ============================================ */
.photo-section {
  padding: 0 0 40px;
}

.photo-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.photo-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  min-height: 400px;
}

.photo-placeholder p {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.photo-placeholder--sm {
  min-height: 300px;
  border: 1px dashed var(--border-light);
}

/* red vertical accent on photo */
.photo-frame::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3px;
  height: 30%;
  background: var(--red);
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-dim);
}

.marquee__dot {
  color: var(--text-dim);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

/* ============================================
   SOBRE
   ============================================ */
.sobre {
  padding: 160px 0 80px;
}

/* ============================================
   PROJETOS
   ============================================ */
.projetos {
  padding: 80px 0 120px;
}

.projetos__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
  gap: 40px;
}

.projetos__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.projetos__desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 300px;
  padding-top: 12px;
}

/* Browser Frame */
.browser-frame {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}

.browser-dots {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.4;
}

.browser-url {
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  padding: 0 16px 12px;
  margin-top: -28px;
}

.browser-body {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}

.placeholder-text {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.browser-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Project Card */
.project-card {
  margin-bottom: 120px;
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-card__number {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.project-card__status {
  color: var(--text-dim);
}

.project-card__status--live {
  color: var(--red);
}

.project-card__name {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.project-card__tags {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.project-card__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 12px;
  margin-top: 32px;
}

.project-card__text {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.project-card__text--bold {
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.project-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.project-card__pills span {
  font-size: 13px;
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--text-muted);
  transition: border-color 0.3s;
}

.project-card__pills span:hover {
  border-color: var(--text-dim);
}

.project-card__quote {
  border-left: 3px solid var(--red);
  padding: 20px 24px;
  margin: 32px 0;
  background: rgba(255,255,255,0.02);
}

.project-card__quote p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
}

/* ============================================
   METHOD (FROM PROBLEM TO PRODUCT)
   ============================================ */
.method {
  padding: 160px 0;
}

.method__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 2rem;
}

.method__text {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
}

/* ============================================
   ATUAÇÃO
   ============================================ */
.atuacao {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.atuacao__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 60px;
}

.atuacao__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.atuacao__item {
  padding: 32px;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.atuacao__item:hover {
  border-color: var(--red);
}

.atuacao__item-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.atuacao__item-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   BELIEFS
   ============================================ */
.beliefs {
  padding: 160px 0;
}

.beliefs__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.3;
  margin-bottom: 60px;
}

.beliefs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.beliefs__item {
  padding-left: 20px;
  border-left: 2px solid var(--red);
}

.beliefs__text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* ============================================
   EM CONSTRUÇÃO (BUILDING)
   ============================================ */
.building {
  padding: 120px 0;
  background: var(--bg-light);
}

.building__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.building__card {
  border: 1px dashed var(--border-light);
  padding: 40px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s;
}

.building__card:hover {
  border-color: var(--text-dim);
}

.building__card:last-child {
  grid-column: 1;
}

.building__number {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-dim);
}

.building__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.browser-frame--sm {
  margin-top: 24px;
  margin-bottom: 0;
}

.browser-frame--sm .browser-body {
  min-height: 180px;
}

/* ============================================
   STATS
   ============================================ */
.stats {
  padding: 120px 0;
}

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

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats__number {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.stats__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
}

/* ============================================
   BEYOND (ALÉM DO TRABALHO)
   ============================================ */
.beyond {
  padding: 120px 0;
}

.beyond__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.beyond__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.beyond__desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 400px;
}

/* ============================================
   CTA / CONTATO
   ============================================ */
.cta {
  padding: 160px 0 80px;
  background: var(--bg);
}

.cta__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.cta__sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta__socials {
  display: flex;
  gap: 32px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.cta__socials a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 0;
  background: var(--red);
  color: #fff;
}

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

.footer__logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer__location {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.6;
}

.footer__copy {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.footer__tagline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.9;
}

/* ============================================
   ANIMATIONS (scroll reveal)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .container {
    padding: 0 24px;
  }

  .nav__links,
  .nav .btn--outline {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__inner {
    padding: 0 24px;
  }

  .hero__title {
    font-size: clamp(32px, 10vw, 52px);
  }

  .projetos__header {
    flex-direction: column;
    gap: 16px;
  }

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

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

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

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

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

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .cta__title {
    font-size: clamp(28px, 8vw, 44px);
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 80px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    text-align: center;
    justify-content: center;
  }

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

  .cta__socials {
    flex-direction: column;
    gap: 20px;
  }

  .browser-body {
    min-height: 200px;
  }
}
