/*
Theme Name: Bugro Child
Description: Child Theme for bugro Theme
Author: zozothemes
Version: 1.0
Template: bugro
Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Text Domain: zozothemes
*/

/*Custom Style Code Right Here */

/* =====================================================================
   Footer — mobile layout fix (global)
   The theme's footer container has 0 horizontal padding (content touches
   the screen edges on phones) and very tall vertical padding. Tighten it
   and add side gutters at <=767px (where the col-md-* columns stack).
   ===================================================================== */
@media (max-width: 767px) {
  /* Side gutters so content isn't flush to the screen edges */
  .site-footer .footer-widgets-wrap .container,
  .site-footer .footer-bottom-wrap .container,
  .site-footer .insta-footer-wrap .container {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  /* Trim the oversized vertical padding */
  .site-footer .footer-widgets-wrap {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
  }

  /* Space the stacked columns evenly, drop the trailing gap */
  .site-footer .footer-widgets-wrap .row > [class*="col-"] {
    margin-bottom: 34px;
  }
  .site-footer .footer-widgets-wrap .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }

  /* Inner Gutenberg columns block (Services / Company / Join) — keep it
     readable when stacked without huge gaps */
  .site-footer .footer-widgets-wrap .wp-block-columns {
    gap: 26px 0;
    margin-bottom: 0;
  }
  .site-footer .footer-widgets-wrap .wp-block-column {
    flex-basis: 100% !important;
  }

  /* Footer bottom (copyright + policy links): center and stack neatly */
  .site-footer .footer-bottom-wrap {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    text-align: center;
  }
  .site-footer .footer-bottom-wrap .row > [class*="col-"] {
    text-align: center;
  }
  .site-footer .footer-bottom-wrap .footer-bottom-menu,
  .site-footer .footer-bottom-wrap ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}


/* =====================================================================
   Page Title Header Background Banners (Photoshoot 2023)
   ===================================================================== */
/* Base Page Title Header Styling */
.bugro-page-header {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
}

/* Universal Dark Contrast Overlay: Ensures white titles & breadcrumbs remain crisp */
.bugro-page-header:after,
.single.single-cea-service .bugro-page-header:after,
.page .bugro-page-header:after,
.error404 .bugro-page-header:after {
  background-color: rgba(34, 34, 34, 0.55);
}

/* =====================================================================
   Mobile Typography
   ===================================================================== */
@media (max-width: 767px) {
  h1.page-title {
    font-size: 2rem !important;
    line-height: 1.25 !important;
  }
}

/* =====================================================================
   Service Pages — Screens larger than 1400px: Padding Bottom Only
   ===================================================================== */
@media only screen and (min-width: 1401px) {
  body.single-cea-service .bugro-content-wrap,
  .single-cea-service .bugro-content-wrap.container,
  .single-cea-service-archive-content .bugro-content-wrap.container {
    padding-top: 0 !important;
    padding-bottom: 80px !important;
  }
}

/* =====================================================================
   Entotox Industries Widget — Mobile Flex Height Fix
   ===================================================================== */
.e-con:has(.etx-industries),
.e-con:has(.etx-industries) > .e-con-inner,
.elementor-element-b6c2eb1,
.elementor-element-b6c2eb1 > .e-con-inner,
.elementor-widget-etx_industries {
  flex-wrap: nowrap !important;
  --flex-wrap: nowrap !important;
  --flex-wrap-mobile: nowrap !important;
  height: auto !important;
}
.elementor-widget-etx_industries {
  min-height: fit-content;
}

/* =====================================================================
   Services Archive / Grid — Mobile Touchscreen Visibility Fix
   ===================================================================== */
