/*
 * App overrides (load after styles/vendor/webflow.css).
 * TOC: Base | Brand | Navbar | Mobile menu | Buttons | Footer | Hero | Cookie | Legal | Process | Services
 */
.wf-force-outline-none[tabindex="-1"]:focus {
  outline: none;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}
.page-wrapper {
  overflow: visible;
  max-width: 100%;
}
/* Ensure hero is truly full-width on mobile */
.home-hero,
.services-hero {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

* {
  box-sizing: border-box;
}

/* Brand overrides: Quantum Solutions color palette */
:root {
  --qs-ruby-red: #A3071D;
  --qs-hot-fuchsia: #ED4858;
  --qs-shadow-grey: #1F1F23;
  --qs-platinum: #F3F4F6;
  --qs-petal-frost: #F8D6DA;

  /* Override Webflow color variables → QS brand palette */
  --color--dark-blue: #1F1F23;        /* Shadow Grey (was #03171D) */
  --color--yellow-colour: #F3F4F6;    /* Platinum (was #E5E8EB) */
  --color--light-blue: #A3071D;       /* Ruby Red (was #7FAF97) */
  --color--purple-light: #F8D6DA;     /* Petal Frost (was #F1E3B2) */
  --color--light-green: #1F1F23;      /* Shadow Grey (was #03171D) */
  --color--gray-bg: #F3F4F6;          /* Platinum (was #fbfaf9) */
  --color--white-colour: white;       /* stays white */
}

/* Typography: Sora for headings, Source Sans 3 for body */
.h-01, .h-02, .h-03, .h-04, .h-05,
.hero-title-02, .hero-title-wrap h2,
.legal-title, .process-step-number {
  font-family: 'Sora', sans-serif;
}

.p-text-01, .p-text-02, .p-text-01-m, .p-text-02-m,
.primary-button-text, .taglink, .taglink-main,
body, .footer-form-input, .cookie-banner-message,
.legal-content, .legal-intro, .services-page-list {
  font-family: 'Source Sans 3', sans-serif;
}

/* Navbar: white content by default, black when sticky with blurred white bg */
.nav-wrap.nav-white,
.nav-wrap.nav-white .p-text-02,
.nav-wrap.nav-white .p-text-03-medium,
.nav-wrap.nav-white .primary-button-text,
.nav-wrap.nav-white .nav-link-box,
.nav-wrap.nav-white .nav-link-box-02,
.nav-wrap.nav-white .nav-link-box-03,
.nav-wrap.nav-white .nav-down-arrow,
.nav-wrap.nav-white .btn-link,
.nav-wrap.nav-white a {
  color: #fff;
  transition: color 0.25s ease;
}
.nav-wrap.nav-white .nav-down-arrow svg,
.nav-wrap.nav-white .nav-down-arrow path {
  stroke: #fff;
  transition: stroke 0.25s ease;
}
.nav-wrap.nav-white .w-nav-icon {
  background-color: #fff;
  transition: background-color 0.25s ease;
}
.nav-wrap.nav-white .nav-brand-logo {
  display: block;
}
/* Navbar "Get in Touch" on hero (not sticky): outline style, white text */
.nav-wrap.nav-white .btn-wrap .btn-link,
.nav-wrap.nav-white .btn-wrap .btn-link .primary-button-text {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  background: transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.nav-wrap.nav-white .btn-wrap .btn-link .btn-arrow-icon {
  color: #fff !important;
  filter: none;
}
.nav-wrap.nav-white .btn-wrap .btn-link:hover {
  background: rgba(255, 255, 255, 0.15);
}
.nav-wrap.nav-white .btn-arrow-icon,
.nav-wrap.nav-white .btn-icon-box img {
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease;
}

/* Sticky nav bar */
/* Nav: use fixed positioning (Webflow .nav-header is already position:fixed) */
.nav-wrap {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000;
  width: 100%;
}
.nav-wrap .nav-contact {
  position: relative;
  top: 0;
  z-index: 1000;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
.nav-wrap .nav-contact.nav-stuck {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-wrap .nav-contact.nav-stuck .nav-header.w-variant-ac55e25d-6c22-0ce6-b5ca-f8c43fa3683c {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

/* When sticky, change all text to dark */
.nav-wrap.nav-white .nav-contact.nav-stuck,
.nav-wrap.nav-white .nav-contact.nav-stuck .p-text-02,
.nav-wrap.nav-white .nav-contact.nav-stuck .p-text-03-medium,
.nav-wrap.nav-white .nav-contact.nav-stuck .primary-button-text,
.nav-wrap.nav-white .nav-contact.nav-stuck .nav-link-box,
.nav-wrap.nav-white .nav-contact.nav-stuck .nav-link-box-02,
.nav-wrap.nav-white .nav-contact.nav-stuck .nav-link-box-03,
.nav-wrap.nav-white .nav-contact.nav-stuck .nav-down-arrow,
.nav-wrap.nav-white .nav-contact.nav-stuck .btn-link,
.nav-wrap.nav-white .nav-contact.nav-stuck a {
  color: var(--qs-shadow-grey);
}
.nav-wrap.nav-white .nav-contact.nav-stuck .nav-down-arrow svg,
.nav-wrap.nav-white .nav-contact.nav-stuck .nav-down-arrow path {
  stroke: var(--qs-shadow-grey);
}
.nav-wrap.nav-white .nav-contact.nav-stuck .w-nav-icon {
  background-color: var(--qs-shadow-grey);
}
/* Logo variant switching handled by React component, no CSS filters needed */
/* Sticky: ruby red bg, white text */
.nav-wrap.nav-white .nav-contact.nav-stuck .btn-wrap .btn-link,
.nav-wrap.nav-white .nav-contact.nav-stuck .btn-wrap .btn-link .primary-button-text {
  color: #fff !important;
  border-color: var(--qs-ruby-red);
  background: var(--qs-ruby-red);
}
.nav-wrap.nav-white .nav-contact.nav-stuck .btn-wrap .btn-link .btn-arrow-icon {
  color: #fff !important;
  filter: none;
}
.nav-wrap.nav-white .nav-contact.nav-stuck .btn-wrap .btn-link .btn-icon-box {
  background-color: var(--qs-shadow-grey) !important;
}
.nav-wrap.nav-white .nav-contact.nav-stuck .btn-wrap .btn-link:hover {
  background: var(--qs-hot-fuchsia);
  border-color: var(--qs-hot-fuchsia);
}
.nav-wrap.nav-white .nav-contact.nav-stuck .btn-arrow-icon,
.nav-wrap.nav-white .nav-contact.nav-stuck .btn-icon-box img {
  filter: none;
}

/* Navbar over footer: dark bg and white text */
.nav-wrap.nav-white .nav-contact.nav-over-footer {
  background: var(--qs-shadow-grey);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-wrap.nav-white .nav-contact.nav-over-footer .nav-header.w-variant-ac55e25d-6c22-0ce6-b5ca-f8c43fa3683c {
  background: var(--qs-shadow-grey);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-wrap.nav-white .nav-contact.nav-over-footer,
.nav-wrap.nav-white .nav-contact.nav-over-footer .p-text-02,
.nav-wrap.nav-white .nav-contact.nav-over-footer .primary-button-text,
.nav-wrap.nav-white .nav-contact.nav-over-footer .nav-link-box,
.nav-wrap.nav-white .nav-contact.nav-over-footer .nav-down-arrow,
.nav-wrap.nav-white .nav-contact.nav-over-footer .btn-link,
.nav-wrap.nav-white .nav-contact.nav-over-footer a {
  color: #fff;
}
.nav-wrap.nav-white .nav-contact.nav-over-footer .nav-down-arrow svg,
.nav-wrap.nav-white .nav-contact.nav-over-footer .nav-down-arrow path {
  stroke: #fff;
}
.nav-wrap.nav-white .nav-contact.nav-over-footer .w-nav-icon {
  background-color: #fff;
}
/* Logo over footer: handled by React variant prop */
.nav-wrap.nav-white .nav-contact.nav-over-footer .btn-wrap .btn-link,
.nav-wrap.nav-white .nav-contact.nav-over-footer .btn-wrap .btn-link .primary-button-text {
  color: #fff;
  border-color: var(--qs-ruby-red);
  background: var(--qs-ruby-red);
}
.nav-wrap.nav-white .nav-contact.nav-over-footer .btn-wrap .btn-link:hover {
  background: var(--qs-hot-fuchsia);
  border-color: var(--qs-hot-fuchsia);
}
.nav-wrap.nav-white .nav-contact.nav-over-footer .btn-arrow-icon,
.nav-wrap.nav-white .nav-contact.nav-over-footer .btn-icon-box img {
  filter: brightness(0) invert(1);
}

/* Inner pages: white bg and dark text */
.nav-wrap.nav-inner-page .nav-contact {
  background: #fff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.nav-wrap.nav-inner-page .nav-contact .nav-header.w-variant-ac55e25d-6c22-0ce6-b5ca-f8c43fa3683c {
  background: #fff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-wrap.nav-inner-page,
.nav-wrap.nav-inner-page .p-text-02,
.nav-wrap.nav-inner-page .p-text-03-medium,
.nav-wrap.nav-inner-page .primary-button-text,
.nav-wrap.nav-inner-page .nav-link-box,
.nav-wrap.nav-inner-page .nav-link-box-02,
.nav-wrap.nav-inner-page .nav-link-box-03,
.nav-wrap.nav-inner-page .nav-down-arrow,
.nav-wrap.nav-inner-page .btn-link,
.nav-wrap.nav-inner-page a {
  color: var(--qs-shadow-grey);
}
.nav-wrap.nav-inner-page .nav-down-arrow svg,
.nav-wrap.nav-inner-page .nav-down-arrow path {
  stroke: var(--qs-shadow-grey);
}
.nav-wrap.nav-inner-page .w-nav-icon {
  background-color: var(--qs-shadow-grey);
}
.nav-wrap.nav-inner-page .btn-wrap .btn-link,
.nav-wrap.nav-inner-page .btn-wrap .btn-link .primary-button-text {
  color: #fff !important;
  border-color: var(--qs-ruby-red);
  background: var(--qs-ruby-red);
}
.nav-wrap.nav-inner-page .btn-wrap .btn-link .btn-arrow-icon {
  color: #fff !important;
  filter: none;
}
.nav-wrap.nav-inner-page .btn-wrap .btn-link .btn-icon-box {
  background-color: var(--qs-shadow-grey) !important;
}
.nav-wrap.nav-inner-page .btn-wrap .btn-link:hover {
  background: var(--qs-hot-fuchsia);
  border-color: var(--qs-hot-fuchsia);
}
.nav-wrap.nav-inner-page .btn-arrow-icon,
.nav-wrap.nav-inner-page .btn-icon-box img {
  filter: none;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #fff;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.mobile-menu-overlay.mobile-menu-open {
  display: flex !important;
  flex-direction: column;
  visibility: visible;
  opacity: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

.mobile-menu-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: 0;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 6px 20px;
  border-bottom: 1px solid rgba(31, 31, 35, 0.08);
  background: #fff;
}
.mobile-menu-logo {
  display: block;
  line-height: 0;
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--qs-shadow-grey);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu-close:hover {
  background: rgba(31, 31, 35, 0.06);
  color: var(--qs-shadow-grey);
}
.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu-link {
  display: block;
  padding: 14px 0;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 500;
  font-family: 'Sora', sans-serif;
  color: var(--qs-shadow-grey) !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.mobile-menu-link:hover {
  opacity: 0.75;
  color: var(--qs-shadow-grey);
}
/* Active nav link */
.nav-link-active {
  border-left: 2px solid var(--qs-ruby-red) !important;
  padding-left: 5px;
  border-radius: 5px;
}
/* Non-active nav links: red text on hover */
.nav-link-box:not(.nav-link-active):hover {
  opacity: 1 !important;
}
.nav-link-box:not(.nav-link-active):hover .p-text-02 {
  color: var(--qs-ruby-red) !important;
}
.mobile-menu-link-active {
  border-left: 2px solid var(--qs-ruby-red) !important;
  padding-left: 5px;
  border-radius: 5px;
}
/* Non-active mobile links: red text on hover */
.mobile-menu-link:not(.mobile-menu-link-active):hover {
  color: var(--qs-ruby-red) !important;
  opacity: 1 !important;
}
.mobile-menu-cta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 31, 35, 0.08);
}
.mobile-menu-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: var(--qs-ruby-red);
  border: 2px solid var(--qs-ruby-red);
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.mobile-menu-cta-button:hover {
  background: var(--qs-hot-fuchsia);
  color: #fff;
  border-color: var(--qs-hot-fuchsia);
}
.mobile-menu-cta-button svg {
  flex-shrink: 0;
}
.mobile-menu-cta-button:hover svg {
  stroke: #fff;
}
.mobile-menu-cta-text {
  color: #fff !important;
}
.mobile-menu-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--qs-shadow-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.mobile-menu-cta-button svg {
  color: #fff !important;
}

/* Responsive navbar */
@media (min-width: 992px) {
  .navbar-container-wrapper .w-nav-button {
    display: none;
  }
  .mobile-menu-overlay.mobile-menu-open {
    display: none !important;
  }
}
@media (max-width: 991px) {
  .navbar-container-wrapper .nav-left {
    display: none;
  }
  .navbar-container-wrapper .nav-right .btn-wrap {
    display: none;
  }
  .nav-wrap .navbar-container-wrapper .w-nav-button {
    display: block !important;
  }
}

/* Hamburger */
.nav-wrap .w-nav-button .w-icon-nav-menu::before {
  display: none !important;
}
.nav-wrap.nav-inner-page .w-nav-icon {
  background-color: var(--qs-shadow-grey);
}

.nav-wrap .navbar-container-wrapper .w-nav-button,
.nav-wrap .navbar-container-wrapper .w-nav-button.w--open {
  background-color: transparent;
  padding: 4px;
}
@media (max-width: 991px) {
  .nav-wrap .navbar-container-wrapper .w-nav-button .w-icon-nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
  .nav-wrap .navbar-container-wrapper .w-nav-button .w-nav-icon {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
  }
  .nav-wrap .navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  /* On mobile, nav links stay white on hero (dark bg), only go dark when sticky */
  .nav-wrap.nav-white .nav-contact.nav-stuck a {
    color: var(--qs-shadow-grey);
  }
}

body.mobile-menu-open {
  overflow: hidden;
}

/* Button hover – primary buttons: rectangle goes ruby red */
.btn-link:hover {
  background-color: var(--qs-ruby-red);
  color: #fff;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn-link:hover .primary-button-text {
  color: #fff;
}

/* Dark variant buttons (navbar "Get in Touch") – on hover swap to ruby red */
.btn-link.w-variant-cb69fa8f-047e-852a-fe6f-eb063353cfc5:hover {
  background-color: var(--qs-ruby-red) !important;
  color: #fff !important;
}
.btn-link.w-variant-cb69fa8f-047e-852a-fe6f-eb063353cfc5:hover .primary-button-text {
  color: #fff !important;
}

/* btn-icon-reverse hover: circle turns white, arrow turns ruby red */
.btn-icon-reverse .btn-link:hover .btn-icon-box {
  background-color: #fff;
  color: var(--qs-ruby-red);
}
.btn-icon-reverse .btn-link:hover .btn-arrow-icon {
  color: var(--qs-ruby-red) !important;
  filter: none;
}

/* btn-link-2 (secondary/underline buttons) */
.btn-link-2 {
  transition: opacity 0.3s ease;
}
.btn-link-2:hover {
  background-color: transparent;
  opacity: 0.7;
}
.btn-link-2:where(.w-variant-c49f4854-848c-8791-04c9-879745c08346):hover {
  background-color: transparent;
  opacity: 0.7;
}
.btn-link-2:not(.w-variant-c49f4854-848c-8791-04c9-879745c08346):hover {
  background-color: transparent;
  opacity: 0.7;
}

/* Hero & page buttons: force dark text on light bg (override .home-hero color:white inheritance) */
#hero .btn-icon-reverse .btn-link,
#hero .btn-icon-reverse .btn-link .primary-button-text,
#about-stats .btn-icon-reverse .btn-link,
#about-stats .btn-icon-reverse .btn-link .primary-button-text {
  color: var(--qs-shadow-grey);
}
#hero .btn-icon-reverse .btn-link:hover,
#hero .btn-icon-reverse .btn-link:hover .primary-button-text,
#about-stats .btn-icon-reverse .btn-link:hover,
#about-stats .btn-icon-reverse .btn-link:hover .primary-button-text {
  color: #fff;
}

/* Icon boxes GLOBAL: dark bg + white arrow by default, ruby red on hover */
.btn-icon-reverse .btn-icon-box {
  background-color: var(--qs-shadow-grey);
  color: #fff;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn-icon-reverse .btn-arrow-icon {
  color: #fff !important;
  filter: none;
  transition: color 0.25s ease;
}
/* On hover: icon circle turns white, arrow turns ruby red */
.btn-icon-reverse .btn-link:hover .btn-icon-box {
  background-color: #fff;
  color: var(--qs-ruby-red);
}
.btn-icon-reverse .btn-link:hover .btn-arrow-icon {
  color: var(--qs-ruby-red) !important;
}

/* Accessibility: screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer contact form */
.footer-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: 100%;
  min-height: 280px;
  padding: 1.5rem;
}
.footer-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.footer-form-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}
.footer-form-input:focus {
  outline: none;
  border-color: var(--qs-ruby-red);
  box-shadow: 0 0 0 3px rgba(163, 7, 29, 0.12);
}
.footer-form-textarea {
  resize: vertical;
  min-height: 100px;
}
.footer-form-submit {
  width: 100%;
  margin-top: 0.25rem;
  cursor: pointer;
}

/* Footer: sections aligned to the right */
.footer-wrapper-two .footer-block-wrapper {
  margin-left: auto;
  max-width: none;
}
.footer .footer-block-wrap {
  flex-direction: row;
  gap: var(--space--space-60, 60px);
}

/* Email button icon */
.footer .btn-icon-box .footer-email-icon {
  color: inherit;
  flex-shrink: 0;
}
.footer .btn-icon-box .btn-icon-wrapper {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer .btn-icon-box .btn-icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.investment-sectors-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  gap: 10rem;
}

@media screen and (max-width: 991px) {
  .investment-sectors-grid {
    flex-direction: column;
    gap: var(--space--space-40);
  }
  .footer-contact-form {
    padding: 0rem;
  }

  .footer-wrapper-two .footer-block-wrapper {
    margin-left: 0rem;
    max-width: none;
    padding-bottom: 2rem;
    padding-top: 2rem;
  }
  .footer-block-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .mobile-menu-cta-button {
    background-color: var(--qs-ruby-red);
  }
}

@media screen and (max-width: 767px) {
  .investment-sectors-grid {
    gap: var(--space--space-24);
  }
}

/* Hero subheadline under title */
.hero-subheadline {
  max-width: 50%;
  width: 50%;
  margin-top: var(--space--space-20, 20px);
}
@media screen and (max-width: 767px) {
  .hero-subheadline {
    max-width: 100%;
    width: 100%;
  }
}

/* Hero bottom row */
.hero-bottom-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

@media screen and (max-width: 767px) {
  .hero-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Services: 2 columns on desktop */
.service-wrapper.service-wrapper-home {
  grid-template-columns: 1fr 1fr;
}

.section-03-home {
  padding-top: 5rem;
}

@media screen and (max-width: 479px) {
  .service-wrapper.service-wrapper-home {
    grid-template-columns: 1fr;
  }
}

/* Footer: single column for links on very small screens */
@media screen and (max-width: 479px) {
  .footer-block-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner: comfortable padding on small screens */
@media screen and (max-width: 479px) {
  .cookie-banner {
    padding-left: var(--space--space-24);
    padding-right: var(--space--space-24);
  }
  .cookie-banner-inner {
    padding: 0;
  }
}

/* Footer form submit button */
.footer .footer-form-submit.footer-submit-btn-padded {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: var(--qs-ruby-red);
  color: #fff;
}
.footer .footer-form-submit.footer-submit-btn-padded .primary-button-text {
  color: #fff;
}

/* Footer: dark theme */
.footer {
  background-color: var(--qs-shadow-grey);
  color: #fff;
}
.footer .tag-box,
.footer .taglink,
.footer .h-01,
.footer .h-03,
.footer .p-text-01-m,
.footer .p-text-02,
.footer .primary-button-text,
.footer .btn-link,
.footer .btn-link .primary-button-text,
.footer a:not(.footer-link) {
  color: #fff;
}
.footer .h-01 {
  -webkit-text-stroke-color: #fff;
}
.footer .btn-link {
  border-color: rgba(255, 255, 255, 0.9);
  background: transparent;
}
.footer .btn-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.footer .btn-link:hover .primary-button-text {
  color: #fff;
}
.footer .btn-icon-box {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.footer .btn-arrow-icon,
.footer .btn-icon-box img,
.footer .btn-icon-box svg {
  color: #fff;
  filter: brightness(0) invert(1);
}
.footer .underline {
  background-color: #fff;
}
.footer .footer-divider {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Legal pages */
.legal-page {
  padding: var(--space--space-80, 80px) 0 var(--space--space-120, 120px);
  background-color: var(--qs-platinum, #F3F4F6);
  min-height: 60vh;
}
.legal-page-container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.legal-back-link {
  display: inline-block;
  margin-bottom: var(--space--space-40, 40px);
  color: var(--qs-shadow-grey);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.legal-back-link:hover {
  opacity: 0.7;
}
.legal-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  color: var(--qs-shadow-grey);
  margin: 0 0 var(--space--space-24, 24px);
  letter-spacing: -0.02em;
}
.legal-intro {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--qs-shadow-grey);
  margin: 0 0 var(--space--space-40, 40px);
  opacity: 0.9;
}
.legal-content {
  color: var(--qs-shadow-grey);
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  margin: var(--space--space-40, 40px) 0 var(--space--space-16, 16px);
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  margin: 0 0 var(--space--space-16, 16px);
  line-height: 1.65;
  font-size: 1rem;
}
.legal-content ul {
  margin: 0 0 var(--space--space-24, 24px);
  padding-left: 1.5rem;
}
.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.legal-content a {
  color: var(--qs-ruby-red);
  text-decoration: underline;
}
.legal-content a:hover {
  opacity: 0.8;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--qs-shadow-grey);
  color: #fff;
  padding: var(--space--space-24, 24px) var(--space--space-40, 40px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-banner[data-hidden="true"] {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space--space-24, 24px);
}
.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}
.cookie-banner-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  margin: 0 0 0.35rem;
}
.cookie-banner-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.95;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.cookie-banner-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
  font-family: inherit;
}
.cookie-banner-btn-accept {
  background: var(--qs-ruby-red);
  color: #fff;
}
.cookie-banner-btn-accept:hover {
  background: var(--qs-hot-fuchsia);
}
.cookie-banner-btn-reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.cookie-banner-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
}
.cookie-banner-btn-preferences {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: inline-block;
}
.cookie-banner-btn-preferences:hover {
  background: rgba(255, 255, 255, 0.1);
}
.cookie-banner-message-link {
  color: var(--qs-hot-fuchsia);
  text-decoration: underline;
}
.cookie-banner-message-link:hover {
  opacity: 0.9;
}

/* Hero: image background instead of video */
.hero-bg-video video::-webkit-media-controls-start-playback-button,
.hero-bg-video video::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none;
}
.hero-bg-video video {
  pointer-events: none;
}
.hero-video-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  pointer-events: none;
}

/* Inner pages: extra top padding to clear the navbar */
.inner-page-content {
  padding-top: 4rem;
}
.inner-page-content.no-top-padding {
  padding-top: 0;
}
.inner-page-content.no-top-padding .section-03-home {
  padding-top: 7rem;
}

/* Contact page: extra top padding on footer */
.footer.footer-contact-page {
  padding-top: 7rem;
}

/* Services page list */
.services-page-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space--space-24, 24px);
}
.services-page-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--qs-shadow-grey);
}
.services-page-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--qs-ruby-red);
}

