/* ============================================================
   BHS - SQUADS INTELIGENTES (page-squads-inteligentes.php)
   Layout: Figma "Squads Inteligentes_BHS". Tokens em style.css.
   Seletores com ".bhs-body .bhs-sq" para vencer o CSS do tema pai.
   ============================================================ */

.bhs-sq {
  --sq-green: var(--bhs-green, #1CE766);
  --sq-green-text: #12b04d; /* verde legível sobre fundo claro */
  --sq-light: #F2F2F2;
  --sq-panel: #E7E7E7;
  --sq-black: #000;
  --sq-muted-dark: #5c5c5c;
  --sq-muted-light: #b8b8b8;
  --sq-line: rgba(255, 255, 255, .2);
  --sq-heading: 'Power Grotesk', var(--bhs-font-heading, 'Plus Jakarta Sans'), sans-serif;
  --sq-body: var(--bhs-font-body, 'DM Sans'), sans-serif;

  display: block;
  font-family: var(--sq-body);
  color: #111;
  background: var(--sq-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.bhs-body .bhs-sq h1,
.bhs-body .bhs-sq h2,
.bhs-body .bhs-sq h3 {
  font-family: var(--sq-heading);
  font-weight: 400;
  letter-spacing: -.01em;
  text-transform: none;
  margin: 0;
  color: inherit;
}
/* Power Grotesk só tem o Regular: o negrito é sintetizado e cola as letras,
   por isso o letter-spacing extra nos trechos em bold. */
.bhs-body .bhs-sq h1 strong,
.bhs-body .bhs-sq h2 strong {
  font-weight: 700;
  letter-spacing: .012em;
}

.bhs-body .bhs-sq p {
  font-family: var(--sq-body);
  margin: 0;
  color: inherit;
}

/* Reset de listas com :where() (especificidade baixa) para não vencer
   o padding/margin dos componentes (.bhs-sq-card, .bhs-sq-ciclo__cards...). */
:where(.bhs-sq) :where(ul, ol) {
  list-style: none;
  margin: 0;
  padding: 0;
}
:where(.bhs-sq) li { margin: 0; padding: 0; }
:where(.bhs-sq) li::before { content: none; }
/* O tema pai aplica padding-left/margin-bottom em ul/ol com especificidade maior. */
.bhs-body .bhs-sq ul,
.bhs-body .bhs-sq ol { padding: 0; list-style: none; }
.bhs-body .bhs-sq .bhs-sq-agentes__list,
.bhs-body .bhs-sq .bhs-sq-areas__grid { margin: 0; }

.bhs-sq-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.bhs-body .bhs-sq p.bhs-sq-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 18px;
}

.bhs-body .bhs-sq a.bhs-sq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2df07a 0%, var(--sq-green) 45%, #10c24f 100%);
  color: #fff;
  font-family: var(--sq-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(28, 231, 102, .25);
  transition: transform var(--bhs-transition, .25s ease), box-shadow var(--bhs-transition, .25s ease);
}
.bhs-body .bhs-sq a.bhs-sq-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(28, 231, 102, .4);
}

/* ---------- HERO ---------- */
.bhs-sq-hero {
  position: relative;
  min-height: clamp(520px, 44vw, 640px);
  display: flex;
  align-items: center;
  background-color: #04040a;
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
  color: #fff;
}
.bhs-sq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 3, 8, .92) 0%, rgba(3, 3, 8, .55) 42%, rgba(3, 3, 8, 0) 68%);
  pointer-events: none;
}
.bhs-sq-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}
.bhs-body .bhs-sq h1.bhs-sq-hero__title {
  max-width: 560px;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.02;
  color: #fff;
  margin-bottom: 22px;
}
.bhs-body .bhs-sq p.bhs-sq-hero__lead {
  max-width: 390px;
  font-size: 17px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 30px;
}

/* ---------- INTRO ---------- */
.bhs-sq-intro {
  padding: clamp(72px, 7vw, 104px) 0 clamp(56px, 5vw, 72px);
  text-align: center;
}
.bhs-sq-intro__inner { max-width: 900px; }
.bhs-body .bhs-sq h2.bhs-sq-intro__title {
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.02;
  color: #111;
  margin-bottom: 28px;
}
.bhs-body .bhs-sq .bhs-sq-intro p:not(.bhs-sq-eyebrow) {
  max-width: 740px;
  margin: 0 auto 22px;
  font-size: 17px;
  line-height: 1.3;
  color: #333;
}

