/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cyan: #0e7c72;
  --cyan-vivid: #00bfae;
  --magenta: #d125ce;
  --magenta-vivid: #ff68f7;
  --dark: #1a1a1a;
  --text: #1a1a1a;
  --text-soft: #5a5550;
  --text-dim: #8a857d;
  --bg: #f4f1ec;
  --card-bg: #ffffff;
  --card-border: #e5e1da;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ACESSIBILIDADE ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== HIGHLIGHT ===== */
.highlight {
  background: var(--magenta-vivid);
  color: #000;
  padding: 2px 8px;
  display: inline;
  line-height: 1.4;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(244, 241, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--cyan);
  padding: 10px 24px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

.nav-cta:hover {
  background: var(--magenta);
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 191, 174, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 104, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--cyan);
  padding: 16px 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  background: var(--magenta);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 48px;
  color: var(--text);
}

/* ===== FEATURED WORK ===== */
.featured {
  background: var(--bg);
  position: relative;
}

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

.featured-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--card-border);
  aspect-ratio: 9 / 16;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
  grid-column: span 2;
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.06);
}

.featured-card:nth-child(4) { grid-column: 2 / span 2; }
.featured-card:nth-child(5) { grid-column: 4 / span 2; }

.featured-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(14, 124, 114, 0.18);
}

.featured-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.featured-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.featured-client {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.featured-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan-vivid);
}

/* ===== INSTITUCIONAIS ===== */
.institucionais {
  background: var(--card-bg);
}

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

.institucional-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--card-border);
  aspect-ratio: 16 / 9;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.06);
}

.institucional-card:hover {
  border-color: var(--magenta);
  box-shadow: 0 10px 28px rgba(209, 37, 206, 0.16);
}

.institucional-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== LEGACY SECTION ===== */
.legacy {
  background: var(--bg);
}

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

.legacy-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 36px 32px;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.04);
}

.legacy-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(14, 124, 114, 0.12);
}

.card-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.legacy-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.legacy-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== PARA QUEM ===== */
.para-quem {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(156, 109, 145, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(255, 104, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(0, 191, 174, 0.08) 0%, transparent 50%),
    var(--card-bg);
  position: relative;
}

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

.publico-item {
  text-align: center;
  padding: 32px 24px;
}

.publico-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(14, 124, 114, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.publico-icon svg {
  stroke: var(--cyan);
}

.publico-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.publico-item p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== CASES ===== */
.cases {
  background: var(--bg);
}

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

.case-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 36px 28px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.04);
}

.case-card:hover {
  border-color: var(--magenta);
  box-shadow: 0 8px 24px rgba(209, 37, 206, 0.12);
}

.case-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--magenta);
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--text);
}

.case-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== QUEM SOMOS ===== */
.quem-somos {
  background: var(--card-bg);
}

.sobre-content {
  max-width: 700px;
}

.sobre-texto {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

.fundadores {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}

.fundador {
  display: flex;
  align-items: center;
}

.fundador-foto {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid var(--card-border);
  transition: border-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.08);
}

.fundador-link:hover .fundador-foto {
  transform: scale(1.04);
}

.fundador-link:hover .fundador-foto {
  border-color: var(--cyan);
}

.fundador h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.fundador p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.fundador-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.fundador-link:hover {
  opacity: 0.85;
}

.fundador-bio {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px 24px;
  flex: 1;
}

.fundador-bio h4 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.fundador-cargo {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.fundador-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-top: 16px;
}

/* ===== CONTATO ===== */
.contato {
  background: var(--bg);
  text-align: center;
}

.contato .section-title {
  margin-bottom: 16px;
}

.contato-sub {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 40px;
}

.contato-email {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 24px;
  text-align: center;
  background: var(--card-bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 20px;
  border-radius: 4px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .legacy-grid {
    grid-template-columns: 1fr;
  }

  .publico-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

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

  .featured-card,
  .featured-card:nth-child(4),
  .featured-card:nth-child(5) {
    grid-column: span 1;
  }

  .featured-card:nth-child(5) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .featured-caption {
    padding: 12px 14px;
  }

  .featured-client {
    font-size: 0.82rem;
  }

  .featured-year {
    font-size: 0.65rem;
  }

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

  .fundadores {
    flex-direction: column;
    gap: 24px;
  }

  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .section {
    padding: 72px 0;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .legacy-card,
  .publico-item,
  .case-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
  }

  .legacy-card.visible,
  .publico-item.visible,
  .case-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