/* Service list items (homepage component) */
.service-list {
  list-style: none;
  padding: 0;
  margin: var(--space--space-16, 16px) 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Kill ALL Webflow state-card transitions and flex animations */
.state-card,
.state-card *,
.state-card:hover,
.state-card:hover *,
.state-card:active,
.state-card:active *,
.state-card:focus,
.state-card:focus * {
  transition: none !important;
  animation: none !important;
  flex-grow: 1 !important;
  flex-basis: auto !important;
}

/* Re-enable ONLY on desktop with real mouse hover */
@media (hover: hover) and (pointer: fine) {
  .state-card {
    transition: background-color 0.5s ease !important;
    cursor: default;
  }
  .state-card .h-01,
  .state-card .state-number-wrap,
  .state-card .p-text-01,
  .state-card .state-card-icon svg circle,
  .state-card .state-card-float .tag-box,
  .state-card .state-card-float .tag-box .taglink {
    transition: color 0.5s ease, stroke 0.5s ease, background-color 0.5s ease, -webkit-text-stroke-color 0.5s ease !important;
  }
  .state-card:hover {
    background-color: var(--qs-ruby-red);
    color: #fff;
  }
  .state-card:hover .h-01,
  .state-card:hover .state-number-wrap,
  .state-card:hover .p-text-01,
  .state-card:hover .state-card-icon svg circle {
    color: #fff;
    -webkit-text-stroke-color: #fff;
    stroke: #fff;
  }
  .state-card:hover .state-card-float .tag-box {
    background-color: var(--qs-petal-frost) !important;
    color: var(--qs-shadow-grey);
  }
  .state-card:hover .state-card-float .tag-box .taglink {
    color: var(--qs-shadow-grey);
  }
}

/* How We Work — Timeline */
.hww-section {
  padding: var(--space--space-80, 80px) 0;
  background: var(--qs-platinum);
}
.hww-section .btn-link {
  border: 1.5px solid var(--qs-shadow-grey) !important;
}
.hww-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
/* Vertical center line */
.hww-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--qs-petal-frost), var(--qs-ruby-red), var(--qs-petal-frost));
  transform: translateX(-50%);
}