/* ---------- CICLO (do problema à solução) ---------- */
.bhs-sq-ciclo { padding-bottom: clamp(72px, 7vw, 110px); }
.bhs-sq-ciclo__panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  background: var(--sq-panel);
  border-radius: 40px;
  padding: clamp(48px, 5vw, 72px) clamp(28px, 7vw, 90px) clamp(140px, 12vw, 170px);
}
.bhs-body .bhs-sq h2.bhs-sq-ciclo__title {
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.02;
  color: #111;
}
.bhs-body .bhs-sq p.bhs-sq-ciclo__desc {
  max-width: 300px;
  font-size: 17px;
  line-height: 1.3;
  color: #333;
  text-align: right;
}
.bhs-sq-ciclo__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: calc(clamp(100px, 9vw, 120px) * -1) clamp(12px, 3vw, 40px) 0;
  position: relative;
  z-index: 1;
}
.bhs-sq-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  padding: 30px 26px 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
}
.bhs-sq-card::before { /* brilho verde no canto, como no layout */
  content: "";
  position: absolute;
  top: -28px;
  left: -28px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 231, 102, .35) 0%, rgba(28, 231, 102, 0) 70%);
  pointer-events: none;
}
.bhs-body .bhs-sq h3.bhs-sq-card__title {
  font-family: var(--sq-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--sq-green-text);
  margin-bottom: 18px;
}
.bhs-body .bhs-sq .bhs-sq-card p {
  font-size: 15px;
  line-height: 1.35;
  color: #444;
}

/* ---------- AGENTES ---------- */
.bhs-sq-agentes { padding: clamp(40px, 5vw, 70px) 0 clamp(80px, 8vw, 120px); }
.bhs-sq-agentes__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.bhs-sq-agentes__left { padding-top: 20px; }
.bhs-body .bhs-sq h2.bhs-sq-agentes__title {
  max-width: 420px;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1;
  color: #111;
  margin-bottom: 26px;
}
.bhs-body .bhs-sq .bhs-sq-agentes__left p {
  max-width: 380px;
  font-size: 15px;
  line-height: 1.35;
  color: #333;
  margin-bottom: 28px;
}
.bhs-sq-agentes__list {
  display: grid;
  gap: 26px;
}
.bhs-body .bhs-sq .bhs-sq-agentes__list h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .012em;
  color: #111;
  margin-bottom: 6px;
}
.bhs-body .bhs-sq .bhs-sq-agentes__list p {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--sq-muted-dark);
}

/* ---------- SEÇÕES ESCURAS ---------- */
.bhs-sq-dark {
  background: var(--sq-black);
  color: #fff;
}

/* ÁREAS */
.bhs-sq-areas { padding: clamp(72px, 7vw, 110px) 0 clamp(64px, 6vw, 96px); }
.bhs-sq-areas__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.bhs-body .bhs-sq .bhs-sq-areas p.bhs-sq-eyebrow { color: #bdbdbd; }
.bhs-body .bhs-sq h2.bhs-sq-areas__title {
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.05;
  color: #fff;
}
.bhs-body .bhs-sq p.bhs-sq-areas__desc {
  max-width: 440px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .45);
  font-size: 15px;
  line-height: 1.35;
  color: #d6d6d6;
}
.bhs-sq-areas__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.bhs-sq-area {
  position: relative;
  min-height: 190px;
  padding: 26px 16px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .10), transparent 60%),
    linear-gradient(180deg, #1c1c1c 0%, #0b0b0b 100%);
  text-align: center;
  transition: border-color var(--bhs-transition, .25s ease), transform var(--bhs-transition, .25s ease);
}
.bhs-sq-area:hover {
  border-color: rgba(28, 231, 102, .45);
  transform: translateY(-3px);
}
.bhs-body .bhs-sq .bhs-sq-area h3 {
  font-family: var(--sq-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--sq-green);
  margin-bottom: 14px;
}
.bhs-body .bhs-sq .bhs-sq-area p {
  font-size: 13px;
  line-height: 1.3;
  color: #e6e6e6;
}

