/* Shell landing — estilos que no React eram inline (nav, footer, utilitários). */

body.ecox-landing-page {
  --font-text: "Exo 2", system-ui, sans-serif;
  --font-display: "Exo 2", system-ui, sans-serif;
  margin: 0;
  background: var(--white);
  font-family: var(--font-text);
  font-size: var(--fs-body, 0.88rem);
  line-height: var(--lh-body, 1.7);
  color: var(--mid);
  -webkit-font-smoothing: antialiased;
}

body.ecox-landing-page h1,
body.ecox-landing-page h2,
body.ecox-landing-page h3,
body.ecox-landing-page h4,
body.ecox-landing-page h5,
body.ecox-landing-page h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-black, 900);
}

body.ecox-landing-page.ecox-landing-has-muffin-content .ecox-landing-main #Content h1,
body.ecox-landing-page.ecox-landing-has-muffin-content .ecox-landing-main #Content h2,
body.ecox-landing-page.ecox-landing-has-muffin-content .ecox-landing-main #Content h3,
body.ecox-landing-page.ecox-landing-has-muffin-content .ecox-landing-main #Content h4,
body.ecox-landing-page.ecox-landing-has-muffin-content .ecox-landing-main #Content h5,
body.ecox-landing-page.ecox-landing-has-muffin-content .ecox-landing-main #Content h6 {
  font-family: revert;
  font-weight: revert;
}

body.ecox-landing-page #Wrapper,
body.ecox-landing-page #Header_wrapper,
body.ecox-landing-page #Footer {
  display: none !important;
}

.ecox-landing-header {
  position: relative;
  z-index: 50;
}

.ecox-landing-main {
  min-height: 40vh;
}

/* Embeds YouTube no shell landing — altura maxima 380px (16:9), so no miolo principal. */
.ecox-landing-page .ecox-landing-main iframe[src*="youtube"],
.ecox-landing-page .ecox-landing-main iframe[src*="youtu.be"],
.ecox-landing-page .porque-eco-x__video,
.ecox-landing-page .modal-venda-video {
  width: 100%;
  max-height: 380px;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* Widget WhatsApp / formulario Mautic — video compacto 280px. */
.formulariomautic .videoapresentacao,
.whatsappmautic .formulariomautic .videoapresentacao,
#ecox-blomerize-leads .formulariomautic .videoapresentacao {
  position: relative;
  width: 100%;
  max-height: 280px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.formulariomautic iframe[src*="youtube"],
.formulariomautic iframe[src*="youtu.be"],
.formulariomautic .videoapresentacao iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 280px;
  border: 0;
}

.ecox-landing-rev-slider,
.ecox-landing-rev-slider #mfn-rev-slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.ecox-landing-rev-slider .rev_slider_wrapper,
.ecox-landing-rev-slider .fullwidthbanner-container {
  width: 100% !important;
  max-width: 100% !important;
}

body.ecox-landing-page.template-slider .ecox-landing-main #Content {
  padding-top: 0;
}

/* Nav inner */
.ecox-landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

/* Barra de administracao do WordPress (so aparece logado). */
body.admin-bar .ecox-landing-nav {
  top: 32px;
}

body.admin-bar .produto-contact {
  top: 152px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .ecox-landing-nav {
    top: 46px;
  }

  body.admin-bar .produto-contact {
    top: 166px;
  }
}

.landing-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  max-width: var(--content-max, 1240px);
  margin: 0 auto;
}

.landing-nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.landing-nav__logo {
  height: 28px;
  width: auto;
  display: block;
}

.landing-nav__divider {
  width: 1px;
  height: 24px;
  background: #d5d5d5;
}

.landing-nav__tagline {
  font-size: 0.6rem;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 130px;
  line-height: 1.35;
}

.landing-nav__desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.landing-nav__link {
  color: var(--mid);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 16px;
  display: block;
}

.landing-nav__link:hover {
  color: var(--black);
}

/* Dropdown desktop */
.landing-nav__dropdown {
  position: relative;
}

.landing-nav__dropdown-head {
  display: flex;
  align-items: center;
}

.landing-nav__link--parent {
  padding-right: 4px;
}

.landing-nav__subtoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding-top: 15px;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--mid);
}

.landing-nav__subtoggle:hover,
.landing-nav__dropdown.is-open .landing-nav__subtoggle {
  color: var(--black);
}

.landing-nav__chevron {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur, 0.2s);
}

