/* ==============================
   FONTS & VARS
============================== */

/* ===== Paleta oficial CRENORTE ===== */
:root {
  --crn-yellow: #ffc700;
  /* amarelo destaque */
  --crn-green-mid: #8ac44b;
  /* verde médio */
  --crn-white: #ffffff;

  --crn-green-main: #116530;
  --crn-green-dark: #003c2d;
  --crn-green-soft: #8ac44b;
  --crn-green-white: #003c2d;
  /* usada no hero */
  --crn-radius: 20px;
}

@font-face {
  font-family: 'Saira';
  src: url('../../fonts/sagace.otf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sagace';
  src: url('../../fonts/sagace-bold.otf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/InterTight-Regular.ttf');
  font-weight: normal;
  font-style: normal;
}

/* ==============================
   GENERAL STYLING & SHARED
============================== */

body {
  color: var(--default-color);
  background-color: white;
  font-family: 'Saira';
  scroll-behavior: smooth;
  /* FIX dupla barra e filetinho lateral */
  overflow-y: auto;
  overflow-x: hidden;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

p {
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--crn-green-dark);
  font-family: 'Saira';
}

.sublinhado-grosso {
  text-decoration: underline;
  text-decoration-color: #00e12d;
  text-underline-offset: 15px;
  text-decoration-thickness: 5px;
}

/* ==============================
   HERO SECTION (full width + banner + form)
============================== */

/* Reset básico + fundo padrão */
html,
body {
  margin: 0;
  padding: 0;
  background: var(--crn-green-white);
}

/* ====== CONTAINER HERO ====== */
.crn-hero-full {
  width: 100%;
  margin: 0;
  padding: 0;
  /* sem arredondamento/containers */
  background: var(--crn-green-white);
  overflow: visible;
  /* evita clip do global */
}

.crn-hero-full .row {
  margin: 0;
  align-items: stretch;
  /* colunas com mesma altura */
}

/* ====== BANNER (SEM DEFORMAR A IMAGEM) ====== */
.crn-banner-col,
.crn-form-col {
  display: flex;
  padding: 10px 0;
}

.crn-banner,
.crn-card {
  width: 100%;
  height: 100%;
  display: flex;

}

.crn-banner {
  position: relative;
  /* frame do banner */
  width: 100%;
  height: 100%;
  /* no desktop acompanha a altura do form */
  min-height: 220px;
  /* evita colapso em qualquer breakpoint */
  overflow: hidden;
  /* corta excedente sem distorcer */
}

/* <picture> ocupa todo o banner */
.crn-banner-pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* imagem mantém proporção SEMPRE (sem esticar) */
.crn-banner-img {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  /* mantém proporção e preenche */
  object-position: center;
  /* recorte centralizado elegante */
}

/* Wrapper alternativo de imagem (caso use <picture> → <img>) */
.crn-banner-pic>img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ====== CARD / FORM ====== */
.crn-card {
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 24px;
  border: 0;
  border-radius: 0;
  background: var(--crn-green-dark);
  color: var(--crn-white);
}

/* Tipografia do card */
.crn-cardkicker {
  margin-bottom: .15rem;
  font-size: .8rem;
  font-weight: 700;
  color: #00e12d;
}

.crn-cardtitle {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
}

.crn-cardsub {
  margin-bottom: .25rem;
  font-size: .95rem;
  line-height: 1.3;
  color: #eaf5eb;
}

.crn-divider {
  margin: .5rem 0 .75rem;
  border-color: rgba(255, 255, 255, .14);
}

/* Labels e campos */
.crn-label {
  margin-bottom: .2rem;
  font-size: .85rem;
  color: #d7f0da;
}

/* Campos do formulário (input/select) */
.crn-card .form-control,
.crn-card .form-select {
  height: 42px;
  padding: .35rem .6rem;
  font-size: .95rem;
  border-radius: .4rem;
  background: #fff;
  color: #000;
}

.crn-card .form-control::placeholder {
  color: #000;
}

/* Espaçamento vertical entre colunas internas quando usa .row.g-2 */
.crn-card .row.g-2>[class^="col-"],
.crn-card .row.g-2>[class*=" col-"] {
  margin-bottom: .2rem;
}

/* Checkboxes */
.crn-card .form-check-input {
  width: 1rem;
  height: 1rem;
}

.crn-card .form-check-label {
  line-height: 1.2;
}

/* Link LGPD/privacidade */
.crn-priv-link {
  color: #00e12d;
  text-decoration: underline;
}

/* Botão principal */
.crn-btn {
  height: 46px;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: .4rem;
  background: #00e12d;
  color: #0c3b26;
}

.crn-btn:hover {
  background: #fff;
  color: #10511d;
}

/* ====== LAYOUT DO FORM ====== */
.crn-form {
  /* grid vertical consistente */
  display: grid;
  gap: .55rem;
}

.crn-row {
  /* gutter interno reduzido */
  --bs-gutter-x: .5rem;
}

.crn-field {
  /* fallback de margem unificada */
  margin-bottom: 0;
}

/* Checkbox LGPD em 2 colunas (box + texto) */
.crn-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: .6rem;
}

