/* ==========================================================================
   Centro Halal da América Latina - Estilos da página inicial
   Cores: primária #bf8c20 (dourado), secundária #405432 (verde)
   ========================================================================== */

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

:root {
  --halal-primary: #bf8c20;
  --halal-secondary: #405432;
  --halal-secondary-dark: #2a3822;
  --halal-text: #242526;
  --halal-text-muted: #666;
  --halal-bg: #fff;
  --halal-bg-light: #f8f9fa;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--halal-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--halal-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header ---- */
.site-header {
  background: var(--halal-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { position: relative; }

.header-inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Barra de atalhos (Certificação, Portal, etc.) */
.header-widget-info {
  background: var(--halal-bg-light);
  border-top: 1px solid #e8e8e8;
  padding: 12px 0;
}

.header-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--halal-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.quick-link .icon { color: var(--halal-primary); }

.quick-link:hover {
  color: var(--halal-primary);
  text-decoration: none;
}

.d-none { display: none !important; }
@media (min-width: 992px) {
  .d-lg-block { display: block !important; }
}
@media (max-width: 991px) {
  .d-none.d-lg-block { display: none !important; }
}

.logo {
  flex-shrink: 0;
}

.logo a {
  display: block;
  text-decoration: none;
}

.logo img {
  height: 56px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img { height: 48px; }
}

/* ---- Top bar (redes sociais + contato) ---- */
.header-top-info.top-bar {
  background: var(--halal-secondary);
  color: #fff;
  font-size: 13px;
}

.header-top-info .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 8px 20px;
}

.header-top-info .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.header-top-info .col-lg-6 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 10px;
}

@media (min-width: 992px) {
  .header-top-info .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

.social-links-inline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links-inline a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  transition: background .2s;
}

.social-links-inline a:hover {
  background: var(--halal-primary);
  text-decoration: none;
  color: #fff;
}

.top-contact {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-contact:hover { color: #fff; opacity: .9; text-decoration: none; }

.top-contact .icon { margin-right: 4px; }

/* ---- Navegação ---- */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-desktop .menu-wrap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.nav-desktop .menu-wrap li { margin: 0; }

.nav-desktop .menu-wrap a {
  display: block;
  padding: 10px 14px;
  color: var(--halal-text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

.nav-desktop .menu-wrap a:hover,
.nav-desktop .menu-wrap .current a {
  color: var(--halal-primary);
  background: rgba(191, 140, 32, .08);
  text-decoration: none;
}

/* Menu com dropdown (desktop) */
.nav-desktop .menu-item {
  position: relative;
}

.nav-desktop .menu-item.has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 4px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
}

.nav-desktop .dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 100;
}

.nav-desktop .menu-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-desktop .dropdown-menu li {
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}

.nav-desktop .dropdown-menu li:last-child { border-bottom: none; }

.nav-desktop .dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--halal-text);
  font-weight: 500;
  white-space: nowrap;
}

.nav-desktop .dropdown-menu a:hover {
  background: rgba(191, 140, 32, .08);
  color: var(--halal-primary);
}

.nav-desktop .dropdown-menu .submenu {
  left: 100%;
  top: 0;
  margin-left: 4px;
}

.nav-desktop .dropdown-menu .has-children > a::after {
  border: 4px solid transparent;
  border-left-color: currentColor;
  border-top-color: transparent;
  margin-left: 8px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--halal-secondary);
  transition: transform .25s, opacity .25s;
}

.menu-toggle.is-open .top-bun {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open .meat {
  opacity: 0;
}
.menu-toggle.is-open .bottom-bun {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--halal-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  padding: 1rem;
  z-index: 99;
}

.nav-mobile.is-open { display: block; }

.nav-mobile .menu-wrap {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile .menu-wrap a {
  display: block;
  padding: 12px 16px;
  color: var(--halal-text);
  text-decoration: none;
  border-bottom: 1px solid var(--halal-bg-light);
}

.nav-mobile .menu-wrap a:hover { background: var(--halal-bg-light); color: var(--halal-primary); }

/* ---- Main content ---- */
.main-content {
  min-height: 50vh;
}

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

/* Hero / Serviços (página inicial) */
.servicos-home {
  padding: 48px 0 64px;
}

.servicos-home .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  color: var(--halal-secondary);
}

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

.servico-card {
  background: var(--halal-bg);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, border-color .2s;
}

.servico-card:hover {
  box-shadow: 0 6px 20px rgba(64, 84, 50, .12);
  border-color: var(--halal-primary);
  text-decoration: none;
  color: inherit;
}

.servico-img-area {
  aspect-ratio: 16/10;
  background: var(--halal-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.servico-img-area img {
  width: 80%;
  height: auto;
  object-fit: contain;
}

.servico-info {
  padding: 1.25rem;
}

.servico-info h3 {
  margin: 0 0 .5rem;
  font-size: 1.15rem;
  color: var(--halal-secondary);
}

.servico-info p {
  margin: 0;
  font-size: 14px;
  color: var(--halal-text-muted);
}

/* ---- Últimas Notícias ---- */
.noticias-home {
  padding: 48px 0;
  background: var(--halal-bg-light);
}

.noticias-home .section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--halal-secondary);
}

.noticias-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
}

.noticias-lista li {
  margin: 0 0 0.75rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid #e8e8e8;
}

.noticias-lista li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.noticias-lista a {
  color: var(--halal-text);
  text-decoration: none;
  font-weight: 500;
}

