/* Qualivision Services — bilingual content additions (loaded on every page, after the page
   stylesheets). Only styles for elements introduced with the EN/FR content: language switcher,
   FAQ disclosure, service facts, industry chips and the six-step methodology. The approved
   layouts in style.css and the page stylesheets are unchanged. */

/* Screen-reader-only text (same rule as quote-request.css, needed on every page for the switcher). */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Language switcher (EN | FR) ---------- */
.language {
  gap: 4px;
}
.language a,
.language-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 34px;
  padding: 4px 7px;
  border-radius: 6px;
  letter-spacing: .04em;
}
.language-current {
  color: var(--teal-ink);
  background: rgb(0 169 189 / 10%);
  font-weight: 750;
}
.language a {
  color: inherit;
  transition: color .2s, background-color .2s;
}
.language a:hover,
.language a:focus-visible {
  color: var(--teal-ink);
  background: rgb(0 169 189 / 8%);
}

/* ---------- FAQ: native <details> disclosure (works without JavaScript) ---------- */
.service-faq-item > summary,
.services-faq-item > summary {
  list-style: none;
  cursor: pointer;
  border-radius: 4px;
}
.service-faq-item > summary::-webkit-details-marker,
.services-faq-item > summary::-webkit-details-marker {
  display: none;
}
.service-faq-item > summary:focus-visible,
.services-faq-item > summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.service-faq-item[open] h3 > span,
.services-faq-item[open] h3 > span {
  background: #08718a;
}
.service-faq-item[open] h3 > span::after,
.services-faq-item[open] h3 > span::after {
  display: none;
}
.service-faq-item > p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  padding-right: 44px;
  margin-top: 12px;
}
.contact-faq-list .service-faq-item > p {
  font-size: 15px;
}

