/*
Theme Name: Convergente Energia
Theme URI: https://www.convergenteenergia.com.br
Author: Manus AI
Author URI: https://www.manus.im
Description: Tema institucional da Convergente Energia preparado para instalação na Hostinger em WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: convergente-energia
*/

:root {
  --ce-orange: #fa5916;
  --ce-orange-dark: #db4c11;
  --ce-graphite: #111111;
  --ce-graphite-soft: #1b1b1b;
  --ce-surface: #f5efe8;
  --ce-surface-2: #efe7df;
  --ce-white: #ffffff;
  --ce-text: #282420;
  --ce-text-soft: #655d56;
  --ce-border: rgba(38, 34, 31, 0.08);
  --ce-shadow: 0 22px 70px rgba(18, 18, 18, 0.12);
  --ce-radius-xl: 32px;
  --ce-radius-lg: 24px;
  --ce-radius-md: 18px;
  --ce-container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ce-text);
  font-family: 'Source Sans 3', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(250, 89, 22, 0.05), transparent 24%),
    linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.98));
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a.button {
  cursor: pointer;
}

.ce-container {
  width: min(calc(100% - 32px), var(--ce-container));
  margin: 0 auto;
}

.ce-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(12, 12, 12, 0.86);
  backdrop-filter: blur(18px);
}

.ce-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.ce-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ce-brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.ce-brand__text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ce-white);
}

.ce-brand__text span {
  color: var(--ce-orange);
}

.ce-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ce-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255,255,255,0.76);
  transition: color 0.2s ease;
}

.ce-nav a:hover {
  color: var(--ce-white);
}

.ce-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.ce-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ce-white);
}

.ce-button,
.wp-block-button__link.ce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ce-orange);
  color: var(--ce-white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ce-button:hover {
  transform: translateY(-2px);
  background: var(--ce-orange-dark);
}

.ce-button--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.18);
  color: var(--ce-white);
}

.ce-button--ghost:hover {
  background: rgba(255,255,255,0.06);
}

.ce-section-label {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ce-section-label--dark {
  border-color: rgba(38,34,31,0.08);
  background: rgba(250,89,22,0.08);
  color: #6f3118;
}

.ce-heading {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.ce-heading--section {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  color: #24211e;
}

.ce-text {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--ce-text-soft);
}

.ce-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(135deg, rgba(250, 89, 22, 0.06), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    var(--ce-graphite);
}

.ce-hero::before,
.ce-hero::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(250,89,22,0.28);
  border-radius: 32px;
  pointer-events: none;
}

.ce-hero::before {
  width: 22rem;
  height: 12rem;
  top: -4rem;
  right: -7rem;
}

.ce-hero::after {
  width: 18rem;
  height: 14rem;
  bottom: -5rem;
  left: -6rem;
}

.ce-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: 36px;
  align-items: center;
  padding: 52px 0 68px;
}

.ce-hero__copy {
  position: relative;
  z-index: 2;
}

.ce-hero__copy .ce-heading {
  color: var(--ce-white);
  max-width: 720px;
  margin-top: 22px;
}

.ce-hero__copy .ce-text {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255,255,255,0.74);
}

.ce-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.ce-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin-top: 36px;
}

.ce-metric {
  padding: 18px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 16px 50px rgba(0,0,0,0.16);
}

.ce-metric span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.62);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.ce-metric strong {
  display: block;
  color: var(--ce-white);
  font-size: 1rem;
  line-height: 1.35;
}

.ce-hero__visual {
  position: relative;
  min-height: 620px;
}

.ce-image-frame,
.ce-editorial-image,
.ce-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 24px 72px rgba(0,0,0,0.24);
}

.ce-image-frame img,
.ce-editorial-image img,
.ce-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ce-image-frame {
  height: 100%;
  min-height: 470px;
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 8% 100%);
  margin-top: -2rem;
  padding-top: 2rem;
}

.ce-image-frame::after,
.ce-editorial-image::after,
.ce-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.03), rgba(17,17,17,0.28));
}

.ce-floating-card {
  position: absolute;
  z-index: 2;
  max-width: 260px;
  padding: 18px 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  background: rgba(18,18,18,0.72);
  color: var(--ce-white);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
}

.ce-floating-card small {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.62);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.ce-floating-card p {
  margin: 0;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
}

.ce-floating-card--left {
  left: 0;
  bottom: 24px;
}

.ce-floating-card--right {
  right: 0;
  top: 16px;
}

.ce-section {
  padding: 104px 0;
}

.ce-section--light {
  background: var(--ce-surface);
}

.ce-section--soft {
  background: var(--ce-surface-2);
}

.ce-section--dark {
  background: var(--ce-graphite-soft);
  color: var(--ce-white);
}

.ce-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.ce-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ce-border);
  border-radius: 32px;
  padding: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(247,243,240,0.96));
  box-shadow: 0 18px 60px rgba(51,51,51,0.08);
}

.ce-panel::before,
.ce-contact-card::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(250,89,22,0.16);
  border-radius: 24px;
  pointer-events: none;
}

.ce-panel p {
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #57504b;
}

.ce-cards,
.ce-solution-grid,
.ce-ecosystem-grid,
.ce-project-grid,
.ce-check-grid {
  display: grid;
  gap: 20px;
}

.ce-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px;
}

.ce-solution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
}

.ce-ecosystem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
}

.ce-project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 48px;
}

.ce-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 36px;
}

.ce-card,
.ce-solution-card,
.ce-ecosystem-card,
.ce-project-card,
.ce-check-card {
  border-radius: 28px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.ce-card,
.ce-project-card,
.ce-ecosystem-card {
  border: 1px solid var(--ce-border);
  background: rgba(255,255,255,0.84);
  box-shadow: 0 18px 55px rgba(51,51,51,0.06);
}

.ce-card:hover,
.ce-solution-card:hover,
.ce-ecosystem-card:hover,
.ce-project-card:hover,
.ce-check-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 65px rgba(51,51,51,0.12);
  border-color: rgba(250,89,22,0.28);
}