.crn-check .form-check-input {
  width: 18px;
  height: 18px;
  margin-top: .15rem;
}

.crn-check .form-check-label {
  font-size: .95rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, .8);
}

/* ==============================
   RESPONSIVO COMPLETO
============================== */

/* =========================================
   XS — até 575.98px (MOBILE PEQUENO)
========================================= */
@media (max-width: 575.98px) {

  .crn-card {
    padding: 16px;
  }

  .crn-banner {
    height: 220px;
  }

  .crn-banner-img {
    object-fit: cover;
    object-position: center;
  }

  .crn-form {
    gap: .35rem;
  }

  .crn-row {
    display: contents;
  }

  .crn-row>[class*="col-"] {
    width: 100%;
  }

  /* Exceção mobile: UF/Município lado a lado */
  .crn-row-ufmun {
    display: flex;
    flex-wrap: nowrap;
  }

  .crn-row-ufmun>[class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: .25rem;
    padding-right: .25rem;
  }

  .crn-row-ufmun .form-select {
    width: 100%;
  }
}

/* =========================================
   SM — 576px a 767.98px (MOBILE GRANDE)
========================================= */
@media (min-width: 576px) and (max-width: 767.98px) {

  .crn-cardtitle {
    font-size: 2.1rem;
  }

  .crn-row {
    --bs-gutter-x: .75rem;
  }

  .crn-card .form-control,
  .crn-card .form-select {
    height: 44px;
  }

  .crn-banner {
    height: 400px;
  }
}

/* =========================================
   MD — 768px a 991.98px (TABLET)
========================================= */
@media (min-width: 768px) and (max-width: 991.98px) {

  .crn-cardtitle {
    font-size: 2.8rem;
  }

  .crn-row {
    --bs-gutter-x: .75rem;
  }

  .crn-card .form-control,
  .crn-card .form-select {
    height: 44px;
  }

  .crn-banner {
    min-height: 560px;
  }

}



/* =========================================
   LG — 992px a 1199.98px (DESKTOP PADRÃO)
========================================= */
@media (min-width: 992px) and (max-width: 1199.98px) {

  .crn-banner {
    height: 100%;
    min-height: 700px;
  }

  .crn-cardtitle {
    font-size: 3.6rem;
  }
}

/* =========================================
   XL — 1200px a 1399.98px (DESKTOP GRANDE)
========================================= */
@media (min-width: 1200px) and (max-width: 1399.98px) {

  .crn-banner {
    height: 100%;
    max-height: 420px;
  }

  .crn-cardtitle {
    font-size: 1.8rem;
    margin-bottom: 0px;
    margin-top: 0px;
  }

  .crn-form {
    /* grid vertical consistente */
    display: grid;
    gap: .0rem;
  }


  .crn-row {
    /* gutter interno reduzido */
    --bs-gutter-x: .5rem;
  }

  .crn-field {
    /* fallback de margem unificada */
    margin-bottom: 0;
  }

  .crn-card .form-check-label {
    line-height: 1.2;
    font-size: 0.9rem;
  }

  /* Campos do formulário (input/select) */
  .crn-card .form-control,
  .crn-card .form-select {
    height: 30px;
  }
}


/* =========================================
   XXL — 1400px a 1599.98px (DESKTOP WIDE)
========================================= */
@media (min-width: 1400px) and (max-width: 1599.98px) {

  .crn-banner {
    height: 100%;
    height: 500px !important;
  }

  .crn-form {
    max-height: 500px !important;
    /* grid vertical consistente */
    display: grid;
    gap: .15rem;
  }

  .crn-cardtitle {
    font-size: 2rem;
  }
   /* Campos do formulário (input/select) */
  .crn-card .form-control,
  .crn-card .form-select {
    height: 38px;
  }
}

/* =========================================
   ULTRA — ≥1600px (MONITOR/TV)
========================================= */
@media (min-width: 1600px) {

  .crn-banner {
    height: 100%;

  }

  .crn-cardtitle {
    font-size: 2.3rem;
  }

}

@media (min-width: 1600px) {
  .crn-card {
    min-height: 500px;
  }
}

@media (min-width: 1800px) {
  .crn-card {
    min-height: 600px;
  }
}

@media (min-width: 2100px) {
  .crn-card {
    min-height: 700px;
  }
}

@media (min-width: 2500px) {
  .crn-card {
    min-height: 800px;
  }
}

@media (min-width: 2500px) {
  .crn-card {
    min-height: 900px;
  }
}

@media (min-width: 3200px) {
  .crn-card {
    min-height: 1000px;
  }
}

@media (min-width: 3600px) {
  .crn-card {
    min-height: 1200px;
  }
}


/* ==============================
   GREEN SECTION
============================== */

.green-container {
  background: var(--crn-green-dark);
  margin-top: -30px;
}

.crn-sub {
  color: #003c2d;
  font-size: 2rem;
  margin-top: -30px;
  line-height: 1.1;
}

/* Bullets */
.crn-bullet {
  background: white;
  border-radius: 16px;
  padding: .6rem .1rem;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: .8rem;
  align-items: center;
  height: 100%;
}

