/* Core Web Vitals helpers */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.fonts-ready {
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.home .what-do-section,
body.home .our-happy-clients-section,
body.home .home-faq-section,
body.home .home-blog-section,
body.home .newsletter-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.dsignr-live-chat-tidio #tidio-chat,
.dsignr-live-chat-tidio #tidio-chat-iframe,
.dsignr-live-chat-tidio tidio-chat {
  contain: layout style;
}

.dsignr-live-chat-whatsapp #dsignr-whatsapp {
  contain: layout style;
}

.main-footer {
  min-height: 320px;
}

/* Critical layout styles while async CSS loads */
.main-header,
.main-header .header,
.main-header .logo,
.logo-link::before {
  background: #2c1f71;
}

body.home {
  background: #fff;
  color: #1d252c;
}

body.home .main-header,
body.home .header,
body.home .logo {
  background: #2c1f71;
}

body.home .hero_container_section,
body.home .hero_container_main,
body.home .hero_container_text {
  background: transparent;
  color: #1d252c;
}

body.home .hero_container_text h1,
body.home .hero_container_text .home-summary,
body.home .hero_container_text .home-summary p,
body.home .hero_container_text .home-summary span {
  background-color: transparent !important;
  color: #1d252c !important;
}

body.home .hero-bg-fill {
  background-image: linear-gradient(318deg, #2c1f71 0, #ad60b5 53%, #fe9e01 100%);
}

body.home .main-footer,
body.home .our-happy-clients-section,
body.home .what-do-section,
body.home .home-blog-section,
body.home .newsletter-section {
  background-color: #fff;
  color: #1d252c;
}

.home_slider_figure picture,
.home_slider_figure img {
  display: block;
  width: 100%;
  height: auto;
}

.home_slider_figure {
  aspect-ratio: 650 / 475;
  min-height: 280px;
  background: transparent;
}

@media only screen and (max-width: 767px) {
  .home_slider_figure {
    aspect-ratio: 400 / 320;
    min-height: 220px;
  }
}

.brand-logo img,
.our-happy-clients-image figure img {
  max-width: 100%;
  height: auto;
}

.our-happy-clients-image figure {
  aspect-ratio: 3 / 2;
}

.recent-our-new-article-image picture,
.recent-our-new-article-image img {
  display: block;
  width: 100%;
  height: auto;
}

.recent-our-new-article-image {
  aspect-ratio: 355 / 180;
  background: #f5f5f5;
}

.logo img {
  width: 130px;
  height: 70px;
}

.hero-banner-section,
.hero-banner-main {
  min-height: 280px;
}

.single-hero-figure {
  aspect-ratio: 1140 / 495;
  min-height: 220px;
  background: #f5f5f5;
}

.single-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-banner-text h1 {
  color: inherit;
}

.menu-overlay .sc_bg,
.menu-overlay .sc_bg_hover {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-not-found-actions .button {
  margin-right: 12px;
  margin-bottom: 12px;
}

/* Form placeholders: lighter empty-state text across all site forms */
.dsignr-form .freeform-input::placeholder,
.dsignr-form textarea.freeform-input::placeholder,
.frm_forms .dsignr-form .freeform-input::placeholder,
.make-common-form .frm_forms form .freeform-input::placeholder,
.book-a-call-form .frm_forms form .freeform-input::placeholder,
.contact-form .frm_forms form .freeform-input::placeholder,
#getAQuote .freeform-input::placeholder,
#contct .freeform-input::placeholder {
  color: rgba(84, 86, 91, 0.5);
  opacity: 1;
}

.contact-form .frm_forms form .freeform-input::placeholder,
#contct .freeform-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.frm_forms .freeform-label-inline,
.make-common-form .frm_forms form .freeform-label-inline,
.book-a-call-form .frm_forms form .freeform-label-inline {
  color: rgba(84, 86, 91, 0.5);
}

.make-common-form .frm_forms form.frm-show-form .frm_form_field label.frm_primary_label:not(.input-has-value),
.newsletter-form .frm_forms form.frm-show-form .frm_form_field label.frm_primary_label:not(.input-has-value) {
  opacity: 0.5;
}

ul.footer-social-icons li a img {
  width: 30px;
  height: 30px;
  display: block;
}

ul.footer-social-icons li a:focus img,
ul.footer-social-icons li a:active img,
ul.footer-social-icons li a:hover img {
  opacity: 0.75;
}

@media only screen and (max-width: 767px) and (min-width: 200px) {
  ul.footer-social-icons li {
    margin-right: 15px;
  }
}

/* Homepage FAQ accordion — Parachute-style ui-accordion */
.home-faq-section .ui-accordion {
  font-family: Montserrat, sans-serif;
  display: block;
  width: 100%;
  font-size: inherit;
}

.home-faq-section .ui-accordion span.ui-accordion-header {
  background: 0 0;
  border: 0;
  display: block;
  width: 100%;
  border-radius: 0;
  color: #1d252c;
  font-size: 18px;
  line-height: 24px;
  padding: 14px 20px 15px 0;
  font-weight: 600;
  margin: 0;
  position: relative;
  cursor: pointer;
}

.home-faq-section .ui-accordion span.ui-accordion-header.open,
.home-faq-section .ui-accordion span.ui-accordion-header:hover {
  color: #4915c5;
}

.home-faq-section .ui-accordion span.ui-accordion-header:before {
  content: "";
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  width: 100%;
  background: #cacaca;
  position: absolute;
  transition: height 0.35s, transform 0.35s, width 1.35s;
  display: block;
}

.home-faq-section .ui-accordion span.ui-accordion-header:after {
  width: 0%;
  height: 3px;
  background-image: linear-gradient(-45deg, #ad60b5 0, #9a249c 53%, #4f0dcf 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  content: "";
  transition: all 0.5s ease-in-out;
}

.home-faq-section .ui-accordion span.ui-accordion-header.open:after,
.home-faq-section .ui-accordion span.ui-accordion-header:hover:after {
  width: 100%;
}

.home-faq-section .ui-accordion span.ui-accordion-header .ui-icon {
  display: inline-block;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  text-indent: 0;
  background: 0 0;
  width: 20px;
  height: 20px;
}

.home-faq-section .ui-accordion span.ui-accordion-header .ui-icon::after {
  top: -5px;
  right: 0;
  font-size: 20px;
  line-height: 1.5;
  content: "\f078";
  font-weight: 400;
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", FontAwesome, sans-serif;
  color: #4915c5;
  position: absolute;
  text-indent: inherit;
}

.home-faq-section .ui-accordion div.ui-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.75s ease-in-out;
  border: 0;
  width: 100%;
  font-family: Montserrat, sans-serif;
  color: #1d252c;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.home-faq-section .ui-accordion div.ui-accordion-desc {
  padding: 34px 0 0;
}

.home-faq-section .ui-accordion div.ui-accordion-content ul {
  margin-bottom: 23px;
}

.home-faq-section .ui-accordion div.ui-accordion-content ul > li:before {
  background-color: #4915c5;
}

.home-faq-section .ui-accordion div.ui-accordion-content ol {
  margin-bottom: 23px;
}

.home-faq-section .ui-accordion div.ui-accordion-content ol > li:before {
  color: #4915c5;
}

@media only screen and (max-width: 767px) and (min-width: 200px) {
  .home-faq-section .ui-accordion span.ui-accordion-header {
    font-size: 14px;
    line-height: 22px;
  }
}

/* POPIA consent banner */
.dsignr-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  padding: 16px;
  pointer-events: none;
}