/* Each step row */
.hww-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.hww-step:last-child {
  margin-bottom: 0;
}

/* Left step: card on left, starts offset outward, slides inward to center */
.hww-step--left {
  flex-direction: row-reverse;
  transform: translateX(60px);
}
.hww-step--left .hww-step-card {
  margin-right: 3.5rem;
  text-align: right;
}

/* Right step: card on right, starts offset outward, slides inward to center */
.hww-step--right {
  transform: translateX(-60px);
}
.hww-step--right .hww-step-card {
  margin-left: 3.5rem;
}

/* Visible state (triggered by IntersectionObserver) */
.hww-step.hww-step--visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Number badge — sits on the center line */
.hww-step-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--qs-ruby-red);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(163, 7, 29, 0.25);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease;
}
.hww-step:hover .hww-step-badge {
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 8px 24px rgba(163, 7, 29, 0.35);
}

/* Card */
.hww-step-card {
  width: calc(50% - 3.5rem);
  background: #fff;
  border-radius: 14px;
  padding: 2.5rem;
  border: 1px solid rgba(31, 31, 35, 0.06);
  box-shadow: 0 2px 8px rgba(31, 31, 35, 0.04);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.hww-step:hover .hww-step-card {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(163, 7, 29, 0.1);
  border-color: rgba(163, 7, 29, 0.12);
}

/* Card text */
.hww-step-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--qs-shadow-grey);
  margin: 0 0 0.75rem;
  transition: color 0.4s ease;
}
.hww-step:hover .hww-step-title {
  color: var(--qs-ruby-red);
}
.hww-step-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(31, 31, 35, 0.7);
  margin: 0;
}

