/* ==========================================================
   Landing Page - Residência em TIC
   Parceria: Unilab + IEDS + BRISA

   Para editar cores, altere as variáveis abaixo em :root
   ========================================================== */

:root {
  /* Cores principais (Unilab) */
  --primary: #A02D34;
  --primary-dark: #6D1F26;
  --primary-darker: #510E16;
  --primary-light: #DFA6A9;

  /* Cores auxiliares */
  --accent: #1B6B93;
  --accent-dark: #144B63;

  /* Fundo e texto */
  --bg-light: #F5F6F9;
  --bg-white: #FFFFFF;
  --text-dark: #3A3B3C;
  --text-muted: #6C757D;
  --border-color: #DEE2E6;

  /* Tipografia */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================
   Reset e Base
   ========================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================
   Header / Navbar
   ========================================================== */

.navbar-custom {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem 0;
  z-index: 1000;
}

.navbar-custom.scrolled {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.navbar-custom .navbar-brand img {
  height: 40px;
  transition: height 0.3s ease;
}

.navbar-custom.scrolled .navbar-brand img {
  height: 35px;
}

.navbar-custom .nav-link {
  color: var(--bg-white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-custom.scrolled .nav-link {
  color: var(--text-dark);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary-light);
}

.navbar-custom.scrolled .nav-link:hover,
.navbar-custom.scrolled .nav-link.active {
  color: var(--primary);
}

.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  padding: 0.4rem 0.6rem;
}

.navbar-custom.scrolled .navbar-toggler {
  border-color: var(--border-color);
}

.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-custom.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2858, 59, 60, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================
   Hero Section
   ========================================================== */

.hero-section {
  color: var(--bg-white);
  padding: 140px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* Parallax background */
  background-image: url('../img/hero-tech.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(81, 14, 22, 0.92) 0%, rgba(160, 45, 52, 0.85) 50%, rgba(109, 31, 38, 0.90) 100%);
  z-index: 1;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 650px;
  line-height: 1.7;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.btn-hero {
  background-color: var(--bg-white);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-hero:hover {
  background-color: var(--primary-light);
  color: var(--primary-darker);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-logos {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-logos img {
  height: 45px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.hero-image {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

/* ==========================================================
   Section Common
   ========================================================== */

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
}

.bg-white {
  background-color: var(--bg-white) !important;
}

.bg-light-custom {
  background-color: var(--bg-light) !important;
}

/* ==========================================================
   Sobre / About
   ========================================================== */

.about-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  height: 100%;
}

.about-card h3 {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--text-dark);
  line-height: 1.8;
}

.about-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-highlight h3 {
  color: var(--bg-white);
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-highlight p {
  opacity: 0.9;
  line-height: 1.8;
}

/* ==========================================================
   Como Funciona / Process
   ========================================================== */

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--bg-white);
  font-size: 2rem;
}

.process-number {
  display: inline-block;
  background-color: var(--primary);
  color: var(--bg-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  line-height: 30px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.process-step h4 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -15%;
  width: 30%;
  height: 2px;
  background-color: var(--primary-light);
}

.process-step:last-child::after {
  display: none;
}

/* ==========================================================
   Benefícios / Benefits
   ========================================================== */

.benefit-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--bg-white);
  font-size: 1.8rem;
}

.benefit-card h5 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================
   Cronograma / Timeline Table
   ========================================================== */

.timeline-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.timeline-table thead th {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 1rem 1.25rem;
  font-weight: 600;
  text-align: left;
  font-size: 0.95rem;
}

.timeline-table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  vertical-align: middle;
}

.timeline-table tbody tr:last-child td {
  border-bottom: none;
}

.timeline-table tbody tr:nth-child(even) {
  background-color: rgba(160, 45, 52, 0.03);
}

.timeline-table tbody tr:hover {
  background-color: rgba(160, 45, 52, 0.06);
}

/* ==========================================================
   FAQ / Accordion
   ========================================================== */

.faq-accordion .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--primary-dark);
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(160, 45, 52, 0.05);
  color: var(--primary);
}

.faq-accordion .accordion-button::after {
  filter: invert(30%) sepia(50%) saturate(500%) hue-rotate(330deg);
}

.faq-accordion .accordion-body {
  padding: 1rem 1.5rem 1.5rem;
  color: var(--text-dark);
  line-height: 1.7;
}

/* ==========================================================
   Parceiros / Partners
   ========================================================== */

.partner-logo {
  max-height: 60px;
  width: auto;
  filter: grayscale(20%);
  transition: filter 0.3s ease, transform 0.3s ease;
  opacity: 0.85;
}

.partner-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
  opacity: 1;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* ==========================================================
   Footer
   ========================================================== */

.footer {
  background-color: var(--primary-darker);
  color: var(--bg-white);
  padding: 60px 0 30px;
}

.footer h5 {
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer p,
.footer li {
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer a {
  color: var(--primary-light);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* ==========================================================
   Utilitários
   ========================================================== */

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

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

.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(160, 45, 52, 0.3);
}

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

.btn-outline-custom:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* ==========================================================
   Media Queries - Responsivo
   ========================================================== */

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-section {
    padding: 100px 0 60px;
    min-height: auto;
    background-attachment: scroll;
  }

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

  .process-step::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 90px 0 50px;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-logos {
    justify-content: center;
  }

  .hero-logos img {
    height: 35px;
  }

  .section-padding {
    padding: 50px 0;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  .about-card,
  .about-highlight {
    padding: 1.75rem;
  }

  .benefit-card {
    padding: 1.5rem;
  }

  .process-step {
    padding: 1.5rem 1rem;
  }

  .timeline-table thead th,
  .timeline-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer-logos {
    justify-content: center;
  }

  .navbar-custom .navbar-collapse {
    background-color: var(--primary-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
  }

  .navbar-custom .nav-link {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .btn-hero {
    font-size: 1rem;
    padding: 12px 28px;
  }

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

/* ==========================================================
   Animações
   ========================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
