/* ===================================
   THARSIS BARROS — PREMIUM REDESIGN
   Dark Luxury · Gold · Glassmorphism
   =================================== */

:root {
  --bg:          #060610;
  --bg-2:        #0c0c1a;
  --glass:       rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --gold:        #c9a84c;
  --gold-light:  #e8cb7a;
  --gold-glow:   rgba(201, 168, 76, 0.25);
  --gold-dim:    rgba(201, 168, 76, 0.1);
  --white:       #ffffff;
  --gray-1:      #d8d8e8;
  --gray-2:      #8888a8;
  --gray-3:      #2a2a3a;
  --border:      rgba(255, 255, 255, 0.07);
  --border-gold: rgba(201, 168, 76, 0.3);
  --radius:      14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --t:           0.35s;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--gray-1);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* AMBIENT BACKGROUND GLOW */
body::before {
  content: '';
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* TIPOGRAFIA */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 28px;
}
.section-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

/* BOTÕES */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #09090f;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 15px 30px;
  border-radius: 100px;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  box-shadow: 0 0 0 0 var(--gold-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--gold-glow), 0 8px 24px rgba(0,0,0,0.4);
}
.btn-primary svg { transition: transform var(--t) var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  color: var(--gray-1);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: all var(--t) var(--ease);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--border-gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ===================================
   NAVBAR
   =================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: all var(--t) var(--ease);
}
#navbar.scrolled {
  background: rgba(6, 6, 16, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-logo .gold { color: var(--gold); }
.nav-logo .dot  { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-2);
  transition: color var(--t) var(--ease);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--white); }
.nav-links .nav-cta {
  background: var(--glass);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all var(--t) var(--ease);
}
.nav-links .nav-cta:hover {
  background: var(--gold-dim);
  box-shadow: 0 0 20px var(--gold-glow);
  color: var(--gold-light);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gray-1);
  border-radius: 2px;
  transition: all var(--t) var(--ease);
}

/* ===================================
   HERO
   =================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) brightness(0.7);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,  rgba(6,6,16,0.92) 0%, rgba(6,6,16,0.5) 60%, rgba(6,6,16,0.2) 100%),
    linear-gradient(to top, rgba(6,6,16,1) 0%, transparent 40%);
}
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 100px;
  padding-top: 160px;
}
.hero-text {
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  padding: 6px 16px;
  border-radius: 100px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero-headline em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-2);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.9; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
}

/* ===================================
   NÚMEROS
   =================================== */
#numeros {
  position: relative;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
#numeros::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.03) 0%, transparent 60%);
}
.numeros-grid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  flex-wrap: wrap;
}
.numero-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 180px;
}
.numero-valor {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.numero-label {
  font-size: 0.82rem;
  color: var(--gray-2);
  max-width: 160px;
  line-height: 1.5;
}
.numero-divisor {
  width: 1px;
  height: 56px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===================================
   SOBRE
   =================================== */
#sobre {
  padding: 130px 0;
  position: relative;
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 88px;
  align-items: center;
}
.sobre-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.sobre-image-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-xl);
  display: block;
  border: 1px solid var(--border);
}
.sobre-glow {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(201,168,76,0.12), transparent);
  pointer-events: none;
}
.sobre-imagem::after {
  content: '';
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.sobre-texto p {
  color: var(--gray-2);
  margin-bottom: 20px;
  font-size: 0.97rem;
  line-height: 1.85;
}
.sobre-texto p strong { color: var(--gray-1); font-weight: 500; }
.sobre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.sobre-tags span {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--gray-2);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  transition: all var(--t) var(--ease);
  backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
}
.sobre-tags span:hover {
  border-color: var(--border-gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ===================================
   O QUE RESOLVO
   =================================== */
#resolve {
  padding: 130px 0;
  background: var(--bg-2);
  position: relative;
  border-top: 1px solid var(--border);
}
.resolve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.resolve-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all var(--t) var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.resolve-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.resolve-card:hover {
  border-color: var(--border-gold);
  background: var(--glass-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--gold-glow);
}
.resolve-card:hover::before { opacity: 1; }
.resolve-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold);
  transition: all var(--t) var(--ease);
}
.resolve-card:hover .resolve-icon-wrap {
  background: rgba(201,168,76,0.15);
  box-shadow: 0 0 20px var(--gold-glow);
}
.resolve-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.resolve-card p {
  font-size: 0.875rem;
  color: var(--gray-2);
  line-height: 1.75;
}