.ce-card {
  padding: 28px;
}

.ce-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(250,89,22,0.1);
  color: var(--ce-orange);
  margin-bottom: 18px;
}

.ce-icon-badge svg {
  width: 20px;
  height: 20px;
}

.ce-card h3,
.ce-solution-card h3,
.ce-ecosystem-card h3,
.ce-project-card h3,
.ce-contact-card h3 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ce-card p,
.ce-solution-card p,
.ce-ecosystem-card p,
.ce-project-card p,
.ce-check-card p,
.ce-contact-card p {
  margin: 14px 0 0;
  line-height: 1.78;
  color: #67615c;
}

.ce-solution-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.ce-solution-card h3,
.ce-solution-card p {
  color: var(--ce-white);
}

.ce-solution-card p {
  color: rgba(255,255,255,0.72);
}

.ce-ecosystem-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  padding: 30px;
  background: var(--ce-white);
}

.ce-ecosystem-card--primary {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.08);
}

.ce-ecosystem-card--primary h3,
.ce-ecosystem-card--primary p,
.ce-ecosystem-card--primary a,
.ce-ecosystem-card--primary .ce-ecosystem-card__head {
  color: var(--ce-white);
}

.ce-ecosystem-card--primary p {
  color: rgba(255,255,255,0.72);
}

.ce-ecosystem-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #726860;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.ce-ecosystem-card a {
  margin-top: 18px;
  color: var(--ce-orange);
  font-weight: 700;
}

.ce-partner-strip {
  border: 1px solid var(--ce-border);
  border-radius: 28px;
  background: var(--ce-white);
  padding: 24px 28px;
  box-shadow: 0 18px 55px rgba(51,51,51,0.08);
}

.ce-partner-strip span {
  display: block;
  margin-bottom: 14px;
  color: #7b6f67;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.ce-partner-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #2d2a28;
}

.ce-project-card {
  padding: 30px;
}

.ce-project-card__topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #776d65;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.ce-check-card {
  display: flex;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.ce-check-card svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--ce-orange);
}

.ce-investor-points {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.ce-investor-points div {
  border-left: 2px solid rgba(250,89,22,0.42);
  padding-left: 16px;
  line-height: 1.75;
  color: #59534e;
}

.ce-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 30px;
  align-items: start;
}

.ce-contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 32px;
  padding: 34px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 25px 70px rgba(0,0,0,0.22);
}

.ce-contact-info {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.ce-contact-line {
  display: flex;
  gap: 14px;
}

.ce-contact-line svg {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex: 0 0 auto;
  color: var(--ce-orange);
}

.ce-contact-line strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ce-white);
}

.ce-contact-line p {
  margin-top: 8px;
  color: rgba(255,255,255,0.66);
}

.ce-footer {
  background: #0a0a0a;
  color: var(--ce-white);
  padding: 40px 0 48px;
}

.ce-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
}

.ce-footer p {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.46);
  line-height: 1.7;
}

.ce-footer__meta {
  text-align: right;
}

.ce-panel--form {
  padding-bottom: 28px;
}

.ce-contact-form-shell {
  margin-top: 28px;
  border-top: 1px solid rgba(38,34,31,0.08);
  padding-top: 24px;
}

.ce-contact-form-shell h4 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.24rem;
  font-weight: 700;
  color: #24211e;
}

.ce-contact-form-shell > p {
  margin: 10px 0 0;
  color: #625b56;
  line-height: 1.75;
}

.ce-form-alert {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 600;
  line-height: 1.65;
}

.ce-form-alert--success {
  background: rgba(28, 140, 80, 0.1);
  color: #17613c;
  border: 1px solid rgba(28, 140, 80, 0.18);
}

.ce-form-alert--error {
  background: rgba(184, 63, 44, 0.1);
  color: #7b2517;
  border: 1px solid rgba(184, 63, 44, 0.18);
}

.ce-contact-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.ce-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ce-contact-form label {
  display: grid;
  gap: 8px;
}

.ce-contact-form span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e5550;
}

.ce-contact-form input,
.ce-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(38,34,31,0.12);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px 16px;
  color: #24211e;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ce-contact-form input:focus,
.ce-contact-form textarea:focus {
  outline: none;
  border-color: rgba(250,89,22,0.45);
  box-shadow: 0 0 0 3px rgba(250,89,22,0.12);
}

@media (max-width: 1100px) {
  .ce-cards,
  .ce-solution-grid,
  .ce-ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ce-grid-two,
  .ce-contact-layout,
  .ce-hero__grid {
    grid-template-columns: 1fr;
  }

  .ce-hero__visual {
    min-height: 520px;
  }
}

@media (max-width: 820px) {
  .ce-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 16px 28px;
    background: #151515;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .ce-site-header.is-open .ce-nav {
    display: flex;
  }

  .ce-menu-toggle {
    display: inline-block;
  }

  .ce-site-header__cta {
    display: none;
  }

  .ce-cards,
  .ce-solution-grid,
  .ce-ecosystem-grid,
  .ce-project-grid,
  .ce-check-grid,
  .ce-metrics,
  .ce-form-grid {
    grid-template-columns: 1fr;
  }

  .ce-section {
    padding: 84px 0;
  }

  .ce-heading {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  .ce-hero__visual {
    min-height: 420px;
  }

  .ce-floating-card {
    position: static;
    margin-top: 16px;
    max-width: none;
  }

  .ce-footer__inner {
    flex-direction: column;
  }

  .ce-footer__meta {
    text-align: left;
  }
}
