:root {
  --theme-bg: #FAF5EC;
  --theme-surface-dark: #3E4194;
  --theme-text: #1C1C1C;
  --theme-ink: #1C1C1C;
}

body {
  background: var(--mb-surface, var(--theme-bg));
  color: var(--mb-ink, var(--theme-text));
  font-family: "DM Sans", system-ui, ui-sans-serif, sans-serif;
}

.theme-container {
  width: min(1294px, 92%);
  margin: 0 auto;
}

.theme-header {
  background: #FAF5EC;
  position: sticky;
  top: 0;
  z-index: 31;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(28, 28, 28, 0.06);
}

.theme-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
}

.theme-header .custom-logo-link,
.theme-header .custom-logo-link img,
.theme-header img.custom-logo {
  max-height: 64px;
  max-width: 132px;
  width: auto;
  height: auto;
  display: block;
}

.theme-logo a {
  color: var(--mb-ink, #1C1C1C);
  text-decoration: none;
  font-weight: 700;
}

.theme-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  width: 100%;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 20px);
}

.theme-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.theme-header__drawer-contact {
  display: none;
}

/* Desktop / large tablet landscape: full nav */
@media (min-width: 1200px) {
  .mb-nav-overlay {
    display: none !important;
  }

  .theme-burger {
    display: none !important;
  }

  .theme-header__drawer-contact {
    display: none !important;
  }

  #mb-primary-navigation.mb-primary-nav {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }

  .theme-header__actions {
    margin-left: 0;
  }
}

