/* ==========================================================================
   QTT Design System v2  (Nov 2026)
   Loaded LAST on every page. Refines the existing brand (ink + blue) with one
   type system, one header, one footer and shared page components.
   ========================================================================== */

:root {
  --ink: #0B0D12;
  --ink-2: #12151C;
  --ink-3: #1A1E27;
  --ink-line: #262B36;
  --paper: #FFFFFF;
  --paper-2: #F6F7FA;
  --paper-3: #EEF1F6;
  --line: #E3E6EC;
  --text: #1F2430;
  --text-2: #4B5263;
  --text-3: #6B7282;
  --on-ink: #F3F5F9;
  --on-ink-2: #A9B0BE;
  --blue: #3B5CFF;
  --blue-2: #2946D9;
  --blue-soft: #EEF1FF;
  --blue-ink: #8FA0FF;
  --wa: #1FA855;
  --wa-2: #178A45;
  --live: #1E8E5A;
  --live-soft: #E4F5EC;
  --dev: #9A5B00;
  --dev-soft: #FDF1DD;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11,13,18,.04), 0 8px 24px rgba(11,13,18,.06);
  --font-head: "Manrope", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --qtt-blue: #3B5CFF;
  --qtt-blue-dark: #2946D9;
  --qtt-black: #0B0D12;
  --qtt-surface: #12151C;
}

