/* ============================================
   Reset e Base
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container wrapper para todo o conteúdo */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.navbar__wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar__title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.navbar__links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar__links a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  transition: width 0.3s ease;
}

.navbar__links a:hover {
  color: #3b82f6;
}

.navbar__links a:hover::after {
  width: 100%;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
  width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px 24px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
}

.hero__content {
  flex: 1 1 320px;
  max-width: 520px;
}

.hero__title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 3px;
  margin-top: 16px;
}

.hero__description {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 20px;
  line-height: 1.7;
}

.hero__image {
  flex: 1 1 280px;
  max-width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image-content {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 0.75 / 1;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    object-fit: cover;
}

/* ============================================
   About Section
   ============================================ */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 80px 24px;
  background: linear-gradient(135deg, #5F7470 0%, #4a5d57 100%);
}

.about__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 120px; /* reduzido para aproximar imagem e texto */
  max-width: 1280px;
  margin: 0 auto;
}

.about__image {
  flex: 0 0 300px; /* manter largura consistente */
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1;
  margin: 0; /* remove margem automática para ficar mais próxima do texto */
}

.about__image-content {
   width: 100%;
    max-width: 420px;
    aspect-ratio: 0.75 / 1;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    object-fit: cover;
}

.about__content {
  flex: 1 1 1px;
  max-width: 520px;
  margin: 0; /* remove margem para aproximar do bloco de imagem */
}

.about__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.2;
}

.about__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #ec4e20 0%, #f97316 100%);
  border-radius: 3px;
  margin-top: 16px;
}

.about__description {
  font-size: 1.05rem;
  color: #f3f4f6;
  margin-bottom: 18px;
  line-height: 1.7;
}

/* ============================================
   Portals Section
   ============================================ */
.portals {
  padding: 80px 24px 80px 24px;
  background: #ffffff;
}

.portals__header {
  margin-bottom: 60px;
  text-align: center;
}

.portals__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.portals__title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

/* ============================================
   Portal Card
   ============================================ */
.portal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.portal-card:nth-child(2)::before {
  background: linear-gradient(90deg, #ec4e20 0%, #f97316 100%);
}

.portal-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
  transform: translateY(-8px);
}

.portal-card:nth-child(2):hover {
  border-color: #ec4e20;
  box-shadow: 0 20px 40px rgba(236, 78, 32, 0.15);
}

.portal-card:hover::before {
  transform: scaleX(1);
}

.portal-card__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.portal-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0e7ff 100%);
  font-size: 1.8rem;
  flex-shrink: 0;
}

.portal-card:nth-child(2) .portal-card__icon {
  background: linear-gradient(135deg, #fed7aa 0%, #fce7f3 100%);
}

.portal-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.portal-card__content {
  flex: 1;
  margin-bottom: 24px;
}

.portal-card__description {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 24px;
  line-height: 1.7;
}

.portal-card__topics {
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 0;
}

.portal-card__topics-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portal-card__topics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-card__topics-list li {
  font-size: 0.95rem;
  color: #4b5563;
  padding-left: 20px;
  position: relative;
}

.portal-card__topics-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-weight: 600;
  color: #3b82f6;
}

.portal-card:nth-child(2) .portal-card__topics-list li::before {
  color: #ec4e20;
}

.portal-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: fit-content;
  border: 2px solid transparent;
}