.theme-nav__list a {
  color: #000;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.theme-nav__list a:hover,
.theme-nav__list a:focus-visible,
.theme-nav__list .current-menu-item > a,
.theme-nav__list .current_page_item > a {
  color: var(--mb-secondary, #007D34);
  opacity: 1;
  border-bottom-color: var(--mb-secondary, #007D34);
}

.theme-burger {
  background: transparent;
  color: var(--mb-ink, #1C1C1C);
  border: 0;
  display: none;
  position: relative;
  z-index: 32;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
}

.theme-header__contact {
  display: flex;
  align-items: center;
  gap: 25px;
}

.theme-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #000;
  text-decoration: none;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: none;
}

.theme-header__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 999px;
  background: #E7EFE4;
  color: #2E6B4A;
  flex-shrink: 0;
}

.theme-header__phone-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.theme-header__orcamento {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mb-primary, #3E4194);
  color: #fff !important;
  text-decoration: none;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 0;
  white-space: nowrap;
}

.theme-header__orcamento:hover,
.theme-header__orcamento:focus-visible {
  background: var(--mb-primary-hover, #32357a);
  color: #fff !important;
}

.mb-btn-primary,
.mb-btn-secondary,
.mb-btn-tertiary {
  border-radius: 4px !important;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theme-footer {
  background: var(--mb-primary, #3E4194);
  color: #fff;
  padding-top: 90px;
  padding-bottom: 0;
}

.theme-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 2rem;
  padding-bottom: 0;
  align-items: start;
}

.theme-footer__grid--main {
  align-items: center;
}

.theme-footer__grid--social {
  margin-top: 0.6rem;
}

.theme-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: fit-content;
}

.theme-footer__social-col {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 250px;
}

.theme-footer__social-col > .flex {
  width: 100%;
  justify-content: center;
}

.theme-footer .theme-footer__col-title {
  margin: 0 0 0.75rem;
  font-family: "DM Sans", system-ui, ui-sans-serif, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-align: left;
}

.theme-footer__address,
.theme-footer__hours,
.theme-footer__col--nav {
  font-family: "DM Sans", system-ui, ui-sans-serif, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.theme-footer__grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-footer__col--nav ul {
  columns: 1;
}

.theme-footer__col--nav li {
  margin-bottom: 0.35rem;
}

.theme-footer__grid a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.theme-footer__grid a:hover {
  opacity: 1;
}

.theme-footer .mb-social-icon {
  background: var(--mb-primary);
}

.theme-footer .mb-social-icon:hover,
.theme-footer .mb-social-icon:focus-visible {
  background: var(--mb-primary-hover);
}

.theme-footer__logo-slot {
  max-width: 220px;
}

.theme-footer__logo-link {
  display: inline-block;
  line-height: 0;
}

.theme-footer__logo-link--text {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}

.theme-footer .theme-footer__logo-slot .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.theme-footer__logo-img,
.theme-footer__logo-slot .custom-logo-link img,
.theme-footer__logo-slot img.custom-logo {
  max-width: 220px;
  max-height: 80px;
  width: auto;
  height: auto;
  display: block;
}

.theme-footer__rule {
  margin: 2rem 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-footer__bottom {
  padding-bottom: 60px;
}

.theme-footer__bottom-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
}

.theme-footer__bottom-left {
  justify-self: start;
  min-height: 1em;
}

.theme-footer__copyright {
  margin: 0;
  text-align: center;
  justify-self: center;
  font-family: "DM Sans", system-ui, ui-sans-serif, sans-serif;
  font-size: 14px;
  opacity: 0.9;
  max-width: 100%;
}

.theme-footer__bottom-right {
  justify-self: end;
}

.theme-footer__privacy {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
}

.theme-footer__dev {
  display: inline-block;
  line-height: 0;
  opacity: 0.95;
  text-decoration: none;
}

.theme-footer__dev img {
  height: 28px;
  width: auto;
  max-width: 160px;
  display: block;
}

.theme-footer__dev:hover {
  opacity: 1;
}

#primary {
  min-height: 40vh;
}

/* Mobile + tablet (+ landscape < 1200): burger drawer */
@media (max-width: 1199px) {
  body.is-mb-mobile-nav-open {
    overflow: hidden;
  }

  .theme-burger {
    display: inline-flex;
  }

  /* Keep CTA visible next to burger; phone lives in the drawer */
  .theme-header__contact-wrap .theme-header__phone {
    display: none;
  }

  .theme-header__contact {
    gap: 10px;
  }

  .theme-header__orcamento {
    padding: 10px 14px;
    font-size: 12px;
  }

  .mb-nav-overlay:not(.hidden) {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 29;
    cursor: pointer;
    background: rgba(28, 28, 28, 0.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }

  #mb-primary-navigation.mb-primary-nav:not(.hidden) {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 30;
    box-sizing: border-box;
    width: min(340px, 88vw);
    max-width: min(340px, 100vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding: calc(env(safe-area-inset-top, 0px) + 5.25rem) 1.35rem max(1.25rem, env(safe-area-inset-bottom, 0px))
      max(1rem, env(safe-area-inset-left, 0px));
    background: #FAF5EC;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.18);
    animation: mb-theme-nav-drawer-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes mb-theme-nav-drawer-in {
    from {
      transform: translateX(103%);
      opacity: 0.96;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .theme-nav__list {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.15rem;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .theme-nav__list > li > a,
  .theme-nav__list a.theme-nav__link {
    display: block;
    padding: 0.75rem 0.35rem;
    border-radius: 6px;
    color: #1C1C1C !important;
    font-size: 16px !important;
    letter-spacing: 0.04em;
    border-bottom: 0 !important;
  }

  .theme-nav__list .current-menu-item > a,
  .theme-nav__list .current_page_item > a {
    color: #007D34 !important;
  }

  .theme-header__drawer-contact {
    display: block;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(28, 28, 28, 0.1);
  }

  .theme-header__drawer-contact .theme-header__contact {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .theme-header__drawer-contact .theme-header__phone {
    display: inline-flex;
    color: #1C1C1C;
  }

  .theme-header__drawer-contact .theme-header__orcamento {
    width: 100%;
    text-align: center;
  }
}

/* Tablet portrait footer: 2 columns */
@media (max-width: 1199px) and (min-width: 700px) {
  .theme-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .theme-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 699px) {
  .theme-footer__grid {
    grid-template-columns: 1fr;
  }

  .theme-footer__brand {
    width: 100%;
    max-width: none;
    align-items: center;
    text-align: center;
  }

  .theme-footer__social-col {
    justify-content: center;
    max-width: 100%;
  }

  .theme-footer .theme-footer__col-title,
  .theme-footer__address,
  .theme-footer__hours,
  .theme-footer__col--nav {
    text-align: center;
  }

  .theme-footer__col--nav ul {
    text-align: center;
    columns: 1;
  }

  .theme-footer__bottom-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .theme-footer__bottom-left,
  .theme-footer__bottom-right,
  .theme-footer__copyright {
    justify-self: center;
  }

  .theme-header__contact-wrap .theme-header__orcamento {
    display: none;
  }

  .theme-header .custom-logo-link img,
  .theme-header img.custom-logo {
    max-height: 52px;
    max-width: 112px;
  }
}

/* Produtos: linhas grid */
.mm-linhas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 40px 0 80px;
}
.mm-linhas-grid__card {
  background: #fff;
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mm-linhas-grid__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.mm-linhas-grid__body {
  padding: 28px 28px 32px;
}
.mm-linhas-grid__eye {
  margin: 0 0 10px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mb-secondary, #007D34);
}
.mm-linhas-grid__title {
  margin: 0 0 12px;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  color: var(--mb-ink, #1C1C1C);
}
.mm-linhas-grid__title a {
  color: inherit;
  text-decoration: none;
}
.mm-linhas-grid__desc {
  margin: 0 0 20px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mb-ink, #1C1C1C);
}
.mm-linhas-grid__cta {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mb-secondary, #007D34);
  text-decoration: none;
  font-weight: 600;
}
@media (max-width: 900px) {
  .mm-linhas-grid {
    grid-template-columns: 1fr;
  }
}
