/* style.css */
/* Adicione suas regras de estilo aqui */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root{
  /* Paleta Northlub (extraída da logo) */
  --nl-blue: #1c8bcf;
  --nl-blue-dark: #0f5e96;
  --nl-red: #ef2d2f;
  --nl-red-dark: #c41f22;
  --nl-yellow: #f3cf1a;
  --nl-yellow-dark: #d2b200;
  --nl-green: #2f9a2f;
  --nl-green-dark: #1f6e1f;
  --nl-black: #111111;
  --nl-gray-100: #f6f7f9;
  --nl-gray-700: #4a4f55;
  --brand-blue: var(--nl-blue);
  --text: var(--nl-black);
  --link: var(--nl-blue);
  --link-hover: var(--nl-red);
  --text-link-green: var(--nl-green);
  /* Cores das categorias */
  --cat-blog: var(--nl-blue);

  /* Paleta da Ipiranga e Texaco */
  --ipiranga-bg:#ffd101ff;
  --ipiranga-fg:#073aa8;
  --texaco-bg:#0b0b0e;
  --texaco-fg:#ff2a2a;
}

h1 { color: var(--nl-blue); }
h2 { color: var(--nl-green); }

/* Aplicando estilos de fonte */
header,
h1,
h2,
h3,
form button {
  font-family: "Sora", "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: normal;
}

/* Links */
a { color: var(--link); }
a:hover { color: var(--link-hover); }

/* Botões (harmoniza com Bootstrap) */
.btn-primary{
  background-color: var(--nl-blue);
  border-color: var(--nl-blue);
}
.btn-primary:hover,
.btn-primary:focus{
  background-color: var(--nl-blue-dark);
  border-color: var(--nl-blue-dark);
}
.btn-success{
  background-color: var(--nl-green);
  border-color: var(--nl-green);
}
.btn-success:hover,
.btn-success:focus{
  background-color: var(--nl-green-dark);
  border-color: var(--nl-green-dark);
}
.btn-danger{
  background-color: var(--nl-red);
  border-color: var(--nl-red);
}
.btn-danger:hover,
.btn-danger:focus{
  background-color: var(--nl-red-dark);
  border-color: var(--nl-red-dark);
}
/* 2. Aplicando a fonte com fallback */
body,
input,
textarea {
  font-family: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Se o header só vira fixo/sticky em algum estado/classe, mantenha também */
body.admin-bar .site-header-wrap.is-sticky,
body.admin-bar .site-header-wrap.sticky,
body.admin-bar .site-header-wrap.fixed {
  top: 32px;
}

/* Início dos estilos do header */

/* Mantém fundo sólido quando estiver sticky */
.site-header-wrap {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1030;
}

header {
  color: #000000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  left: 0;
  width: 100%;
}
.logo img,
.custom-logo {
  max-height: var(--northlub-logo-height, 90px);
  height: auto;
  width: auto;
}
/* Fim dos estilos do header */

/* Início dos estilos da estrutura das páginas */
.container {
  max-width: 1280px;
  width: 100%;
}
section p {
  margin-bottom: 25px;
}
/* Fim dos estilos da estrutura das páginas */

/*Início das classes do footer */
footer#site {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(193, 212, 227, 0.74);
  background:
    radial-gradient(52% 86% at 88% 0%, rgba(243, 207, 26, 0.17) 0%, transparent 72%),
    linear-gradient(132deg, rgba(7, 58, 168, 0.24) 0%, rgba(47, 154, 47, 0.24) 45%, rgba(7, 58, 168, 0.2) 100%),
    linear-gradient(180deg, #f4f9ff 0%, #e9f2fa 100%);
}

footer#site::before {
  content: "";
  position: absolute;
  top: -56px;
  left: -44px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

footer#site .footer-logo img {
  display: block;
  width: min(220px, 64vw);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(14, 44, 67, 0.22));
}

footer#site .northlub-footer-main {
  position: relative;
}

