/* ============================================================
   BRINN GROUP — Site Institucional Premium
   Tema: Claro, corporativo de alto desempenho, profundo e sofisticado
   ============================================================ */

/* Reset & Variables */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --brand: #1d4ed8;       /* Tech Blue */
  --brand-dark: #1e3a8a;
  --brand-light: #eff6ff;
  --brand-glow: rgba(37, 99, 235, 0.4);

  --accent: #0284c7;      /* Clean Cyan */
  --accent-light: #e0f2fe;

  --navy: #0f172a;        /* Deep Slate for extreme contrast */
  --navy-light: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  
  --border-light: #e2e8f0;
  
  --radius: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 25px 35px -5px rgba(15, 23, 42, 0.12);
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: var(--radius); }

/* ── Container ──────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.0);
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
  padding: 14px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 101;
}

.logo__img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo__text {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition);
  position: relative;
}

.nav__link:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width var(--transition);
}

.nav__link:hover:not(.btn-nav)::after { width: 100%; }
.nav__link:hover { color: var(--navy); }

/* Mobile toggler */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

.menu-toggle--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle--active span:nth-child(2) { opacity: 0; }
.menu-toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:active { transform: scale(0.98); }

.btn--sm { padding: 10px 24px; font-size: 0.85rem; }

.btn--solid {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn--solid:hover {
  background: var(--brand);
  box-shadow: 0 6px 16px var(--brand-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn--outline:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 200px 0 140px;
  background: radial-gradient(circle at top right, var(--bg-alt), #ffffff);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  text-align: center;
}

.hero__bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero__body {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero__title span {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__text {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 680px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SECTIONS — common
   ============================================================ */
.section {
  padding: 120px 0;
}

.section--white { background: var(--bg-main); }
.section--light { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #fff; }

.section__header {
  text-align: center;
  margin-bottom: 72px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section__title--white { color: #fff; }
.section__title--left { text-align: left; }

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section--dark .section__subtitle { color: var(--slate-400); }

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

/* ============================================================
   EXPERTISE CARDS
   ============================================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.expertise-card {
  background: var(--bg-main);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-light);
}

.expertise-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.expertise-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.expertise-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ============================================================
   CARDS (Unidades)
   ============================================================ */
.card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: #cbd5e1;
}

.card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--navy);
}

.card__icon--accent {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}

.card__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}

.card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex: 1;
}

.card__desc--small {
  margin-top: 12px;
  font-size: 0.85rem;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  color: var(--text-muted);
  flex: none;
}

.card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  transition: var(--transition);
}

.card__action i { transition: transform 0.2s; }
.card__action:hover { color: var(--navy); }
.card__action:hover i { transform: translateX(4px); }

/* Card logo */
.card__logo {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 10px;
  align-self: flex-start;
}

.card__logo--dark {
  background: var(--navy);
  padding: 12px 16px;
}

/* Featured card */
.card--featured {
  grid-column: span 2;
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(to bottom right, #f8fafc, #eff6ff);
}
.card__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  margin-bottom: 24px;
}

/* ============================================================
   SINERGIA / ECOSSISTEMA
   ============================================================ */
.container--synergy {
  padding: 0;
  max-width: 100%;
}
.synergy-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.synergy-content { padding: 40px 0; }

.synergy-text {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 32px;
}
.synergy-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: #e2e8f0;
  font-weight: 500;
}
.synergy-list i { color: var(--brand); font-size: 1.3rem; }

.circle-ecosystem {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 30s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.circle-item {
  position: absolute;
  width: 110px;
  height: 110px;
  background: var(--navy-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  /* Reverse rotation for text */
  animation: counter-spin 30s linear infinite;
}

@keyframes counter-spin { 100% { transform: rotate(-360deg); } }

.item-1 { top: -55px; left: 50%; margin-left: -55px; }
.item-2 { bottom: -55px; left: 50%; margin-left: -55px; }
.item-3 { left: -55px; top: 50%; margin-top: -55px; }
.item-4 { right: -55px; top: 50%; margin-top: -55px; }

.circle-center {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.9);
  box-shadow: 0 0 60px rgba(37,99,235,0.4);
  /* Inverse spin so center appears static or spinning differently */
  animation: counter-spin 30s linear infinite;
}

/* ============================================================
   SOBRE
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
}

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

.about__image-placeholder {
  width: 100%;
  height: 380px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.about__logo {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.about__text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.metric {
  background: var(--navy);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.metric__value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-light);
}

.metric__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 12px;
  opacity: 0.8;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.value-item {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.value-item--full { grid-column: span 2; }

.value-item__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.value-item__text { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   CTA / NEWSLETTER
   ============================================================ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  text-align: center;
}

.cta__inner {
  max-width: 800px;
}
.cta__content h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta__content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }

.cta__form {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}
.cta__form input {
  flex: 1;
  padding: 16px 24px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}
.cta__form .btn {
  background: var(--navy);
  color: #fff;
}
.cta__form .btn:hover { background: #0f172a; box-shadow: none; transform: none;}

/* ============================================================
   CONTATO
   ============================================================ */
.contact-item {
  padding: 40px 32px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.contact-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.contact-item__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.contact-item__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.contact-item__info { font-size: 1rem; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: var(--text-muted); padding-top: 80px; }

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
}

.logo__img--footer {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 20px 0;
  max-width: 380px;
}

.social-links { display: flex; gap: 16px; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1.25rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--brand); }

.footer__heading {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 24px;
}

.footer__list li { margin-bottom: 12px; }
.footer__list a {
  font-size: 0.95rem;
  transition: var(--transition);
}
.footer__list a:hover { color: #fff; }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 24px 0;
  text-align: center;
}
.footer__bar p { font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card--featured { grid-column: span 2; }
  .synergy-wrapper { grid-template-columns: 1fr; text-align: center; }
  .synergy-content .section__title { margin-left: auto; margin-right: auto; text-align: center; }
  .synergy-list { text-align: left; max-width: 300px; margin: 0 auto; }
  .about { grid-template-columns: 1fr; }
  .about__media { margin-bottom: 32px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
  }
  .nav--open { opacity: 1; visibility: visible; }
  .nav__link { font-size: 1.2rem; }

  .hero { padding: 140px 0 80px; }
  .section { padding: 80px 0; }
  
  .grid--3 { grid-template-columns: 1fr; }
  .card--featured { grid-column: span 1; }
  .expertise-grid { grid-template-columns: 1fr; }

  .circle-ecosystem { transform: scale(0.7); animation: none; margin: -40px auto; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item--full { grid-column: span 1; }

  .cta__form { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer__desc { margin: 20px auto; }
  .social-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .circle-ecosystem { transform: scale(0.5); }
}