/* ---------- FAQ section layout (Services, Industries): copy column + FAQ card ---------- */
.services-faq { padding-block: var(--space-section); background: #f8fcfe; }
.services-faq-grid { display: grid; grid-template-columns: .79fr 1fr; gap: 90px; align-items: center; }
.services-faq-copy h2 { font-size: var(--h2); line-height: 1.14; }
.services-faq-copy > p:not(.eyebrow) { max-width: 470px; font-size: 20px; line-height: 1.45; margin: 25px 0 24px; }
.services-faq-card { background: white; border: 1px solid #e7eff4; border-radius: 10px; box-shadow: var(--shadow); padding-inline: 32px; }
.services-faq-item { padding: 20px 0; border-bottom: 1px solid #cbd9e1; }
.services-faq-item:last-child { border-bottom: 0; }
.services-faq-item h3 { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 17.5px; letter-spacing: -.02em; line-height: 1.35; }
.services-faq-item p { font-size: 16px; line-height: 1.5; padding-right: 44px; margin-top: 12px; }
@media (max-width: 1100px) {
  .services-faq-grid { grid-template-columns: .85fr 1fr; gap: 35px; }
  .services-faq-copy > p:not(.eyebrow) { font-size: 17px; }
  .services-faq-card { padding-inline: 22px; }
  .services-faq-item h3 { font-size: 15px; }
  .services-faq-item p { font-size: 14px; padding-right: 15px; }
}
@media (max-width: 640px) {
  .services-faq-grid { grid-template-columns: 1fr; gap: 29px; }
  .services-faq-copy > p:not(.eyebrow) { font-size: 16px; margin: 20px 0; }
  .services-faq .button { font-size: 15px; }
  .services-faq-card { padding-inline: 18px; }
  .services-faq-item { padding-block: 18px; }
  .services-faq-item h3 { font-size: 14px; gap: 12px; }
  .services-faq-item h3 > span { --faq-toggle: 24px; --faq-bar: 10px; }
  .services-faq-item p { font-size: 14px; padding-right: 0; }
}


/* ---------- Service cards: titles may wrap (longer EN/FR names) ---------- */
.service-content h3 {
  white-space: normal;
  line-height: 1.2;
}

/* Services page: challenge / what we provide / benefit */
.service-facts {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 0 0 22px;
}
.service-facts > div {
  border-top: 1px solid #e4edf2;
  padding-top: 10px;
}
.service-facts dt {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 4px;
}
.service-facts dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

/* Home: "View all services" button under the card grid */
.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.section-actions .button-outline {
  color: var(--teal-ink);
  background: white;
}

/* Service detail pages: main activities (bold lead-in, e.g. the four control points) */
.service-activities strong {
  color: var(--text);
}

/* ---------- Home: industries strip (replaces the prototype client logos) ---------- */
.industry-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
}
.industry-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #d5e4eb;
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: 16px;
  font-weight: 650;
  transition: color .2s, border-color .2s;
}
.industry-chips a:hover,
.industry-chips a:focus-visible {
  color: var(--teal-ink);
  border-color: var(--teal-ink);
}

/* ---------- Six-step methodology (Quality & Methodology page) ---------- */
.steps.is-six {
  --step-gap: 18px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.steps.is-six h3 {
  font-size: 16px;
}
.steps.is-six p {
  font-size: 14.5px;
}

@media (max-width: 1100px) {
  .steps.is-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }
  .steps.is-six li:nth-child(3) .step-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .steps.is-six {
    --step-gap: 44px;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--step-gap);
  }
  .steps.is-six li:nth-child(3) .step-arrow {
    display: block;
  }
  .service-faq-item > p {
    font-size: 14px;
    padding-right: 0;
  }
  .industry-chips a {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Split sections (service detail / methodology): longer EN/FR words must not widen the grid on
   small screens. */
.service-split > * {
  min-width: 0;
}
.service-split-copy h2,
.service-media-keywords {
  overflow-wrap: break-word;
}
@media (max-width: 640px) {
  .service-split-copy .button {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }
}

/* Consent row: privacy policy link */
.quote-consent label a {
  color: var(--teal-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact details (footer, contact and quote sidebars): configured phone / email are links */
.site-footer .contact a,
.contact-details a,
.quote-contact-card li a {
  color: inherit;
  overflow-wrap: anywhere;
}
.site-footer .contact a:hover,
.contact-details a:hover,
.quote-contact-card li a:hover {
  color: var(--teal-ink);
}

/* The footer CTA uses a teal background, so its label must stay white in every state. */
.site-footer .contact .footer-whatsapp,
.site-footer .contact .footer-whatsapp:hover,
.site-footer .contact .footer-whatsapp:focus-visible {
  color: #fff;
}

/* ---------- Legal pages (legal notice, privacy policy, terms of use) ---------- */
.legal-inner {
  padding-inline: var(--inner);
  max-width: 900px;
}
.legal-hero {
  color: white;
  background: linear-gradient(90deg, #002333 0%, rgb(0 35 51 / 96%) 55%, rgb(0 35 51 / 88%)), url('../images/home/home-automotive-sector.webp') right center / cover no-repeat;
  background-color: var(--navy-dark);
  padding-block: 44px 40px;
}
.legal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #bce8ee;
  font-size: 15px;
  margin-bottom: 24px;
}
.legal-breadcrumb a {
  color: #83e5ed;
}
.legal-hero .eyebrow {
  color: #83e5ed;
}
.legal-hero h1 {
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -.03em;
  overflow-wrap: break-word;
}
.legal-intro {
  color: #e1eaf0;
  font-size: 18px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 720px;
}
.legal-updated {
  color: #bce8ee;
  font-size: 14px;
  margin-top: 14px;
}
.legal-body {
  background: white;
  padding-block: var(--space-section);
}
.legal-draft {
  padding: 16px 20px;
  border: 1px solid #b8e5ee;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.55;
}
.legal-section {
  padding-top: 30px;
}
.legal-section h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.legal-section p,
.legal-list li {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}
.legal-section p + p {
  margin-top: 10px;
}
.legal-section strong {
  color: var(--text);
}
.legal-list + p {
  margin-top: 12px;
}
.legal-list {
  margin: 10px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
/* M11: numbered sections, company facts, in-page table of contents (plain anchor links, no JavaScript). */
.legal-section {
  scroll-margin-top: 24px;
}
.legal-num {
  color: var(--teal-ink);
  font-variant-numeric: tabular-nums;
}
.legal-facts {
  margin: 4px 0 0;
  border-top: 1px solid var(--border);
}
.legal-facts div {
  display: grid;
  grid-template-columns: minmax(170px, 34%) 1fr;
  gap: 4px 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.legal-facts dt {
  color: var(--text);
  font-weight: 650;
  font-size: 15.5px;
}
.legal-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  overflow-wrap: anywhere;
}
.legal-toc {
  margin-bottom: 30px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal-toc-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 32px;
  font-size: 14.5px;
  line-height: 1.45;
}
.legal-toc li {
  break-inside: avoid;
  padding-block: 3px;
  color: var(--muted);
}
.legal-toc a {
  color: var(--navy);
  text-decoration: none;
}
.legal-toc a:hover {
  color: var(--teal-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 1101px) {
  .legal-inner {
    max-width: 1180px;
  }
  .legal-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
  .legal-toc {
    position: sticky;
    top: 24px;
    margin-bottom: 0;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
  .legal-toc ol {
    columns: 1;
  }
  .legal-content {
    max-width: 800px;
  }
}
.legal-section a {
  color: var(--teal-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .legal-hero {
    padding-block: 32px 30px;
  }
  .legal-hero h1 {
    font-size: 34px;
  }
  .legal-intro {
    font-size: 16px;
  }
  .legal-section h2 {
    font-size: 21px;
  }
  .legal-section p,
  .legal-list li {
    font-size: 15px;
  }
  .legal-toc {
    padding: 16px 18px;
  }
  .legal-toc ol {
    columns: 1;
  }
  .legal-facts div {
    grid-template-columns: 1fr;
  }
  .legal-facts dd {
    font-size: 15px;
  }
}

/* Service detail heroes: the eight services have titles and copy of different lengths (EN/FR).
   On desktop/tablet the hero keeps its approved height as a minimum and grows only when the copy
   needs it; the copy column is capped so it never runs under the keyword box; two-line titles use a
   smaller size. The phone layout (service-detail.css, max-width 640px) is unchanged. */
@media (min-width: 641px) {
  .service-detail-page .service-hero { height: auto; min-height: 549px; }
  .service-detail-page .service-hero-inner { height: auto; min-height: 549px; padding-bottom: 44px; }
  .service-detail-page .service-hero-copy { max-width: 640px; }
  .service-detail-page .service-hero h1.is-long { font-size: 50px; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .service-detail-page .service-hero, .service-detail-page .service-hero-inner { min-height: 540px; }
  .service-detail-page .service-hero-copy { max-width: 540px; }
  .service-detail-page .service-hero h1.is-long { font-size: 42px; }
}
@media (max-width: 640px) {
  .service-detail-page .service-hero h1.is-long { font-size: clamp(30px, 8.5vw, 40px); }
}
