@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --color-primary: #1B4D3E;
  --color-primary-dark: #12372C;
  --color-accent: #4CAF50;
  --color-sand: #F7F5F0;
  --color-border: #EEEBE2;
  --color-muted: #5a6a60;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-sand);
  color: #1c2e26;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

/* Logos Duplas & Header Fluido */
.logo-rf {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-gf {
  height: 56px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  display: block;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 640px) {
  .logo-rf {
    height: 24px;
    max-width: 120px;
  }
  .logo-gf {
    height: 44px;
    max-width: 110px;
  }
}

/* Header & Navbar Fluida */
#header {
  box-shadow: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-inner {
  height: 5rem; /* ~80px */
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
  .header-inner {
    height: 5.5rem; /* ~88px */
  }
}

#header.is-scrolled {
  background-color: rgba(247, 245, 240, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(27, 77, 62, 0.08) !important;
  box-shadow: none !important;
}

#header.is-scrolled .header-inner {
  height: 4.25rem !important; /* ~68px */
}

#header.is-scrolled .logo-rf {
  height: 28px;
}

#header.is-scrolled .logo-gf {
  height: 48px;
}

/* Nav Links Fluidos & Micro-interações */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(27, 77, 62, 0.75);
  background-color: transparent !important;
  border-radius: 0 !important;
  letter-spacing: -0.01em;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: #4CAF50;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: #1B4D3E;
  background-color: transparent !important;
  transform: none !important;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: #1B4D3E;
  font-weight: 700;
  background-color: transparent !important;
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* Menu Mobile Navigation Drawer */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease-out,
              padding 0.3s ease;
}

#mobile-menu.open {
  max-height: 480px;
  opacity: 1;
}

#menu-toggle.open #hb1 {
  transform: translateY(6px) rotate(45deg);
}

#menu-toggle.open #hb2 {
  opacity: 0;
}

#menu-toggle.open #hb3 {
  transform: translateY(-6px) rotate(-45deg);
}

#hb1, #hb2, #hb3 {
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Modular Cards — Padrão Green Farm */
.gf-card {
  background-color: #F7F5F0;
  border: 1px solid rgba(27, 77, 62, 0.12);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gf-card:hover {
  border-color: rgba(76, 175, 80, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -12px rgba(27, 77, 62, 0.15);
}

.gf-white-card {
  background-color: #ffffff;
  border: 1px solid #EEEBE2;
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gf-white-card:hover {
  border-color: rgba(76, 175, 80, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -12px rgba(27, 77, 62, 0.12);
}

/* Hero Badge */
.gf-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.35);
  color: #b4e6bc;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Status Badges */
.badge-encerrado {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.badge-retificada, .badge-concluida {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.badge-homologada {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.badge-em-breve, .badge-aguardando {
  background-color: #EEEBE2;
  color: #5a6a60;
  border: 1px solid #d8d4c8;
}

/* Ticker Animation */
@keyframes gf-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.gf-ticker-track {
  animation: gf-ticker 28s linear infinite;
}

.gf-ticker-track:hover {
  animation-play-state: paused;
}

/* Table styling */
.gf-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.gf-table thead th {
  background-color: #1B4D3E;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  padding: 12px 16px;
  text-align: left;
}

.gf-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #EEEBE2;
}

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

.gf-table tbody tr:nth-child(even) {
  background-color: rgba(247, 245, 240, 0.6);
}

.gf-table tbody tr:hover {
  background-color: rgba(76, 175, 80, 0.06);
}

/* Timeline */
.gf-timeline {
  position: relative;
}

.gf-timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, #4CAF50, #1B4D3E, #4CAF50);
}

/* City Carousel (Horizontal Sliding Track) */
.cities-carousel-wrapper {
  position: relative;
  width: 100%;
}

.cities-carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1.5rem !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 0.75rem 0.25rem 1.5rem !important;
  cursor: grab;
}

.cities-carousel-track:active {
  cursor: grabbing;
}

.cities-carousel-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.city-carousel-card {
  flex: 0 0 310px !important;
  min-width: 310px !important;
  width: 310px !important;
  max-width: 320px !important;
  scroll-snap-align: start !important;
  border-radius: 20px !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(27, 77, 62, 0.12) !important;
  box-shadow: 0 8px 24px -4px rgba(27, 77, 62, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

@media (max-width: 640px) {
  .city-carousel-card {
    flex: 0 0 84vw !important;
    min-width: 84vw !important;
    width: 84vw !important;
    max-width: 320px !important;
  }
}

.city-carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -6px rgba(27, 77, 62, 0.18) !important;
  border-color: #4CAF50 !important;
}

.city-carousel-dot {
  height: 8px;
  border-radius: 9999px;
  transition: all 300ms ease;
  background-color: rgba(27, 77, 62, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  width: 8px;
}

.city-carousel-dot.active {
  width: 32px;
  background-color: #4CAF50;
}

.city-carousel-dot:not(.active):hover {
  background-color: rgba(27, 77, 62, 0.4);
}


