/* =============================================================
   ProjeTI.me — Custom Stylesheet
   Baseado em Bootstrap 5 com tema corporativo
   ============================================================= */

:root {
  --color-primary:     #1a3a5c;   /* Azul institucional */
  --color-primary-hover: #144070;
  --color-accent:      #00bcd4;   /* Cyan tecnológico */
  --color-accent-dark: #0097a7;
  --color-dark:        #1a1a2e;
  --color-light-bg:    #f5f7fa;
  --color-card-border: #e3e8ef;
}

/* ---- Global ---- */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ---- Navbar ---- */
.bg-primary-custom {
  background-color: var(--color-primary) !important;
}

.text-accent {
  color: var(--color-accent) !important;
}

.navbar-brand {
  letter-spacing: 0.5px;
}

/* ---- Hero Section ---- */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d2540 60%, var(--color-dark) 100%);
  min-height: 540px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,188,212,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,188,212,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,188,212,0.15);
  border: 1px solid rgba(0,188,212,0.4);
  color: var(--color-accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ---- Section utilities ---- */
.section-light {
  background-color: var(--color-light-bg);
}

.section-title {
  font-weight: 700;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---- Cards ---- */
.card-service {
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-service:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(26,58,92,0.12);
}

.card-service .card-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,188,212,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.card-blog {
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-blog:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(26,58,92,0.1);
}

/* ---- Buttons ---- */
.btn-primary-custom {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

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

.btn-outline-primary-custom {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-outline-primary-custom:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* ---- Badges de Status ---- */
.badge-status {
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* ---- Breadcrumb ---- */
.breadcrumb-section {
  background-color: var(--color-light-bg);
  border-bottom: 1px solid var(--color-card-border);
  padding: 12px 0;
}

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #124a7c 100%);
  padding: 64px 0 48px;
  color: #fff;
}

/* ---- Feature icons ---- */
.feature-icon-lg {
  width: 72px;
  height: 72px;
  background: rgba(0,188,212,0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-accent);
}

/* ---- Stats ---- */
.stat-item {
  text-align: center;
}

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

.stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ---- Footer ---- */
.footer-custom {
  background-color: #0f2135;
  color: #fff;
  border-top: 3px solid var(--color-accent);
}

.footer-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-custom .text-muted {
  color: rgba(255,255,255,0.55) !important;
}

.footer-custom hr {
  border-color: rgba(255,255,255,0.1);
}

/* ---- Ticket priority colors ---- */
.priority-alta  { color: #dc3545; font-weight: 600; }
.priority-media { color: #fd7e14; font-weight: 600; }
.priority-baixa { color: #0d6efd; font-weight: 600; }

/* ---- Forms ---- */
.form-control:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(0,188,212,0.2);
}

/* ---- Login page ---- */
.login-card {
  max-width: 420px;
  margin: 80px auto;
  border: none;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(26,58,92,0.12);
}

/* ---- Responsive tweaks ---- */
@media (max-width: 768px) {
  .hero-section {
    min-height: 420px;
    text-align: center;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
