@import 'card.css';
:root {
  --bg-page: #fff;
  --bg-gradil: linear-gradient(104deg, #d9f9e1 10.49%, #b3edbb 60.09%);
  --bg-card-container: #d9f9e1;
  --bg-card-white: #ffffff;
  --text-main: #2d5b46;
  --text-muted: #11551e;
  --accent-dark: #224a3b;

  --shadow-md: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);

  --radius-sm: 1rem;
  --radius-lg: 2.5rem;
  --radius-pill: 9999px;
  --radius-hero: 0 0 2.5rem 2.5rem;
  --radius-learn: 2.5rem 0 0 2.5rem;
  --radius-top-left: 2.5rem 1rem 1rem 1rem;
  --radius-top-right: 1rem 2.5rem 1rem 1rem;
  --radius-bottom-left: 1rem 1rem 1rem 2.5rem;
  --radius-bottom-right: 1rem 1rem 2.5rem 1rem;
}

/* --- TIPOGRAFIA --- */
@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-style: normal;
  src: url("../fonts/Inter-VariableFont.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-style: italic;
  src: url("../fonts/Inter-Italic-VariableFont.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-weight: 500;
  font-style: normal;
  src: url("../fonts/Poppins-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-style: normal;
  src: url("../fonts/Poppins-Bold.ttf") format("truetype");
}

/* --- REDEFINIÇÕES E ESTILOS BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Poppins, Inter, sans-serif;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 2rem, 71.25rem);
  margin: 0 auto;
}

/* --- NAVEGAÇÃO --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  height: 4.375rem;
  padding: 0.5rem clamp(1rem, 7vw, 4.8125rem);
  background-color: #fff;
  border-bottom: 1px solid #000;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.navbar img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.75;
}

/* --- SEÇÃO DE DESTAQUE --- */
.hero-wrapper {
  margin-bottom: 1.5rem;
}

.glow-left,
.glow-right {
  position: absolute;
  width: 22.5rem;
  height: 22.5rem;
  border-radius: 50%;
  filter: blur(3.75rem);
}

.glow-left {
  top: -7.5rem;
  left: -7.5rem;
  opacity: 0.18;
  background: #5ec166;
}

.glow-right {
  right: -7.5rem;
  bottom: -7.5rem;
  opacity: 0.12;
  background: var(--text-main);
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 3rem;
  padding: 3.5rem 4.5rem;
  background: var(--bg-gradil);
  border-radius: var(--radius-hero);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.125rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  background: #fff;
  border: 1px solid var(--text-main);
  border-radius: var(--radius-pill);
}

.tag-pill svg {
  width: 1rem;
  height: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.hero-subtitle {
  align-self: stretch;
  font-size: 1.125rem;
  line-height: 1.875rem;
  color: var(--text-main);
  opacity: 0.82;
}

.btn-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10.625rem;
  height: 2.625rem;
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8e2;
  border-radius: 0.9375rem;
  box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero svg {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-illustration img{
  width: min(100%, 20.58125rem);
  height: auto;
}

/* --- SEÇÃO: APRENDER E FAZER --- */
.section-learn {
  margin-bottom: 3.75rem;
  padding-left: 20%;
}

.section-title-center {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  color: var(--text-main);
}

.learn-container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 2.1875rem;
  padding: 1.875rem;
  background-color: var(--bg-card-container);
  border-radius: var(--radius-learn);
  overflow: hidden;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5625rem 0.3125rem;
}

.learn-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  min-height: 7.75rem;
  padding: 1.25rem;
  background-color: var(--bg-card-white);
  border: 1px solid #e2e8e2;
  box-shadow: 0 0.5rem 1.125rem rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.learn-card-top-left {
  border-radius: var(--radius-top-left);
}

.learn-card-top-center,
.learn-card-bottom-center {
  border-radius: var(--radius-sm);
}

.learn-card-top-right {
  border-radius: var(--radius-top-right);
}

.learn-card-bottom-left {
  border-radius: var(--radius-bottom-left);
}

.learn-card-bottom-right {
  border-radius: var(--radius-bottom-right);
}

.learn-card:hover {
  transform: translateY(-2px);
}

.category-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.375rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  background: #eaf7ef;
  border-radius: var(--radius-pill);
}

.learn-card h3 {
  align-self: stretch;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.divisor {
  display: inline-block;
  width: 1px;
  height: 13.125rem;
  background: #58ae8e;
}

.learn-quote-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 65%;
  padding: 1rem 0.625rem;
}

.quote-text {
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-main);
}

.plants-graphic {
  position: absolute;
  bottom: 0;               /* Fixa na base do .learn-container */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 8.10613rem;
  height: 8.10613rem;
  pointer-events: none;    /* Evita bloquear cliques em elementos abaixo */
  
  /* Se você quiser que ela vaze parcialmente para fora do container cortando na borda: */
  transform: translateY(0%); 
}


.plants-graphic img {
  width: 8.75rem;
  height: auto;
}

/* --- SEÇÃO: DESAFIOS DA TRILHA --- */
.section-challenges {
  margin-bottom: 3.625rem;
}

.section-header-left {
  margin-bottom: 1.5rem;
  padding: 0 max(1rem, calc((100% - 71.25rem) / 2));
}

.section-header-left h2 {
  margin-bottom: 0.375rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.section-header-left p {
  font-family: Inter, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #58ae8e;
}

.cards-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.challenge-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--bg-card-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.challenge-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  background: #eaf7ef;
  border-radius: 50%;
}

.card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-topbar .category-badge {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.link-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
}

.challenge-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.challenge-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--accent-dark);
}