/* ---- Base typography ---- */
html { scroll-behavior: smooth; }
body,
body .body,
body p,
body li,
body input,
body textarea,
body select,
body button {
  font-family: var(--font-body);
}
body { color: var(--text); font-size: 16px; line-height: 1.65; background: var(--paper); -webkit-font-smoothing: antialiased; }
body p { line-height: 1.7; }
body h1, body h2, body h3, body h4, body h5, body h6,
body .qtt-section-title, body .qtt-product-name {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
body h1 { font-weight: 800; }
body h2, body h3 { font-weight: 700; }
body a { text-underline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.qtt-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Porto loader: never block the page for more than a moment */
body.loading-overlay-showing .loading-overlay { transition: opacity .2s ease; }

/* ==========================================================================
   Header
   ========================================================================== */
.qtt-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(11,13,18,.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.qtt-header-inner {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.qtt-logo { display: inline-flex; align-items: center; flex: none; }
.qtt-logo img { height: 32px; width: auto; display: block; }
.qtt-menu { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.qtt-menu-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.qtt-menu-list > li { position: relative; }
.qtt-menu-link,
.qtt-menu-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .75rem;
  border-radius: 8px;
  background: none; border: 0;
  color: #D9DEE8;
  font: 600 .9rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.qtt-menu-link:hover, .qtt-menu-btn:hover,
.qtt-menu-list > li.is-open > .qtt-menu-btn { color: #fff; background: rgba(255,255,255,.07); }
.qtt-menu-link[aria-current="page"] { color: #fff; }
.qtt-menu-btn::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); opacity: .7; transition: transform .15s ease;
}
.qtt-menu-list > li.is-open > .qtt-menu-btn::after { transform: rotate(225deg); margin-top: 3px; }
.qtt-sub {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(11,13,18,.18);
  padding: .6rem;
  display: none;
}
.qtt-sub.qtt-sub-wide { min-width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: .1rem; }
.qtt-menu-list > li.is-open > .qtt-sub { display: block; }
.qtt-menu-list > li.is-open > .qtt-sub.qtt-sub-wide { display: grid; }
.qtt-sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.qtt-sub a {
  display: block; padding: .6rem .75rem; border-radius: 8px;
  text-decoration: none; color: var(--text);
}
.qtt-sub a b { display: block; font: 600 .9rem/1.3 var(--font-body); color: var(--ink); }
.qtt-sub a span { display: block; font-size: .8rem; line-height: 1.4; color: var(--text-3); margin-top: .15rem; }
.qtt-sub a:hover { background: var(--paper-2); }
.qtt-sub a:hover b { color: var(--blue); }
.qtt-sub .qtt-sub-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .7rem; }
.qtt-sub .qtt-sub-all b { color: var(--blue); }
.qtt-menu-cta { display: flex; align-items: center; gap: .5rem; }
.qtt-menu-cta .qtt-btn { padding: .6rem 1rem; }
.qtt-menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.qtt-menu-toggle span.bars, .qtt-menu-toggle span.bars::before, .qtt-menu-toggle span.bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.qtt-menu-toggle span.bars::before, .qtt-menu-toggle span.bars::after { content: ""; position: absolute; left: 0; }
.qtt-menu-toggle span.bars::before { top: -6px; }
.qtt-menu-toggle span.bars::after { top: 6px; }
.qtt-menu-toggle[aria-expanded="true"] span.bars { background: transparent; }
.qtt-menu-toggle[aria-expanded="true"] span.bars::before { transform: translateY(6px) rotate(45deg); }
.qtt-menu-toggle[aria-expanded="true"] span.bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1199px) {
  .qtt-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
  .qtt-menu-toggle { display: inline-flex; }
  .qtt-menu {
    display: none;
    position: fixed; left: 0; right: 0; top: 68px; bottom: 0;
    background: var(--ink);
    padding: 1rem max(16px, env(safe-area-inset-left, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 1rem;
  }
  .qtt-header.is-menu-open .qtt-menu { display: flex; }
  .qtt-menu-list { flex-direction: column; align-items: stretch; gap: 0; }
  .qtt-menu-list > li { border-bottom: 1px solid var(--ink-line); }
  .qtt-menu-link, .qtt-menu-btn { width: 100%; justify-content: space-between; padding: 1rem .25rem; font-size: 1rem; border-radius: 0; }
  .qtt-menu-link:hover, .qtt-menu-btn:hover, .qtt-menu-list > li.is-open > .qtt-menu-btn { background: none; }
  .qtt-sub, .qtt-sub.qtt-sub-wide {
    position: static; transform: none; min-width: 0; box-shadow: none;
    background: var(--ink-2); border-color: var(--ink-line); margin: 0 0 .9rem; grid-template-columns: 1fr;
  }
  .qtt-sub a b { color: #fff; }
  .qtt-sub a span { color: var(--on-ink-2); }
  .qtt-sub a:hover { background: var(--ink-3); }
  .qtt-sub .qtt-sub-all { border-top-color: var(--ink-line); }
  .qtt-sub .qtt-sub-all b { color: var(--blue-ink); }
  .qtt-menu-cta { flex-direction: column; align-items: stretch; }
  .qtt-menu-cta .qtt-btn { padding: .9rem 1rem; font-size: 1rem; }
  body.qtt-menu-locked { overflow: hidden; }
}


/* ==========================================================================
   Buttons
   ========================================================================== */
body .qtt-btn {
  border-radius: var(--radius-sm);
  padding: .7rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .925rem;
  line-height: 1.2;
}
body .qtt-btn-primary { background: var(--blue); color: #fff; }
body .qtt-btn-primary:hover { background: var(--blue-2); color: #fff; }
body .qtt-btn-wa { background: var(--wa); color: #fff; }
body .qtt-btn-wa:hover { background: var(--wa-2); color: #fff; }
body .qtt-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
body .qtt-btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
body .qtt-btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }

/* ==========================================================================
   Page hero (inner pages) + home hero refinement
   ========================================================================== */
body .qtt-page-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(59,92,255,.22), transparent 60%),
    linear-gradient(180deg, #0B0D12 0%, #0E1118 100%);
  overflow: hidden;
}
body .qtt-page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
body .qtt-page-hero > * { position: relative; z-index: 1; }
body .qtt-page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; max-width: 22ch; margin: .25rem 0 0; color: #fff; }
body .qtt-page-hero p.lead { color: var(--on-ink-2); font-size: 1.125rem; max-width: 40rem; margin-top: 1rem; }
body .qtt-page-hero .qtt-product-category { color: var(--blue-ink); letter-spacing: .1em; }
body .qtt-breadcrumb { font-size: .85rem; color: var(--on-ink-2); }
body .qtt-breadcrumb a { color: #C8CFDD; }

body .qtt-hero { min-height: 0; padding: 6rem 0 5rem; }
body .qtt-hero h1 { font-weight: 800; letter-spacing: -0.03em; }

/* ==========================================================================
   Long-form content (articles, service pages)
   ========================================================================== */
body .custom-page-wrapper .spacer { display: none; }
body .custom-page-wrapper > .container,
body .custom-page-wrapper .container-xl-custom { padding-top: 3.5rem !important; padding-bottom: 3rem !important; }
body .custom-page-wrapper .col-lg-10 > p,
body .custom-page-wrapper .col-lg-10 > ul,
body .custom-page-wrapper .col-lg-10 > ol,
body .custom-page-wrapper .col-lg-10 > h2,
body .custom-page-wrapper .col-lg-10 > h3,
body .custom-page-wrapper .col-lg-10 > blockquote { max-width: 46rem; }
body .custom-page-wrapper h2 { font-size: 1.6rem !important; color: var(--ink); margin-top: 2.75rem !important; }
body .custom-page-wrapper h3 { font-size: 1.2rem !important; color: var(--ink); }
body .custom-page-wrapper p, body .custom-page-wrapper li { color: var(--text-2); font-size: 1.025rem; }
body .custom-page-wrapper p.lead { font-size: 1.2rem; color: var(--text); line-height: 1.6; }
body .custom-page-wrapper a:not(.qtt-btn):not(.qtt-chip) { color: var(--blue); }
body .list.list-icons li > i { color: var(--blue); }

/* ==========================================================================
   Sections & cards (shared)
   ========================================================================== */
body .qtt-section { background: var(--paper-2); }
body .qtt-section.is-white { background: var(--paper); }
body .qtt-section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
body .qtt-eyebrow { letter-spacing: .12em; font-size: .78rem; }
body .qtt-product-card,
body .qtt-offer-card,
body .qtt-related-panel { border-radius: var(--radius); border-color: var(--line); }
body .qtt-chip { border-radius: 999px; }

.qtt-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0,1fr); }
@media (min-width: 640px) { .qtt-grid-2, .qtt-grid-3, .qtt-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 992px) { .qtt-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .qtt-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.qtt-card {
  display: flex; flex-direction: column; gap: .6rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; color: var(--text); text-decoration: none; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.qtt-card:hover { border-color: #CDD3DE; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.qtt-card h3 { font-size: 1.15rem; margin: 0; color: var(--ink); }
.qtt-card p { margin: 0; color: var(--text-2); font-size: .95rem; }
.qtt-card .qtt-card-more { margin-top: auto; padding-top: .4rem; font-weight: 600; font-size: .9rem; color: var(--blue); }
.qtt-card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 1.1rem;
}
.qtt-section-dark .qtt-card { background: var(--ink-2); border-color: var(--ink-line); color: var(--on-ink); }
.qtt-section-dark .qtt-card h3 { color: #fff; }
.qtt-section-dark .qtt-card p { color: var(--on-ink-2); }
.qtt-section-dark a.qtt-card:hover { border-color: #3A4152; color: var(--on-ink); }
.qtt-section-dark .qtt-card-icon { background: rgba(59,92,255,.16); color: var(--blue-ink); }

/* Status badges for products */
.qtt-status { display: inline-flex; align-items: center; gap: .4rem; font: 600 .75rem/1 var(--font-body); padding: .35rem .6rem; border-radius: 999px; letter-spacing: .02em; }
.qtt-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.qtt-status-live { background: var(--live-soft); color: var(--live); }
.qtt-status-dev { background: var(--dev-soft); color: var(--dev); }

/* Product showcase (screenshots) */
.qtt-showcase { display: grid; gap: 1.5rem; grid-template-columns: minmax(0,1fr); }
@media (min-width: 992px) { .qtt-showcase { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.qtt-shot-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.qtt-shot { aspect-ratio: 16 / 10; background: var(--paper-3); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.qtt-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.qtt-shot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: linear-gradient(#F3F4F7, #ECEEF2); border-bottom: 1px solid var(--line); z-index: 1; }
.qtt-shot::after { content: ""; position: absolute; left: 10px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #FF5F57; box-shadow: 10px 0 0 #FEBC2E, 20px 0 0 #28C840; z-index: 2; }
.qtt-shot img { padding-top: 22px; }
.qtt-shot-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.qtt-shot-body h3 { margin: 0; font-size: 1.25rem; color: var(--ink); }
.qtt-shot-body p { margin: 0; color: var(--text-2); font-size: .95rem; }
.qtt-shot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.qtt-shot-kind { font-size: .78rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.qtt-shot-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; }

/* Split block (text + list) */
.qtt-split { display: grid; gap: 2rem; grid-template-columns: minmax(0,1fr); align-items: start; }
@media (min-width: 992px) { .qtt-split { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.qtt-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.qtt-checklist li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; color: var(--text-2); }
.qtt-checklist li::before { content: ""; width: 18px; height: 18px; margin-top: .2rem; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233B5CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.qtt-section-dark .qtt-checklist li { color: var(--on-ink-2); }

/* Problem → solution table rows */
.qtt-ps { display: grid; gap: .75rem; }
.qtt-ps-row { display: grid; grid-template-columns: minmax(0,1fr); gap: .5rem 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
@media (min-width: 768px) { .qtt-ps-row { grid-template-columns: 1fr 1.3fr; } }
.qtt-ps-row b { color: var(--ink); font-family: var(--font-head); }
.qtt-ps-row span { color: var(--text-2); font-size: .97rem; }

/* CTA band */
.qtt-cta-band { background: var(--ink); color: #fff; padding: 4rem 0; position: relative; overflow: hidden; }
.qtt-cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 15% 120%, rgba(59,92,255,.35), transparent 60%); }
.qtt-cta-band > * { position: relative; }
.qtt-cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 26ch; margin: 0; }
.qtt-cta-band p { color: var(--on-ink-2); max-width: 40rem; margin: .9rem 0 0; }
.qtt-cta-band .qtt-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.qtt-site-footer { background: var(--ink); color: var(--on-ink-2); padding: 4rem 0 0; font-size: .925rem; }
.qtt-site-footer .qtt-fwrap { width: min(100% - 32px, 1280px); margin: 0 auto; }
.qtt-fgrid { display: grid; gap: 2rem; grid-template-columns: minmax(0,1fr); padding-bottom: 3rem; }
@media (min-width: 640px) { .qtt-fgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .qtt-fgrid { grid-template-columns: 1.6fr repeat(5, minmax(0,1fr)); } }
.qtt-fbrand img { height: 32px; width: auto; }
.qtt-fbrand p { margin: 1rem 0; color: var(--on-ink-2); max-width: 22rem; line-height: 1.6; }
.qtt-fcontact { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.qtt-fcontact a { color: #DDE2EC; text-decoration: none; }
.qtt-fcontact a:hover { color: #fff; text-decoration: underline; }
.qtt-site-footer h4 { color: #fff; font: 700 .8rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1rem; }
.qtt-site-footer ul.qtt-flinks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.qtt-site-footer ul.qtt-flinks a { color: var(--on-ink-2); text-decoration: none; }
.qtt-site-footer ul.qtt-flinks a:hover { color: #fff; }
.qtt-fbottom { border-top: 1px solid var(--ink-line); padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .85rem; }
.qtt-fbottom p { margin: 0; color: var(--on-ink-2); }
.qtt-fbottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.qtt-fbottom nav a { color: var(--on-ink-2); text-decoration: none; }
.qtt-fbottom nav a:hover { color: #fff; }
.qtt-fsocial { display: flex; gap: .5rem; margin-top: 1rem; }
.qtt-fsocial a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-2); border: 1px solid var(--ink-line); color: #DDE2EC; }
.qtt-fsocial a:hover { color: #fff; border-color: #3A4152; }

/* ==========================================================================
   Misc
   ========================================================================== */
body .scroll-to-top { display: none !important; }
@media (max-width: 575px) {
  body .qtt-page-hero { padding: 3rem 0 2.5rem; }
  body .qtt-hero { padding: 3.5rem 0 3rem; }
}

/* Enforce brand fonts over legacy Porto demo skins */
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .qtt-page-hero h1 { font-family: var(--font-head) !important; }
html body .qtt-page-hero h1 { font-weight: 800; }

/* Homepage industry links + showcase spacing */
a.qtt-industry { display: block; text-decoration: none; color: inherit; }
a.qtt-industry p { color: var(--text-2); }
a.qtt-industry:hover h3 { color: var(--blue); }
body .qtt-industries-grid { grid-template-columns: minmax(0,1fr); }
@media (min-width: 576px) { body .qtt-industries-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 992px) { body .qtt-industries-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
#work .qtt-showcase { margin-top: 1rem; }
html body .qtt-card h3, html body .qtt-shot-body h3, html body .qtt-offer-card h3, html body .qtt-case-card h3, html body .qtt-industry h3 { text-transform: none; letter-spacing: -0.01em; }
body.qtt-menu-locked .qtt-wa-float { display: none; }
@media (min-width: 768px) { .qtt-showcase.qtt-showcase-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ==========================================================================
   Legacy page normalisation (Porto template content inside .main)
   ========================================================================== */
/* Never hide content behind old loaders / scroll animations */
.loading-overlay { display: none !important; }
html body .appear-animation { opacity: 1 !important; animation: none !important; transform: none !important; }

/* One type system everywhere */
html body .main, html body .main p, html body .main li, html body .main td, html body .main th,
html body .main label, html body .main input, html body .main textarea, html body .main select { font-family: var(--font-body) !important; }
html body .main h1, html body .main h2, html body .main h3, html body .main h4, html body .main h5, html body .main h6,
html body .main .custom-font-secondary, html body .main .custom-font-tertiary { font-family: var(--font-head) !important; text-transform: none !important; letter-spacing: -0.015em; color: var(--ink); }
html body .main .qtt-section-dark h2, html body .main .qtt-section-dark h3,
html body .main .qtt-case-card h3, html body .main .qtt-cta-band h2,
html body .main .qtt-page-hero h1, html body .main .qtt-product-hero h1,
html body .main .qtt-hero h1, html body .main .qtt-trust h2, html body .main .qtt-contact h2,
html body .main .qtt-final-cta h2, html body .main .qtt-mission h2 { color: #fff; }
html body .main p, html body .main li { font-size: 1rem; line-height: 1.7; }
html body .main .text-color-default, html body .main p.text-color-default { color: var(--text-2) !important; }
html body .main h2.text-6, html body .main .text-6 { font-size: clamp(1.45rem, 2.4vw, 1.8rem) !important; line-height: 1.25 !important; }
html body .main h3.text-4, html body .main h3.text-5 { font-size: 1.15rem !important; line-height: 1.35 !important; }
html body .main h2.text-7 { font-size: clamp(1.6rem, 3vw, 2.2rem) !important; line-height: 1.2 !important; }

/* Reading column: centred, never a narrow column stranded on the left */
html body .main .row > .col-lg-8:only-child,
html body .main .row > .col-lg-9:only-child { margin-left: auto; margin-right: auto; max-width: 820px; }
html body .main .custom-page-wrapper .row > .col-lg-10.offset-lg-1 { margin-left: auto !important; margin-right: auto !important; max-width: 820px; flex: 0 0 100%; }
html body .main .custom-page-wrapper .col-lg-10 > * { max-width: none; }
html body .main .custom-page-wrapper img { border-radius: var(--radius); height: auto; }

/* Old Porto buttons → brand buttons */
html body .main .btn:not(.btn-close) {
  text-transform: none !important; letter-spacing: 0 !important;
  border-radius: var(--radius-sm) !important; font-family: var(--font-body) !important; font-weight: 600 !important;
  font-size: .95rem !important; padding: .75rem 1.3rem !important; box-shadow: none !important;
}
html body .main .btn-primary, html body .main .btn-dark, html body .main .btn-modern, html body .main .btn-secondary {
  background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important;
}
html body .main .btn-primary:hover, html body .main .btn-dark:hover, html body .main .btn-modern:hover, html body .main .btn-secondary:hover {
  background: var(--blue-2) !important; border-color: var(--blue-2) !important;
}
html body .main .btn-outline, html body .main .btn-light, html body .main .btn-default {
  background: transparent !important; color: var(--ink) !important; border: 1px solid var(--line) !important;
}

/* Old CTA boxes, sidebars, forms */
html body .main .call-to-action {
  background: var(--paper) !important; border: 1px solid var(--line); border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}
html body .main aside .card, html body .main .bg-dark, html body .main .bg-color-dark { border-radius: var(--radius); }
html body .main aside .bg-dark, html body .main aside .bg-color-dark { background: var(--ink-2) !important; }
html body .main .form-control {
  border-radius: var(--radius-sm) !important; border: 1px solid var(--line) !important; padding: .75rem .9rem !important;
  font-size: .975rem !important; min-height: 46px; box-shadow: none !important; background: #fff !important;
}
html body .main .form-control:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(59,92,255,.15) !important; }
html body .main .qtt-contact .form-control { background: var(--ink-2) !important; border-color: var(--ink-line) !important; color: #fff !important; }
html body .main .list.list-icons li { padding-left: 1.6rem; }
html body .main hr { border-color: var(--line); opacity: 1; }
/* Centre lone content columns in legacy sections */
html body .main .qtt-section > .container > .row > .col-lg-8,
html body .main .qtt-section > .container > .row > .col-lg-9 { margin-left: auto; margin-right: auto; }
/* Outline buttons on dark heroes */
html body .qtt-product-hero .qtt-btn-outline, html body .qtt-page-hero .qtt-btn-outline,
html body .qtt-product-hero .btn-light, html body .qtt-product-hero .btn-outline { color: #fff !important; border-color: rgba(255,255,255,.4) !important; background: transparent !important; }
html body .qtt-product-hero .qtt-btn-outline:hover, html body .qtt-page-hero .qtt-btn-outline:hover { border-color: #fff !important; background: rgba(255,255,255,.06) !important; }
/* Light buttons inside dark/coloured boxes */
html body .main .bg-primary .btn-light, html body .main .bg-dark .btn-light, html body .main .bg-color-dark .btn-light,
html body .main .qtt-section-dark .btn-light { background: #fff !important; color: var(--ink) !important; border-color: #fff !important; }
html body .main .card.bg-primary { background: var(--ink-2) !important; border-radius: var(--radius) !important; }
/* Images never wider than their column */
html body .main img { max-width: 100% !important; height: auto; }
html body .main .qtt-shot img { height: 100%; }
/* Logo size is fixed wherever the header/footer sits in the DOM */
html body .qtt-header .qtt-logo img,
html body .qtt-site-footer .qtt-fbrand img { height: 32px !important; width: auto !important; max-width: none !important; }

/* ==========================================================================
   Ads landing page (/get-quote/)
   ========================================================================== */
.qtt-lp-header .qtt-header-inner { justify-content: space-between; }
.qtt-lp-head-cta { display: flex; gap: .5rem; }
@media (max-width: 575px) { .qtt-lp-head-cta .qtt-btn-ghost { display: none; } }
.qtt-lp-hero { padding: 3.5rem 0 4rem; }
.qtt-lp-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0,1fr); align-items: start; }
@media (min-width: 992px) { .qtt-lp-grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; } }
.qtt-lp-hero h1 { max-width: 20ch; }
.qtt-lp-points { margin: 1.5rem 0 0; }
.qtt-lp-points li { color: var(--on-ink-2) !important; }
.qtt-lp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.qtt-lp-form { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 24px 60px rgba(0,0,0,.35); scroll-margin-top: 90px; }
.qtt-lp-form h2 { color: var(--ink) !important; font-size: 1.45rem !important; margin: 0 0 .35rem; }
.qtt-lp-sub { color: var(--text-2) !important; font-size: .95rem !important; margin: 0 0 1.1rem; }
.qtt-lp-form form { display: grid; gap: .35rem; }
.qtt-lp-form label { font-weight: 600; font-size: .88rem; color: var(--ink); margin-top: .5rem; }
.qtt-lp-form label span { font-weight: 400; color: var(--text-3); }
.qtt-lp-form input, .qtt-lp-form select, .qtt-lp-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .85rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--text); background: #fff; min-height: 48px;
}
.qtt-lp-form input:focus, .qtt-lp-form select:focus, .qtt-lp-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,92,255,.15); }
.qtt-lp-form button { width: 100%; margin-top: 1rem; border: 0; cursor: pointer; }
.qtt-lp-form button:disabled { opacity: .7; cursor: wait; }
.qtt-lp-error { color: #B42318 !important; font-size: .9rem !important; margin: .5rem 0 0; }
.qtt-lp-fine { font-size: .88rem !important; color: var(--text-3) !important; text-align: center; margin: .75rem 0 0; }
.qtt-lp-fine a { color: var(--blue); }
.qtt-lp-done h2 { margin-bottom: .5rem; }
.qtt-lp-done p { color: var(--text-2) !important; margin-bottom: 1.25rem; }
.qtt-lp-head-cta { flex-wrap: nowrap; }
@media (max-width: 767px) { .qtt-lp-head-cta .qtt-btn-ghost { display: none !important; } .qtt-lp-head-cta .qtt-btn { padding: .55rem .9rem; } }
/* Landing hero: readable checklist on dark */
html body .qtt-lp-points li { color: #D5DAE3 !important; font-size: 1rem; }
html body .qtt-page-hero .qtt-checklist li::before { background-color: rgba(143,160,255,.18); }
@media (max-width: 400px) {
  .qtt-lp-hero h1 { font-size: 1.75rem !important; }
  .qtt-lp-actions .qtt-btn { flex: 1 1 100%; }
  .qtt-lp-form { padding: 1.25rem; }
}
