/* =============================================
   NEXABRASIL SOCIAL – INBS
   Design System Premium
   Cores da logo:
   --navy:   #1A3A6B  (azul marinho escuro)
   --blue:   #1565C0  (azul royal)
   --green:  #2E8B2E  (verde vibrante)
   --gold:   #F5A800  (amarelo dourado)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --navy:    #1A3A6B;
  --blue:    #1565C0;
  --green:   #2E8B2E;
  --gold:    #F5A800;
  --light:   #F7F9FC;
  --white:   #FFFFFF;
  --gray:    #6B7280;
  --dark:    #111827;
  --border:  #E5E7EB;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.display-hero { font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -2px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; color: var(--navy); }
.section-sub { font-size: 1rem; color: var(--gray); margin-top: 8px; }
.label-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(245,168,0,0.12);
  color: var(--gold);
  border: 1px solid rgba(245,168,0,0.3);
  margin-bottom: 16px;
}
.label-tag.green {
  background: rgba(46,139,46,0.1);
  color: var(--green);
  border-color: rgba(46,139,46,0.3);
}
.label-tag.blue {
  background: rgba(21,101,192,0.1);
  color: var(--blue);
  border-color: rgba(21,101,192,0.3);
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--navy);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.top-bar a { color: rgba(255,255,255,0.75); text-decoration: none; }
.top-bar a:hover { color: var(--gold); }
.top-bar .social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75);
  transition: all 0.2s; font-size: 12px;
}
.top-bar .social-icons a:hover { background: var(--gold); color: var(--navy); }

/* ── NAVBAR ── */
.site-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.site-navbar .navbar-brand img { height: 52px; }
.site-navbar .navbar-brand .brand-text { line-height: 1.1; }
.site-navbar .navbar-brand .brand-text strong { display: block; font-size: 1rem; font-weight: 800; color: var(--navy); }
.site-navbar .navbar-brand .brand-text small { font-size: 10px; color: var(--gray); letter-spacing: 0.5px; font-weight: 400; }
.site-navbar .nav-link { font-size: 14px; font-weight: 600; color: var(--dark) !important; padding: 24px 14px !important; transition: color 0.2s; letter-spacing: 0.3px; }
.site-navbar .nav-link:hover { color: var(--green) !important; }
.site-navbar .nav-link.active { color: var(--navy) !important; border-bottom: 2px solid var(--green); }
.site-navbar .dropdown-menu { border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.1); padding: 8px; }
.site-navbar .dropdown-item { border-radius: 6px; font-size: 14px; font-weight: 500; padding: 8px 16px; color: var(--dark); }
.site-navbar .dropdown-item:hover { background: var(--light); color: var(--navy); }
.btn-nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  padding: 10px 22px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  margin-left: 8px;
  transition: all 0.2s !important;
  border: none !important;
}
.btn-nav-cta:hover { background: var(--navy) !important; transform: translateY(-1px); }

/* ── HERO CAROUSEL ── */
.hero-carousel { min-height: 90vh; }
.hero-slide {
  min-height: 90vh;
  display: flex !important;
  align-items: center;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,58,107,0.92) 0%, rgba(21,101,192,0.75) 60%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}
.hero-slide .hero-content {
  position: relative; z-index: 2;
  max-width: 780px;
}
.hero-slide .hero-badge {
  display: inline-block;
  background: rgba(245,168,0,0.2);
  border: 1px solid rgba(245,168,0,0.5);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-slide h1 { color: var(--white); }
.hero-slide p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; }
.btn-hero-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 36px;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}
.btn-hero-primary:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-hero-secondary {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 36px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.5);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}
.btn-hero-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); }
.carousel-control-prev, .carousel-control-next {
  width: 50px; height: 50px;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  opacity: 1;
}
.carousel-control-prev { left: 30px; }
.carousel-control-next { right: 30px; }
.carousel-control-prev:hover, .carousel-control-next:hover { background: var(--gold); }
.carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; }
.carousel-indicators .active { background: var(--gold); }

/* ── STATS STRIP ── */
.stats-strip { background: var(--navy); padding: 28px 0; }
.stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 2.2rem; font-weight: 800; color: var(--gold); display: block; }
.stat-item .lbl { font-size: 12px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 1.5px; }

