/* ==========================================================================
   Hello Elementor Child - custom CSS
   Prefer your Elementor global variables so the site stays consistent:
   color: var(--e-global-color-primary);
   font-family: var(--e-global-typography-primary-font-family), sans-serif;
   Use specificity (a parent class) instead of !important wherever possible.
   ========================================================================== */

/* Accessible keyboard focus */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--e-global-color-primary, #0F6BF2);
	outline-offset: 2px;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---- Your custom CSS below ---- */

/* -------------------------------------------- tables on services detail pages styles ------------------------------------------------------- */
.cm-compare{
  /* Elementor global colors (hex fallbacks are used only if a variable is missing) */
  --cm-primary:var(--e-global-color-primary,#0F6BF2);
  --cm-secondary:var(--e-global-color-secondary,#272727);
  --cm-text:var(--e-global-color-text,#707070);
  --cm-blue-bg:#EEF5FF;
  --cm-border:#E4ECFA;
  --cm-white:#FFFFFF;
  /* Elementor global fonts (Montserrat headings, Roboto body) */
  --cm-font-head:var(--e-global-typography-primary-font-family,"Montserrat"),Montserrat,Arial,sans-serif;
  --cm-font-body:var(--e-global-typography-text-font-family,"Roboto"),Roboto,Arial,sans-serif;
  width:100%;
  background:var(--cm-white);
  border:1px solid var(--cm-border);
  border-radius:16px;
  overflow:hidden;
}
.cm-compare *,.cm-compare *::before,.cm-compare *::after{box-sizing:border-box}

/* NOTE: ".cm-compare.cm-compare" doubles the class on purpose. It raises specificity
   so the theme's default table styles (striped rows, hover, cell borders) cannot override this design. */

/* Reset: remove every theme border, stripe, hover and shadow on the table */
.cm-compare.cm-compare .cm-table{
  width:100%;margin:0;border:0;border-collapse:collapse;border-spacing:0;
  table-layout:fixed;background:transparent;font-size:16px;
}
.cm-compare.cm-compare .cm-table thead,
.cm-compare.cm-compare .cm-table tbody,
.cm-compare.cm-compare .cm-table tr{border:0;background:transparent;box-shadow:none}
.cm-compare.cm-compare .cm-table th,
.cm-compare.cm-compare .cm-table td{
  border:0;border-radius:0;box-shadow:none;background:transparent;
  text-align:left;vertical-align:top;
}
/* Keep rows plain white: no striping and no hover effect */
.cm-compare.cm-compare .cm-table tbody tr:nth-child(n) > th,
.cm-compare.cm-compare .cm-table tbody tr:nth-child(n) > td,
.cm-compare.cm-compare .cm-table tbody tr:hover > th,
.cm-compare.cm-compare .cm-table tbody tr:hover > td{background:transparent;box-shadow:none}

/* Visually hidden caption (read by screen readers and search engines) */
.cm-compare .cm-table caption{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* Header cells */
.cm-compare.cm-compare .cm-table thead th{
  background:var(--cm-blue-bg);padding:16px 20px;vertical-align:middle;
  font-family:var(--cm-font-head);font-weight:600;font-size:15px;line-height:1.4;
  color:var(--cm-secondary);
}
/* Body cells */
.cm-compare.cm-compare .cm-table tbody th{
  padding:18px 20px;font-family:var(--cm-font-head);font-weight:700;font-size:16px;line-height:1.5;
  color:var(--cm-secondary);
}
.cm-compare.cm-compare .cm-table tbody td{
  padding:18px 20px;font-family:var(--cm-font-body);font-weight:400;font-size:16px;line-height:1.6;
  color:var(--cm-text);
}

/* Desktop only: column widths and thin lines between rows */
@media (min-width:768px){
  .cm-compare.cm-compare .cm-table thead th:nth-child(1){width:22%}
  .cm-compare.cm-compare .cm-table thead th:nth-child(2){width:39%}
  .cm-compare.cm-compare .cm-table thead th:nth-child(3){width:39%}
  .cm-compare.cm-compare .cm-table thead th{border-bottom:1px solid var(--cm-border)}
  .cm-compare.cm-compare .cm-table tbody tr:not(:first-child) > th,
  .cm-compare.cm-compare .cm-table tbody tr:not(:first-child) > td{border-top:1px solid var(--cm-border)}
}

/* Mobile: every row becomes a stacked card with small labels */
@media (max-width:767px){
  .cm-compare{border:0;background:transparent;border-radius:0;overflow:visible}
  .cm-compare.cm-compare .cm-table,
  .cm-compare.cm-compare .cm-table tbody,
  .cm-compare.cm-compare .cm-table tr,
  .cm-compare.cm-compare .cm-table th,
  .cm-compare.cm-compare .cm-table td{display:block;width:100%}
  /* Header row is hidden visually but stays available to screen readers */
  .cm-compare.cm-compare .cm-table thead{
    position:absolute;display:block;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);
  }
  .cm-compare.cm-compare .cm-table tbody tr{
    background:var(--cm-white);border:1px solid var(--cm-border);border-radius:16px;
    padding:20px 20px 6px;margin:0 0 16px;
  }
  .cm-compare.cm-compare .cm-table tbody tr:last-child{margin-bottom:0}
  .cm-compare.cm-compare .cm-table tbody th{
    padding:0 0 14px;margin:0 0 14px;font-size:18px;border-bottom:1px solid var(--cm-border);
  }
  .cm-compare.cm-compare .cm-table tbody td{padding:0;margin:0 0 14px}
  .cm-compare.cm-compare .cm-table tbody td::before{
    content:attr(data-label);display:block;margin-bottom:2px;
    font-family:var(--cm-font-head);font-weight:600;font-size:12px;letter-spacing:.06em;
    text-transform:uppercase;color:var(--cm-primary);
  }
}


/* ------------------------------------ services cards styles ------------------------------------------ */
.cm-services{
  /* Elementor GLOBAL SYSTEM colors (the fallback hex is used only if the variable is missing) */
  --cm-primary:var(--e-global-color-primary,#0F6BF2);
  --cm-secondary:var(--e-global-color-secondary,#272727);
  --cm-text:var(--e-global-color-text,#707070);
  /* Your custom global colors */
  --cm-hover:#0B55C4;
  --cm-white:#FFFFFF;
  /* Supporting tints used only for decoration */
  --cm-blue-light:#3C84FB;
  --cm-border:#DEE9FB;
  --cm-watermark:#E6EFFD;
  /* Fonts follow your Elementor Global Typography (Montserrat headings, Roboto text) */
  --cm-font-head:var(--e-global-typography-primary-font-family,"Montserrat"),Montserrat,Arial,sans-serif;
  --cm-font-body:var(--e-global-typography-text-font-family,"Roboto"),Roboto,Arial,sans-serif;
  counter-reset:cm;
}
.cm-services *,.cm-services *::before,.cm-services *::after{box-sizing:border-box}
.cm-services .cm-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.cm-services .cm-item{display:flex;margin:0;padding:0}
.cm-services .cm-item::marker{content:""}

/* Card */
.cm-services .cm-card{
  counter-increment:cm;position:relative;overflow:hidden;flex:1;
  display:flex;flex-direction:column;align-items:flex-start;gap:14px;
  padding:34px 32px;background:var(--cm-white);
  border:1px solid var(--cm-border);border-radius:20px;
  transition:background .35s ease,border-color .35s ease,box-shadow .35s ease,transform .35s ease;
}
/* Decorative number (hidden from screen readers) */
.cm-services .cm-card::before{
  content:counter(cm,decimal-leading-zero);
  content:counter(cm,decimal-leading-zero) / "";
  position:absolute;top:14px;right:22px;
  font-family:var(--cm-font-head);font-weight:700;font-size:72px;line-height:1;
  color:var(--cm-watermark);pointer-events:none;transition:color .35s ease;
}

/* Icon tile */
.cm-services .cm-icon{
  width:56px;height:56px;border-radius:16px;flex:none;
  display:flex;align-items:center;justify-content:center;color:var(--cm-white);
  background:linear-gradient(135deg,var(--cm-primary),var(--cm-blue-light));
  box-shadow:0 10px 22px rgba(15,107,242,.28);
  transition:background .35s ease,color .35s ease,box-shadow .35s ease;
}
.cm-services .cm-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Text */
.cm-services .cm-title{
  margin:0;padding:0;font-family:var(--cm-font-head);font-weight:600;
  font-size:clamp(19px,1.6vw,22px);line-height:1.35;letter-spacing:0;
  color:var(--cm-secondary);transition:color .3s ease;
}
.cm-services .cm-title a{color:inherit;text-decoration:none}
/* The whole card is clickable through the title link (one link per card keeps it clean for SEO) */
.cm-services .cm-title a::after{content:"";position:absolute;inset:0;z-index:2;border-radius:20px}
.cm-services .cm-title a:focus{outline:none}
.cm-services .cm-title a:focus-visible::after{outline:3px solid var(--cm-primary);outline-offset:3px}
.cm-services .cm-desc{
  margin:0;flex:1;font-family:var(--cm-font-body);font-size:16px;line-height:1.7;
  color:var(--cm-text);transition:color .3s ease;
}
.cm-services .cm-more{
  display:inline-flex;align-items:center;gap:8px;margin-top:2px;
  font-family:var(--cm-font-head);font-weight:600;font-size:15px;line-height:1.2;
  color:var(--cm-primary);transition:color .3s ease,gap .3s ease;
}
.cm-services .cm-more svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}

/* Hover (only on devices that really hover, so touch screens do not stick) */
@media (hover:hover){
  .cm-services .cm-card:hover{
    background:linear-gradient(145deg,var(--cm-primary),var(--cm-hover));
    border-color:transparent;box-shadow:0 22px 44px rgba(15,107,242,.3);transform:translateY(-6px);
  }
  .cm-services .cm-card:hover::before{color:rgba(255,255,255,.16)}
  .cm-services .cm-card:hover .cm-title,
  .cm-services .cm-card:hover .cm-desc,
  .cm-services .cm-card:hover .cm-more{color:var(--cm-white)}
  .cm-services .cm-card:hover .cm-more{gap:12px}
  .cm-services .cm-card:hover .cm-icon{background:var(--cm-white);color:var(--cm-primary);box-shadow:none}
}
/* Tablet: 2 columns */
@media (max-width:1024px){
  .cm-services .cm-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
}
/* Mobile: 1 column */
@media (max-width:640px){
  .cm-services .cm-list{grid-template-columns:minmax(0,1fr);gap:18px}
  .cm-services .cm-card{padding:28px 24px}
  .cm-services .cm-card::before{font-size:56px;top:12px;right:18px}
}
@media (prefers-reduced-motion:reduce){
  .cm-services .cm-card,.cm-services .cm-icon,.cm-services .cm-more{transition:none}
  .cm-services .cm-card:hover{transform:none}
}