.landing-nav__dropdown.is-open .landing-nav__chevron,
.landing-nav__mobile-group.is-open .landing-nav__chevron {
  transform: rotate(-135deg) translateY(1px);
}

.landing-nav__submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 70;
  min-width: 260px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--red);
  box-shadow: var(--shadow-mega);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur, 0.2s), transform var(--dur, 0.2s), visibility var(--dur, 0.2s);
}

.landing-nav__dropdown:hover .landing-nav__submenu,
.landing-nav__dropdown:focus-within .landing-nav__submenu,
.landing-nav__dropdown.is-open .landing-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.landing-nav__submenu-item {
  margin: 0;
}

.landing-nav__sublink {
  display: block;
  padding: 11px 18px;
  color: var(--mid);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--rule);
  transition: color var(--dur, 0.2s), background var(--dur, 0.2s);
}

.landing-nav__submenu-item:last-child .landing-nav__sublink {
  border-bottom: none;
}

.landing-nav__sublink:hover {
  color: var(--red);
  background: var(--bg);
}

.landing-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  padding: 10px 18px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--dur, 0.2s);
}

.landing-nav__cta:hover {
  background: var(--black);
  color: var(--white);
}

.landing-nav__mobile {
  display: flex;
  align-items: center;
  gap: 4px;
}

.landing-nav__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.landing-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: transform 0.25s, opacity 0.25s;
}

.landing-nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.landing-nav__hamburger.is-open span:nth-child(2) {
  transform: scaleX(0);
  opacity: 0;
}

.landing-nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.landing-nav__mobile-menu {
  position: absolute;
  top: 100%;
  left: -5vw;
  right: -5vw;
  background: var(--white);
  border-top: 2px solid var(--red);
  box-shadow: var(--shadow-mega);
  padding: 8px 0 20px;
  z-index: 60;
}

.landing-nav__mobile-link {
  display: block;
  color: var(--mid);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 20px;
  border-bottom: 1px solid var(--rule);
}

.landing-nav__mobile-group {
  border-bottom: 1px solid var(--rule);
}

.landing-nav__mobile-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav__mobile-link--parent {
  flex: 1;
  border-bottom: none;
}

.landing-nav__mobile-subtoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 8px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--mid);
}

.landing-nav__mobile-submenu {
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.landing-nav__mobile-submenu[hidden] {
  display: none;
}

.landing-nav__mobile-sublink {
  display: block;
  padding: 12px 20px 12px 32px;
  color: var(--mid);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--rule);
}

.landing-nav__mobile-sublink:last-child {
  border-bottom: none;
}

.landing-nav__mobile-sublink:hover {
  color: var(--red);
}

.landing-nav__cta--mobile {
  display: flex;
  width: calc(100% - 40px);
  margin: 16px 20px 0;
  justify-content: center;
  box-sizing: border-box;
}

.ecox-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
}

@media (max-width: 900px) {
  .ecox-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .ecox-hide-desktop {
    display: none !important;
  }
}

/* Footer */
.ecox-landing-footer {
  background: var(--footer-grey);
  padding: 64px 5% 28px;
}

.ecox-landing-footer__grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 44px;
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: 24px;
  max-width: var(--content-max, 1240px);
  margin-left: auto;
  margin-right: auto;
}

.ecox-landing-footer__logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
  margin-bottom: 16px;
  display: block;
}

.ecox-landing-footer__desc {
  font-size: 0.9rem;
  color: #3a3a3a;
  line-height: 1.75;
  max-width: 300px;
  margin: 0 0 16px;
}

.ecox-landing-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ecox-landing-footer__contacts a {
  color: #3a3a3a;
  font-size: 0.86rem;
  text-decoration: none;
}

.ecox-landing-footer__contacts a:hover {
  color: var(--black);
}

.ecox-footer-col__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2e2e2e;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1a1a1a;
}

.ecox-footer-col__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ecox-footer-col__list a {
  color: #3a3a3a;
  font-size: 0.86rem;
  text-decoration: none;
}

.ecox-footer-col__list a:hover {
  color: var(--black);
}

.ecox-landing-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--content-max, 1240px);
  margin: 0 auto;
  font-size: 0.8rem;
  color: #2a2a2a;
}

@media (max-width: 900px) {
  .ecox-landing-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .ecox-landing-footer {
    padding: 48px 5% 24px;
  }

  .ecox-landing-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