/* Mobile: single column, all from left */
@media screen and (max-width: 767px) {
  .hww-timeline-line {
    left: 26px;
  }
  .hww-step--left,
  .hww-step--right {
    flex-direction: row;
    transform: translateX(-40px);
  }
  .hww-step--left .hww-step-card,
  .hww-step--right .hww-step-card {
    margin-left: 2.5rem;
    margin-right: 0;
    text-align: left;
    width: calc(100% - 4rem);
  }
  .hww-step-badge {
    left: 26px;
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
  }
  .hww-step--visible {
    transform: translateX(0);
  }
}

/* FAQ: active and hover title color */
.faq-item .p-text-01-m {
  transition: color 0.3s ease;
}
.faq-item:hover .p-text-01-m,
.faq-item--active .p-text-01-m {
  color: var(--qs-ruby-red);
}
/* .faq-item--active .faq-body .p-text-02 {
  color: var(--qs-ruby-red) !important;
  opacity: 1 !important;
} */

/* Tag box variant colors using QS palette */
/* Force tag-box background override (Webflow default was beige) */
.tag-box {
  background-color: var(--qs-petal-frost) !important;
}
.tag-box .taglink {
  color: var(--qs-ruby-red);
}

/* State card tag pills: override Webflow variant backgrounds */
.state-card-float .tag-box {
  color: var(--qs-shadow-grey);
}
.state-card-float .tag-box .taglink {
  color: inherit;
}
/* Blue variant → Petal Frost bg to match others */
.state-card-float .tag-box.w-variant-9622ea4f-1fb3-6213-c5d7-8fc8590e5295 {
  background-color: var(--qs-petal-frost);
  color: var(--qs-shadow-grey);
}
/* Yellow variant → Petal Frost bg */
.state-card-float .tag-box.w-variant-d509bcb4-b4be-d3eb-2f96-b4c23de458fe {
  background-color: var(--qs-petal-frost);
  color: var(--qs-shadow-grey);
}

