/* ==========================================================================
   ABCLS - FOLHA DE ESTILOS OFICIAL (FIDELIDADE RIGOROSA AO DESIGN)
   Tokens reais: Laranja #f75910, Escuro #22221a, Cinza Notícia #ebeff1
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

:root {
  --laranja: #f75910;
  --laranja-hover: #de4705;
  --texto: #22221a;
  --texto-noticia: #7a7a7a;
  --fundo-noticia: #ebeff1;
  --newsletter-bg: #22221a;
  --borda-input: #b8b8b6;
  --branco: #ffffff;
  --container-max: 1140px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background-color: var(--branco);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.laranja {
  color: var(--laranja) !important;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   A) HEADER (65px, BRANCO, NÃO STICKY, MENU À DIREITA)
   ========================================================================== */
.site-header {
  height: 65px;
  background: var(--branco);
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 65px;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.main-menu li a {
  font-size: 15px;
  font-weight: 600;
  line-height: 15px;
  padding: 15px 12px;
  color: var(--texto);
  display: block;
}

.main-menu li a:hover,
.main-menu li a.active {
  color: var(--laranja);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--texto);
  margin: 4px 0;
  border-radius: 2px;
}

/* ==========================================================================
   B) HERO (fundo_01.jpg - CINZA CLARO TEXTURIZADO)
   ========================================================================== */
.hero-section {
  background: url('../assets/img/fundo_01.jpg') no-repeat center top;
  background-size: cover;
  padding: 30px 0 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  align-items: center;
  gap: 30px;
  min-height: 390px;
}

.hero-text h1 {
  font-size: 30px;
  line-height: 35px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 0;
}

.hero-text h1.laranja {
  color: var(--laranja);
  margin-top: 5px;
  margin-bottom: 18px;
}

.hero-text p {
  font-size: 18px;
  line-height: 26.4px;
  color: var(--texto);
}

.hero-text p .destaque {
  color: var(--laranja);
  font-weight: 600;
}

.hero-logo-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-logo-wrap img {
  width: 100%;
  max-width: 540px;
}

/* DIVISOR CENTRAL (62px, SOBREPOSTO À FAIXA LARANJA) */
.hero-divisor-container {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 20;
  margin-bottom: -31px;
}

.hero-divisor {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

/* ==========================================================================
   C) FAIXA LARANJA #f75910
   ========================================================================== */
.faixa-laranja {
  background: var(--laranja);
  color: var(--branco);
  padding: 55px 0 35px;
  position: relative;
}

.faixa-laranja-grid {
  display: grid;
  grid-template-columns: 332px 1fr;
  align-items: center;
  gap: 40px;
}

.faixa-laranja-hex {
  display: flex;
  justify-content: center;
}

.faixa-laranja-hex img {
  width: 332px;
  max-width: 100%;
  height: auto;
}

.faixa-laranja-content h2 {
  font-size: 25px;
  line-height: 35px;
  font-weight: 700;
  color: var(--branco);
  margin-bottom: 16px;
}

.faixa-laranja-content p {
  font-size: 14px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   D) 4 SISTEMAS (GRADIENT LARANJA/BRANCO)
   ========================================================================== */
.sistemas-transition-section {
  background: linear-gradient(to bottom, #f75910 58%, #ffffff 58%);
  padding: 20px 0 45px;
}

.sistemas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.sistema-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sistema-card .hex-img-wrap {
  width: 196px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.sistema-card .hex-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.sistema-card:hover .hex-img-wrap img {
  transform: scale(1.05);
}

.sistema-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 4px;
}

.sistema-card .leia-mais-sistema {
  font-size: 16px;
  font-weight: 700;
  color: var(--laranja);
  display: inline-block;
}

.sistema-card .leia-mais-sistema:hover {
  text-decoration: underline;
}

/* ==========================================================================
   E) ASSOCIADAS (GRID 4 COLUNAS, 29 LOGOS, H2 À ESQUERDA)
   ========================================================================== */
.associadas-section {
  padding: 50px 0 60px;
  background: var(--branco);
}

.section-title-left {
  font-size: 25px;
  line-height: 35px;
  font-weight: 700;
  color: var(--texto);
  text-align: left;
  margin-bottom: 25px;
}

.associadas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.associada-card-item {
  background: var(--branco);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  height: 80px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.associada-card-item:hover {
  transform: translateY(-2px);
  border-color: var(--laranja);
}

.associada-card-item img {
  max-height: 58px;
  max-width: 100%;
  object-fit: contain;
}

/* ==========================================================================
   F) NOTÍCIAS (6 ITENS, ALTERNÂNCIA #ebeff1 / BRANCO)
   ========================================================================== */
.noticias-section {
  padding: 10px 0 0;
  background: var(--branco);
}

.noticia-bloco {
  padding: 40px 0;
  border-top: 1px solid #f0f0f0;
}

.noticia-bloco.fundo-cinza {
  background-color: var(--fundo-noticia);
  border-top: none;
}

.noticia-bloco.fundo-branco {
  background-color: var(--branco);
  border-top: none;
}

.noticia-row-grid {
  display: grid;
  grid-template-columns: 512px 1fr;
  align-items: center;
  gap: 40px;
}

.noticia-row-grid.sem-imagem {
  grid-template-columns: 1fr;
  max-width: 800px;
}

.noticia-texto h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.35;
  margin-bottom: 12px;
}

.noticia-texto p {
  font-size: 16px;
  line-height: 26.4px;
  color: var(--texto-noticia);
  margin-bottom: 14px;
}

.noticia-texto .leia-mais-noticia {
  font-size: 16px;
  font-weight: 400;
  color: var(--laranja);
  display: inline-block;
}

.noticia-texto .leia-mais-noticia:hover {
  text-decoration: underline;
}

.noticia-imagem-col {
  display: flex;
  justify-content: flex-end;
}

.noticia-imagem-col img {
  max-width: 447px;
  height: auto;
}

.noticia-imagem-col img.mcid-logo {
  max-width: 300px;
}

/* ==========================================================================
   G) SEJA UMA ASSOCIADA (FORMULÁRIO 400PX + FOTO DIREITA)
   ========================================================================== */
.seja-associada-section {
  padding: 60px 0 50px;
  background: var(--branco);
}

.seja-associada-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  align-items: center;
  gap: 50px;
}

.form-wrapper h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.25;
  margin-bottom: 4px;
}

