/* Auto-extracted page-specific styles for clients */

/* Clients hero background (page-local copy after CSS split). */
.hero-bg {
  background-color: #171717;
  background: url("../../img/dark-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Keep all logo items visible; grid JS decides wrapping/placement. */

.clients-background {
  background-image: url("../../img/Restaurant-clients.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #111;
  min-height: 120px;
}

.manufacturing-background {
  background-image: url("../../img/construction-client.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.factoring-background {
  background-image: url("../../img/factoring-client.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.retail-background {
  background-image: url("../../img/retail-client.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Match reference card look on clients page */
.s_tarmez_client_category .tarmez-card {
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.s_tarmez_client_category [class*="clients-background"],
.s_tarmez_client_category [class*="manufacturing-background"],
.s_tarmez_client_category [class*="factoring-background"],
.s_tarmez_client_category [class*="retail-background"] {
  min-height: 92px;
  padding-top: 2.25rem !important;
  padding-bottom: 1.25rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.s_tarmez_client_category .s_client_logos_grid {
  background: #fff;
}

.s_tarmez_client_category .s_client_logo_item {
  min-height: 108px;
  background: #fff;
}

.s_tarmez_client_category .s_client_logo_see_more {
  cursor: pointer;
  background: #fff !important;
  pointer-events: auto !important;
  border: 0 !important;
  box-shadow: none !important;
}

.s_tarmez_client_category .s_client_see_more_btn {
  pointer-events: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 108px;
  padding: 1rem;
  background: transparent;
}

.s_tarmez_client_category .s_client_see_more_pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #0d9488;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.s_tarmez_client_category .s_client_see_more_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent;
  color: #14b8a6;
  font-size: 1.125rem;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.s_tarmez_client_category .s_client_see_more_label {
  white-space: nowrap;
  color: #0f766e;
  transition: color 0.2s ease;
}

.s_tarmez_client_category .s_client_logo_see_more:hover .s_client_see_more_pill,
.s_tarmez_client_category .s_client_logo_see_more:hover .s_client_see_more_label {
  color: #0f766e;
}

.s_tarmez_client_category .s_client_logo_see_more:hover .s_client_see_more_icon {
  color: #0d9488;
}

html:not([dir="rtl"]) .s_tarmez_client_category .s_client_logo_see_more:not(.s_client_logo_see_less):hover .s_client_see_more_icon {
  transform: translateX(3px);
}

html:not([dir="rtl"]) .s_tarmez_client_category .s_client_logo_see_more.s_client_logo_see_less:hover .s_client_see_more_icon {
  transform: translateX(-3px);
}

[dir="rtl"] .s_tarmez_client_category .s_client_logo_see_more:not(.s_client_logo_see_less):hover .s_client_see_more_icon,
html[lang^="ar"] .s_tarmez_client_category .s_client_logo_see_more:not(.s_client_logo_see_less):hover .s_client_see_more_icon,
body.rtl .s_tarmez_client_category .s_client_logo_see_more:not(.s_client_logo_see_less):hover .s_client_see_more_icon {
  transform: translateX(-3px);
}

[dir="rtl"] .s_tarmez_client_category .s_client_logo_see_more.s_client_logo_see_less:hover .s_client_see_more_icon,
html[lang^="ar"] .s_tarmez_client_category .s_client_logo_see_more.s_client_logo_see_less:hover .s_client_see_more_icon,
body.rtl .s_tarmez_client_category .s_client_logo_see_more.s_client_logo_see_less:hover .s_client_see_more_icon {
  transform: translateX(3px);
}

.s_tarmez_client_category .s_client_logo_see_more:focus-visible .s_client_see_more_pill {
  outline: 2px solid #14b8a6;
  outline-offset: 4px;
  border-radius: 4px;
}

.s_tarmez_client_category .s_client_logo_collapsed {
  display: none !important;
}

body.editor_enable .s_client_logos_grid .s_client_see_more_btn,
body.editor_enable .s_client_logos_grid .s_client_logo_see_more {
  pointer-events: auto !important;
}

@media (max-width: 767.98px) {
  /* Mobile: always 2 logos per row */
  .s_tarmez_client_category .s_client_logos_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Reset JS border utility on mobile */
  .s_tarmez_client_category .s_client_logo_item {
    border-right: 0 !important;
    border-inline-end: 0 !important;
  }

  /* Show separator only inside each mobile row (item 1,3,5...) */
  .s_tarmez_client_category .s_client_logo_item:nth-child(odd) {
    border-right: 1px solid #e5e7eb !important;
    border-inline-end: 1px solid #e5e7eb !important;
  }
}

/* Separate rows visually on larger screens too. */
@media (min-width: 768px) {
  .s_tarmez_client_category .s_client_logos_grid {
    row-gap: 20px;
  }
}

.s_tarmez_client_category .s_client_logo_item img {
  max-height: 96px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Odoo grid forces img width/height 100% + cover; we use o_grid_item_image_contain + override so logos stay whole */
.s_tarmez_client_category .s_client_logos_grid.o_grid_mode > .o_grid_item_image_contain.s_client_logo_item img {
  object-fit: contain !important;
  max-height: 112px !important;
  width: auto !important;
  height: auto !important;
}

.s_tarmez_client_category .s_client_logo_link:hover img {
  opacity: 0.92;
}

.s_tarmez_client_category .s_client_logo_link {
  background-color: #fff;
}

.s_tarmez_client_category .clients-background h2 {
  color: #fff !important;
  font-size: 3rem !important;
  line-height: 4rem !important;
  font-weight: 700 !important;
}

/* Keep title alignment natural by language. */
.s_tarmez_client_category .clients-background h2,
.s_tarmez_client_category .manufacturing-background h2,
.s_tarmez_client_category .factoring-background h2,
.s_tarmez_client_category .retail-background h2 {
  text-align: left !important;
  direction: ltr;
  width: 100%;
}

/* RTL: flip category header background, keep title readable. */
[dir="rtl"] .s_tarmez_client_category .s_client_category_header,
html[lang^="ar"] .s_tarmez_client_category .s_client_category_header,
body.rtl .s_tarmez_client_category .s_client_category_header {
  transform: scaleX(-1);
  transform-origin: center;
}

[dir="rtl"] .s_tarmez_client_category .s_client_category_header h2,
html[lang^="ar"] .s_tarmez_client_category .s_client_category_header h2,
body.rtl .s_tarmez_client_category .s_client_category_header h2 {
  transform: scaleX(-1);
}

/* Fallback target for current rendered markup (background class directly on div). */
[dir="rtl"] .s_tarmez_client_category .clients-background,
[dir="rtl"] .s_tarmez_client_category .manufacturing-background,
[dir="rtl"] .s_tarmez_client_category .factoring-background,
[dir="rtl"] .s_tarmez_client_category .retail-background,
html[lang^="ar"] .s_tarmez_client_category .clients-background,
html[lang^="ar"] .s_tarmez_client_category .manufacturing-background,
html[lang^="ar"] .s_tarmez_client_category .factoring-background,
html[lang^="ar"] .s_tarmez_client_category .retail-background,
body.rtl .s_tarmez_client_category .clients-background,
body.rtl .s_tarmez_client_category .manufacturing-background,
body.rtl .s_tarmez_client_category .factoring-background,
body.rtl .s_tarmez_client_category .retail-background {
  transform: scaleX(-1);
  transform-origin: center;
}

[dir="rtl"] .s_tarmez_client_category .clients-background h2,
[dir="rtl"] .s_tarmez_client_category .manufacturing-background h2,
[dir="rtl"] .s_tarmez_client_category .factoring-background h2,
[dir="rtl"] .s_tarmez_client_category .retail-background h2,
html[lang^="ar"] .s_tarmez_client_category .clients-background h2,
html[lang^="ar"] .s_tarmez_client_category .manufacturing-background h2,
html[lang^="ar"] .s_tarmez_client_category .factoring-background h2,
html[lang^="ar"] .s_tarmez_client_category .retail-background h2,
body.rtl .s_tarmez_client_category .clients-background h2,
body.rtl .s_tarmez_client_category .manufacturing-background h2,
body.rtl .s_tarmez_client_category .factoring-background h2,
body.rtl .s_tarmez_client_category .retail-background h2 {
  transform: scaleX(-1);
  text-align: right !important;
  direction: rtl;
}

/* Do not clip Odoo block handles / snippet overlay on the card */
body.editor_enable .s_tarmez_client_category .tarmez-card {
  overflow: visible;
}

/* Our Clients page hero — match Services page title scale */
#wrapwrap .hero-bg h1 {
  font-size: 2.5rem !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
}

@media (min-width: 768px) {
  #wrapwrap .hero-bg h1 {
    font-size: 3rem !important;
  }
}

/* Pull first content block flush under hero (no white strip) */
.o_tarmez_page_our_clients .s_tarmez_clients_page {
  margin-top: 0 !important;
}

.o_tarmez_page_our_clients .s_tarmez_clients_inner > .s_tarmez_client_category:first-child {
  margin-top: 0 !important;
}

/* Inner pages: compact logo slot so nav has more horizontal room */
.tarmez-header-inner .tarmez-header-logo-alt {
  display: block;
  max-height: 2.25rem;
  width: auto;
  max-width: 100%;
}

/* In-block editor controls (client category): hidden on live site */
.s_tarmez_client_editor_actions {
  display: none;
}

body.editor_enable .s_tarmez_client_editor_actions {
  display: block;
}

body.editor_enable .s_tarmez_client_editor_actions .o_not_editable {
  pointer-events: auto;
}

.tarmez-client-editor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tarmez-client-editor-btn-primary {
  color: #fff;
  background-color: #0d9488;
  border-color: #0f766e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tarmez-client-editor-btn-primary:hover {
  background-color: #0f766e;
  border-color: #115e59;
}

.tarmez-client-editor-btn-muted {
  color: #374151;
  background-color: #fff;
  border-color: #d1d5db;
}

.tarmez-client-editor-btn-muted:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.s_tarmez_snippet_hidden {
  display: none !important;
}

/* Editor-only buttons: hidden on public frontend, visible in editor mode */
.s_tarmez_client_editor_actions {
  display: none !important;
}
body.editor_enable .s_tarmez_client_editor_actions {
  display: block !important;
  pointer-events: auto !important;
}
body.editor_enable .s_tarmez_client_editor_actions button {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 1000;
}