/* Services hero */
.services-hero {
  min-height: 400px;
}

/* Hero sections with dark image backgrounds: white text, but buttons keep their own colors */
.hero-dark-content {
  color: #fff;
}
.hero-dark-content .h-01,
.hero-dark-content .h-02,
.hero-dark-content .h-03,
.hero-dark-content .p-text-01,
.hero-dark-content .p-text-02 {
  color: #fff;
}
/* Buttons inside dark hero: keep default light bg + dark text */
.hero-dark-content .btn-icon-reverse .btn-link,
.hero-dark-content .btn-icon-reverse .btn-link .primary-button-text {
  color: var(--qs-shadow-grey);
}
.hero-dark-content .btn-icon-reverse .btn-link:hover,
.hero-dark-content .btn-icon-reverse .btn-link:hover .primary-button-text {
  color: #fff;
}

/* Services page: Ruby Red unified section */
.svc-ruby-section {
  background: #fff;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
/* Animated floating shapes — red/pink tones on white */
.svc-ruby-section::before,
.svc-ruby-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.svc-ruby-section::before {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
  background: var(--qs-petal-frost);
  opacity: 0.6;
  animation: svc-float-1 12s ease-in-out infinite;
}
.svc-ruby-section::after {
  width: 350px;
  height: 350px;
  bottom: -150px;
  left: -80px;
  background: var(--qs-hot-fuchsia);
  opacity: 0.08;
  animation: svc-float-2 15s ease-in-out infinite;
}
@keyframes svc-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.05); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes svc-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