.crn-bullet i {
  font-size: 2rem;
  color: var(--crn-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
}

.crn-item__content {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-left: 10px;
}

.crn-item__content strong {
  color: #052c1a;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.1;
}

.crn-item__content span {
  color: var(--crn-green-dark);
  font-weight: 500;
  font-size: .8rem;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .crn-card {
    margin-top: -15px;
  }

  .crn-item__content {
    margin-left: -12px;
  }

  .green-container {
    margin-top: 5px;
    background: var(--crn-green-dark);
  }

  .crn-bullet i {
    margin-left: 0;
    font-size: 1.6rem;
  }

  .crn-sub {
    font-size: 1.5rem;
  }

  .crn-item__content strong {
    font-size: .9rem;
  }

  .crn-item__content span {
    font-size: .8rem;
  }

}

/* ==============================
   FAQ CRENORTE / BASA ACREDITA
============================== */

.crn-faq {
  padding-top: 40px !important;
  background-color: #00e12d !important;

}

.crn-faq .section-title p {
  font-family: var(--nav-font);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.crn-faq .section-title h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--crn-green-dark);
}

/* Accordion base */
.crn-faq .accordion-item {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 0.75rem;
  background-color: #ffffff;
}

.crn-faq .accordion-button {
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  color: var(--crn-green-dark);
  background-color: #ffffff;
  box-shadow: none;
}

.crn-faq .accordion-button::after {
  filter: hue-rotate(80deg) saturate(1.2);
}

.crn-faq .accordion-button:not(.collapsed) {
  background-color: rgba(17, 101, 48, 0.06);
  color: var(--crn-green-dark);
  box-shadow: none;
}

.crn-faq .accordion-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #354142;
}

/* Respiro em telas menores */
@media (max-width: 767.98px) {
  .crn-faq {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .crn-faq .section-title h2 {
    font-size: 1.4rem;
  }

  .crn-faq .accordion-button {
    font-size: 0.9rem;
  }
}


/* ==============================
   FOOTER
============================== */

.footer {
  background-color: var(--crn-green-dark);
}

.logo-and-line {
  display: flex;
  align-items: center;
}

.footer p {
  color: white;
}

.logo-footer {
  display: flex;
  max-width: 100%;
  height: 40px;
}

.green-line {
  flex-grow: 1;
  height: 2px;
  background-color: #00e12d;
  margin-top: 30px;
}

.social-icons {
  display: flex;
  justify-content: left;
  gap: 10px;
  padding: 0;
}

.social-icon {
  display: inline-block;
  background-color: #00e12d;
  border-radius: 50%;
  padding: 8px 15px 8px 15px;
  transition: transform 0.3s ease;
}

.social-icon i {
  font-size: 22px;
  color: #fff;
  transition: color 0.3s ease;
}

.social-icon:hover {
  background-color: #00b161;
}

.social-icon:hover i {
  color: #fff;
}

@media (max-width: 768px) {
  .social-icons {
    justify-content: center !important;
  }

  .logo-footer {
    display: flex !important;
    justify-content: center !important;
  }
}

/* ==============================
   HEADER SIMPLES (apenas logo)
============================== */
.header-simple {
  background-color: var(--crn-green-dark);
  padding: 10px 0px 10px 0px;
  /* mantém a altura compacta */
  box-shadow: none;
  /* sem sombra ao rolar */
  position: static;
  /* garante que não seja sticky */
  z-index: 1;
  color: #fff;
}

/* Logo centralizada com as mesmas dimensões já usadas */
.header-simple .logo img {
  display: block;
  max-height: 22px;
  /* “nessas dimensões mesmo” */
  width: auto;
  margin: 0 auto;
  /* centraliza */
}

/* Remover quaisquer estilos antigos relacionados a .navmenu/.scrolled */
#navmenu,
.navmenu,
.scrolled .header {
  display: none !important;
  box-shadow: none !important;
}

/* ==============================
   PRELOADER
============================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ==============================
   DISABLE AOS DELAY ON MOBILE
============================== */
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/* ==============================
   GLOBAL SECTIONS
============================== */
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: -40px;
  overflow: clip;
}

/* IMPORTANT: não deixe o hero herdar padding/clip */
.crn-hero-full {
  padding: 0 !important;
  overflow: visible !important;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/* ==============================
   GLOBAL SECTION TITLES
============================== */
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 15px;
}

.section-title p {
  margin-bottom: 0;
  font-family: var(--heading-font);
  font-size: 32px;
}

/* ==============================
   THEME FONTS & COLORS
============================== */
:root {
  --default-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Marcellus", sans-serif;
  --nav-font: "Marcellus", sans-serif;
}

/* Global Colors */
:root {
  --background-color: #ffffff;
  --default-color: #212529;
  --heading-color: #2d465e;
  --accent-color: #116530;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* Nav Menu Colors */
:root {
  --nav-color: #212529;
  --nav-hover-color: #116530;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #212529;
  --nav-dropdown-hover-color: #116530;
}

/* Color Presets */
.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #2ea359;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}