/* ============================================================
   BRAMBATTI.COM — Folha de estilos global
   ============================================================ */

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

/* ── VARIÁVEIS ── */
:root {
  --gold: #c9a84c;
  --gold-light: #e8c97e;
  --gold-dim: rgba(201,168,76,0.15);
  --dark: #0b0c0e;
  --dark-2: #111318;
  --dark-3: #191c22;
  --dark-4: #222630;
  --text: #e8e4dc;
  --text-muted: #8a8580;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 999;
}

/* ── AMBIENT GLOW ── */
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.ambient-1 {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  animation: drift1 20s ease-in-out infinite alternate;
}
.ambient-2 {
  width: 500px; height: 500px;
  bottom: -150px; right: -100px;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
  animation: drift2 25s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0); } to { transform: translate(80px, 60px); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(-60px, -80px); } }

/* ── WRAPPER ── */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── HEADER ── */
header {
  padding: 56px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) 0.1s forwards;
}

.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
  text-decoration: none;
  display: block;
}
.logo-name em { font-style: italic; color: var(--gold); }

.logo-sub {
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 300;
}

.header-line {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
}
.header-line a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}
.header-line a:hover,
.header-line a.active { color: var(--gold); }

.header-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
  opacity: 0.18;
  margin: 40px 0 48px;
}

/* ── PAGE TITLE (páginas internas) ── */
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) 0.3s forwards;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) 1s forwards;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--gold); }

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


/* ============================================================
   INDEX — Serviços
   ============================================================ */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 80px;
}

.card {
  background: var(--dark-2);
  padding: 40px 36px 44px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.4s ease;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) forwards;
}
.card:nth-child(1) { animation-delay: 0.55s; }
.card:nth-child(2) { animation-delay: 0.70s; }
.card:nth-child(3) { animation-delay: 0.85s; }

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.card:hover { background: var(--dark-3); }
.card:hover::before { opacity: 1; }

.card-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.5;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

.card-icon {
  width: 44px; height: 44px;
  margin-bottom: 24px;
  color: var(--gold);
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.4s;
}
.card:hover .card-icon { opacity: 1; transform: translateY(-3px); }

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 14px;
}

.card-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 300;
  flex: 1;
  margin-top: 10px;
}

.card-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  transition: gap 0.3s;
}
.card:hover .card-cta { gap: 16px; }

.card-cta-arrow {
  width: 24px; height: 1px;
  background: var(--gold);
  position: relative;
  transition: width 0.3s;
  flex-shrink: 0;
}
.card-cta-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-right: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
  transform: rotate(45deg);
}
.card:hover .card-cta-arrow { width: 36px; }


/* ============================================================
   ABOUT — Sobre
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) 0.4s forwards;
}

.about-col {
  background: var(--dark-2);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.col-divider {
  background: rgba(255,255,255,0.05);
  width: 1px;
}

.about-section-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}

.section-body {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 4px 12px;
  border-radius: 1px;
  font-weight: 300;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  margin-top: 8px;
  transition: gap 0.3s;
}
.contact-link:hover { gap: 16px; }

.contact-link-arrow {
  width: 24px; height: 1px;
  background: var(--gold);
  position: relative;
  transition: width 0.3s;
  flex-shrink: 0;
}
.contact-link-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-right: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
  transform: rotate(45deg);
}
.contact-link:hover .contact-link-arrow { width: 36px; }


/* ============================================================
   CONTACT — Contato
   ============================================================ */

.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 80px;
}

.contact-card {
  background: var(--dark-2);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.4s ease;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) forwards;
}
.contact-card:nth-child(1) { animation-delay: 0.40s; }
.contact-card:nth-child(2) { animation-delay: 0.52s; }
.contact-card:nth-child(3) { animation-delay: 0.64s; }
.contact-card:nth-child(4) { animation-delay: 0.76s; }
.contact-card:nth-child(5) { animation-delay: 0.88s; }

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.contact-card:hover { background: var(--dark-3); }
.contact-card:hover::before { opacity: 1; }

.contact-icon {
  width: 36px; height: 36px;
  margin-bottom: 20px;
  color: var(--gold);
  opacity: 0.75;
  transition: opacity 0.3s, transform 0.4s;
  flex-shrink: 0;
}
.contact-card:hover .contact-icon { opacity: 1; transform: translateY(-3px); }

.contact-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-handle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 300;
  flex: 1;
}

.contact-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  transition: gap 0.3s;
}
.contact-card:hover .contact-cta { gap: 16px; }

.contact-cta-arrow {
  width: 24px; height: 1px;
  background: var(--gold);
  position: relative;
  transition: width 0.3s;
  flex-shrink: 0;
}
.contact-cta-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-right: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
  transform: rotate(45deg);
}
.contact-card:hover .contact-cta-arrow { width: 36px; }


/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 860px) {
  header { flex-direction: column; gap: 12px; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; }

  .services { grid-template-columns: 1fr; }
  .card { padding: 32px 28px 36px; }

  .contacts { grid-template-columns: repeat(2, 1fr); }
  .contact-card { padding: 28px 24px 32px; }
}

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
  .col-divider { display: none; }
  .about-col { padding: 32px 28px; }
  .about-col:first-child { border-bottom: 1px solid rgba(255,255,255,0.05); }
}

@media (max-width: 500px) {
  .wrapper { padding: 0 20px; }
  .contacts { grid-template-columns: 1fr; }
}
