
/* 
 Theme Name:     M & E Plastics Child
 Author:         M & E Plastics
 Template:       Divi
 Version:        1.4
*/ 


/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */

/* ── Design Tokens ── */
:root {
  --mep-navy:       #1a2744;
  --mep-near-black: #0d1117;
  --mep-charcoal:   #111827;
  --mep-orange:     #e07020;
  --mep-divider:    #1f2937;
  --mep-muted:      #6b7280;
  --mep-subtle:     #9ca3af;
  --mep-nav-link:   #c8d4ea;
  --mep-tagline:    #8899bb;
  --mep-copyright:  #374151;
}

/* ── Suppress stray empty paragraphs Divi/wpautop may inject ── */
#et-main-area > p:empty,
#main-content > p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Header: Sticky wrapper ── */
.et-l--header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
}


/* ── Mobile extras: hidden globally, shown only when injected into open drawer ── */
#mep-mobile-extras {
  display: none !important;
}
#mep-mobile-extras.mep-extras-open {
  display: block !important;
}


.mep-topbar .mep-phone {
  color: var(--mep-orange);
  font-weight: bold;
  font-size: 15px;
}

.mep-badge {
  display: inline-block;
  background-color: var(--mep-divider);
  color: var(--mep-subtle);
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}


/* Nav active underline */
.mep-mainbar .et_pb_menu .nav > li.current-menu-item > a {
  border-bottom: 2px solid var(--mep-orange) !important;
  padding-bottom: 2px !important;
}


/* ── Mobile Header (< 768px) — drawer injection styles only ── */
@media (max-width: 767px) {
  .mep-mobile-drawer-contact {
    padding: 14px 16px;
    border-top: 1px solid var(--mep-divider);
    background-color: var(--mep-near-black);
  }

  .mep-mobile-drawer-contact p {
    color: var(--mep-subtle);
    font-size: 15px;
    margin: 0;
    line-height: 2.2;
  }

  .mep-mobile-drawer-contact .mep-phone {
    color: var(--mep-orange);
    font-weight: bold;
    font-size: 16px;
  }

  .mep-mobile-drawer-cta {
    display: block;
    background-color: var(--mep-orange);
    color: #ffffff;
    text-align: center;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin: 12px 16px 16px;
    border-radius: 3px;
  }
}

/* ── Footer: remove white gap from et-l--footer wrapper ── */
.et-l--footer {
  background-color: #111827 !important;
}

/* ── Footer headings and text: force white (Divi 5 doesn't reliably apply header4_text_color from shortcodes) ── */
.mep-footer-main h4 {
  color: #ffffff !important;
}
.mep-footer-main .et_pb_text_inner p,
.mep-footer-contact .et_pb_text_inner p {
  color: #ffffff !important;
}

/* ── Footer Quick Links menu: stack vertically + white links ── */
.mep-footer-main .et_pb_menu .nav {
  display: block !important;
}
.mep-footer-main .et_pb_menu .nav > li {
  display: block !important;
  float: none !important;
}
.mep-footer-main .et_pb_menu .nav > li > a {
  color: #ffffff !important;
  display: block !important;
  line-height: 2.2 !important;
  padding: 0 !important;
}

/* Footer column layout — override 1_2/1_4/1_4 to balanced flex distribution */
.mep-footer-main .et_pb_row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 48px !important;
}
.et_pb_column_0_tb_footer {
  flex: 2 1 0 !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
}
.et_pb_column_1_tb_footer,
.et_pb_column_2_tb_footer {
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
}


/* Pull Quick Links menu up tight under its heading */
.mep-footer-main .et_pb_column .et_pb_text.et_pb_module {
  margin-bottom: 6px !important;
}
.mep-footer-main .et_pb_menu.et_pb_module {
  margin-top: 0 !important;
}

.mep-footer-contact .mep-footer-phone {
  color: var(--mep-orange) !important;
  font-weight: bold;
  font-size: 17px !important;
}

/* Flex layout for copyright bar so columns align properly */
.mep-footer-bottom .et_pb_row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.mep-footer-bottom .et_pb_column {
  float: none !important;
  flex: 1 !important;
  width: auto !important;
  max-width: none !important;
}
.mep-footer-bottom .et_pb_column:last-child .et_pb_text_inner {
  text-align: right !important;
}

/* ── Mobile Footer (< 768px) ── */
@media (max-width: 767px) {
  .mep-footer-main .et_pb_row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .mep-footer-main .et_pb_column {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 24px !important;
  }

  .mep-footer-main .et_pb_column:last-child {
    margin-bottom: 0 !important;
  }

  .mep-footer-main .et_pb_menu .nav > li > a {
    text-align: center !important;
    display: block !important;
  }

  .mep-footer-contact .et_pb_text_inner {
    text-align: center !important;
  }

  .mep-footer-brand .et_pb_text_inner {
    text-align: center !important;
  }

  .mep-footer-bottom .et_pb_row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .mep-footer-bottom .et_pb_column {
    width: 100% !important;
    text-align: center !important;
  }
}


/* ── Homepage: structural only ── */
.mep-trust-bar .et_pb_column { border-right: 1px solid #1f2937; }
.mep-trust-bar .et_pb_column:last-child { border-right: none; }
.mep-products .et_pb_blurb:hover { border-color: #e07020 !important; }

/* ── Waypoint animation fix: Divi 5 BC mode leaves et-animated elements at opacity:0 ── */
.et-waypoint.et-animated { opacity: 1 !important; }

/* ── Homepage: structural only ── (additions) */
/* Override Divi's per-index .et_pb_blurb_N rule (2-class specificity) */
.mep-featured .et_pb_blurb_content .et_pb_blurb_container { text-align: center; }
.mep-cta-banner .et_pb_text_inner { text-align: center; }