/* BENEFÍCIOS */
.bhs-sq-benef { padding: clamp(48px, 5vw, 72px) 0 clamp(72px, 7vw, 110px); text-align: center; }
.bhs-body .bhs-sq h2.bhs-sq-benef__title {
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 18px;
}
.bhs-body .bhs-sq p.bhs-sq-benef__lead {
  max-width: 600px;
  margin: 0 auto 64px;
  font-size: 15px;
  line-height: 1.35;
  color: #d6d6d6;
}
.bhs-sq-benef__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1020px;
  margin: 0 auto;
  border-top: 1px solid var(--sq-line);
  border-left: 1px solid var(--sq-line);
  text-align: left;
}
.bhs-sq-benef__grid li {
  padding: 40px 34px 44px;
  border-right: 1px solid var(--sq-line);
  border-bottom: 1px solid var(--sq-line);
}
.bhs-body .bhs-sq .bhs-sq-benef__grid h3 {
  font-family: var(--sq-body);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.bhs-body .bhs-sq .bhs-sq-benef__grid p {
  max-width: 260px;
  font-size: 14px;
  line-height: 1.4;
  color: #cfcfcf;
}

/* JORNADA (acordeão) */
.bhs-sq-jornada { padding: clamp(24px, 3vw, 40px) 0 clamp(80px, 8vw, 120px); }
.bhs-sq-jornada__inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.bhs-body .bhs-sq h2.bhs-sq-jornada__title {
  max-width: 380px;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.02;
  color: #fff;
  margin-bottom: 26px;
}
.bhs-body .bhs-sq .bhs-sq-jornada__left p {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.35;
  color: #d6d6d6;
}
.bhs-sq-accordion { border-top: 1px solid var(--sq-line); }
.bhs-sq-accordion__item { border-bottom: 1px solid var(--sq-line); }
.bhs-sq-accordion__item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--sq-heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.bhs-sq-accordion__item summary::-webkit-details-marker { display: none; }
.bhs-sq-accordion__item summary:focus-visible {
  outline: 2px solid var(--sq-green);
  outline-offset: 4px;
}
.bhs-sq-accordion__icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h12M9 3l5 5-5 5'/%3E%3C/svg%3E");
  transition: transform var(--bhs-transition, .25s ease);
}
.bhs-sq-accordion__item[open] .bhs-sq-accordion__icon { transform: rotate(45deg); }
.bhs-sq-accordion__item summary:hover .bhs-sq-accordion__icon { transform: translateX(3px); }
.bhs-sq-accordion__item[open] summary:hover .bhs-sq-accordion__icon { transform: rotate(45deg); }
.bhs-body .bhs-sq .bhs-sq-accordion__item p {
  max-width: 440px;
  padding: 0 0 22px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #d6d6d6;
}