@media (max-width: 767px) {
  .service-wrapper.service-style-classic-pro .service-inner {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
  }
  .service-wrapper.service-style-classic-pro .service-inner .post-details-outer {
    transform: translateY(0) !important;
    opacity: 1 !important;
    position: absolute !important;
    bottom: 15px !important;
    left: 15px !important;
    right: 15px !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
  }
  .service-wrapper.service-style-classic-pro .service-inner .post-title-head {
    margin-bottom: 4px !important;
  }
  .service-wrapper.service-style-classic-pro .service-inner .post-title-head .post-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    color: #032827 !important;
  }
  .service-wrapper.service-style-classic-pro .service-inner .post-excerpt {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: #555555 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}





/* Back-to-top hidden site-wide, which also removes its pulsing green glow
   behind Zeena. Client request, 2026-11-03. */
.back-to-top {
  display: none !important;
}

/* Service grids: the theme's col-md-3 squeezes four cards into tablet width,
   breaking titles one word per line. Two per row on tablets. 2026-10-28. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .service-wrapper .row > .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Mobile header, 2026-11-06.
   1) The theme pads .bugro-content-wrap 50px on top below 1025px, leaving a
      white band between the mobile bar and full-width Elementor heroes
      (desktop has no such padding).
   2) "Get a Quotation" CTA replaces the search icon in the mobile bar
      (injected in inc/i18n-render.php); compact version of the nav CTA. */
@media (max-width: 1024px) {
  body.elementor-page .bugro-content-wrap {
    padding-top: 0 !important;
  }
}
.header-mobilebar .etx-mobilebar-cta {
  display: inline-flex;
  align-items: center;
  background-color: #3aae2a;
  border: 0;
  border-radius: 999px;
  height: 30px;
  min-height: 0 !important;
  padding: 0 12px !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
/* Simpler mobile version: text only, no bug icon. 2026-11-06. */
.header-mobilebar .etx-mobilebar-cta i {
  display: none;
}
.header-mobilebar .etx-mobilebar-cta:hover,
.header-mobilebar .etx-mobilebar-cta:focus {
  background-color: #2f9122;
}
/* Beats the Customizer's `.header-mobilebar.navbar * { color: … !important }`. */
.header-mobilebar.navbar .etx-mobilebar-cta,
.header-mobilebar.navbar .etx-mobilebar-cta * {
  color: #fff !important;
}
/* Keep toggle, logo and CTA on one row (RTL wrapped the CTA below the bar). */
.header-mobilebar > .container {
  flex-wrap: nowrap;
  gap: 8px;
}
.header-mobilebar .mobilebar.pull-center {
  min-width: 0;
  flex: 1 1 auto;
}
.header-mobilebar .mobilebar.pull-center img.mobile-logo {
  width: auto;
  max-width: 100%;
  max-height: 32px;
  height: auto;
}
.header-mobilebar .mobilebar.pull-right,
.header-mobilebar .mobilebar.element-left {
  flex: 0 0 auto;
}
/* RTL keeps the theme's 24px right padding on the toggle, which in RTL sits
   against the screen edge and squeezes the logo. */
.rtl .header-mobilebar .mobilebar.element-left {
  padding: 0 !important;
}

/* No "Get a Quotation" inside the mobile menu drawer, in every market — the
   mobile header already shows the button (client, 2026-11-11). */
.mobile-menu-floating .custom-text-1 {
  display: none !important;
}

/* KSA homepage, "Why families and businesses choose Entotox": five cards
   (05 Digital Access was added for KSA, client 2026-11-17). The section is
   built as two pairs of cards; flatten the pairs into one 5-column grid and
   keep the up/down stagger. Narrower columns need smaller titles. */
.etx-market-sa .elementor-element-244406d {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px !important;
  align-items: start;
}
.etx-market-sa .elementor-element-244406d > .elementor-element-e17aa01,
.etx-market-sa .elementor-element-244406d > .elementor-element-fc5a069 {
  display: contents !important;
}
.etx-market-sa .elementor-element-244406d .elementor-widget-ceafeaturebox > .elementor-widget-container {
  padding: 28px 22px 22px !important;
}
.etx-market-sa .elementor-element-244406d .feature-box-title {
  font-size: 22px !important;
  line-height: 1.25 !important;
}
/* The big faded 01–05 is pushed right by a fixed 150px padding sized for
   the wider 4-card layout; at this width it falls off the card. */
.etx-market-sa .elementor-element-244406d .fbox-number {
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: end !important;
  font-size: 56px !important;
  line-height: 60px !important;
}
@media (max-width: 1024px) {
  .etx-market-sa .elementor-element-244406d { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .etx-market-sa .elementor-element-244406d { grid-template-columns: minmax(0, 1fr); gap: 20px !important; }
  .etx-market-sa .elementor-element-244406d .elementor-element-89326e1,
  .etx-market-sa .elementor-element-244406d .elementor-element-69ccf3d { padding-top: 0 !important; }
}

/* Qatar homepage industries (bento): Facilities & Property Management added as
   an 8th sector (client, 2026-11-18). With the 2-wide "Don't see your sector?"
   tile that left gaps; at one cell it completes the grid (4 + 7 + 1 = 12). */
@media (min-width: 640px) {
  .etx-market-qa .elementor-element-5782582 .etx-industries .etx-cta {
    grid-column: span 1;
  }
}

/* Qatar · Facilities & Property Management page (2026-11-18): the photo as a
   wide banner and the six service areas as a card grid, instead of a long list
   beside a small square photo. Classes are set on the page's Elementor widgets. */
.etx-fpm-banner .elementor-widget-image {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
}
.etx-fpm-banner img {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 420px);
  object-fit: cover;
  object-position: center 58%;
  border-radius: 20px;
}
.etx-fpm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.etx-fpm-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 30px;
  border-radius: 18px;
  background: var(--e-global-color-accent, #f4f7ed);
  transition: transform .25s ease, box-shadow .25s ease;
}
.etx-fpm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(3, 40, 39, .08);
}
.etx-fpm-num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--e-global-color-primary, #3aae2a);
  color: #fff;
  font-family: var(--etx-font, "Montserrat", sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}
.etx-fpm-card h3 {
  margin: 0 0 10px;
  font-family: var(--etx-font, "Montserrat", sans-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #032827;
}
.etx-fpm-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--e-global-color-text, #605f5e);
}
.rtl .etx-fpm-card h3,
.rtl .etx-fpm-num { font-family: var(--etx-font, "Tajawal", sans-serif); }
@media (max-width: 1024px) {
  .etx-fpm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .etx-fpm-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .etx-fpm-card { padding: 22px 20px 24px; }
  .etx-fpm-banner img { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .etx-fpm-card { transition: none; }
  .etx-fpm-card:hover { transform: none; }
}
