/* CAIAD layout fixes */

/* Accordion: aligned rows, icons, and arrows */
.elementor-element-10cf7a2 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px !important;
  align-items: start;
}

.elementor-element-7954a20,
.elementor-element-ef5b261 {
  width: 100% !important;
  max-width: 100% !important;
}

.elementor-element-7954a20 .e-n-accordion,
.elementor-element-ef5b261 .e-n-accordion {
  display: flex;
  flex-direction: column;
}

.elementor-element-7954a20 .e-n-accordion-item,
.elementor-element-ef5b261 .e-n-accordion-item {
  margin: 0 !important;
  border-bottom: 1px solid #d1d5db;
}

.elementor-element-7954a20 .e-n-accordion-item:last-child,
.elementor-element-ef5b261 .e-n-accordion-item:last-child {
  border-bottom: none;
}

.elementor-element-7954a20 .e-n-accordion-item-title,
.elementor-element-ef5b261 .e-n-accordion-item-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  min-height: 64px !important;
  height: 64px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
  list-style: none;
}

.elementor-element-7954a20 .e-n-accordion-item-title-header,
.elementor-element-ef5b261 .e-n-accordion-item-title-header {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.elementor-element-7954a20 .e-n-accordion-item-title-text,
.elementor-element-ef5b261 .e-n-accordion-item-title-text {
  display: flex !important;
  align-items: center !important;
  gap: 15px;
  width: 100%;
  min-height: 64px;
  line-height: 1 !important;
  white-space: nowrap;
}

.elementor-element-7954a20 .e-n-accordion-item-title-text img,
.elementor-element-ef5b261 .e-n-accordion-item-title-text img {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  margin: 0 !important;
  flex: 0 0 20px;
  object-fit: contain;
  display: block;
}

.elementor-element-7954a20 .e-n-accordion-item-title-icon,
.elementor-element-ef5b261 .e-n-accordion-item-title-icon {
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
}

.elementor-element-7954a20 .e-n-accordion-item-title-icon span,
.elementor-element-ef5b261 .e-n-accordion-item-title-icon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.elementor-element-7954a20 .e-n-accordion-item-title-icon svg,
.elementor-element-ef5b261 .e-n-accordion-item-title-icon svg {
  display: block;
}

@media (max-width: 767px) {
  .elementor-element-10cf7a2 {
    grid-template-columns: 1fr !important;
  }

  .elementor-element-7954a20 .e-n-accordion-item-title-text,
  .elementor-element-ef5b261 .e-n-accordion-item-title-text {
    white-space: normal;
  }
}

/* Header logos */
.elementor-element-c901e74 img,
.elementor-element-d3506c1 img {
  width: auto !important;
  max-width: 100% !important;
  aspect-ratio: 4 / 1;
  object-fit: contain !important;
  object-position: left center;
}

/* Header logo — desktop */
.elementor-element-c901e74 img {
  height: 40px !important;
}

/* Header logo — tablet/mobile */
.elementor-element-d3506c1 img {
  height: 32px !important;
}

/* Footer full logo — override Elementor 240×38 + object-fit:cover */
.elementor-287 .elementor-element.elementor-element-2e63fee img,
.elementor-287 .elementor-element.elementor-element-0d01cb2 img,
.elementor-element-2e63fee img,
.elementor-element-0d01cb2 img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: 4 / 1 !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.elementor-287 .elementor-element.elementor-element-2e63fee img,
.elementor-element-2e63fee img {
  height: 80px !important;
  max-width: 320px !important;
}

.elementor-287 .elementor-element.elementor-element-0d01cb2 img,
.elementor-element-0d01cb2 img {
  max-width: min(320px, 100%) !important;
  max-height: 80px !important;
}

.elementor-element-2e63fee .elementor-widget-container a,
.elementor-element-0d01cb2 .elementor-widget-container a {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

/* Hero title: -20% vs Elementor (108→86, 66→53, 46→37) */
.elementor-element-57d1a18 .elementor-heading-title {
  text-wrap: balance;
  font-size: 86px !important;
  line-height: 92px !important;
  letter-spacing: -2.88px !important;
}

@media (max-width: 1024px) {
  .elementor-element-57d1a18 .elementor-heading-title {
    font-size: 53px !important;
    line-height: 56px !important;
    letter-spacing: -2.34px !important;
  }
}

@media (max-width: 767px) {
  .elementor-element-57d1a18 .elementor-heading-title {
    font-size: 37px !important;
    line-height: 39px !important;
    letter-spacing: -0.8px !important;
  }
}

/* Hero photo block — full width like ICAI original */
.elementor-element-3555f96 {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
}

.elementor-element-3555f96 > .e-con-inner {
  position: relative;
}

/* Subscribe button icon — CAIAD triangles */
.elementor-element-660e1da a .elementor-button-text::before,
.elementor-element-660e1da a .elementor-button-text::after {
  background-image: url("/wp-content/uploads/2025/04/caiad-triangles.svg") !important;
  width: 22px !important;
  height: 19px !important;
}

/* Hero title block — less gap before stick */
.elementor-element-55f2549 {
  padding-bottom: 32px !important;
}

/* Hero divider stick between title and photo */
.elementor-element-163d7c0 {
  --width: 1px !important;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  min-height: 48px !important;
  height: 48px !important;
  flex: 0 0 1px !important;
  align-self: center !important;
  background-color: #030303 !important;
  margin: 0 auto 24px !important;
  position: relative !important;
  z-index: 5 !important;
}

/* Hero glow: ICAI original positioning, slightly enlarged */
.elementor-11 .elementor-element.elementor-element-f9b7c15.mouse-hover_effect,
.elementor-element-f9b7c15.mouse-hover_effect {
  filter: blur(2.5rem) !important;
  object-fit: contain !important;
  width: 105% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  position: absolute !important;
  inset: -78% 0% 0px !important;
  left: 0 !important;
  right: 0 !important;
  overflow: hidden !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.elementor-element-f9b7c15 img {
  width: 100% !important;
}

@media (max-width: 1024px) {
  .elementor-11 .elementor-element.elementor-element-f9b7c15.mouse-hover_effect,
  .elementor-element-f9b7c15.mouse-hover_effect {
    width: 100% !important;
    inset: -55% 0% 0px !important;
    margin-left: auto !important;
    margin-right: 50px !important;
  }
}

@media (max-width: 767px) {
  .elementor-11 .elementor-element.elementor-element-f9b7c15.mouse-hover_effect,
  .elementor-element-f9b7c15.mouse-hover_effect {
    width: 78% !important;
    inset: -50% 0% 0px !important;
    margin-left: auto !important;
    margin-right: 65px !important;
  }
}


.elementor-element-67bf527 {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.elementor-element-67bf527 img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 1024px) {
  .elementor-element-3555f96 {
    width: 100% !important;
  }

  .elementor-element-67bf527 img {
    height: auto !important;
  }
}

@media (max-width: 767px) {
  .elementor-element-3555f96 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .elementor-element-67bf527 img {
    max-width: 100% !important;
    min-height: 0 !important;
  }
}

/* Newsletter block — decorative pattern + cpu icon on Subscribe */
.elementor-element-d549cf9 {
  opacity: 0.22 !important;
  pointer-events: none !important;
}

.elementor-element-d549cf9 .elementor-widget-container,
.elementor-element-d549cf9 img {
  transform: none !important;
  animation: none !important;
}

.elementor-element-d549cf9 img {
  width: 100% !important;
  max-width: 640px !important;
  height: auto !important;
  object-fit: contain !important;
  filter: none !important;
  opacity: 0.35 !important;
}

.elementor-element-23e943b .elementor-button::before,
.elementor-element-a7ec87c .elementor-button::before {
  background-image: url("/wp-content/uploads/2025/04/cpu-icon-white.svg") !important;
  width: 20px !important;
  height: 20px !important;
  top: 50% !important;
  left: 28px !important;
  transform: translateY(-50%) !important;
}

/* Subscribe forms — email + phone with country code */
.caiad-subscribe-form .caiad-form-message {
  margin-top: 12px;
}

.caiad-subscribe-form .elementor-field-group-phone .elementor-widget-container,
.caiad-subscribe-form .elementor-field-group-phone {
  width: 100% !important;
  max-width: 100% !important;
}

.caiad-phone-field {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.caiad-phone-field .caiad-sub-country,
.caiad-phone-field .caiad-sub-phone {
  width: auto !important;
  max-width: none !important;
  min-height: 48px;
  margin: 0;
  box-sizing: border-box;
}

.caiad-phone-field .caiad-sub-country {
  flex: 0 0 148px;
  width: 148px !important;
  min-width: 148px;
  max-width: 148px;
  padding: 0 26px 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}

.caiad-phone-field .caiad-sub-phone {
  flex: 1 1 0;
  min-width: 110px;
  width: auto !important;
  padding-left: 16px;
  padding-right: 16px;
}

.newsletter-form .elementor-form-fields-wrapper {
  gap: 14px;
  align-items: flex-end;
}

.newsletter-form .elementor-field-group-phone,
.caiad-subscribe-form .elementor-field-group-phone {
  min-width: 220px;
}

/* Header subscribe bar — give phone row enough width */
.elementor-location-header .caiad-subscribe-form .elementor-form-fields-wrapper {
  flex-wrap: nowrap;
  gap: 10px;
  align-items: flex-end;
}

.elementor-location-header .caiad-subscribe-form .elementor-field-group-email {
  flex: 1 1 160px !important;
  min-width: 140px !important;
  max-width: none !important;
}

.elementor-location-header .caiad-subscribe-form .elementor-field-group-phone {
  flex: 1.35 1 240px !important;
  min-width: 240px !important;
  max-width: none !important;
}

.elementor-location-header .caiad-subscribe-form .e-form__buttons {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

.elementor-location-header .caiad-subscribe-form .elementor-field-label {
  font-size: 0.78rem;
  line-height: 1.2;
  margin-bottom: 6px;
  white-space: nowrap;
}

.elementor-location-header .caiad-phone-field .caiad-sub-country {
  flex: 0 0 132px;
  width: 132px !important;
  min-width: 132px;
  max-width: 132px;
}

.elementor-location-header .caiad-phone-field .caiad-sub-phone {
  min-width: 120px;
}

.newsletter-form .elementor-field-group-phone .elementor-field-label,
.newsletter-form .elementor-field-group-email .elementor-field-label {
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .newsletter-form .elementor-form-fields-wrapper {
    flex-wrap: nowrap !important;
  }

  .newsletter-form .elementor-field-group-email {
    width: 35% !important;
    flex: 0 0 35% !important;
  }

  .newsletter-form .elementor-field-group-phone {
    width: 40% !important;
    flex: 0 0 40% !important;
  }

  .newsletter-form .e-form__buttons {
    width: 25% !important;
    flex: 0 0 25% !important;
  }
}

@media (max-width: 767px) {
  .newsletter-form .elementor-field-group-email,
  .newsletter-form .elementor-field-group-phone,
  .newsletter-form .e-form__buttons {
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  .caiad-phone-field .caiad-sub-country {
    flex: 0 0 132px;
    width: 132px !important;
    min-width: 132px;
    max-width: 132px;
  }

  .caiad-phone-field .caiad-sub-phone {
    min-width: 0;
  }

  .elementor-location-header .caiad-subscribe-form .elementor-form-fields-wrapper {
    flex-wrap: wrap;
  }

  .elementor-location-header .caiad-subscribe-form .elementor-field-group-email,
  .elementor-location-header .caiad-subscribe-form .elementor-field-group-phone,
  .elementor-location-header .caiad-subscribe-form .e-form__buttons {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 767px) {
  .elementor-element-d549cf9 {
    opacity: 0.12 !important;
  }

  .elementor-element-d549cf9 img {
    max-width: 320px !important;
  }
}

/* What we do — android portrait overlay */
.elementor-element-e10165e img,
.elementor-element-cb71f38 img {
  width: 229px !important;
  height: 229px !important;
  object-fit: cover !important;
  object-position: center 18% !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35) !important;
}

@media (max-width: 1024px) {
  .elementor-element-e10165e > .elementor-widget-container {
    --e-transform-translateX: -182px !important;
    --e-transform-translateY: -43px !important;
  }
}

@media (max-width: 767px) {
  .elementor-element-df72e56 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .elementor-element-cb71f38 {
    width: 100% !important;
    text-align: center !important;
  }

  .elementor-element-cb71f38 .elementor-widget-container {
    display: flex !important;
    justify-content: center !important;
  }

  .elementor-element-cb71f38 img {
    width: 280px !important;
    height: 280px !important;
    object-position: center 15% !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-element-2054fb0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .elementor-element-e95f7f1 {
    width: 100% !important;
    text-align: center !important;
  }

  .elementor-element-e95f7f1 > .elementor-widget-container {
    --e-transform-translateX: 0 !important;
    --e-transform-translateY: 0 !important;
    transform: none !important;
  }

  .elementor-element-e95f7f1 img {
    width: min(406px, 72vw) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .elementor-element-e10165e {
    width: auto !important;
    margin-top: -72px !important;
    align-self: flex-start !important;
    margin-left: max(20px, calc(50% - 220px)) !important;
  }

  .elementor-element-e10165e > .elementor-widget-container {
    --e-transform-translateX: 0 !important;
    --e-transform-translateY: 0 !important;
    transform: none !important;
  }
}

/* What we do — full-width dark block */
.elementor-element-63ade1c {
  --width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.elementor-element-dd86205 {
  --width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 1024px) {
  .elementor-element-63ade1c {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 767px) {
  .elementor-element-63ade1c {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Section dividers — progress bar used as 1px line under headings */
.elementor-widget-progress .elementor-progress-bar {
  width: 100% !important;
}

.elementor-widget-progress .elementor-progress-text {
  display: none !important;
}

/* Where we are headed — collaboration photo */
.elementor-element-c0d7065 img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: center 42% !important;
  border-radius: 16px !important;
}

/* Language switcher — homepage header */
.caiad-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(13, 17, 23, 0.12);
  border-radius: 999px;
  background: #fff;
  z-index: 6;
}

.caiad-lang-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0d1117;
  opacity: 0.72;
  line-height: 1;
  text-decoration: none;
}

.caiad-lang-switcher__link:hover {
  opacity: 1;
  color: #ff8204;
}

.caiad-lang-switcher__link--active {
  background: #ff8204;
  color: #fff !important;
  opacity: 1;
}

.caiad-lang-switcher--mobile {
  display: none;
}

.elementor-location-header .caiad-lang-switcher--desktop {
  align-self: center;
  margin-right: 8px;
}

@media (max-width: 1024px) {
  .caiad-lang-switcher--desktop {
    display: none !important;
  }

  .caiad-lang-switcher--mobile {
    display: inline-flex !important;
    margin-left: auto;
    margin-right: 8px;
    align-self: center;
  }
}

/* Mobile off-canvas menu — fallback when Elementor bundles are unavailable */
#off-canvas-d276eff[aria-hidden="false"] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

#off-canvas-d276eff[aria-hidden="false"] .e-off-canvas__main {
  pointer-events: all !important;
}

#off-canvas-d276eff .elementor-element-bc9209b .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  gap: 12px !important;
  background: #ffffff !important;
  padding: 14px 20px !important;
  margin: -20px -20px 24px !important;
  box-sizing: border-box !important;
}

#off-canvas-d276eff .elementor-element-d5f2b49 {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#off-canvas-d276eff .elementor-element-d5f2b49 > .elementor-widget-container {
  margin: 0 !important;
}

#off-canvas-d276eff .elementor-element-d5f2b49 .elementor-icon-wrapper {
  text-align: left !important;
}

#off-canvas-d276eff .elementor-element-71c3f10 {
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

#off-canvas-d276eff .elementor-element-71c3f10 .elementor-button {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
}

#off-canvas-d276eff .elementor-element-71c3f10 .elementor-button-text {
  display: none !important;
}

#off-canvas-d276eff .elementor-element-71c3f10 .elementor-button-content-wrapper {
  flex-direction: row !important;
}

#off-canvas-d276eff .elementor-element-71c3f10 .elementor-button-icon svg {
  display: block !important;
  background: #ff8204 !important;
  fill: #ffffff !important;
  width: 32px !important;
  height: 32px !important;
  padding: 7px !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
}

#off-canvas-d276eff .elementor-element-fa2b834 {
  display: none !important;
}