.dsignr-consent[hidden] {
  display: none !important;
}

.dsignr-consent__panel {
  pointer-events: auto;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 24px;
  background: #1d252c;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  font-family: Montserrat, sans-serif;
}

.dsignr-consent__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

.dsignr-consent__text {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.88);
}

.dsignr-consent__text a {
  color: #fff;
  text-decoration: underline;
}

.dsignr-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.dsignr-consent__btn {
  margin: 0;
}

.dsignr-consent__preferences {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.dsignr-consent.is-expanded .dsignr-consent__preferences {
  display: block;
}

.dsignr-consent__option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.dsignr-consent__option input {
  margin-top: 3px;
  flex-shrink: 0;
}

.dsignr-consent__save {
  margin-top: 6px;
}

/* Form and newsletter POPIA notices */
.dsignr-privacy-notice,
.newsletter-consent,
.dsignr-newsletter-consent {
  display: block;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 20px;
  color: rgba(29, 37, 44, 0.72);
  font-family: Montserrat, sans-serif;
}

.dsignr-privacy-notice a,
.newsletter-consent a,
.dsignr-newsletter-consent a {
  color: inherit;
  text-decoration: underline;
}

.newsletter-consent,
.dsignr-newsletter-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  clear: both;
  padding-top: 4px;
}

.newsletter-consent input,
.dsignr-newsletter-consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.exit-popup-form .newsletter-consent,
.exit-popup-form .dsignr-newsletter-consent {
  color: rgba(255, 255, 255, 0.82);
}

@media only screen and (max-width: 767px) {
  .dsignr-consent {
    padding: 10px;
  }

  .dsignr-consent__panel {
    padding: 16px;
  }

  .dsignr-consent__actions {
    flex-direction: column;
  }

  .dsignr-consent__actions .button {
    width: 100%;
    text-align: center;
  }
}
