/* My Energy Bahamas - custom marketing sections
   Scoped under .me-block so Divi/theme styles are not affected. */

.me-block {
  --me-navy: #002b45;
  --me-blue: #1a9fd4;
  --me-gold: #f0a500;
  --me-green: #2db872;
  --me-red: #c93535;
  --me-text: #1a2030;
  --me-dim: #5c6578;
  --me-line: #e3e6ec;
  --me-bg: #f8f9fb;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--me-text);
  line-height: 1.7;
}

.me-block * { box-sizing: border-box; }

.me-block h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--me-navy);
}

.me-block h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--me-navy);
}

.me-block h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--me-navy);
}

.me-block p { margin: 0 0 16px; }
.me-block p:last-child { margin-bottom: 0; }

.me-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--me-dim);
  max-width: 68ch;
}

.me-block a { color: var(--me-blue); text-decoration: underline; }
.me-block a:hover { color: var(--me-navy); }

/* ---------- layout ---------- */

.me-grid { display: grid; gap: 22px; }
.me-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.me-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.me-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .me-grid.cols-3, .me-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .me-grid.cols-2, .me-grid.cols-3, .me-grid.cols-4 { grid-template-columns: 1fr; }
}

.me-section { margin: 0 0 44px; }
.me-section:last-child { margin-bottom: 0; }

/* ---------- cards ---------- */

.me-card {
  background: #fff;
  border: 1px solid var(--me-line);
  border-radius: 14px;
  padding: 26px;
}

.me-card.tinted { background: var(--me-bg); }

.me-card.dark {
  background: #1c2230;
  border-color: #2a3040;
  color: #e8eaf0;
}
.me-card.dark h3, .me-card.dark h4 { color: #fff; }

.me-card.accent { border-top: 4px solid var(--me-gold); }

.me-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--me-gold);
  margin-bottom: 10px;
}

.me-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  background: #d4f5e4;
  color: #1a7a48;
  margin-bottom: 14px;
}
.me-badge.blue { background: #d9eefb; color: #10658c; }
.me-badge.gold { background: #fdf0d3; color: #8a5e00; }

/* ---------- stats ---------- */

.me-stat {
  background: var(--me-bg);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}
.me-stat .k {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--me-dim);
  margin-bottom: 4px;
}
.me-stat .v {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--me-navy);
}
.me-stat .v.pos { color: var(--me-green); }
.me-stat .v.neg { color: var(--me-red); }
.me-stat .v.blue { color: var(--me-blue); }

/* ---------- lists ---------- */

.me-list { list-style: none; margin: 0 0 16px; padding: 0; }
.me-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
}
.me-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--me-gold);
}
.me-card.dark .me-list li::before { background: var(--me-blue); }

/* ---------- tables ---------- */

.me-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 18px; }

.me-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: #fff;
}
.me-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.8rem;
  color: var(--me-dim);
  padding: 0 0 10px;
}
.me-table th, .me-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--me-line);
  text-align: left;
  vertical-align: top;
}
.me-table thead th {
  background: var(--me-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: none;
}
.me-table tbody tr:nth-child(even) { background: var(--me-bg); }
.me-table td.num, .me-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.me-table td.neg { color: var(--me-red); font-weight: 600; }
.me-table td.pos { color: var(--me-green); font-weight: 600; }
.me-table tfoot td {
  font-weight: 700;
  background: #eef1f5;
  border-top: 2px solid var(--me-navy);
}

/* ---------- FAQ accordion ---------- */

.me-faq { margin: 0 0 20px; }

.me-faq details {
  border: 1px solid var(--me-line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.me-faq summary {
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--me-navy);
  position: relative;
  list-style: none;
}
.me-faq summary::-webkit-details-marker { display: none; }

.me-faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--me-gold);
}
.me-faq details[open] summary::after { content: "\2013"; }

.me-faq summary:hover { background: var(--me-bg); }
.me-faq summary:focus-visible { outline: 2px solid var(--me-blue); outline-offset: -2px; }

.me-faq .me-answer {
  padding: 0 22px 20px;
  color: var(--me-dim);
  border-top: 1px solid var(--me-line);
  padding-top: 16px;
}

/* ---------- callout ---------- */

