/* JPARKS premium polish layer v2.3.0, managed via SSH */

/* foundations */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #4f6df5; color: #fff; }
:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }
html, body { overflow-x: clip; }
a { transition: color .2s ease, opacity .2s ease; }
.skip-link.screen-reader-text { color: #3651d4; }

/* buttons and cards */
.elementor-button, .ximp-btn, .wp-block-button__link, .jph-btn, .jp-cta__btn {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.elementor-button:hover, .ximp-btn:hover, .jph-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 109, 245, .22), 0 2px 6px rgba(2, 6, 23, .14);
}
.ximp-card, .ximp-step { transition: transform .25s ease, box-shadow .25s ease; }
.ximp-card:hover, .ximp-step:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(2, 6, 23, .10); }
.ximp h1, .ximp h2 { letter-spacing: -0.015em; }

/* premium form fields (Elementor forms, incl. the enquiry popup) */
.elementor-field-group .elementor-field-textual {
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, .28);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.elementor-field-group .elementor-field-textual:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .18);
  outline: none;
}
.elementor-field-type-submit .elementor-button { border-radius: 999px; letter-spacing: .01em; }

/* scroll reveal (no will-change: it breaks position:fixed descendants) */
.jp-reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1); }
.jp-reveal.jp-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .jp-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* touch targets */
.jph-link, .jpf-col a, .jph-mobile__sub a, .jph-mlink, .jpf-contact a, .jpf-legal a, .jpf-bottom a { display: inline-block; padding: 8px 0; }
.jph-nav > ul > li > .jph-link { padding: 14px 0; }
.ximp-textlink { display: inline-block; padding: 10px 0; }
.ximp-list-cta span { font-size: 12.5px !important; }

/* consent widgets */
.wpconsent-iframe-accept-button { max-width: 100%; white-space: normal; }
@media (max-width: 767px) {
  .wpconsent-consent-floating { bottom: 96px !important; }
}

