@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/* ========== VARIÁVEIS DE COR ========== */
:root {
  --primary-color: #2d5016;
  --primary-light: #4a7c2c;
  --primary-dark: #1a3009;
  --secondary-color: #7cb342;
  --accent-color: #ffa726;
  --accent-hover: #ff9800;
  --text-color: #2c3e50;
  --text-light: #5a6c7d;
  --background-color: #f8f9fa;
  --background-alt: #ffffff;
  --light-gray: #e9ecef;
  --border-color: #dee2e6;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========== RESET E CONFIGURAÇÕES GLOBAIS ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
      135deg,
      var(--primary-dark) 0%,
      var(--primary-color) 50%,
      var(--primary-light) 100%
    ),
    url("images/hero_background.jpg") no-repeat center center/cover;
  background-blend-mode: multiply;
  color: #ffffff;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ========== MAIN CONTENT ========== */
main {
  width: 100%;
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
  padding: 5rem 2rem;
  background-color: var(--background-alt);
}

.content-section.alt-bg {
  background-color: var(--background-color);
}

/* ========== SECTION CONTAINER (LAYOUT IMAGEM + TEXTO) ========== */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-container.reverse {
  grid-template-columns: 1fr 1fr;
}

.text-content {
  padding: 1rem;
}

.text-content h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.text-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

.text-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.2rem;
  text-align: justify;
}

.text-content p strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.image-content {
  width: 100%;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.image-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.image-content img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: var(--transition-slow);
}

.image-content:hover img {
  transform: scale(1.05);
}

/* ========== SECTION TITLE CENTER ========== */
.section-title-center {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title-center::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

/* ========== TWO COLUMNS (VANTAGENS E DESAFIOS) ========== */
.two-columns {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.column h3 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.advantage-item,
.challenge-item {
  background: var(--background-alt);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary-color);
  transition: var(--transition-normal);
}

.advantage-item:hover,
.challenge-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent-color);
}

.advantage-item h4,
.challenge-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.advantage-item p,
.challenge-item p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* ========== EXAMPLES GRID ========== */
.examples-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.example-card {
  background: var(--background-alt);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.example-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.example-card img {
  width: 100%;
  height: 250px;
  object-fit: fill;
  transition: var(--transition-slow);
}

.example-card:hover img {
  transform: scale(1.1);
}

.example-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  padding: 1.5rem 1.5rem 1rem;
}

.example-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
  padding: 0 1.5rem 1.5rem;
  text-align: justify;
}

/* ========== TEAM MEMBERS ========== */
.team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.team-member {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

.team-member:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: var(--transition-normal);
}

.team-member:hover img {
  filter: brightness(0.8);
}

/* Tornar a sobreposição de nome visível por padrão (sem precisar de hover) */
.name-overlay {
  position: absolute;
  bottom: 12px; /* movido ligeiramente para cima */
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: #ffffff;
  text-align: center;
  padding: 1.3rem 0.5rem 0.6rem; /* reduzir levemente o padding inferior */
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 1;
  transition: var(--transition-normal);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVIDADE ========== */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .section-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-container.reverse {
    grid-template-columns: 1fr;
  }

  .section-container.reverse .image-content {
    order: 1;
  }

  .section-container.reverse .text-content {
    order: 2;
  }

  .text-content h2 {
    font-size: 2.4rem;
  }

  .section-title-center {
    font-size: 2.5rem;
  }

  .two-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .examples-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .hero {
    min-height: 60vh;
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .content-section {
    padding: 3.5rem 1.5rem;
  }

  .text-content h2 {
    font-size: 2rem;
  }

  .text-content p {
    font-size: 1.05rem;
  }

  .section-title-center {
    font-size: 2rem;
  }

  .image-content {
    min-height: 300px;
  }

  .column h3 {
    font-size: 1.8rem;
  }

  .advantage-item h4,
  .challenge-item h4 {
    font-size: 1.15rem;
  }

  .advantage-item p,
  .challenge-item p {
    font-size: 0.95rem;
  }

  .example-card h3 {
    font-size: 1.3rem;
  }

  .example-card p {
    font-size: 0.95rem;
  }

  .team-member {
    width: 150px;
    height: 150px;
  }

  .name-overlay {
    font-size: 0.85rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .hero {
    min-height: 50vh;
    padding: 2.5rem 1rem;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .content-section {
    padding: 3rem 1rem;
  }

  .text-content h2 {
    font-size: 1.8rem;
  }

  .section-title-center {
    font-size: 1.8rem;
  }

  .image-content {
    min-height: 250px;
  }

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

  .team-member {
    width: 130px;
    height: 130px;
  }

  .name-overlay {
    bottom: 7px; /* também elevar um pouco em telas pequenas */
    font-size: 0.7rem;
    padding: 0.9rem 0.3rem 0.45rem;
  }
}