/* Rising particle sparkles */
.svc-ruby-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.svc-ruby-particles span {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  background: var(--qs-petal-frost);
  border-radius: 50%;
  bottom: -10px;
  animation: svc-rise linear infinite;
}
.svc-ruby-particles span:nth-child(1) { left: 10%; width: 8px; height: 8px; animation-duration: 8s; animation-delay: 0s; }
.svc-ruby-particles span:nth-child(2) { left: 30%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 2s; }
.svc-ruby-particles span:nth-child(3) { left: 50%; width: 7px; height: 7px; animation-duration: 10s; animation-delay: 4s; }
.svc-ruby-particles span:nth-child(4) { left: 70%; width: 4px; height: 4px; animation-duration: 14s; animation-delay: 1s; }
.svc-ruby-particles span:nth-child(5) { left: 85%; width: 6px; height: 6px; animation-duration: 9s; animation-delay: 3s; }
.svc-ruby-particles span:nth-child(6) { left: 45%; width: 10px; height: 10px; animation-duration: 16s; animation-delay: 5s; opacity: 0.15; }
@keyframes svc-rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-800px) scale(0.3); opacity: 0; }
}

/* Extra decorative shapes via box-shadows on the container */
.svc-ruby-section .container {
  position: relative;
  z-index: 1;
}
.svc-ruby-section .container::before,
.svc-ruby-section .container::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.svc-ruby-section .container::before {
  width: 200px;
  height: 200px;
  top: 50%;
  left: -60px;
  background: rgba(163, 7, 29, 0.04);
  animation: svc-float-3 10s ease-in-out infinite;
}
.svc-ruby-section .container::after {
  width: 120px;
  height: 120px;
  top: 20%;
  right: -30px;
  border: 2px solid rgba(163, 7, 29, 0.08);
  animation: svc-float-4 8s ease-in-out infinite;
}
@keyframes svc-float-3 {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.06; }
  50% { transform: translateY(-30px) rotate(45deg); opacity: 0.1; }
}
@keyframes svc-float-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15px, 20px) scale(1.15); }
}
.svc-ruby-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}
.svc-ruby-header .h-02 {
  color: #fff;
  margin-bottom: var(--space--space-16, 16px);
}
.svc-ruby-header .p-text-01 {
  color: rgba(255, 255, 255, 0.8);
  max-width: 550px;
  margin: 0 auto;
}