.noticias-lista a:hover {
  color: var(--halal-primary);
  text-decoration: underline;
}

/* ---- Ticker de notícias ---- */
.news-ticker-wrap {
  padding: 12px 0;
  background: var(--halal-bg-light);
  border-bottom: 1px solid #e8e8e8;
}

.bdpp-wrap.inf-news-ticker {
  border: 1px solid var(--halal-secondary);
  border-radius: 6px;
  overflow: hidden;
}

.bdpp-wrap .bdpp-label {
  background: var(--halal-secondary);
  color: #f6f3f2;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
}

.bdpp-ticker-cnt {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
}

.bdpp-ticker-ele {
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid #eee;
}

.bdpp-ticker-ele:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.bdpp-ticker-ele a {
  color: var(--halal-primary);
  text-decoration: none;
  font-weight: 500;
}

.bdpp-ticker-ele a:hover {
  color: var(--halal-secondary);
  text-decoration: underline;
}

/* ---- Card Fique por Dentro (estilo original) ---- */
.cta-noticias {
  padding: 40px 0;
}

.news-read-all-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background: linear-gradient(135deg, rgba(42,58,33,.95) 0%, rgba(30,42,23,1) 100%);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
  border: 2px solid rgba(191,140,32,.2);
  transition: transform .3s, box-shadow .3s;
  overflow: hidden;
}

.news-read-all-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,.2);
  border-color: rgba(191,140,32,.4);
}

.news-read-all-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, rgba(191,140,32,.3) 0%, rgba(225,189,100,1) 50%, rgba(191,140,32,.3) 100%);
}

.news-read-all-content {
  padding: 30px 20px;
  text-align: center;
}

.news-read-all-icon {
  color: rgba(225,189,100,1);
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.news-read-all-title {
  color: #fff;
  margin: 0 0 15px;
  font-size: 1.75rem;
}

.news-read-all-subtitle {
  color: rgba(255,255,255,.85);
  margin: 0 0 25px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.news-read-all-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg, rgba(191,140,32,1) 0%, rgba(225,189,100,1) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform .3s, background .3s;
  box-shadow: 0 4px 15px rgba(191,140,32,.4);
}

.news-read-all-button:hover {
  transform: translateY(-3px);
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(225,189,100,1) 0%, rgba(191,140,32,1) 100%);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background .2s, color .2s;
}

.btn-primary {
  background: var(--halal-primary);
  color: #fff;
  border: 2px solid var(--halal-primary);
}

.btn-primary:hover {
  background: #a6781b;
  border-color: #a6781b;
  color: #fff;
  text-decoration: none;
}

/* ---- Novos Treinamentos e Cursos ---- */
.treinamentos-home {
  padding: 48px 0 64px;
}

.treinamentos-home .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  color: var(--halal-secondary);
}

.treinamentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.treinamento-card {
  background: var(--halal-bg);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, border-color .2s;
}

.treinamento-card:hover {
  box-shadow: 0 6px 20px rgba(64, 84, 50, .12);
  border-color: var(--halal-primary);
  text-decoration: none;
  color: inherit;
}

.treinamento-img {
  aspect-ratio: 1;
  background: var(--halal-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.treinamento-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.treinamento-info {
  padding: 1.25rem;
  text-align: center;
}

.treinamento-info h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--halal-secondary);
}

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(170deg, rgba(42,58,33,.98) 0%, rgba(35,48,25,.99) 35%, rgba(30,42,23,1) 75%, rgba(27,38,20,1) 100%);
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -15px 35px rgba(0,0,0,.15);
}

.footer-separator {
  height: 3px;
  background: linear-gradient(90deg, rgba(191,140,32,.2) 0%, rgba(225,189,100,.9) 50%, rgba(191,140,32,.2) 100%);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}

.footer-logo-column {
  flex: 0 0 280px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  max-width: 160px;
  margin: 0 auto 15px;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-logo-text {
  color: rgba(225,189,100,.9);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 25px;
}

.footer-logo-column .footer-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.footer-logo-column .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(191,140,32,.3);
  text-decoration: none;
  transition: background .3s, transform .3s;
}

.footer-logo-column .social-icon:hover {
  background: var(--halal-primary);
  color: #fff;
  transform: translateY(-5px);
  text-decoration: none;
}

.footer-columns {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  min-width: 0;
}

.footer-column {
  flex: 1;
  min-width: 180px;
}

.footer-column h4 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 25px;
  padding-bottom: 15px;
  position: relative;
  font-weight: 600;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--halal-primary), rgba(225,189,100,1));
}

.footer-column .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column .footer-links li {
  margin-bottom: 12px;
}

.footer-column .footer-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .3s, transform .3s;
}

.footer-column .footer-links a:hover {
  color: rgba(225,189,100,1);
  transform: translateX(5px);
  text-decoration: none;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-contact li .icon,
.footer-contact li i {
  color: var(--halal-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.footer-bottom p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.footer-bottom a {
  color: rgba(225,189,100,1);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .footer-logo-column {
    max-width: 100%;
    flex: none;
  }
  .footer-columns {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-column {
    flex: 1 0 calc(50% - 15px);
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
  }
  .footer-column {
    flex: 1 0 100%;
    text-align: left;
  }
  .footer-column h4::after {
    left: 0;
  }
  .footer-logo-column {
    align-items: center;
  }
}

/* Utilitários */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