.me-callout {
  padding: 18px 22px;
  border-radius: 12px;
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  font-size: 0.95rem;
  margin: 0 0 20px;
}
.me-callout strong { color: #b8550a; }

.me-callout.info { background: #e8f4fb; border-color: #c3e2f4; }
.me-callout.info strong { color: #10658c; }

/* ---------- CTA ---------- */

.me-cta {
  background: linear-gradient(160deg, #002b45 0%, #064f70 100%);
  border-radius: 18px;
  padding: 40px;
  color: #fff;
  text-align: center;
}
.me-cta h2, .me-cta h3 { color: #fff; }
.me-cta p { color: rgba(255, 255, 255, 0.82); max-width: 60ch; margin-left: auto; margin-right: auto; }

.me-btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: 10px;
  background: var(--me-gold);
  color: #1a2030 !important;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  margin: 8px 6px 0;
}
.me-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(240, 165, 0, 0.34);
  color: #1a2030 !important;
}

.me-btn.ghost {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.me-btn.ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff !important; box-shadow: none; }

/* ---------- internal link row ---------- */

.me-links {
  border-top: 1px solid var(--me-line);
  padding-top: 22px;
  margin-top: 8px;
}
.me-links .k {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--me-dim);
  margin-bottom: 10px;
  display: block;
}
.me-links a { margin-right: 20px; font-weight: 600; white-space: nowrap; }

.me-footnote {
  font-size: 0.76rem;
  color: var(--me-dim);
  line-height: 1.75;
  max-width: 78ch;
  margin-top: 26px;
}

@media (max-width: 680px) {
  .me-cta { padding: 28px 20px; }
  .me-card { padding: 20px; }
}

/* ---------- footer ---------- */

/* Dark footer. The Divi section carries the navy background; everything here
   assumes light-on-dark. Nothing is height-constrained, so columns are free to
   grow with their content. */

.me-fcol { min-width: 0; }          /* let long strings wrap instead of overflowing */

.me-fcol h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fdb467;
  margin: 0 0 10px;
}

.me-fcol .rule {
  height: 2px;
  background: #fdb467;
  opacity: 0.5;
  margin-bottom: 14px;
}

.me-fcol ul { list-style: none; margin: 0; padding: 0; }
.me-fcol li { margin-bottom: 9px; line-height: 1.45; }

.me-fcol a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  color: #d7e2ee;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.me-fcol a:hover { color: #fdb467; text-decoration: none; }

.me-fmeta {
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  color: #d7e2ee;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.me-fmeta strong { color: #ffffff; }
.me-fmeta a { color: #d7e2ee; text-decoration: none; overflow-wrap: anywhere; }
.me-fmeta a:hover { color: #fdb467; }
.me-fmeta .dim { color: #93a7bb; }

.me-fcontact { margin-top: 22px; }
.me-fcontact li { display: flex; gap: 8px; margin-bottom: 7px; }
.me-fcontact .lbl { color: #93a7bb; flex: none; }

.me-fsocial { margin-top: 18px; display: flex; gap: 10px; align-items: center; }
.me-fsocial a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.me-fsocial a:hover { background: #fdb467; border-color: #fdb467; color: #002b45 !important; }

.me-fbottom {
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  color: #93a7bb;
  text-align: center;
  line-height: 1.9;
}
.me-fbottom a { color: #fdb467; text-decoration: none; font-weight: 600; }
.me-fbottom a:hover { text-decoration: underline; }

/* ---------- hurricane eBook button (homepage hero) ----------
   Divi emits this module's colours into et-core-unified-*.min.css, which
   SpeedyCache's CSS handling leaves off the page, so the button rendered as
   bare blue link text over the video. Styled here instead, where it always
   loads. */

.et_pb_button.mebah-ebook-btn,
a.et_pb_button.mebah-ebook-btn {
  background-color: #fdb467 !important;
  border: 8px solid #fdb467 !important;
  border-radius: 0 !important;
  color: #1a2030 !important;
  font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  max-width: 460px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.et_pb_button.mebah-ebook-btn:hover {
  background-color: #ffc689 !important;
  color: #1a2030 !important;
  border-color: #ffc689 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

@media (max-width: 680px) {
  .et_pb_button.mebah-ebook-btn { font-size: 14px !important; border-width: 6px !important; }
}

/* ---------- homepage routing cards ---------- */

.me-route {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.me-route:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 43, 69, 0.13);
  border-color: var(--me-gold);
  color: inherit !important;
}
.me-route h3 { color: var(--me-navy); margin-bottom: 8px; }
.me-route p { font-size: 0.94rem; color: var(--me-dim); margin-bottom: 14px; }
.me-route .go { color: var(--me-blue); font-weight: 700; font-size: 0.88rem; }
.me-route:hover .go { color: var(--me-navy); }

.me-urgent {
  background: linear-gradient(160deg, #1c2230 0%, #0d1520 100%);
  border-radius: 18px;
  padding: 42px;
  color: #e8eaf0;
}
.me-urgent h2 { color: #ffffff; }
.me-urgent p { color: rgba(232, 234, 240, 0.88); max-width: 60ch; }

.me-urgent-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
}

/* The storm photograph is already dark, so it carries no overlay or tint at
   all - only a rounded crop and a soft edge so it sits on the dark card. */
.me-urgent-media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  line-height: 0;
}
.me-urgent-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 1;
}

@media (max-width: 900px) {
  .me-urgent-grid { grid-template-columns: 1fr; gap: 26px; }
  .me-urgent-media { order: -1; }
  .me-urgent-media img { max-height: 260px; }
}
@media (max-width: 680px) { .me-urgent { padding: 26px 20px; } }

/* ---------- header navigation fit ----------
   Divi only swaps to the hamburger below 981px, which left 981-1100px showing a
   desktop menu too wide for the header: it wrapped to a second row and ran over
   the logo. Tighten the spacing where it is merely snug, and switch to the
   mobile menu earlier where it genuinely does not fit. */

@media (min-width: 1101px) and (max-width: 1340px) {
  #top-menu > li { padding-right: 13px !important; }
  #top-menu > li > a { font-size: 14px !important; letter-spacing: 0 !important; }
}

@media (max-width: 1100px) {
  #top-menu-nav, #top-menu { display: none !important; }
  #et_mobile_nav_menu, .et_mobile_nav_menu { display: block !important; }
}

/* Divi caps some footer sections; make sure ours never clips its own content. */
.et_pb_section.mebah-footer,
.et_pb_section.mebah-footer .et_pb_row,
.et_pb_section.mebah-footer .et_pb_column {
  max-height: none !important;
  overflow: visible !important;
}

@media (max-width: 980px) {
  .me-fcol h4 { margin-top: 18px; }
}