footer#site .northlub-footer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 67, 108, 0.22);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 249, 255, 0.95) 100%);
  color: #12354c;
  font-family: "Sora", "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.52rem 0.95rem;
}

footer#site .northlub-footer-toggle .material-symbols-outlined {
  font-size: 1.14rem;
  transition: transform 0.2s ease;
}

footer#site .northlub-footer-toggle[aria-expanded="true"] .material-symbols-outlined {
  transform: rotate(180deg);
}

footer#site .northlub-footer-info-shell {
  margin-top: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(170, 196, 216, 0.5);
  background:
    radial-gradient(72% 110% at 92% 0, rgba(243, 207, 26, 0.14) 0%, transparent 66%),
    linear-gradient(132deg, rgba(7, 58, 168, 0.14) 0%, rgba(47, 154, 47, 0.16) 48%, rgba(7, 58, 168, 0.1) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
  box-shadow: 0 12px 28px rgba(10, 47, 80, 0.12);
  padding: clamp(1rem, 1.1vw + 0.82rem, 1.6rem);
}

footer#site .northlub-footer-columns {
  row-gap: 1.2rem;
}

footer#site .northlub-footer-column h3 {
  margin: 0 0 0.5rem;
  font-family: "Sora", "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: #12344a;
}

footer#site .northlub-footer-column ul {
  margin: 0;
}

footer#site .northlub-footer-column li {
  margin-bottom: 0.34rem;
}

footer#site .northlub-footer-column li:last-child {
  margin-bottom: 0;
}

footer#site .northlub-footer-column a {
  color: #214b64;
  font-size: 0.93rem;
  text-decoration: none;
}

footer#site .northlub-footer-column a:hover,
footer#site .northlub-footer-column a:focus-visible {
  color: #0e4f79;
  text-decoration: underline;
}

footer#site .northlub-footer-meta {
  border-top: 1px solid rgba(163, 191, 213, 0.48);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  text-align: left;
}

footer#site .northlub-footer-meta-content {
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
}

footer#site .northlub-footer-company {
  font-size: 0.93rem;
  line-height: 1.4;
  color: #163c54;
  margin-bottom: 0;
}

footer#site .northlub-footer-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem 1rem;
}

footer#site .northlub-footer-meta-links a {
  color: #1f4a64;
  font-size: 0.9rem;
  text-decoration: none;
}

footer#site .northlub-footer-meta-links a:hover,
footer#site .northlub-footer-meta-links a:focus-visible {
  color: #0f5a89;
  text-decoration: underline;
}

footer#site .northlub-footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  max-width: 260px;
}

footer#site .northlub-footer-social-title {
  width: 100%;
  margin: 0 0 0.1rem;
  font-family: "Sora", "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  color: #153e58;
  text-align: right;
}

footer#site .northlub-footer-social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(16, 67, 108, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: #123e59;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(11, 53, 83, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

footer#site .northlub-footer-social-link .material-symbols-outlined {
  font-size: 1.06rem;
}

footer#site .northlub-footer-social-link svg {
  width: 24px;
  height: 24px;
  display: block;
}

footer#site .northlub-footer-social-link svg,
footer#site .northlub-footer-social-link svg path {
  fill: currentColor;
}

footer#site .northlub-footer-social-link.social-facebook {
  color: #4267b2;
  background: color-mix(in srgb, #4267b2 12%, #ffffff 88%);
}

footer#site .northlub-footer-social-link.social-youtube {
  color: #ff0000;
  background: color-mix(in srgb, #ff0000 10%, #ffffff 90%);
}

footer#site .northlub-footer-social-link.social-instagram {
  color: #e4405f;
  background: color-mix(in srgb, #e4405f 10%, #ffffff 90%);
}

footer#site .northlub-footer-social-link.social-whatsapp {
  color: #25d366;
  background: color-mix(in srgb, #25d366 10%, #ffffff 90%);
}