#off-canvas-d276eff .elementor-element-6497c02 nav {
  display: block !important;
}

#off-canvas-d276eff .elementor-element-6497c02 .elementor-nav-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#off-canvas-d276eff .elementor-element-6497c02 .elementor-nav-menu a {
  color: #ffffff !important;
  text-decoration: none !important;
}

#off-canvas-d276eff .menu-item-has-children > .sub-menu {
  display: none;
  padding-left: 12px;
}

#off-canvas-d276eff .menu-item-has-children.caiad-submenu-open > .sub-menu {
  display: block;
}

#off-canvas-d276eff .menu-item-has-children > a::after {
  content: "+";
  display: inline-block;
  margin-left: 8px;
  font-weight: 700;
}

#off-canvas-d276eff .menu-item-has-children.caiad-submenu-open > a::after {
  content: "−";
}

/* Mobile off-canvas menu — CAIAD logo */
#off-canvas-d276eff .caiad-menu-logo-link {
  display: inline-block;
  line-height: 0;
}

#off-canvas-d276eff .caiad-menu-logo {
  height: 32px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain !important;
}

/* Subscribe popup — fallback when Elementor popup handlers are unavailable */
.elementor-3942.elementor-location-popup {
  display: none !important;
}

body.caiad-subscribe-popup-open {
  overflow: hidden !important;
}

body.caiad-subscribe-popup-open .elementor-3942.elementor-location-popup {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  background: rgba(15, 24, 36, 0.78) !important;
  pointer-events: all !important;
}

body.caiad-subscribe-popup-open .elementor-3942 .elementor-element-6f1f765 {
  display: flex !important;
  width: 100% !important;
  max-width: 640px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  margin: 0 auto !important;
}

body.caiad-subscribe-popup-open .elementor-3942 .elementor-element-d6aa6ea a {
  cursor: pointer !important;
}

/* Footer — temporarily hidden */
.elementor-element-92b82b7,
.elementor-element-c146c24,
.elementor-element-7de80af,
.elementor-element-158c1ec {
  display: none !important;
}