.portal-card:nth-child(2) .portal-card__link {
  background: linear-gradient(135deg, #ec4e20 0%, #d97706 100%);
}

.portal-card__link:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.portal-card:nth-child(2) .portal-card__link:hover {
  box-shadow: 0 10px 20px rgba(236, 78, 32, 0.3);
}

.portal-card__arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.portal-card__link:hover .portal-card__arrow {
  transform: translateX(4px);
}

/* ============================================
   Highlights Section
   ============================================ */
.highlights {
  padding: 80px 24px 80px 24px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.highlights__title {
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  color: #1f2937;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.highlight-item {
  background: #ffffff;
  padding: 32px 28px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.highlight-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: #d1d5db;
}

.highlight-item__icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.highlight-item__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.highlight-item__text {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 40px 0;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid #374151;
}

.footer p {
  letter-spacing: 0.3px;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablets */
@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }

  .navbar {
    padding: 14px 0;
  }

  .navbar__wrapper {
    padding: 0 20px;
    gap: 16px;
  }

  .navbar__title h1 {
    font-size: 1.2rem;
  }

  .navbar__links {
    gap: 16px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 60px 20px 50px 20px;
  }

  .hero__inner {
    gap: 40px;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__description {
    font-size: 1rem;
  }

  .about {
    padding: 60px 20px 60px 20px;
  }

  .about__title {
    font-size: 1.8rem;
  }

  .about__description {
    font-size: 1rem;
  }

  .portals {
    padding: 60px 20px 60px 20px;
  }

  .portals__header {
    margin-bottom: 50px;
  }


  .portals__subtitle {
    font-size: 1rem;
    margin-top: 8px;
  }

  .portals__grid {
    gap: 30px;
  }

  .highlights {
    padding: 60px 20px 60px 20px;
  }

  .highlights__title {
    font-size: 2rem;
    margin-bottom: 50px;
  }

  .highlight-item {
    padding: 28px 24px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .navbar {
    padding: 12px 0;
  }

  .navbar__wrapper {
    padding: 0 16px;
    gap: 12px;
  }

  .navbar__title h1 {
    font-size: 1rem;
  }

  .navbar__links {
    gap: 12px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 50px 16px 40px 16px;
  }

  .hero__inner {
    gap: 24px;
  }

  .hero__content {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .hero__image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__title::after {
    width: 50px;
  }

  .hero__description {
    font-size: 0.95rem;
  }

  .about {
    padding: 50px 16px 50px 16px;
  }


  .about__image {
    flex: 1 1 100%;
    max-width: 100%;
    order: 1;
  }

  .about__content {
    flex: 1 1 100%;
    max-width: 100%;
    order: 2;
  }

  .about__title {
    font-size: 1.5rem;
  }

  .about__title::after {
    width: 50px;
  }

  .about__description {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }


  .portals {
    padding: 50px 16px 50px 16px;
  }

  .portals__header {
    margin-bottom: 40px;
  }

  .portals__subtitle {
    font-size: 0.95rem;
  }

  .portals__grid {
    gap: 20px;
  }

  .portal-card {
    padding: 20px 16px;
  }

  .portal-card__header {
    margin-bottom: 16px;
  }

  .portal-card__icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .portal-card__title {
    font-size: 1.2rem;
  }

  .portal-card__description {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .portal-card__topics {
    padding: 12px;
  }

  .portal-card__topics-title {
    font-size: 0.8rem;
  }

  .portal-card__topics-list li {
    font-size: 0.9rem;
  }

  .portal-card__link {
    font-size: 0.85rem;
    padding: 10px 18px;
  }

  .highlights {
    padding: 50px 16px 50px 16px;
  }

  .highlights__title {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }

  .highlights__grid {
    gap: 20px;
  }

  .highlight-item {
    padding: 20px 16px;
  }

  .highlight-item__icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }

  .highlight-item__title {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .highlight-item__text {
    font-size: 0.9rem;
  }

  .footer {
    padding: 32px 16px;
    font-size: 0.85rem;
  }
}

/* Extra Small Devices */
@media (max-width: 380px) {
  .container {
    padding: 0 12px;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .about__title {
    font-size: 1.3rem;
  }


  .highlights__title {
    font-size: 1.3rem;
  }

  .portal-card__title {
    font-size: 1.05rem;
  }

  .highlight-item__icon {
    font-size: 2rem;
  }

  .navbar__title h1 {
    font-size: 0.9rem;
  }
}