footer#site .northlub-footer-social-link:hover,
footer#site .northlub-footer-social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(11, 53, 83, 0.2);
  filter: saturate(1.1);
  border-color: rgba(15, 90, 135, 0.3);
  background: rgba(255, 255, 255, 0.96);
}

.footer-bottom.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #0f2434 0%, #0a1a27 100%);
}

.footer-bottom.footer-bottom-bar .small {
  color: rgba(243, 248, 252, 0.92) !important;
}

.footer-bottom.footer-bottom-bar .footer-dev-link {
  color: #8cd6ff;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom.footer-bottom-bar .footer-dev-link:hover,
.footer-bottom.footer-bottom-bar .footer-dev-link:focus-visible {
  color: #f3cf1a;
  text-decoration: underline;
}

@media (max-width: 767px) {
  footer#site .northlub-footer-columns,
  footer#site .northlub-footer-column {
    text-align: center;
  }

  footer#site .northlub-footer-column ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  footer#site .northlub-footer-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer#site .northlub-footer-meta-content {
    align-items: center;
  }

  footer#site .northlub-footer-meta-links {
    justify-content: center;
  }

  footer#site .northlub-footer-social {
    justify-content: center;
    max-width: none;
  }

  footer#site .northlub-footer-social-title {
    text-align: center;
  }

  footer#site .northlub-footer-social-link {
    width: 36px;
    height: 36px;
  }

  .footer-bottom.footer-bottom-bar .d-flex {
    display: grid !important;
    align-items: stretch !important;
    justify-items: center;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
  }

  .footer-bottom.footer-bottom-bar .small {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 0.75rem;
    text-align: center;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 575px) {
  footer#site .northlub-footer-info-shell {
    border-radius: 14px;
  }
}
/*Fim das classes do footer */

/* Classe de imagem fluída */
.img-fluid {
  max-width: 100%;
  height: auto;
}
/* Fim da Classe de imagem fluída */

/*Início das classes da paginação */
#pagination .barra-bottom p {
  margin: 0;
  padding: 15px;
}
#pagination .posts-per-page-form {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
#pagination .posts-per-page-form select {
  margin: 10px;
  padding: 5px;
}
#pagination .pagination {
  text-align: right;
  padding: 10px;
}
/*Fim das classes da paginação */

/*Início das classes da página de contato - formulário */
.contact-form textarea {
  resize: none;
  height: 180px;
}
.contact-form :focus,
textarea:focus {
  outline-color: var(--nl-blue);
}
.contact-text,
.contact-form {
  padding: 0 10px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.contact-form button {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
}
.contact-form button:hover {
  background-color: #45a049;
}
/*Fim das classes da página de contato - formulário */

/* Importando arquivos de fontes */
@font-face {
  font-family: "Material Symbols Outlined";
  src: url("../fonts/material-symbols/outlined.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.5em; /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito/static/Nunito-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito/static/Nunito-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Mesma coisa para Poppins */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Sora para títulos e elementos de destaque */
@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora/Sora-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora/Sora-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Fim da importação dos arquivos de fontes */

/*para garantir responsividade do banner*/
.banner-home-right-1 img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

/* Estilos para dispositivos móveis */
@media (max-width: 768px) {
  /* Aplicando estilos na estrutura das páginas */
  .container {
    max-width: 1200px;
    padding: 0 15px; /* Adiciona espaço nas laterais do container em dispositivos móveis */
  }
  .post-item {
    margin-bottom: 1rem;
  }
  .logo img,
.custom-logo {
  max-height: var(--northlub-logo-height, 55px);
}
}

/* Desktop: wrapper (header + navbar) fica sticky; header interno vira estático */
@media (min-width: 992px) {
  .site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1030;
  }
  /* Ajuste do header quando a Admin Bar do WP está presente (usuário logado) */
  body.admin-bar .site-header-wrap {
    top: 32px; /* altura da admin bar no desktop */
}
}