.checkin-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: #f7faf8;
  border-radius: var(--radius-sm);
}

.card-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.875rem;
  font-size: 0.8rem;
  color: var(--text-main);
  border-bottom: 1px solid #edf2ee;
}

.status-completed {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #58ae8e;
}

.card-microcopy {
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--accent-dark);
  background-color: #f6fbf7;
  border-radius: var(--radius-sm);
}

.tags-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.small-tag {
  padding: 0.3125rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: #edf5ef;
  border-radius: var(--radius-pill);
}

/* --- CARTÃO FINAL DE CONVITE À AÇÃO --- */
.cta-wrapper {
  padding: 0 1rem 5rem;
}

.cta-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 4rem);
  background-color: var(--bg-card-container);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.cta-content p {
  font-size: 1.05rem;
  color: #2d5b46;
  opacity: 0.82;
}

.btn-dark {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  gap: 0.9rem;
  padding: 0.64rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: hsl(135, 73%, 91%);
  text-decoration: none;
  background-color: var(--accent-dark);
  border: 1px solid #e2e8e2;
  border-radius: var(--radius-sm);
  box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-dark:hover {
  transform: translateY(-2px);
  background-color: #0b2418;
}

small {
  color: var(--text-muted); font-weight: normal
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 56.25rem) {
  .navbar {
    padding-inline: 1.5rem;
  }
  .learn-card-top-center{
    border-radius: var(--radius-top-right) !important;
  }
  .learn-card-top-left{
    border-radius: var(--radius-top-left) !important;
  }
  .learn-card-bottom-center{
    border-radius: var(--radius-bottom-left) !important;
  }
  .learn-card-bottom-right{
    border-radius: var(--radius-bottom-right) !important;
  }
  [class*="learn-card-"]{
    border-radius: var(--radius-sm);
  }
  .hero-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem clamp(1.25rem, 5vw, 1.75rem);
  }

  .hero-illustration img {
    width: min(100%, 25rem);
  }

  .learn-container {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .divisor {
    width: 100%;
    height: 1px;
  }

  .learn-quote-panel {
    min-height: 0;
    gap: 1rem;
  }

  .plants-graphic {
    transform: none;
  }

  .learn-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-row {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-wrap: wrap;
  }
  .quote-text {
  margin-bottom: 8.5rem;
}

}

@media (max-width: 36.25rem) {
    [class*="learn-card-"]{
    border-radius: var(--radius-sm) !important; 
  }
  .learn-card-top-left{
    border-radius: 40px 40px 20px 20px !important;
  }
  .learn-card-bottom-right{
    border-radius: 20px 20px 40px 40px !important;
  }
  .navbar {
    height: auto;
    min-height: 4.375rem;
    padding: 0.5rem 1rem;
  }

  .navbar img {
    width: 3.75rem;
    height: 3.75rem;
  }

  .learn-grid {
    grid-template-columns: 1fr;
  }

  .learn-container {
    padding: 1rem;
    border-radius: 1.5rem;
  }

  .learn-card {
    align-items: flex-start;
  }

  .section-header-left {
    padding-inline: 1rem;
  }

  .challenge-card {
    padding: 1.25rem;
  }

  .card-status-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 0.75rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .cta-wrapper {
    padding-inline: 0.75rem;
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-content h2 br {
    display: none;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  .glow-left,
  .glow-right {
    width: 14rem;
    height: 14rem;
  }
}