/* ===================================
   PROJETOS
   =================================== */
#projetos {
  padding: 130px 0;
}
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
}
.projeto-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--t) var(--ease);
  backdrop-filter: blur(12px);
}
.projeto-card:hover {
  border-color: var(--border-gold);
  background: var(--glass-hover);
}
.projeto-destaque {
  grid-column: span 1;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, var(--glass) 100%);
  border-color: var(--border-gold);
}
.projeto-destaque:hover {
  box-shadow: 0 0 60px var(--gold-glow);
}
.projeto-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.projeto-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}
.projeto-card p {
  color: var(--gray-2);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 24px;
}
.projeto-resultado {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.resultado-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  white-space: nowrap;
}
.resultado-num span {
  font-size: 2rem;
}
.projeto-resultado > span {
  font-size: 0.85rem;
  color: var(--gray-1);
  line-height: 1.4;
}
.projeto-lista li {
  font-size: 0.85rem;
  color: var(--gray-2);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.6;
}
.projeto-lista li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}
.projeto-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--t) var(--ease);
  margin-top: auto;
}
.projeto-link:hover { color: var(--gold-light); gap: 10px; }
.projeto-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* ===================================
   CTA / CONTATO
   =================================== */
#contato {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
#particles-canvas-2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}
.contato-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(201,168,76,0.05) 0%, transparent 60%);
}
.contato-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 88px;
  align-items: center;
}
.contato-imagem img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  filter: grayscale(10%) brightness(0.85);
  border: 1px solid var(--border);
}
.contato-texto p {
  color: var(--gray-2);
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.8;
}
.contato-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===================================
   ESPECIALIDADES (SEO)
   =================================== */
#especialidades {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.espec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.espec-col h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  margin-top: 36px;
}
.espec-col h3:first-child { margin-top: 0; }
.espec-col p {
  font-size: 0.875rem;
  color: var(--gray-2);
  line-height: 1.8;
}
@media (max-width: 768px) {
  .espec-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ===================================
   FOOTER
   =================================== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo .gold { color: var(--gold); }
.footer-logo .dot  { color: var(--gold); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--gray-2);
  letter-spacing: 0.02em;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--gray-2);
  transition: color var(--t) var(--ease);
}
.footer-links a:hover { color: var(--gold); }

/* ===================================
   REVEAL ANIMATION
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.08s; }
.reveal:nth-child(6) { transition-delay: 0.16s; }

/* ===================================
   RESPONSIVO
   =================================== */
@media (max-width: 960px) {
  .hero-content { padding-bottom: 80px; }
  .hero-headline { font-size: 3rem; }
  .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
  .sobre-imagem::after { display: none; }
  .resolve-grid { grid-template-columns: repeat(2, 1fr); }
  .projetos-grid { grid-template-columns: 1fr 1fr; }
  .projeto-destaque { grid-column: 1 / -1; }
  .contato-content { grid-template-columns: 1fr; gap: 48px; }
  .contato-imagem { display: none; }
  .numeros-grid { justify-content: center; gap: 40px; }
  .numero-divisor { display: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .resolve-grid { grid-template-columns: 1fr; }
  .projetos-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.4rem; }
  .section-title { font-size: 2rem; }
  .hero-content { padding: 120px 20px 80px; }
  .hero-actions { flex-direction: column; }
  .footer-content { flex-direction: column; text-align: center; }
}

/* MOBILE NAV OVERLAY */
.nav-mobile-open .nav-links {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6,6,16,0.98);
  backdrop-filter: blur(24px);
  padding: 100px 32px 40px;
  gap: 32px;
  z-index: 99;
  align-items: flex-start;
}
.nav-mobile-open .nav-links a {
  font-size: 1.5rem;
  color: var(--gray-1);
}