/* ── SECTIONS ── */
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 70px 0; }
.bg-light-section { background: var(--light); }
.bg-navy { background: var(--navy); }
.bg-dark-section { background: var(--dark); }

/* ── ABOUT 2-COL ── */
.img-stack { position: relative; }
.img-stack .img-main { border-radius: 12px; width: 100%; height: 480px; object-fit: cover; }
.img-stack .img-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: var(--navy);
  border-radius: 12px; padding: 20px 24px;
  font-weight: 800; text-align: center;
  box-shadow: 0 8px 30px rgba(245,168,0,0.3);
}
.img-stack .img-badge .num { font-size: 2.5rem; display: block; line-height: 1; }
.img-stack .img-badge .lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ── SERVICE CARDS ── */
.service-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 400px;
  transition: transform 0.4s;
  display: block;
  text-decoration: none;
}
.service-card:hover { transform: translateY(-8px); text-decoration: none; }
.service-card .bg { position: absolute; inset: 0; background-size: cover !important; background-position: center !important; transition: transform 0.5s; }
.service-card:hover .bg { transform: scale(1.05); }
.service-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,58,107,0.95) 0%, rgba(26,58,107,0.2) 60%, transparent 100%); z-index: 1; }
.service-card .card-body { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 30px; }
.service-card .icon { width: 48px; height: 48px; background: var(--gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 20px; margin-bottom: 14px; }
.service-card h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
.service-card p { color: rgba(255,255,255,0.75); font-size: 13px; margin: 0; }

/* ── PARALLAX CTA ── */
.parallax-cta {
  background-attachment: fixed;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  padding: 130px 0;
}
.parallax-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,58,107,0.93) 0%, rgba(46,139,46,0.80) 100%);
}
.parallax-cta .inner { position: relative; z-index: 2; }
.btn-whatsapp {
  background: #25D366; color: var(--white) !important;
  font-weight: 700; font-size: 16px;
  padding: 16px 42px; border-radius: 50px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 6px 25px rgba(37,211,102,0.4);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(37,211,102,0.5); background: #1ebe5d; }
.btn-outline-cta {
  background: transparent; color: var(--white) !important;
  font-weight: 600; font-size: 16px;
  padding: 16px 42px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  text-decoration: none; display: inline-block;
  transition: all 0.3s;
}
.btn-outline-cta:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ── TESTIMONIALS ── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
  height: 100%;
}
.testimonial-card:hover { border-color: var(--green); box-shadow: 0 8px 30px rgba(46,139,46,0.1); transform: translateY(-4px); }
.testimonial-card .stars { color: var(--gold); font-size: 14px; margin-bottom: 16px; }
.testimonial-card .quote { font-size: 14px; color: var(--gray); line-height: 1.8; font-style: italic; margin-bottom: 24px; }
.testimonial-card .author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-card .author .name { font-weight: 700; font-size: 14px; color: var(--navy); }
.testimonial-card .author .role { font-size: 12px; color: var(--gray); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; cursor: pointer;
  font-weight: 600; font-size: 16px; color: var(--navy);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--green); }
.faq-question .faq-icon {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 16px;
  transition: all 0.3s; flex-shrink: 0;
}
.faq-item.open .faq-icon { background: var(--green); border-color: var(--green); color: var(--white); transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 20px; color: var(--gray); font-size: 15px; line-height: 1.8; }
.faq-item.open .faq-answer { display: block; }

