/* =========================================================
   dbcontrol.com design tokens
   blue #166EB8 | grey #f3f3f3 | dark #232323 | ink #3a3a3a
   headings Karla | body Roboto 300
   ========================================================= */

/* ---------- typography ---------- */
body, .et_pb_module, p, li, td, input, textarea, select, button {
  font-family: 'Roboto', sans-serif;
}
/* Set the base colour on body only. Putting it on p/li would override the
   per-module colours Divi assigns (which is what blanked the footer text). */
body { color: #000; font-weight: 300; font-size: 18px; line-height: 1.6; }
p, li { font-weight: 300; line-height: 1.6; }
h1, h2, h3, h4, h5, h6,
.et_pb_module_header, .et_pb_toggle_title { font-family: 'Karla', sans-serif; }

/* ---------- hero ---------- */
.dbc-hero .et_pb_image_wrap img { width: 100%; height: auto; display: block; }

/* ---------- product mosaic ---------- */
.dbc-mosaic {
  columns: 5 170px;
  column-gap: 14px;
  max-width: 1000px;
  margin: 30px auto 10px;
}
.dbc-mosaic figure { break-inside: avoid; margin: 0 0 14px; }
.dbc-mosaic img { width: 100%; height: auto; display: block; }

/* ---------- certification badges ---------- */
.dbc-badges {
  display: flex; flex-wrap: wrap; gap: 32px;
  align-items: center; justify-content: center;
  margin: 26px 0 6px;
}
.dbc-badges img { height: 105px; width: auto; }

/* ---------- news cards ---------- */
.dbc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 18px;
}
.dbc-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  display: flex; flex-direction: column;
}
.dbc-card-media { position: relative; }
.dbc-card-media img { width: 100%; height: 215px; object-fit: cover; display: block; }
.dbc-chip {
  position: absolute; top: 14px; right: 14px;
  background: rgba(60,60,60,.85); color: #fff;
  font-size: 12px; letter-spacing: .5px;
  padding: 5px 12px; border-radius: 3px;
}
.dbc-card-body { padding: 20px 22px; flex: 1; }
.dbc-card-body a {
  color: #166EB8; font-size: 16px; line-height: 1.45;
  text-decoration: none; font-weight: 400;
}
.dbc-card-body a:hover { text-decoration: underline; }
.dbc-card-foot {
  border-top: 1px solid #e6e6e6;
  padding: 14px 22px; font-size: 15px; color: #555;
}

/* ---------- virtual-tour CTA ---------- */
.dbc-cta .et_pb_row { display: flex; align-items: center; }
.dbc-btn .et_pb_button { border-radius: 5px !important; padding: 15px 30px !important; }

/* ---------- newsletter + search forms ---------- */
.dbc-subscribe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.dbc-subscribe input {
  flex: 1 1 150px; min-width: 130px;
  padding: 14px 16px; border: 0; background: #fff;
  font-size: 15px; color: #333;
}
.dbc-subscribe button {
  flex: 0 0 auto; padding: 14px 34px; border: 0;
  background: #2196F3; color: #fff; font-size: 16px; cursor: pointer;
}
.dbc-subscribe button:hover { background: #1a86dc; }

.dbc-search { display: flex; margin: 6px 0 10px; }
.dbc-search input {
  flex: 1; padding: 12px 14px; border: 0; background: #fff;
  font-size: 15px; color: #333;
}
.dbc-search button {
  border: 0; background: #3a3a3a; color: #fff;
  padding: 0 18px; cursor: pointer; font-size: 17px;
}

/* ---------- footer bars ---------- */
.dbc-footer-bottom .et_pb_column { display: flex; flex-direction: column; justify-content: center; }
.dbc-footer-bottom p { font-size: 15px; }

/* the page carries its own footer, so Divi's theme footer stays hidden */
#main-footer { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .dbc-cta .et_pb_row { display: block; }
  .dbc-badges img { height: 78px; }
  .dbc-mosaic { columns: 3 140px; }
}

/* ---------- refinements ---------- */
/* the source lays news out 3-up, not auto-fit */
.dbc-cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .dbc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .dbc-cards { grid-template-columns: 1fr; } }

/* keep the subscribe button on the same row as the three fields */
.dbc-subscribe { flex-wrap: nowrap; }
.dbc-subscribe input { flex: 1 1 0; min-width: 0; }
@media (max-width: 980px) { .dbc-subscribe { flex-wrap: wrap; } }

/* RF Globalnet badge is a small seal, not a hero image */
.dbc-footer-bottom .et_pb_image img { max-height: 130px; width: auto; }
.dbc-footer-bottom .et_pb_image { text-align: center; }

/* ---------- hero overlay text ----------
   The source markup carries this h1/h2 but renders them invisible against the
   bright sky. Kept the copy, made it legible: white type over a light scrim. */
.dbc-hero { position: relative; }
.dbc-hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .3); pointer-events: none; z-index: 0;
}
.dbc-hero > .et_pb_row, .dbc-hero > * { position: relative; z-index: 1; }
.dbc-hero h1 {
  color: #fff !important; font-family: "Karla", sans-serif; font-weight: 700;
  font-size: 36px; text-shadow: 0 2px 10px rgba(0,0,0,.6); margin-bottom: 8px;
}
.dbc-hero h2 {
  color: #fff !important; font-family: "Karla", sans-serif; font-weight: 400;
  font-size: 18px; line-height: 1.45; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
@media (max-width: 980px) {
  .dbc-hero h1 { font-size: 26px; }
  .dbc-hero h2 { font-size: 15px; }
}
