/* ============================================================
   ModeloNesos — Design System
   Arquivo centralizado de estilos do projeto.
   ============================================================ */

/* ----------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   ---------------------------------------------------------- */
:root {
  /* ── Cores Primárias ── */
  --primary:        #1A8FFF;
  --primary-dark:   #0D6FCC;
  --primary-light:  #E0F0FF;
  --primary-rgb:    26, 143, 255;   /* para usar com rgba() */

  /* ── Cores de Destaque ── */
  --accent:         #FF6B2C;
  --accent-light:   #FFF0E8;

  /* ── Cores de Estado ── */
  --success:        #10B981;
  --success-light:  #D1FAE5;
  --danger:         #F43F5E;
  --danger-light:   #FFE4E9;
  --warning:        #F59E0B;
  --warning-light:  #FEF3C7;
  --info:           #06B6D4;
  --info-light:     #CFFAFE;

  /* ── Neutrals / Texto ── */
  --dark:           #0A2540;
  --text:           #334155;
  --muted:          #64748B;
  --light:          #94A3B8;
  --border:         #E2E8F0;
  --surface:        #F1F5F9;
  --white:          #ffffff;

  /* ── Tipografia ── */
  --font-family:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  --font-size-base: 1rem;       /* 16px */
  --font-size-sm:   0.875rem;   /* 14px */
  --font-size-xs:   0.75rem;    /* 12px */
  --font-size-lg:   1.125rem;   /* 18px */
  --font-size-xl:   1.25rem;    /* 20px */
  --font-size-2xl:  1.5rem;     /* 24px */
  --font-size-3xl:  2rem;       /* 32px */

  /* ── Pesos de Fonte ── */
  --fw-light:       300;
  --fw-normal:      400;
  --fw-medium:      500;
  --fw-semibold:    600;
  --fw-bold:        700;
  --fw-extrabold:   800;

  /* ── Espaçamentos Base ── */
  --spacing-xs:     0.25rem;    /* 4px */
  --spacing-sm:     0.5rem;     /* 8px */
  --spacing-md:     1rem;       /* 16px */
  --spacing-lg:     1.5rem;     /* 24px */
  --spacing-xl:     2rem;       /* 32px */
  --spacing-2xl:    3rem;       /* 48px */
  --spacing-3xl:    4rem;       /* 64px */

  /* ── Bordas ── */
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-pill:    50rem;

  /* ── Sombras ── */
  --shadow-sm:      0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:      0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg:      0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl:      0 20px 40px rgba(0, 0, 0, 0.12);

  /* ── Transições ── */
  --transition-fast: all 0.15s ease;
  --transition:      all 0.25s ease;
  --transition-slow: all 0.4s ease;
}


/* ----------------------------------------------------------
   ACESSIBILIDADE
   ---------------------------------------------------------- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
  color: #fff;
}

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}


/* ----------------------------------------------------------
   2. RESET E BASE
   ---------------------------------------------------------- */
* {
  font-family: var(--font-family);
}

body {
  background: var(--white);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text);
}


/* ----------------------------------------------------------
   3. NAVBAR
   ---------------------------------------------------------- */
.navbar-brand {
  font-weight: var(--fw-extrabold);
  font-size: var(--font-size-xl);
  color: var(--primary) !important;
}

.navbar-nav .nav-link {
  font-weight: var(--fw-medium);
  font-size: var(--font-size-sm);
  color: var(--text) !important;
  padding: var(--spacing-sm) 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  background: var(--primary-light);
  color: var(--primary) !important;
}


/* ----------------------------------------------------------
   4. HERO
   ---------------------------------------------------------- */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, #0D3B66 50%, #1565C0 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), .3) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 44, .15) 0%, transparent 70%);
  border-radius: 50%;
}


/* ----------------------------------------------------------
   5. SEÇÕES
   ---------------------------------------------------------- */
.section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--dark);
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: var(--spacing-md) auto var(--spacing-lg);
}

.page-title {
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.95), rgba(26, 143, 255, 0.85));
}


/* ----------------------------------------------------------
   6. CARDS
   ---------------------------------------------------------- */
.feature-card {
  border: none;
  border-radius: var(--radius-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl) !important;
}


/* ----------------------------------------------------------
   7. BOTÕES
   ---------------------------------------------------------- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: var(--fw-semibold);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}


/* ----------------------------------------------------------
   8. FORMULÁRIOS
   ---------------------------------------------------------- */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}


/* ----------------------------------------------------------
   9. BADGES
   ---------------------------------------------------------- */
.badge-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}


/* ----------------------------------------------------------
   10. FOOTER
   ---------------------------------------------------------- */
footer {
  background: var(--dark);
  color: var(--light);
}

footer a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--white);
}


/* ----------------------------------------------------------
   11. UTILITÁRIOS
   ---------------------------------------------------------- */
.transition-hover {
  transition: var(--transition);
}

.transition-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl) !important;
}

.hover-bg-light:hover {
  background-color: var(--surface);
  cursor: pointer;
}

.hover-border-primary:hover {
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-sm) !important;
}

.transition-all {
  transition: var(--transition);
}


/* ----------------------------------------------------------
   12. RESPONSIVO
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