/* Two-card grid */
.svc-ruby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
}

/* Card */
.svc-ruby-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 31, 35, 0.08);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.5s ease;
  box-shadow: 0 2px 12px rgba(31, 31, 35, 0.06);
}
.svc-ruby-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(163, 7, 29, 0.12);
  border-color: rgba(163, 7, 29, 0.15);
}

/* Icon */
.svc-ruby-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--qs-petal-frost);
  color: var(--qs-ruby-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.4s ease,
              color 0.4s ease;
}
.svc-ruby-card:hover .svc-ruby-card-icon {
  transform: scale(1.1) rotate(-3deg);
  background: var(--qs-ruby-red);
  color: #fff;
}

/* Title */
.svc-ruby-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--qs-shadow-grey);
  margin-bottom: 0.75rem;
}

/* Description */
.svc-ruby-card-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(31, 31, 35, 0.7);
  margin: 0;
}

/* Divider */
.svc-ruby-card-divider {
  height: 1px;
  background: rgba(31, 31, 35, 0.1);
  margin: 1.5rem 0;
}

/* Label */
.svc-ruby-card-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(31, 31, 35, 0.45);
  margin: 0 0 0.75rem;
}

/* Checklist */
.svc-ruby-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.svc-ruby-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--qs-shadow-grey);
}
.svc-ruby-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--qs-petal-frost);
  color: var(--qs-ruby-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.svc-ruby-card:hover .svc-ruby-check {
  background: var(--qs-ruby-red);
  color: #fff;
}

/* Card CTA link */
.svc-ruby-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--qs-ruby-red);
  text-decoration: none;
  border: 1.5px solid var(--qs-ruby-red);
  border-radius: 100px;
  padding: 0.6rem 1.25rem;
  transition: gap 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.svc-ruby-card-link:hover {
  gap: 0.75rem;
  background: var(--qs-ruby-red);
  color: #fff;
}

@media screen and (max-width: 767px) {
  .svc-ruby-grid {
    grid-template-columns: 1fr;
  }
  .svc-ruby-card {
    padding: 2rem;
  }
  .svc-ruby-section {
    padding: 3.5rem 0;
  }
}

/* Integrated approach card */
.services-integrated {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--qs-platinum);
  border-radius: 16px;
  position: relative;
  border: 1px solid rgba(31, 31, 35, 0.08);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.5s ease;
}
.services-integrated:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(163, 7, 29, 0.12);
  border-color: rgba(163, 7, 29, 0.15);
}
.services-integrated .btn-link {
  border: 1.5px solid var(--qs-shadow-grey) !important;
}
.services-integrated-accent {
  width: 60px;
  height: 4px;
  background: var(--qs-ruby-red);
  border-radius: 2px;
  margin: 0 auto var(--space--space-24, 24px);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.services-integrated:hover .services-integrated-accent {
  width: 120px;
}

@media screen and (max-width: 767px) {
  .services-combined-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .services-integrated {
    padding: 2rem 1.5rem;
  }
}

/* Careers page: unified gradient section */
.careers-main {
  padding: var(--space--space-40, 40px) 0 var(--space--space-60, 60px);
  background: linear-gradient(180deg, var(--qs-petal-frost) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
/* Subtle always-on animated gradient — shifting background */
.careers-main {
  background-size: 200% 200%;
  background-image: linear-gradient(
    135deg,
    rgba(248, 214, 218, 0.35) 0%,
    #fff 25%,
    rgba(248, 214, 218, 0.25) 50%,
    #fff 75%,
    rgba(248, 214, 218, 0.3) 100%
  );
  animation: careers-shimmer 16s ease-in-out infinite;
}
@keyframes careers-shimmer {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
.careers-main > .container {
  position: relative;
  z-index: 1;
}
.careers-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.careers-why-left {
  padding: 2rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(31, 31, 35, 0.06);
  position: relative;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease,
              border-color 0.5s ease;
}
.careers-why-left:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(163, 7, 29, 0.1);
  border-color: rgba(163, 7, 29, 0.12);
}
.careers-why-left::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 0;
  width: 4px;
  height: 60px;
  background: var(--qs-ruby-red);
  border-radius: 0 2px 2px 0;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.careers-why-left:hover::before {
  height: calc(100% - 4rem);
}
.careers-why-left .p-text-01 {
  max-width: 450px;
}
.careers-why-right-heading {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(31, 31, 35, 0.5);
  margin: 0 0 1.25rem;
}
.careers-expect-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.careers-expect-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(31, 31, 35, 0.08);
  border-left: 3px solid var(--qs-petal-frost);
  box-shadow: 0 2px 8px rgba(31, 31, 35, 0.04);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease,
              border-left-color 0.4s ease;
}
.careers-expect-card:hover {
  transform: translateY(-4px) translateX(4px);
  box-shadow: 0 12px 28px rgba(163, 7, 29, 0.1);
  border-color: rgba(163, 7, 29, 0.1);
  border-left-color: var(--qs-ruby-red);
}
.careers-expect-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: var(--qs-petal-frost);
  color: var(--qs-ruby-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.4s ease,
              color 0.4s ease;
}
.careers-expect-card:hover .careers-expect-icon {
  transform: scale(1.1) rotate(-3deg);
  background: var(--qs-ruby-red);
  color: #fff;
}
.careers-expect-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--qs-shadow-grey);
  margin: 0;
  transition: color 0.4s ease;
}
.careers-expect-card:hover .careers-expect-title {
  color: var(--qs-ruby-red);
}
.careers-expect-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(31, 31, 35, 0.6);
  margin: 0;
}

