/* Comando Rural - camada visual premium do site publico */
:root {
  --site-ink: #203d32;
  --site-muted: #5d6f63;
  --site-brand: #02451C;
  --site-brand-2: #2d5016;
  --site-accent: #4a8c2b;
  --site-bg: #f5f8f2;
  --site-card: #ffffff;
  --site-line: rgba(45, 80, 22, .14);
  --site-shadow: 0 20px 50px rgba(33, 62, 51, .12);
  --site-shadow-sm: 0 10px 26px rgba(33, 62, 51, .08);
}

html {
  background: var(--site-bg);
}

body {
  color: var(--site-ink);
  background:
    radial-gradient(circle at 12% 0, rgba(74, 140, 43, .12), transparent 34rem),
    linear-gradient(180deg, #f7faf4, #eef5eb 42%, #fff);
}

.container,
.painel-container {
  width: min(1180px, calc(100% - 36px));
}

.top-bar {
  background: linear-gradient(90deg, #06150c, #123922);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.top-bar-content {
  min-height: 42px;
}

.tagline {
  color: #ecf7ec;
  font-size: 12px;
}

.main-header {
  background: rgba(255, 255, 255, .9);
}

.header-content {
  min-height: 78px;
}

.logo img {
  filter: drop-shadow(0 8px 16px rgba(2, 69, 28, .18));
}

.main-menu a {
  position: relative;
}

.main-menu a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--site-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s var(--ease);
}

.main-menu a:hover::after {
  transform: scaleX(1);
}

.hero {
  min-height: clamp(620px, calc(100dvh - 118px), 820px);
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(2, 22, 11, .88), rgba(10, 45, 24, .68), rgba(10, 45, 24, .22)),
    url(../imgs/fundo_top.jpg) center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 65%, rgba(245, 248, 242, .9)),
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, .14), transparent 25rem);
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
}

.hero h4 {
  color: #f3fbf1;
  border-color: rgba(255, 255, 255, .28);
}

.hero h2 {
  max-width: 760px;
  text-wrap: balance;
}

.hero p {
  color: rgba(255, 255, 255, .9);
}

.btn,
.btn-enviar,
.news-read-more,
.news-see-more {
  border-radius: 13px;
  background: linear-gradient(135deg, var(--site-brand-2), var(--site-brand));
  color: #fff;
  box-shadow: 0 16px 34px rgba(2, 69, 28, .24);
}

.news-card.is-extra.show-extra {
  display: block !important;
}

.btn:hover,
.btn-enviar:hover,
.news-read-more:hover,
.news-see-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(2, 69, 28, .26);
}

section {
  position: relative;
}

.news-portal,
.products,
.informe {
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(245,248,242,.92)),
    radial-gradient(circle at 8% 10%, rgba(74, 140, 43, .09), transparent 28rem);
}

.news-portal-banner,
.credito-rural,
.testimonial,
.slide,
.feature-card {
  border: 1px solid var(--site-line);
  box-shadow: var(--site-shadow-sm);
}

.news-portal-banner {
  border-radius: 24px;
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(45, 80, 22, .13), rgba(74, 140, 43, .05)),
    rgba(255,255,255,.92);
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--site-brand);
  background: rgba(74, 140, 43, .12);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.news-card {
  border-radius: 20px;
}

.news-card-img {
  height: 220px;
}

.news-card-body {
  padding: 18px;
}

.news-card h3 {
  line-height: 1.2;
}

.about,
.testimonials {
  background:
    linear-gradient(90deg, rgba(2, 22, 11, .88), rgba(10, 45, 24, .72)),
    url(../imgs/fundo_credito.jpg) center/cover fixed no-repeat;
}

.about-content,
.informe-content {
  gap: clamp(24px, 5vw, 58px);
}

.about-text,
.informe-text {
  min-width: 0;
}

.about-text p,
.section-title p,
.informe-text p {
  font-size: 16px;
}

.about-feature-item,
.informe-feature {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.about-image img,
.informe-image img {
  border: 1px solid rgba(255,255,255,.16);
}

.products .section-title {
  max-width: 940px;
}

.slider {
  max-width: 980px;
}

.slide {
  padding: clamp(14px, 2vw, 22px);
  background: rgba(255,255,255,.94);
}

.slide img {
  height: clamp(290px, 46vw, 520px);
}

.dots {
  justify-content: center;
}

.dot {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.testimonials {
  background-image:
    linear-gradient(90deg, rgba(2, 22, 11, .88), rgba(10, 45, 24, .72)),
    url(../imgs/fundo-avaliacao-clientes.png);
}

.testimonial {
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.tab-buttons {
  position: sticky;
  top: 88px;
  z-index: 20;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 6px;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(14px);
  box-shadow: var(--site-shadow-sm);
}

.tab-btn {
  border: 0;
}

.tab-btn.active {
  background: var(--site-brand);
}

.credito-rural {
  padding: clamp(20px, 3vw, 34px);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,.95);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: rgba(45, 80, 22, .28);
}

.footer {
  background:
    linear-gradient(180deg, #02451C, #062d16) !important;
}

.footer-col li {
  color: rgba(255,255,255,.92);
}

.footer-bottom {
  color: rgba(255,255,255,.88);
}

.wts {
  z-index: 1200;
}

.news-modal {
  display: none;
}

.news-modal[style*="flex"] {
  display: flex !important;
}

.news-modal-card {
  border: 1px solid rgba(255,255,255,.24);
}

.modal-conteudo {
  background: #fff;
}

@media (max-width: 900px) {
  .main-menu {
    overflow: hidden;
  }

  .main-menu.active {
    display: block;
    animation: siteMenu .18s var(--ease);
  }

  .main-menu a {
    justify-content: center;
  }

  .tab-buttons {
    position: static;
    width: 100%;
    border-radius: 18px;
  }

  .tab-btn {
    border-radius: 13px;
  }
}

@media (max-width: 620px) {
  .container,
  .painel-container {
    width: min(100% - 24px, 1180px);
  }

  .top-bar-content {
    min-height: 38px;
  }

  .hero {
    min-height: 620px;
  }

  .hero h2 {
    font-size: clamp(34px, 12vw, 50px);
  }

  .news-portal-banner {
    border-radius: 18px;
  }

  .news-tabs {
    justify-content: flex-start;
  }

  .about,
  .testimonials {
    background-attachment: scroll;
  }

  .slide img {
    min-height: 240px;
  }
}

@keyframes siteMenu {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


.main-header.is-scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(33, 62, 51, .12);
}

.main-menu a.active {
  color: var(--site-brand);
  background: rgba(45, 80, 22, .09);
}

.main-menu a.active::after {
  transform: scaleX(1);
}

.mobile-menu-toggle.active {
  color: #fff;
  background: var(--site-brand);
  border-color: var(--site-brand);
}

#caption {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(760px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 22, 11, .72);
  backdrop-filter: blur(10px);
  font-weight: 800;
  text-align: center;
}
