/**
 * NexFin Solution - Custom Styles
 * Cores da Marca: Navy Blue, Ocean Blue, Coral Orange, Golden Yellow
 * Tipografia: Poppins (títulos) + Urbanist (textos)
 */

:root {
  /* Cores Primárias */
  --nexfin-navy: #1E3A5F;
  --nexfin-ocean: #2E5C8A;
  --nexfin-coral: #FF6B35;
  --nexfin-gold: #FFB84D;

  /* Cores Neutras */
  --nexfin-white: #FFFFFF;
  --nexfin-light-gray: #F5F7FA;
  --nexfin-medium-gray: #6C757D;
  --nexfin-dark-gray: #2D3748;
  --nexfin-black: #1a1a1a;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #1E3A5F 0%, #2E5C8A 100%);
  --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FFB84D 100%);
  --gradient-hero: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(46, 92, 138, 0.9) 100%);

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.08);
  --shadow-md: 0 4px 16px rgba(30, 58, 95, 0.12);
  --shadow-lg: 0 8px 32px rgba(30, 58, 95, 0.16);
  --shadow-xl: 0 12px 48px rgba(30, 58, 95, 0.20);

  /* Tipografia */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Urbanist', sans-serif;
}

/* ===== GLOBAL STYLES ===== */
body {
  font-family: var(--font-body);
  color: var(--nexfin-dark-gray);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--nexfin-navy);
  line-height: 1.3;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

/* ===== HEADER MODERNIZADO ===== */
.header {
  background: var(--nexfin-white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.sitename {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.navmenu ul li a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--nexfin-navy);
  transition: all 0.3s ease;
  position: relative;
}

.navmenu ul li a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.navmenu ul li a:hover:after,
.navmenu ul li a.active:after {
  width: 100%;
}

/* ===== HERO SECTION - REDESIGN COMPLETO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--nexfin-navy);
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--nexfin-white);
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.stat-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.stat-item h3 {
  color: var(--nexfin-white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin: 0;
}

/* ===== BOTÕES MODERNIZADOS ===== */
.btn-primary {
  background: var(--gradient-accent);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, #e55a2b 0%, #f0a040 100%);
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid white;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background: white;
  color: var(--nexfin-navy);
  transform: translateY(-3px);
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.description-title {
  display: inline-block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--nexfin-navy);
}

.section-title p {
  font-size: 1.25rem;
  color: var(--nexfin-medium-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== CARDS DE SERVIÇOS PREMIUM ===== */
.service-item {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(30, 58, 95, 0.08);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-item:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-xl);
  border-color: var(--nexfin-coral);
}

.service-item:hover:before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 184, 77, 0.1) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.service-item:hover .service-icon {
  background: var(--gradient-accent);
  transform: rotateY(360deg);
}

.service-icon i {
  font-size: 2.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s ease;
}

.service-item:hover .service-icon i {
  -webkit-text-fill-color: white;
}

.service-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(30, 58, 95, 0.05);
  font-family: var(--font-heading);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nexfin-navy);
  margin-bottom: 1rem;
}

.service-text {
  color: var(--nexfin-medium-gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--nexfin-coral);
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
}

.service-link:hover {
  gap: 1rem;
  color: var(--nexfin-navy);
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--nexfin-light-gray);
  padding: 6rem 0;
}

.section-header h2 {
  color: var(--nexfin-navy);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.highlight-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--nexfin-navy);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.icon-box {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
}

.feature-item h4 {
  color: var(--nexfin-navy);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.feature-item p {
  color: var(--nexfin-medium-gray);
  margin: 0;
  line-height: 1.7;
}

/* ===== CTA BOX ===== */
.cta-box {
  background: var(--gradient-primary);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-box:before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.cta-content h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.primary-btn {
  background: white;
  color: var(--nexfin-navy);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
}

.primary-btn:hover {
  background: var(--nexfin-coral);
  color: white;
  transform: scale(1.05);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ===== BLOCKQUOTE ===== */
blockquote {
  background: rgba(255, 107, 53, 0.05);
  border-left: 4px solid var(--nexfin-coral);
  padding: 2rem;
  border-radius: 12px;
  margin: 3rem 0;
}

blockquote p {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--nexfin-navy);
  font-weight: 600;
  margin: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--nexfin-navy);
  padding: 2rem 0;
}

.footer .copyright {
  color: rgba(255, 255, 255, 0.8);
}

.footer .sitename {
  -webkit-text-fill-color: white;
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .section-title h2 {
    font-size: 2.25rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .service-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 2rem;
  }

  .feature-item {
    flex-direction: column;
  }
}