/* Open Positions — full-width card with Shadow Grey border */
.careers-positions-inner {
  margin-top: 3.5rem;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid rgba(31, 31, 35, 0.1);
  box-shadow: 0 2px 12px rgba(31, 31, 35, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease,
              border-color 0.5s ease;
}
/* Top accent — Ruby Red thin line */
.careers-positions-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--qs-ruby-red);
}
.careers-positions-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(31, 31, 35, 0.08);
  border-color: rgba(31, 31, 35, 0.18);
}

/* Submit CV — floaters background */
.careers-submit {
  padding: var(--space--space-60, 60px) 0 var(--space--space-80, 80px);
  position: relative;
  overflow: hidden;
  background: #fff;
}
/* Reuse floater shapes */
.careers-submit::before,
.careers-submit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.careers-submit::before {
  width: 400px;
  height: 400px;
  top: -150px;
  right: -80px;
  background: var(--qs-petal-frost);
  opacity: 0.6;
  animation: svc-float-1 12s ease-in-out infinite;
}
.careers-submit::after {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -60px;
  background: var(--qs-hot-fuchsia);
  opacity: 0.07;
  animation: svc-float-2 15s ease-in-out infinite;
}
/* Reuse particle spans */
.careers-submit-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.careers-submit-particles span {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  background: var(--qs-petal-frost);
  border-radius: 50%;
  bottom: -10px;
  animation: svc-rise linear infinite;
}
.careers-submit-particles span:nth-child(1) { left: 15%; width: 7px; height: 7px; animation-duration: 9s; animation-delay: 0s; }
.careers-submit-particles span:nth-child(2) { left: 35%; width: 5px; height: 5px; animation-duration: 13s; animation-delay: 2s; }
.careers-submit-particles span:nth-child(3) { left: 55%; width: 8px; height: 8px; animation-duration: 10s; animation-delay: 4s; }
.careers-submit-particles span:nth-child(4) { left: 75%; width: 4px; height: 4px; animation-duration: 14s; animation-delay: 1s; }
.careers-submit-particles span:nth-child(5) { left: 88%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 3s; }
.careers-submit-particles span:nth-child(6) { left: 48%; width: 9px; height: 9px; animation-duration: 16s; animation-delay: 5s; opacity: 0.5; }

.careers-submit-inner {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}
.careers-submit-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(31, 31, 35, 0.08);
  box-shadow: 0 4px 20px rgba(31, 31, 35, 0.06);
  text-align: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease;
}
.careers-submit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(163, 7, 29, 0.1);
}

@media screen and (max-width: 767px) {
  .careers-why-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .careers-expect-grid {
    grid-template-columns: 1fr;
  }
  .careers-submit-card {
    padding: 1.5rem;
  }
}

/* Careers form inputs match site styling */
.careers-form .footer-form-input {
  background: #fff;
  border-color: rgba(31, 31, 35, 0.2);
  color: var(--qs-shadow-grey);
}
/* File upload input styling */
.careers-form input[type="file"] {
  padding: 0 !important;
  border: 1px solid rgba(31, 31, 35, 0.15);
  border-radius: 10px;
  background: var(--qs-platinum);
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.careers-form input[type="file"]::file-selector-button {
  padding: 0.65rem 1.25rem;
  margin-right: 1rem;
  border: none;
  border-radius: 8px;
  background: var(--qs-ruby-red);
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.careers-form input[type="file"]::file-selector-button:hover {
  background: var(--qs-hot-fuchsia);
}
.careers-form .footer-form-input:focus {
  border-color: var(--qs-ruby-red);
  box-shadow: 0 0 0 3px rgba(163, 7, 29, 0.1);
}
.careers-form .footer-form-submit {
  background-color: var(--qs-ruby-red);
  color: #fff;
  width: auto;
  padding: 0.75rem 2rem;
}
.careers-form .footer-form-submit .primary-button-text {
  color: #fff;
}