/* ── ORGANOGRAM ── */
.org-wrapper { overflow-x: auto; padding: 40px 20px; }
.org-tree { display: flex; flex-direction: column; align-items: center; }
.org-level { display: flex; justify-content: center; gap: 24px; position: relative; }
.org-level + .org-level { margin-top: 50px; }
.org-level::before {
  content: '';
  position: absolute;
  top: -26px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 26px;
  background: var(--border);
}
.org-group { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-group .children { display: flex; gap: 24px; margin-top: 50px; position: relative; }
.org-group .children::before {
  content: '';
  position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 25px;
  background: var(--border);
}
.org-group .children .org-card { position: relative; }
.org-group .children .org-card::before {
  content: '';
  position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 25px;
  background: var(--border);
}

.org-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  width: 180px;
  transition: all 0.3s;
  cursor: pointer;
}
.org-card:hover { border-color: var(--green); box-shadow: 0 6px 20px rgba(46,139,46,0.1); transform: translateY(-3px); }
.org-card.top-level { border-color: var(--navy); border-width: 2px; background: var(--navy); color: var(--white); width: 220px; }
.org-card.top-level h6 { color: var(--white); }
.org-card.top-level .role { color: rgba(255,255,255,0.7); }
.org-card.top-level .org-avatar { border-color: var(--gold); }
.org-card.mid-level { border-color: var(--blue); }
.org-card.mid-level .org-avatar { border-color: var(--blue); }
.org-avatar {
  width: 64px; height: 64px;
  border-radius: 50%; border: 3px solid var(--border);
  object-fit: cover; margin: 0 auto 12px;
  display: block;
}
.org-card h6 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.org-card .role { font-size: 11px; color: var(--gray); }
.org-card .dept-tag {
  display: inline-block; margin-top: 8px;
  background: rgba(46,139,46,0.1); color: var(--green);
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; letter-spacing: 0.5px;
}

/* ── PROJECTS ── */
.project-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.project-card:hover { border-color: var(--navy); box-shadow: 0 10px 35px rgba(26,58,107,0.1); transform: translateY(-5px); }
.project-card .card-header { height: 200px; background-size: cover !important; background-position: center !important; position: relative; }
.project-card .card-header .badge-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--gold); color: var(--navy);
  font-size: 10px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
}
.project-card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-card .card-body h5 { color: var(--navy); font-size: 1rem; margin-bottom: 10px; }
.project-card .card-body p { color: var(--gray); font-size: 13px; flex: 1; }
.btn-download {
  display: flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white) !important;
  font-size: 13px; font-weight: 600; padding: 10px 20px;
  border-radius: 6px; text-decoration: none; margin-top: 20px;
  transition: all 0.2s; width: fit-content;
}
.btn-download:hover { background: var(--green); }

/* ── FOOTER ── */
.site-footer-new { background: var(--dark); padding: 70px 0 0; }
.site-footer-new h6 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 20px; }
.site-footer-new p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.8; }
.site-footer-new a { color: rgba(255,255,255,0.55); font-size: 14px; text-decoration: none; transition: color 0.2s; display: block; margin-bottom: 8px; }
.site-footer-new a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); margin-top: 50px; padding: 20px 0; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); margin: 0; }

/* ── BUTTONS ── */
.btn-primary-solid {
  background: var(--navy); color: var(--white) !important;
  font-weight: 700; padding: 14px 36px; border-radius: 6px;
  text-decoration: none; display: inline-block; transition: all 0.3s; border: none; font-size: 15px;
}
.btn-primary-solid:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,139,46,0.3); }
.btn-green-solid {
  background: var(--green); color: var(--white) !important;
  font-weight: 700; padding: 14px 36px; border-radius: 6px;
  text-decoration: none; display: inline-block; transition: all 0.3s; border: none; font-size: 15px;
}
.btn-green-solid:hover { background: var(--navy); transform: translateY(-2px); }
.btn-outline-navy {
  background: transparent; color: var(--navy) !important;
  font-weight: 700; padding: 13px 35px; border-radius: 6px;
  border: 2px solid var(--navy); text-decoration: none; display: inline-block; transition: all 0.3s; font-size: 15px;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white) !important; }

/* ── DIVIDER ── */
.gold-line { width: 60px; height: 4px; background: var(--gold); border-radius: 2px; margin: 16px 0 32px; }
.gold-line.center { margin-left: auto; margin-right: auto; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.anim-fade-up { animation: fadeUp 0.7s ease forwards; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section-pad { padding: 60px 0; }
  .hero-carousel, .hero-slide { min-height: 70vh; }
  .org-card { width: 150px; }
  .parallax-cta { background-attachment: scroll; }
  .img-stack .img-badge { right: 0; }
}