/* related-service CTA card on blog posts */
.jp-cta { margin: 2.4em 0 0.5em; padding: 28px 26px; border-radius: 18px; background: linear-gradient(135deg, #0b1220 0%, #101b38 55%, #16224a 100%); border: 1px solid rgba(99, 102, 241, .35); box-shadow: 0 18px 44px rgba(2, 6, 23, .28); color: #e7ebf5; }
.jp-cta__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #93a5f8; margin: 0 0 10px; font-weight: 700; }
.jp-cta__title { font-size: 24px; line-height: 1.25; margin: 0 0 8px; color: #ffffff; font-weight: 800; }
.jp-cta__sub { margin: 0 0 18px; color: #c2cbe0; font-size: 16px; line-height: 1.55; }
.jp-cta__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.jp-cta__btn { display: inline-block; padding: 13px 22px; border-radius: 999px; background: linear-gradient(90deg, #4f6df5, #6366f1); color: #fff !important; font-weight: 700; text-decoration: none !important; font-size: 16px; }
.jp-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(79, 109, 245, .35); }
.jp-cta__btn--ghost { background: transparent; border: 1px solid rgba(231, 235, 245, .35); color: #e7ebf5 !important; }
.jp-cta__trust { margin: 16px 0 0; font-size: 13.5px; color: #9fb0d6; }
@media (max-width: 640px) {
  .jp-cta { padding: 22px 18px; }
  .jp-cta__title { font-size: 20px; }
  .jp-cta__btn { width: 100%; text-align: center; }
}

/* FAQ block on service pages */
.jp-faq { padding: 56px 20px 72px; background: #f4f6fb; }
.jp-faq__inner { max-width: 860px; margin: 0 auto; }
.jp-faq__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #4f6df5; font-weight: 700; margin: 0 0 8px; }
.jp-faq__title { font-size: 30px; line-height: 1.2; color: #0b1220; margin: 0 0 26px; font-weight: 800; letter-spacing: -0.015em; }
.jp-faq__item { background: #fff; border: 1px solid #e4e8f2; border-radius: 14px; margin: 0 0 12px; overflow: hidden; transition: box-shadow .25s ease; }
.jp-faq__item[open] { box-shadow: 0 12px 30px rgba(2, 6, 23, .07); }
.jp-faq__item summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 700; font-size: 17px; color: #0b1220; position: relative; }
.jp-faq__item summary::-webkit-details-marker { display: none; }
.jp-faq__item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: #4f6df5; transition: transform .25s ease; }
.jp-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.jp-faq__item p { margin: 0; padding: 0 20px 18px; color: #3c4658; font-size: 16px; line-height: 1.6; }
@media (max-width: 640px) { .jp-faq__title { font-size: 24px; } }

/* wide content scrolls in place instead of being clipped */
.elementor-widget-theme-post-content table, .elementor-widget-text-editor table, article table {
  display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.elementor-widget-theme-post-content img, article img { max-width: 100%; height: auto; }

/* enquiry popup dressing: align with the form card below */
.jpp-head { max-width: 576px; margin: 0 auto 14px; padding: 0 6px; }
.jpp-eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #93a5f8; font-weight: 700; margin: 0 0 5px; }
.jpp-title { font-size: 23px; font-weight: 800; color: #fff; margin: 0 0 6px; letter-spacing: -0.015em; text-shadow: 0 2px 14px rgba(2,6,23,.6); }
.jpp-sub { font-size: 14.5px; color: #cdd5e8; line-height: 1.5; margin: 0; text-shadow: 0 1px 10px rgba(2,6,23,.6); }
.jpp-trust { max-width: 576px; font-size: 12.5px; color: #b6c2dd; text-align: center; margin: 12px auto 0; text-shadow: 0 1px 10px rgba(2,6,23,.6); }

/* blog post reading experience */
.single-post h1 { font-size: clamp(30px, 4.2vw, 40px) !important; line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; }
.single-post .elementor-widget-jet-listing-dynamic-field p { font-size: 17.5px; line-height: 1.75; color: #202836; margin-bottom: 1.25em; }
.single-post .elementor-widget-jet-listing-dynamic-field li { font-size: 17.5px; line-height: 1.7; margin-bottom: .45em; }
.single-post .elementor-widget-jet-listing-dynamic-field ul, .single-post .elementor-widget-jet-listing-dynamic-field ol { padding-left: 1.3em; margin-bottom: 1.4em; }
.single-post .elementor-widget-jet-listing-dynamic-field li::marker { color: #4f6df5; }
.single-post .elementor-widget-jet-listing-dynamic-field h2 { font-size: 27px; font-weight: 800; letter-spacing: -0.015em; margin: 1.9em 0 .7em; color: #0b1220; }
.single-post .elementor-widget-jet-listing-dynamic-field h3 { font-size: 21px; font-weight: 700; margin: 1.5em 0 .6em; color: #0b1220; }
.single-post .elementor-widget-jet-listing-dynamic-field a { color: #3651d4; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.single-post .elementor-widget-jet-listing-dynamic-field a:hover { color: #4f6df5; }
.single-post .elementor-widget-jet-listing-dynamic-field blockquote { border-left: 3px solid #4f6df5; background: #f4f6fd; padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 1.5em 0; font-style: normal; color: #2b3446; }
.single-post .elementor-widget-jet-listing-dynamic-field img { border-radius: 14px; box-shadow: 0 10px 28px rgba(2,6,23,.08); }
.single-post .elementor-widget-theme-post-featured-image img { border-radius: 16px; box-shadow: 0 14px 36px rgba(2,6,23,.10); }

/* reading progress bar */
#jp-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, #4f6df5, #8b5cf6); z-index: 99999; transition: width .1s linear; pointer-events: none; }

/* reading time chip */
.jp-readtime { display: inline-block; margin: 10px 0 0; padding: 6px 14px; border-radius: 999px; background: #eef1fd; color: #3651d4; font-size: 13px; font-weight: 700; letter-spacing: .02em; }

/* auto table of contents */
.jp-toc { background: #f4f6fb; border: 1px solid #e4e8f2; border-radius: 16px; padding: 20px 22px; margin: 0 0 2em; }
.jp-toc__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #4f6df5; font-weight: 700; margin: 0 0 10px; }
.jp-toc ol { margin: 0; padding-left: 1.2em; }
.jp-toc li { font-size: 15.5px; line-height: 1.5; margin-bottom: 6px; }
.jp-toc a { color: #202836 !important; text-decoration: none !important; }
.jp-toc a:hover { color: #3651d4 !important; }

@media (max-width: 640px) {
  .jpp-eyebrow { display: none; }
  .jpp-title { font-size: 19px; margin-bottom: 4px; }
  .jpp-sub { font-size: 13.5px; }
  .jpp-trust { font-size: 12px; }
}

/* ===== golden ratio type system (phi = 1.618, half-step 1.272) ===== */
:root {
  --jp-fs-s: 0.84rem;    /* 13.4px */
  --jp-fs-0: 1.0625rem;  /* 17px   */
  --jp-fs-1: 1.35rem;    /* 21.6px */
  --jp-fs-2: 1.72rem;    /* 27.5px */
  --jp-fs-3: 2.19rem;    /* 35px   */
  --jp-fs-4: 2.78rem;    /* 44.5px */
  --jp-lh-tight: 1.272;
  --jp-lh-body: 1.618;
}
h1 { font-size: clamp(2.06rem, 4.5vw, var(--jp-fs-4)) !important; line-height: var(--jp-lh-tight) !important; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, var(--jp-fs-3)) !important; line-height: var(--jp-lh-tight) !important; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2.6vw, var(--jp-fs-2)) !important; line-height: 1.35 !important; }
h4 { font-size: var(--jp-fs-1) !important; line-height: 1.35 !important; }
h5, h6 { font-size: var(--jp-fs-0) !important; line-height: 1.4 !important; }
.ximp-wrap p, .elementor-widget-jet-listing-dynamic-field p, .elementor-widget-jet-listing-dynamic-field li,
.jp-faq__item p, .elementor-widget-text-editor p, .elementor-widget-text-editor li {
  font-size: var(--jp-fs-0); line-height: var(--jp-lh-body);
}
.jp-cta__title { font-size: var(--jp-fs-2); line-height: var(--jp-lh-tight); }
.jp-faq__title { font-size: clamp(1.6rem, 3.4vw, var(--jp-fs-3)); line-height: var(--jp-lh-tight); }
.single-post h1 { font-size: clamp(2.06rem, 4.2vw, var(--jp-fs-4)) !important; }
.single-post .elementor-widget-jet-listing-dynamic-field h2 { font-size: var(--jp-fs-2); }
.single-post .elementor-widget-jet-listing-dynamic-field h3 { font-size: var(--jp-fs-1); }

/* ===== enquiry popup: tightened composition ===== */
.elementor-popup-modal .dialog-widget-content { width: min(94vw, 620px) !important; }
.elementor-popup-modal .elementor-widget-form > .elementor-widget-container { padding: 0 !important; }
.elementor-popup-modal .elementor-widget-form { padding: 30px 30px 26px !important; }
.elementor-popup-modal .elementor-field-group { margin-bottom: 15px !important; padding: 0 !important; }
.elementor-popup-modal .elementor-field-group label {
  font-size: 12px !important; letter-spacing: .07em !important; font-weight: 700;
  color: #a9b6d6 !important; margin-bottom: 6px !important;
}
.elementor-popup-modal .elementor-field-textual { padding: 12px 15px !important; font-size: 16px !important; }
.elementor-popup-modal .elementor-field-type-submit { margin-top: 4px; margin-bottom: 0 !important; }
.elementor-popup-modal .elementor-field-type-submit .elementor-button {
  padding: 15px 20px !important; font-size: 16.5px !important; letter-spacing: .01em;
}
@media (max-width: 640px) {
  .elementor-popup-modal .elementor-widget-form { padding: 22px 18px 20px !important; }
}

/* popup width: proper card on all screens */
@media (min-width: 768px) {
  .elementor-popup-modal .dialog-message { width: min(94vw, 640px) !important; max-width: min(94vw, 640px) !important; }
}
.elementor-popup-modal .elementor-element-239190f { max-width: 100% !important; }

/* form field refinements */
.elementor-popup-modal .elementor-field-textual::placeholder { color: rgba(214, 222, 244, .38); }
.elementor-field-textual:-webkit-autofill,
.elementor-field-textual:-webkit-autofill:hover,
.elementor-field-textual:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #141a30 inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  transition: background-color 9999s ease-out 0s;
}
.jpp-alt { max-width: 576px; margin: 14px auto 0; text-align: center; font-size: 14px; color: #cdd5e8; text-shadow: 0 1px 10px rgba(2,6,23,.6); }
.jpp-alt a { color: #7dd88f !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) {
  .elementor-popup-modal .elementor-form-fields-wrapper { column-gap: 12px; }
  .elementor-popup-modal .elementor-field-group.elementor-col-50 {
    flex-basis: calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
  }
}