/* CTA / FORMULÁRIO */
.bhs-sq-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
  padding-top: clamp(64px, 6vw, 96px);
  padding-bottom: clamp(72px, 7vw, 110px);
  position: relative;
}
.bhs-sq-cta__inner::before { /* linha divisória do layout */
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 4vw, 40px);
  right: clamp(20px, 4vw, 40px);
  height: 1px;
  background: rgba(255, 255, 255, .35);
}
.bhs-body .bhs-sq h2.bhs-sq-cta__title {
  max-width: 400px;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1;
  color: #fff;
  margin-bottom: 24px;
}
.bhs-body .bhs-sq .bhs-sq-cta__text p {
  max-width: 330px;
  font-size: 15px;
  line-height: 1.35;
  color: #d6d6d6;
}
.bhs-sq-form { max-width: 460px; }
.bhs-sq-form .wpcf7,
.bhs-sq-form .wpcf7-form { width: 100%; margin: 0; }
.bhs-body .bhs-sq .bhs-sq-form p { margin: 0; }
.bhs-sq-form br { display: none; }
.bhs-sq-form .wpcf7-form-control-wrap { display: block; }
.bhs-body .bhs-sq .bhs-sq-form input[type="text"],
.bhs-body .bhs-sq .bhs-sq-form input[type="email"],
.bhs-body .bhs-sq .bhs-sq-form input[type="tel"],
.bhs-body .bhs-sq .bhs-sq-form select,
.bhs-body .bhs-sq .bhs-sq-form textarea {
  width: 100%;
  height: auto;
  margin: 0 0 12px;
  padding: 18px 6px 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--sq-body);
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color var(--bhs-transition, .25s ease);
}
.bhs-body .bhs-sq .bhs-sq-form select option { color: #111; }
.bhs-body .bhs-sq .bhs-sq-form input::placeholder,
.bhs-body .bhs-sq .bhs-sq-form textarea::placeholder {
  color: #fff;
  opacity: .9;
}
.bhs-body .bhs-sq .bhs-sq-form input:focus,
.bhs-body .bhs-sq .bhs-sq-form select:focus,
.bhs-body .bhs-sq .bhs-sq-form textarea:focus { border-bottom-color: var(--sq-green); }
.bhs-body .bhs-sq .bhs-sq-form input[type="submit"],
.bhs-body .bhs-sq .bhs-sq-form button[type="submit"] {
  margin-top: 24px;
  min-width: 104px;
  height: 34px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #2df07a 0%, var(--sq-green) 45%, #10c24f 100%);
  color: #fff;
  font-family: var(--sq-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(28, 231, 102, .25);
  transition: transform var(--bhs-transition, .25s ease);
}
.bhs-body .bhs-sq .bhs-sq-form input[type="submit"]:hover,
.bhs-body .bhs-sq .bhs-sq-form button[type="submit"]:hover { transform: translateY(-2px); }
.bhs-sq-form .wpcf7-spinner { margin: 24px 0 0 12px; }
.bhs-body .bhs-sq .bhs-sq-form .wpcf7-not-valid-tip {
  margin: -6px 0 10px;
  font-size: 12px;
  color: #ff8a8a;
}
.bhs-body .bhs-sq .bhs-sq-form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--sq-green);
  border-radius: 8px;
  background: rgba(28, 231, 102, .08);
  font-size: 14px;
  color: #fff;
}
/* Formulário estático (home-parts/cf7-static-form.php) */
.bhs-sq-form .bhs-cf7-static { display: flex; flex-direction: column; align-items: stretch; }
.bhs-sq-form .bhs-cf7-static button[type="submit"] { align-self: flex-start; }
.bhs-sq-form .bhs-cf7-static button[type="submit"]:disabled { opacity: .7; cursor: wait; transform: none; }
.bhs-body .bhs-sq p.bhs-cf7-static__response:empty { display: none; }
.bhs-body .bhs-sq p.bhs-cf7-static__response {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
}
.bhs-body .bhs-sq p.bhs-cf7-static__response.is-success {
  border: 1px solid var(--sq-green);
  background: rgba(28, 231, 102, .08);
}
.bhs-body .bhs-sq p.bhs-cf7-static__response.is-error {
  border: 1px solid #ff8a8a;
  background: rgba(255, 138, 138, .08);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1024px) {
  .bhs-sq-ciclo__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bhs-sq-areas__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bhs-sq-benef__grid li { padding: 32px 24px 36px; }
}

@media (max-width: 768px) {
  .bhs-sq-hero {
    min-height: 560px;
    align-items: flex-end;
    background-position: 78% center;
  }
  .bhs-sq-hero::before {
    background: linear-gradient(0deg, rgba(3, 3, 8, .95) 0%, rgba(3, 3, 8, .7) 45%, rgba(3, 3, 8, .2) 100%);
  }
  .bhs-body .bhs-sq p.bhs-sq-eyebrow { letter-spacing: .24em; font-size: 12px; }

  .bhs-sq-ciclo__panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    border-radius: 28px;
    padding-bottom: 120px;
  }
  .bhs-body .bhs-sq p.bhs-sq-ciclo__desc { text-align: left; max-width: none; }
  .bhs-sq-ciclo__cards {
    grid-template-columns: 1fr;
    margin: -90px 12px 0;
  }

  .bhs-sq-agentes__inner,
  .bhs-sq-areas__head,
  .bhs-sq-jornada__inner,
  .bhs-sq-cta__inner { grid-template-columns: 1fr; }
  .bhs-sq-agentes__left { padding-top: 0; }
  .bhs-sq-areas__head { gap: 24px; margin-bottom: 36px; }
  .bhs-sq-areas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bhs-sq-area { min-height: 0; }
  .bhs-sq-benef__grid { grid-template-columns: 1fr; }
  .bhs-body .bhs-sq .bhs-sq-benef__grid p { max-width: none; }
  .bhs-sq-form { max-width: none; }
}

@media (max-width: 420px) {
  .bhs-sq-areas__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bhs-sq *,
  .bhs-sq *::before,
  .bhs-sq *::after { transition: none !important; }
}