.form-wrapper .subtitulo-form {
  font-size: 15px;
  color: var(--texto);
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 12px;
}

.form-control {
  width: 100%;
  height: 44px;
  border: 1px solid var(--borda-input);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--texto);
  background: var(--branco);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--laranja);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--texto);
  margin-bottom: 18px;
}

.form-checkbox-group a {
  color: var(--laranja);
}

.btn-cadastrar-form {
  padding: 13px 50px;
  border-radius: 5px;
  font-weight: 500;
  font-size: 16px;
  background: var(--laranja);
  color: var(--branco);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-cadastrar-form:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-cadastrar-form:not(:disabled):hover {
  background: var(--laranja-hover);
}

.form-feedback-msg {
  display: none;
  margin-top: 15px;
  padding: 12px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.seja-associada-foto {
  display: flex;
  justify-content: flex-end;
}

.seja-associada-foto img {
  max-width: 570px;
  height: auto;
}

/* ==========================================================================
   H) NEWSLETTER (BARRA #22221a)
   ========================================================================== */
.newsletter-bar {
  background: var(--newsletter-bg);
  color: var(--branco);
  padding: 30px 0;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 30px;
}

.newsletter-title h3 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.newsletter-form-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-inputs-row {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  height: 44px;
  border: 1px solid var(--borda-input);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: var(--branco);
  color: var(--texto);
  font-family: inherit;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--laranja);
}

.btn-newsletter {
  padding: 0 25px;
  height: 44px;
  border-radius: 5px;
  font-weight: 500;
  font-size: 16px;
  background: var(--laranja);
  color: var(--branco);
  border: none;
  cursor: pointer;
}

.btn-newsletter:hover {
  background: var(--laranja-hover);
}

.newsletter-termos {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #ccc;
}

.newsletter-termos a {
  color: var(--laranja);
}

/* ==========================================================================
   I) RODAPÉ (BRANCO)
   ========================================================================== */
.site-footer {
  background: var(--branco);
  padding: 35px 0 30px;
  border-top: 1px solid #e5e5e5;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-address {
  font-size: 14px;
  line-height: 1.6;
  color: var(--texto);
}

.footer-social-circles {
  display: flex;
  gap: 10px;
}

.social-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--laranja);
  color: var(--branco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-circle:hover {
  transform: translateY(-2px);
  background: var(--laranja-hover);
}

.social-circle svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ==========================================================================
   J) VOLTAR AO TOPO (FIXED LEFT 12PX BOTTOM 16PX)
   ========================================================================== */
.btn-voltar-topo {
  position: fixed;
  left: 12px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  background: var(--laranja);
  color: var(--branco);
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-voltar-topo:hover {
  background: var(--laranja-hover);
}

.btn-voltar-topo svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   PÁGINAS INTERNAS (SISTEMAS CONSTRUTIVOS / NOTÍCIAS)
   ========================================================================== */
.internal-hero-laranja {
  background: var(--laranja);
  padding: 45px 0 25px;
  text-align: center;
  color: var(--branco);
}

.internal-hero-laranja .logo-branca {
  max-width: 320px;
  margin: 0 auto 20px;
}

.internal-hero-laranja h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.internal-content-section {
  padding: 50px 0;
}

.sistema-detalhe-bloco {
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

.sistema-detalhe-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.sistema-detalhe-texto h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 15px;
}

.sistema-detalhe-texto p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 14px;
}

.noticia-interna-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 15px;
}

.noticia-interna-article h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 16px;
  line-height: 1.3;
}

.noticia-interna-article .data-noticia {
  font-size: 13px;
  color: var(--laranja);
  font-weight: 600;
  margin-bottom: 25px;
}

.noticia-interna-article img {
  margin: 25px auto;
  border-radius: 8px;
}

.noticia-interna-article p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 18px;
}

.btn-voltar-link {
  display: inline-block;
  margin-top: 25px;
  font-size: 14px;
  font-weight: 600;
  color: var(--laranja);
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLETS)
   ========================================================================== */
@media (max-width: 991px) {
  .hero-grid,
  .faixa-laranja-grid,
  .seja-associada-grid,
  .noticia-row-grid,
  .newsletter-grid,
  .sistema-detalhe-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-logo-wrap,
  .faixa-laranja-hex,
  .seja-associada-foto,
  .noticia-imagem-col {
    justify-content: center;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .main-menu {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: var(--branco);
    flex-direction: column;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .main-menu.active {
    display: flex;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .associadas-grid {
    grid-template-columns: 1fr;
  }

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

  .form-row-2col,
  .newsletter-inputs-row {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}
