/* EverBen unified shell: same brand head/background as index + mobile responsive + CTA modal */
:root {
  --eb-navy: #0b3655;
  --eb-orange: #ec7834;
  --eb-bg: #ffffff;
  --eb-muted: #666666;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.everben-unified {
  margin: 0;
  padding: 0;
  background: var(--eb-bg) !important;
  color: #333;
  font-family: Arial, Helvetica, "Roboto", sans-serif;
  line-height: 1.5;
  padding-bottom: 78px;
}
img { max-width: 100%; height: auto; }
a { color: var(--eb-navy); }

/* ===== Header (index-like) ===== */
.eb-topbar {
  background: var(--eb-navy);
  color: #fff;
  font-size: 13px;
}
.eb-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  align-items: center;
}
.eb-topbar a { color: #fff; text-decoration: none; }
.eb-header {
  background: #fff;
  border-bottom: 3px solid var(--eb-orange);
  position: sticky;
  top: 0;
  z-index: 9000;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.eb-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.eb-logo img { display: block; width: 180px; height: auto; }
.eb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: flex-end;
}
.eb-nav a {
  text-decoration: none;
  color: var(--eb-navy);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 4px;
}
.eb-nav a:hover { color: var(--eb-orange); }
.eb-nav .eb-btn-quote {
  background: var(--eb-orange);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 4px;
}
.eb-menu-toggle {
  display: none;
  border: 1px solid #ccd6e0;
  background: #fff;
  color: var(--eb-navy);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* ===== Main content wrapper ===== */
.eb-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  background: var(--eb-bg);
}
.eb-main table {
  max-width: 100% !important;
}
.eb-main td, .eb-main th {
  max-width: 100%;
}
.eb-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== Footer ===== */
.eb-footer {
  background: var(--eb-navy);
  color: #fff;
  margin-top: 24px;
}
.eb-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.eb-footer h4 { margin: 0 0 10px; color: #fff; font-size: 16px; }
.eb-footer a { color: #d7e6f3; text-decoration: none; display: block; margin: 4px 0; font-size: 14px; }
.eb-footer p { margin: 4px 0; font-size: 14px; color: #d7e6f3; }
.eb-copy {
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  padding: 12px 16px;
  font-size: 12px;
  color: #b9c9d6;
}

/* ===== CTA bar ===== */
#everben-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100000;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  background: var(--eb-navy);
  box-shadow: 0 -4px 18px rgba(0,0,0,.25);
}
#everben-cta-bar .everben-cta-text {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
#everben-cta-bar button,
#everben-cta-bar a {
  display: inline-block;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
}
#everben-cta-bar .cta-primary { background: var(--eb-orange); color: #fff !important; }
#everben-cta-bar .cta-secondary { background: #fff; color: var(--eb-navy) !important; }
#everben-cta-bar .cta-whatsapp { background: #25D366; color: #fff !important; }

#everben-cta-inline {
  max-width: 980px;
  margin: 20px auto;
  padding: 18px 16px;
  text-align: center;
  background: #f5f8fb;
  border: 1px solid #d7e2ec;
  border-radius: 6px;
}
#everben-cta-inline h3 { margin: 0 0 8px; color: var(--eb-navy); font-size: 20px; }
#everben-cta-inline p { margin: 0 0 14px; color: #444; font-size: 14px; }
#everben-cta-inline button,
#everben-cta-inline a {
  display: inline-block;
  margin: 4px;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  font-family: inherit;
}
#everben-cta-inline .cta-primary { background: var(--eb-orange); color: #fff !important; }
#everben-cta-inline .cta-secondary { background: var(--eb-navy); color: #fff !important; }
#everben-cta-inline .cta-whatsapp { background: #25D366; color: #fff !important; }

/* ===== Modal dialog ===== */
#everben-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(11, 54, 85, 0.55);
}
#everben-modal.open { display: flex; }
.eb-modal-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  overflow: hidden;
}
.eb-modal-head {
  background: var(--eb-navy);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eb-modal-head h3 { margin: 0; font-size: 18px; }
.eb-modal-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.eb-modal-body { padding: 16px; }
.eb-modal-body label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--eb-navy);
  margin: 10px 0 4px;
}
.eb-modal-body input,
.eb-modal-body textarea,
.eb-modal-body select {
  width: 100%;
  padding: 10px;
  border: 1px solid #c9d5e0;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}
.eb-modal-body textarea { min-height: 90px; resize: vertical; }
.eb-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.eb-modal-actions button {
  flex: 1;
  min-width: 120px;
  padding: 11px 14px;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.eb-modal-actions .submit { background: var(--eb-orange); color: #fff; }
.eb-modal-actions .cancel { background: #e8eef4; color: var(--eb-navy); }
.eb-modal-note { font-size: 12px; color: #777; margin-top: 8px; }
.eb-modal-success {
  display: none;
  padding: 18px;
  text-align: center;
  color: var(--eb-navy);
}

/* ===== Old left category menu + brand color sync ===== */
.eb-main td[bgcolor="#006666"],
.eb-main td[bgcolor="#003366"],
.eb-main td[bgcolor="#004d40"],
.eb-main .eb-side-menu {
  background: var(--eb-navy) !important;
  color: #fff !important;
  border-color: var(--eb-orange) !important;
}
.eb-main td[bgcolor="#18756E"],
.eb-main td[bgcolor="#18756e"],
.eb-main [bgcolor="#F1C727"],
.eb-main table[bgcolor="#18756E"],
.eb-main table[bgcolor="#18756e"] {
  background: var(--eb-navy) !important;
  border-color: var(--eb-orange) !important;
}
.eb-main .STYLE84,
.eb-main .STYLE84 a,
.eb-main .eb-side-menu a,
.eb-main .eb-side-menu h2,
.eb-main .eb-side-menu h3,
.eb-main .eb-side-menu li {
  color: #ffffff !important;
  text-decoration: none !important;
}
.eb-main .eb-side-menu a:hover {
  color: var(--eb-orange) !important;
}
.eb-side-toggle {
  display: none;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  background: var(--eb-orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.eb-side-panel { display: block; }

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .eb-menu-toggle { display: inline-block; }
  .eb-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 4px;
  }
  .eb-nav.open { display: flex; }
  .eb-header-inner { flex-wrap: wrap; }
  .eb-footer-inner { grid-template-columns: 1fr; }
  .eb-logo img { width: 150px; }
  #everben-cta-bar .everben-cta-text { display: none; }
  #everben-cta-bar button,
  #everben-cta-bar a { padding: 9px 10px; font-size: 13px; }

  /* Keep page readable: stack tables, but control side menu */
  .eb-main table,
  .eb-main thead,
  .eb-main tbody,
  .eb-main tr {
    width: 100% !important;
  }
  .eb-main td,
  .eb-main th {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .eb-side-toggle { display: block; }
  .eb-side-panel {
    display: none;
    max-height: 260px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 4px;
    background: rgba(0,0,0,.12);
  }
  .eb-side-panel.open { display: block; }
  .eb-side-menu {
    margin-bottom: 12px !important;
    padding: 10px !important;
    height: auto !important;
  }
  .eb-side-menu ul { margin: 6px 0; padding-left: 18px; }
  .eb-side-menu h2,
  .eb-side-menu h3 { font-size: 14px !important; margin: 6px 0 !important; }
}
@media (max-width: 600px) {
  .eb-topbar-inner { justify-content: center; text-align: center; }
}

