/* ==========================================================================
   CBnet Energia (tema amarelo)
   ========================================================================== */

/* ---------- Header / footer temáticos ---------- */
.page-cbnet-energia .site-header__logo { width: 271px; }
.page-cbnet-energia .site-header__logo img { width: 263px; max-height: none; }
.page-cbnet-energia .site-header__client { display: none; }
.page-cbnet-energia .site-header__cta { min-width: 206px; margin-left: auto; }
.page-cbnet-energia .main-nav { flex: none; width: 773px; padding-left: 10px; }
.page-cbnet-energia .footer-brand__logo img { width: 254px; }
.page-cbnet-energia .footer-col a[href$="/cbnet-energia/"] { color: #fff; }
.page-cbnet-energia .app-badges img { filter: brightness(1.48) saturate(2) hue-rotate(210deg); }

/* ---------- Hero ---------- */
.en-hero { position: relative; isolation: isolate; background: #001428; padding: 30px 0; overflow: hidden; }
.en-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../../img/hero-1.webp") 0 0 / 2560px auto no-repeat;
}
.en-hero__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.en-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.en-eyebrow { color: var(--accent); font-size: 12px; line-height: 17px; letter-spacing: 6.6px; }
.en-hero__title { font-size: 55px; line-height: 66px; font-weight: 400; color: #fff; max-width: 625px; margin-bottom: 24px; }
.en-hero__title .headline__hl { font-weight: 600; line-height: 80px; }
.en-hero__title .headline__hl svg { left: -10px; top: -10px; bottom: auto; width: calc(100% + 20px); height: calc(100% + 20px); stroke-width: 8; }
.en-hero__lead { font-size: 18px; line-height: 29px; color: #fff; padding-bottom: 20px; }
.en-btn { padding: 20px 50px; font-weight: 600; margin-top: 10px; }
.en-btn .icon { font-size: 15px; }
.en-hero__media { position: relative; padding: 10px; }
.en-hero__img { width: 605px; }
.en-hero__icon { position: absolute; top: 90px; right: 0; width: 125px; }
@keyframes en-spin { to { transform: rotate(360deg); } }
@supports (animation-timeline: scroll()) {
  .en-hero__icon { animation: en-spin linear both; animation-timeline: scroll(root); animation-range: 0 1200px; }
}

/* ---------- Valores ---------- */
.en-values { background: #F8F8F8; padding: 60px 0; min-height: 320px; display: flex; align-items: center; }
.en-values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: center; }
.en-value { max-width: 330px; }
.en-value .icon { font-size: 58px; color: var(--accent); margin-bottom: 18px; }
.en-value h2 { font-size: 20px; line-height: 32px; font-weight: 700; color: #000; margin-bottom: 6px; }
.en-value p { font-size: 16px; line-height: 24px; color: #3D3D3D; }

/* ---------- Itens com ícone (lista) ---------- */
.en-item { display: flex; align-items: flex-start; gap: 23px; }
.en-item > .icon { font-size: 42px; color: var(--accent); }
.en-item h3 { font-size: 20px; line-height: 29px; font-weight: 700; color: #000; margin: 4px 0 16px; }
.en-item p { font-size: 16px; line-height: 26px; color: #3D3D3D; }

/* ---------- Quem somos ---------- */
.en-about { background: #fff; padding: 165px 0; }
.en-about__grid { display: grid; grid-template-columns: 539px 1fr; align-items: center; }
.en-about h2 { color: var(--accent); font-size: 46px; line-height: 56px; font-weight: 600; margin-bottom: 20px; }
.en-about p { color: #333; font-size: 17px; line-height: 25px; max-width: 447px; }
.en-about__img { width: 711px; justify-self: end; }

/* ---------- Energia solar ---------- */
.en-solar { background: #F8F8F8; padding: 151px 0; }
.en-solar__grid { display: grid; grid-template-columns: 411px 411px 1fr; align-items: center; }
.en-solar h2 { font-size: 36px; line-height: 47px; font-weight: 600; color: #000; margin-bottom: 20px; }
.en-solar__text p { font-size: 18px; line-height: 29px; color: #3D3D3D; }
.en-solar__img { width: 411px; }
.en-solar__list { display: grid; gap: 40px; padding-left: 50px; }

/* ---------- Serviços ---------- */
.en-services { background: #fff; padding: 120px 0; }
.en-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 388px)); gap: 60px 30px; align-items: center; }

/* ---------- Especialista (banner amarelo) ---------- */
.en-help { padding: 120px 0; }
.en-help .help-banner { background: var(--accent); }
.en-help .help-banner::before { background-image: url("../../img/icone-energia.svg"); mix-blend-mode: multiply; }
.en-help .pill { background: #FFECBA; color: #001428; }
.en-help .btn--white { color: var(--accent); }
.en-help .help-banner__img { right: 111px; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1200px) {
  .page-cbnet-energia .main-nav { width: auto; flex: 1; }
  .page-cbnet-energia .site-header__logo { width: 220px; }
  .page-cbnet-energia .site-header__logo img { width: 200px; }
  .page-cbnet-energia .site-header__cta { min-width: 0; }
}

@media (max-width: 1024px) {
  .page-cbnet-energia .site-header__cta { margin-left: auto; }
  .en-hero__title { font-size: 42px; line-height: 54px; }
  .en-hero__title .headline__hl { line-height: 60px; }
  .en-hero__icon { width: 110px; right: 0; }
  .en-about, .en-solar { padding: 100px 0; }
  .en-about__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .en-about__img { width: 100%; }
  .en-solar__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .en-solar__img { width: 100%; }
  .en-solar__list { grid-column: 1 / -1; padding-left: 0; grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .en-services__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .page-cbnet-energia .site-header__inner { grid-template-areas: "logo toggle"; grid-template-columns: 1fr auto; }
  .page-cbnet-energia .site-header__cta { display: none; }
  .page-cbnet-energia .site-header__logo { width: auto; }
  .page-cbnet-energia .site-header__logo img { width: min(250px, 64vw); }

  .en-hero { padding: 60px 0 20px; }
  .en-hero::before { background-size: cover; background-position: center; }
  .en-hero__grid { grid-template-columns: 1fr; }
  .en-hero__text { gap: 20px; }
  .en-hero__title { font-size: 25px; line-height: 42px; max-width: 90%; }
  .en-hero__title .headline__hl { line-height: 37px; }
  .en-hero__lead { font-size: 18px; line-height: 29px; padding-bottom: 10px; }
  .en-hero__media { padding: 50px 0 0; }
  .en-hero__img { width: 100%; }
  .en-hero__icon { width: 78px; top: 72px; right: auto; left: 230px; }

  .en-values { padding: 40px 0 50px; }
  .en-values__grid { grid-template-columns: 1fr; gap: 30px; }

  .en-about { padding: 80px 0; }
  .en-about__grid { grid-template-columns: 1fr; gap: 0; }
  .en-about h2 { font-size: 22px; line-height: 1.2; margin-bottom: 30px; }
  .en-about p { padding-bottom: 80px; }

  .en-solar { padding: 80px 0 60px; }
  .en-solar__grid { grid-template-columns: 1fr; gap: 0; }
  .en-solar h2 { font-size: 17px; line-height: 42px; margin-bottom: 10px; }
  .en-solar__text { padding-bottom: 30px; }
  .en-solar__img { width: 100%; margin-bottom: 60px; }
  .en-solar__list { grid-template-columns: 1fr; gap: 50px; }

  .en-services { padding: 40px 0; }
  .en-services__grid { grid-template-columns: 1fr; gap: 50px; }
  .en-item { flex-direction: column; gap: 19px; }
  .en-item h3 { line-height: 31px; margin: 0 0 18px; }

  .en-help { padding: 120px 0 50px; }
  .en-help .help-banner { padding: 250px 20px 40px; }
  .en-help .help-banner__img { display: block; top: -26px; left: 2px; right: auto; bottom: auto; width: 250px; }
  .en-help .help-banner h2 { font-size: 30px; line-height: 1.4; }
  .en-help .help-banner p { font-size: 14px; line-height: 26px; }
  .en-help .btn--white { font-size: 14px; padding: 20px 10px; width: 100%; }
}
