/* Bootstrap 5 grid supplement - adds missing column classes the original
   bootstrap-main.min.css was missing (only had a partial set of col-* rules). */

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.row > * {
  box-sizing: border-box;
  padding-right: 15px;
  padding-left: 15px;
}

[class*="col-"] {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

/* Base (xs / no breakpoint) - .col-1 through .col-12 always apply */
.col-1  { flex: 0 0 8.333333%;  max-width: 8.333333%; }
.col-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3  { flex: 0 0 25%;        max-width: 25%; }
.col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6  { flex: 0 0 50%;        max-width: 50%; }
.col-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9  { flex: 0 0 75%;        max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%;       max-width: 100%; }

/* Small (sm) - >= 576px */
@media (min-width: 576px) {
  .col-sm-1  { flex: 0 0 8.333333%;  max-width: 8.333333%; }
  .col-sm-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3  { flex: 0 0 25%;        max-width: 25%; }
  .col-sm-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-sm-6  { flex: 0 0 50%;        max-width: 50%; }
  .col-sm-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-sm-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-sm-9  { flex: 0 0 75%;        max-width: 75%; }
  .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-sm-12 { flex: 0 0 100%;       max-width: 100%; }
}

/* Medium (md) - >= 768px */
@media (min-width: 768px) {
  .col-md-1  { flex: 0 0 8.333333%;  max-width: 8.333333%; }
  .col-md-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3  { flex: 0 0 25%;        max-width: 25%; }
  .col-md-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6  { flex: 0 0 50%;        max-width: 50%; }
  .col-md-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9  { flex: 0 0 75%;        max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-md-12 { flex: 0 0 100%;       max-width: 100%; }
}

/* Large (lg) - >= 992px */
@media (min-width: 992px) {
  .col-lg-1  { flex: 0 0 8.333333%;  max-width: 8.333333%; }
  .col-lg-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3  { flex: 0 0 25%;        max-width: 25%; }
  .col-lg-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6  { flex: 0 0 50%;        max-width: 50%; }
  .col-lg-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9  { flex: 0 0 75%;        max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-lg-12 { flex: 0 0 100%;       max-width: 100%; }
}

/* Extra-large (xl) - >= 1200px */
@media (min-width: 1200px) {
  .col-xl-1  { flex: 0 0 8.333333%;  max-width: 8.333333%; }
  .col-xl-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-xl-3  { flex: 0 0 25%;        max-width: 25%; }
  .col-xl-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xl-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-xl-6  { flex: 0 0 50%;        max-width: 50%; }
  .col-xl-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-xl-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-xl-9  { flex: 0 0 75%;        max-width: 75%; }
  .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-xl-12 { flex: 0 0 100%;       max-width: 100%; }
}

/* === Header dropdown fix === */
/* The original theme's dropdown shows on :hover but has a 20px translateY gap
   between the parent <li> and the submenu <ul>. As the cursor moves toward the
   submenu, it leaves the parent's bounding box and hover dies before the
   submenu becomes hoverable. Fix by:
   1) closing the gap on hover/focus-within with !important
   2) extending the submenu's hit area upward via padding so the cursor never
      enters dead space. */

.main-menu .navigation > li.dropdown > ul {
  /* keep base transform to keep the open animation, but eliminate the dead gap */
  margin-top: 0;
}

.main-menu .navigation > li.dropdown > ul::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.main-menu .navigation > li.dropdown:hover > ul,
.main-menu .navigation > li.dropdown:focus-within > ul,
.main-menu .navigation > li.dropdown:hover > ul li > ul,
.main-menu .navigation > li.dropdown > ul:hover {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Make sure header doesn't clip the dropdown */
header .main-header,
header .header-upper,
header .nav-outer,
header .main-menu {
  overflow: visible !important;
}

/* === Compact WhatsApp contact form === */
/* Inputs were rendering at browser-default (34px, no padding) because the
   original theme's form CSS isn't loaded; provide our own compact styling. */
.wa-contact-form .form-group {
  margin-bottom: 14px;
  position: relative;
}
.wa-contact-form .form-group label,
.wa-contact-form .wa-checkbox-group .wa-check {
  color: #ffffff;
}
.wa-contact-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.wa-contact-form .form-group input[type="text"],
.wa-contact-form .form-group input[type="email"],
.wa-contact-form .form-group input[type="tel"],
.wa-contact-form .form-group input[type="url"],
.wa-contact-form .form-group input[type="number"],
.wa-contact-form .form-group textarea,
.wa-contact-form .form-group select {
  display: block;
  width: 100%;
  height: 42px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 22px;
  color: #686a6f;
  background-color: #f4f5f8;
  border: 1px solid #e6e7eb;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
}
.wa-contact-form .form-group textarea {
  height: auto;
  min-height: 90px;
  padding: 10px 14px;
}
.wa-contact-form .form-group input:focus,
.wa-contact-form .form-group textarea:focus,
.wa-contact-form .form-group select:focus {
  outline: none;
  border-color: #ff5e14;
  background-color: #fff;
}
.wa-contact-form .wa-checkbox-group .wa-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 4px;
  cursor: pointer;
}
.wa-contact-form .wa-checkbox-group .wa-check input {
  width: auto;
  height: auto;
  margin: 0;
}
.wa-contact-form .wa-submit {
  padding: 12px 24px;
  font-size: 14px;
  line-height: 1.2;
  min-height: 44px;
}
.get-quote-two .form-box .default-form .sec-title h2 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 12px;
}
@media (max-width: 767px) {
  .wa-contact-form .form-group { margin-bottom: 12px; }
  .wa-contact-form .form-group input[type="text"],
  .wa-contact-form .form-group input[type="email"],
  .wa-contact-form .form-group input[type="tel"],
  .wa-contact-form .form-group input[type="url"],
  .wa-contact-form .form-group input[type="number"],
  .wa-contact-form .form-group select { height: 40px; }
}

/* ===== DigiMark SEO/CRO/AEO/GEO enhancement bundle ===== */
.dm-section { padding: 56px 0; }
.dm-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.dm-section-head { text-align: center; margin-bottom: 32px; }
.dm-section-head h2 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; color: #0f172b; }
.dm-section-head .dm-sub { font-size: 15px; color: #4a5160; max-width: 720px; margin: 0 auto; }
.dm-section-head .dm-sub a { color: #ff5e14; text-decoration: underline; }

/* AEO answer block — direct answer near top of page */
.dm-answer-section { background: #fff; padding: 56px 0 32px; border-bottom: 1px solid #eaecef; }
.dm-answer-section h2 { font-size: 26px; line-height: 1.3; margin: 0 0 14px; color: #0f172b; }
.dm-answer-section p { font-size: 17px; line-height: 1.7; color: #1c1e22; margin: 0; max-width: 900px; }
@media (max-width: 767px) {
  .dm-answer-section { padding: 36px 0 24px; }
  .dm-answer-section h2 { font-size: 22px; }
  .dm-answer-section p { font-size: 16px; }
}

/* Trust strip */
.dm-trust-section { background: linear-gradient(135deg, #0f172b 0%, #1e2a4a 100%); color: #fff; padding: 48px 0; }
.dm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dm-stat { text-align: center; }
.dm-stat-num { font-size: 38px; font-weight: 700; line-height: 1.1; color: #ff5e14; }
.dm-stat-lbl { font-size: 14px; color: #cfd2d8; margin-top: 4px; }
.dm-trust-line { text-align: center; margin-top: 24px; font-size: 16px; color: #fff; opacity: 0.9; }
@media (max-width: 767px) {
  .dm-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .dm-stat-num { font-size: 30px; }
}

/* FAQ accordion */
.dm-faq-section { background: #f4f5f8; }
.dm-faq-list { max-width: 860px; margin: 0 auto; }
.dm-faq-item { background: #fff; border: 1px solid #e6e7eb; border-radius: 8px; margin-bottom: 12px; padding: 0; overflow: hidden; }
.dm-faq-q { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; color: #0f172b; list-style: none; position: relative; }
.dm-faq-q::-webkit-details-marker { display: none; }
.dm-faq-q::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #ff5e14; font-weight: 400; transition: transform .2s ease; }
.dm-faq-item[open] .dm-faq-q::after { content: "−"; }
.dm-faq-a { padding: 0 22px 18px; font-size: 15px; line-height: 1.65; color: #4a5160; }

/* Related services */
.dm-related-section { background: #fff; border-top: 1px solid #eaecef; }
.dm-related-section h2 { font-size: 22px; margin: 0 0 20px; color: #0f172b; text-align: center; }
.dm-related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.dm-related-list li a { display: block; padding: 14px 18px; background: #f4f5f8; border: 1px solid #e6e7eb; border-radius: 6px; color: #0f172b; text-decoration: none; transition: all .2s; font-size: 14px; }
.dm-related-list li a:hover { background: #ff5e14; color: #fff; border-color: #ff5e14; }

/* Sticky mobile CTA */
#dm-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: none;
  z-index: 9998;
  background: #fff;
  border-top: 1px solid #e6e7eb;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
#dm-sticky-cta .dm-cta {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 6px;
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.15);
}
#dm-sticky-cta .dm-cta:last-child { border-right: 0; }
#dm-sticky-cta .dm-cta-call { background: #0f172b; }
#dm-sticky-cta .dm-cta-wa { background: #25d366; }
#dm-sticky-cta .dm-cta-audit { background: #ff5e14; }
#dm-sticky-cta .dm-ico { font-size: 16px; }
@media (max-width: 767px) {
  #dm-sticky-cta { display: flex; }
  body { padding-bottom: 56px; }
}
