/* D3 Consulting — shared brand navigation and the approved development-path design. */
@font-face { font-family: "D3 Serenity"; src: url('../Fonts/6035377/6a263edc-eb7c-4213-80cd-eeae51f92c52.woff') format('woff'); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: "D3 Serenity"; src: url('../Fonts/6035386/9af84493-4711-4ac7-bd28-3607074e1e47.woff') format('woff'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "D3 Serenity"; src: url('../Fonts/6035394/023657f1-5424-41ee-ad30-6edd727f9d4b.woff') format('woff'); font-style: normal; font-weight: 700; font-display: swap; }
:root { color-scheme: dark; --d3-accent: #3bd1db; --d3-accent-hover: #70e1e8; --d3-accent-ink: #041316; }
.d3-nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3.4rem); margin-left: auto; }
.d3-nav-links a { color: #fff; font: 400 1.15rem/1.5 serenity, sans-serif; text-decoration: none; padding: .65rem 0; }
.d3-nav-links a:hover, .d3-nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .65rem; text-decoration-thickness: 1px; }
.d3-nav-links a:focus-visible, .consulting-page a:focus-visible, .privacy-page a:focus-visible, .privacy-page summary:focus-visible { outline: 2px solid #3bd1db; outline-offset: 6px; }
.consulting-page, .privacy-page { margin: 0; background: #000; color: #f4f4f4; font: 300 1.15rem/1.4 "D3 Serenity", Arial, sans-serif; }
.consulting-page *, .privacy-page * { box-sizing: border-box; }
.consulting-page h1, .consulting-page h2, .privacy-page h1, .privacy-page h2 { font-weight: 300; }
.consulting-page h1 { font-size: clamp(3.2rem, 5.5vw, 5.2rem); line-height: 1.08; letter-spacing: -.025em; margin: 1.3rem 0; }
.consulting-page h2 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.15; letter-spacing: -.012em; margin: 0 0 .4rem; }
.consulting-page p { margin: 0; }
.d3-shell { width: min(1240px, calc(100% - 8rem)); margin-inline: auto; }
.d3-header { display: flex; align-items: center; min-height: 112px; position: relative; z-index: 2; }
.d3-brand { display: inline-flex; padding: .6rem 0; flex: 0 0 auto; }
.d3-brand img { width: 26px; height: 48px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; background: #fff; color: #000; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.consulting-hero { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; min-height: 530px; padding: 1rem 0 3rem; }
.hero-copy { z-index: 1; padding: 0; }
.eyebrow { font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; padding-bottom: .25rem; max-width: 292px; }
.hero-copy > p { max-width: 430px; font-size: 1.42rem; line-height: 1.35; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.8rem; margin-top: 1.7rem; }
.button-book { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: .75rem 1.6rem; background: var(--d3-accent); border: 1px solid var(--d3-accent); color: var(--d3-accent-ink); font-size: 1.19rem; font-weight: 700; line-height: 1.15; border-radius: 40px; text-decoration: none; transition: background .15s; }
.button-book:hover { background: var(--d3-accent-hover); border-color: var(--d3-accent-hover); color: var(--d3-accent-ink); }
.text-link { color: #f3f3f3; text-underline-offset: .4rem; text-decoration-thickness: 1px; padding-block: .6rem; }
.star-scene { margin: 0 -2.5rem 0 -1.5rem; overflow: hidden; position: relative; aspect-ratio: 4/3; }
.star-scene canvas, .star-scene .star-noscript { position: absolute; inset: 0; width: 100%; height: 100%; }
.star-scene .star-noscript { opacity: 1; object-fit: contain; background: #000; }
.consulting-section { padding: 1.75rem 0 1.9rem; scroll-margin-top: 2rem; }
.consulting-page .consulting-section { padding: clamp(2.25rem, 4vw, 3.5rem) 0; }
.consulting-page .readiness-section { padding-top: clamp(2.5rem, 5vw, 4.25rem); }
.section-intro { color: #c9c9c9; font-size: 1.25rem; }
.levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; margin: 1.8rem 0 0; }
.level { padding: 0 1.4rem; border-left: 1px solid #696969; }
.level:first-child { padding-left: 0; border-left: 0; }
.level:last-child { padding-right: 0; }
.level img { width: 100%; height: 90px; object-fit: contain; object-position: left center; filter: invert(1); display: block; margin-bottom: .7rem; }
.level-name { font-weight: 700; line-height: 1.15; font-size: 1.35rem; margin: 0; overflow-wrap: anywhere; }
.level-number { display: block; font-weight: 700; font-size: 1.25rem; margin-bottom: .1rem; }
.readiness { width: 100%; border-collapse: collapse; margin-top: 1.8rem; table-layout: fixed; font-size: 1.2rem; line-height: 1.25; }
.readiness th { font-weight: 700; text-align: left; }
.readiness thead th { padding: 0 1.4rem 1rem; vertical-align: bottom; }
.readiness thead th:first-child { width: 30%; }
.readiness tbody th, .readiness td { padding: .65rem 1.4rem; border-top: 1px solid #737373; vertical-align: top; }
.readiness tbody th { padding-left: .2rem; }
.readiness td + td { border-left: 1px solid #636363; }
.readiness tfoot td { font-weight: 700; border-top: 1px solid #929292; padding-top: 1rem; }
.readiness tfoot a { color: var(--d3-accent); text-decoration: none; display: flex; gap: .85rem; align-items: baseline; width: fit-content; min-height: 44px; padding-block: .5rem; font-size: clamp(1.18rem, 1.6vw, 1.35rem); line-height: 1.35; transition: color .18s; }
.readiness tfoot a > span:last-child { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.readiness tfoot a:hover, .readiness tfoot a:focus-visible { color: var(--d3-accent-hover); }
.next-step-arrow { color: inherit; flex: 0 0 auto; font: 700 1.55rem/1 Arial, sans-serif; letter-spacing: -.08em; white-space: nowrap; padding-right: .08em; transition: transform .18s ease; }
.readiness tfoot a:hover .next-step-arrow, .readiness tfoot a:focus-visible .next-step-arrow { transform: translateX(.2em); }
.program-results { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 1.65rem 0 0; gap: 1.5rem; }
.program-results li { display: flex; align-items: center; gap: 1rem; padding: .3rem 0; font-size: 1.32rem; }
.program-results img { width: 24px; height: 24px; }
.program-marker { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; }
.marker-0 { background: #81c23c; }
.marker-1 { background: #f9db4b; }
.marker-2 { background: #3bd1db; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.program-details { margin-top: 1.6rem; color: #bcbcbc; font-size: 1.15rem; }
.program-details summary { cursor: pointer; color: var(--d3-accent); display: flex; align-items: center; gap: .7rem; width: fit-content; min-height: 44px; padding: .65rem 0; font-size: clamp(1.18rem, 1.6vw, 1.35rem); font-weight: 700; line-height: 1.35; list-style: none; transition: color .18s; }
.program-details summary::-webkit-details-marker { display: none; }
.program-details summary > span { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.program-details summary:hover, .program-details summary:focus-visible { color: var(--d3-accent-hover); }
.program-toggle-icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; transition: transform .18s ease; }
.program-details .program-toggle-open, .program-details[open] .program-toggle-closed { display: none; }
.program-details[open] .program-toggle-open { display: inline; }
.program-details[open] .program-toggle-icon { transform: rotate(180deg); }
.program-details summary:focus-visible { outline: 2px solid #3bd1db; outline-offset: 5px; }
.program-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.7rem; list-style: none; padding: 1rem 0; }
.program-steps strong { display: block; color: #fff; margin-bottom: .45rem; }
.program-steps span { display: block; color: #3bd1db; margin-bottom: .25rem; }
@supports (grid-template-rows: subgrid) {
  .program-steps > li { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
}
.scope-note { font-size: 1.05rem; max-width: 900px; }
.references-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.8rem; }
.reference-case { display: flex; flex-direction: column; min-width: 0; padding: 0 1.4rem; border-left: 1px solid #535353; overflow-wrap: anywhere; hyphens: auto; }
.reference-case:first-child { padding-left: 0; border-left: 0; }
.reference-case:last-child { padding-right: 0; }
.reference-brand { display: flex; align-items: center; justify-content: center; height: 90px; background: #f4f4f1; padding: 14px 20px; margin-bottom: 1.35rem; }
.reference-logo { display: block; max-width: 100%; width: 220px; height: 62px; object-fit: contain; }
.reference-logo-certania { width: 62px; }
.reference-case h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.18; margin: 0 0 .7rem; }
.reference-case .reference-project { color: #c7c7c7; font-size: 1.08rem; line-height: 1.35; margin: 0; }
.reference-result { display: flex; flex-direction: column; gap: .35rem; margin: 1.5rem 0 !important; }
.reference-metric { color: #3bd1db; font-size: clamp(2.1rem, 3.5vw, 3rem); font-weight: 300; line-height: 1.1; }
.reference-result > span { color: #e3e3e3; font-size: 1.05rem; }
.reference-testimonial { padding-top: 1.2rem; margin: 0; }
.reference-testimonial blockquote { margin: 0; font-size: 1.1rem; line-height: 1.4; }
.reference-testimonial blockquote p { margin: 0; }
.reference-testimonial figcaption { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.1rem; font-size: .98rem; line-height: 1.3; }
.reference-testimonial figcaption > img { flex: 0 0 96px; width: 96px; height: 96px; object-fit: cover; border: 1px solid #535353; border-radius: 12px; }
.reference-testimonial figcaption > span { min-width: 0; }
.reference-testimonial figcaption strong { font-size: 1.1rem; }
.reference-testimonial figcaption strong, .reference-testimonial figcaption span span { display: block; }
.reference-testimonial figcaption span span { color: #b5b5b5; }
@media (min-width: 801px) {
  /* Share content rows so text wrapping never shifts a neighbouring portrait. */
  .reference-case { display: grid; grid-template-rows: subgrid; grid-row: span 7; }
  .reference-result, .reference-testimonial { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
  .reference-metric { align-self: end; }
}
@media (max-width: 800px) {
  .references-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .reference-case, .reference-case:first-child, .reference-case:last-child { padding: 1.8rem 0 0; border: 0; }
  .reference-case:first-child { padding-top: 0; }
  .reference-brand { width: min(100%, 300px); }
  .reference-project { max-width: 44ch; }
  .reference-result { margin-block: 1.1rem !important; }
  .reference-testimonial blockquote { max-width: 55ch; }
}
.consulting-page .consulting-contact { position: relative; padding-top: 4rem; padding-bottom: 4.25rem; }
.consulting-contact > * { position: relative; }
.consulting-contact .contact-stars { position: absolute; right: -2rem; top: 0; width: 48%; height: 100%; opacity: .72; }
.contact-stars canvas { display: block; width: 100%; height: 100%; }
.consulting-contact .button-book { margin-top: 1.75rem; }
.booking-fallback { display: block; width: fit-content; margin-top: 1.05rem; color: #bcbcbc; font-size: 1rem; text-underline-offset: .25rem; }
.d3-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #858585; padding: 1.3rem 0 2rem; font-size: 1rem; }
.d3-footer a { color: #f4f4f4; text-decoration: none; padding-block: .5rem; }
.d3-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1.2rem; }
.privacy-main { max-width: 1000px; padding: 2rem 0 4rem; overflow-wrap: anywhere; hyphens: auto; }
.privacy-main h1 { font-size: clamp(2.7rem, 5vw, 4rem); margin: 0 0 2rem; }
.privacy-main details { border-top: 1px solid #737373; padding: 1.25rem 0; }
.privacy-main summary { font-size: 1.5rem; cursor: pointer; padding-block: .4rem; }
.privacy-main h3 { font-weight: 400; font-size: 1.6rem; margin: 1.4rem 0 .6rem; }
.privacy-main h4 { font-size: 1.25rem; margin: 1.3rem 0 .45rem; }
.privacy-main p { color: #d0d0d0; margin: .7rem 0; }
.privacy-main a { color: #3bd1db; overflow-wrap: anywhere; }
.booking-open { overflow: hidden; }
.booking-dialog { width: min(1120px, calc(100% - 2rem)); max-width: none; height: min(850px, calc(100dvh - 2rem)); max-height: none; padding: 0; border: 1px solid #777; border-radius: 12px; color: #f4f4f4; background: #111; }
.booking-dialog::backdrop { background: rgba(0,0,0,.78); }
.booking-dialog[open] { display: flex; flex-direction: column; }
.booking-heading { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; }
.booking-heading h2 { font-size: 1.6rem; margin: 0; }
.booking-heading button { flex: 0 0 auto; border: 1px solid #999; border-radius: 6px; padding: .55rem .9rem; background: #222; color: #fff; font: inherit; cursor: pointer; }
.booking-heading button:focus-visible { outline: 2px solid #3bd1db; outline-offset: 3px; }
.booking-dialog iframe { border: 0; display: block; width: 100%; flex: 1; min-height: 0; background: #fff; color-scheme: light; }
.booking-dialog-fallback { color: #ddd; font-size: 1rem; padding: .7rem 1.25rem; text-underline-offset: .25rem; }
@media (min-width: 1400px) { .consulting-hero { min-height: 600px; } }
@media (max-width: 1000px) {
  .d3-shell { width: calc(100% - 7rem); }
  .d3-header { min-height: 80px; }
  .consulting-hero { min-height: 390px; padding-bottom: 2rem; grid-template-columns: 1fr 1fr; }
  .consulting-page h1 { font-size: 3.2rem; }
  .hero-copy > p { font-size: 1.25rem; }
  .hero-actions { gap: .6rem 1.5rem; }
  .button-book { font-size: 1.19rem; padding-inline: 1.35rem; min-height: 45px; }
  .star-scene { margin-inline: -2.5rem; }
  .level { padding-inline: 1rem; }
  .level-name { font-size: 1.18rem; }
  .level img { height: 80px; }
  .readiness { font-size: 1.1rem; }
  .readiness td, .readiness thead th { padding-inline: 1rem; }
  .program-results li { font-size: 1.1rem; gap: .7rem; }
}
@media (max-width: 680px) {
  .d3-shell { width: calc(100% - 2.5rem); }
  .d3-header { min-height: 85px; }
  .d3-brand img { width: 25px; height: 50px; }
  .d3-nav-links { gap: .65rem; flex-wrap: wrap; justify-content: flex-end; }
  .d3-nav-links a { font-size: .95rem; }
  .consulting-hero { grid-template-columns: 1fr; padding: 1.6rem 0 .6rem; }
  .consulting-page h1 { font-size: clamp(2.7rem, 10vw, 3.9rem); max-width: 520px; }
  .hero-copy > p { max-width: 380px; }
  .eyebrow { font-size: 1rem; max-width: 310px; }
  .hero-actions { margin-top: 1.4rem; }
  .star-scene { margin: .4rem -.6rem 0; aspect-ratio: 3/2; }
  .section-intro { font-size: 1.1rem; }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 0; margin-top: 1.8rem; }
  .level { padding-inline: 1.25rem; }
  .level:nth-child(odd) { border-left: 0; padding-left: 0; }
  .level:last-child { grid-column: 1 / -1; width: 60%; }
  .level img { max-width: 180px; height: 75px; margin-bottom: .65rem; }
  .level-name { font-size: 1.25rem; }
  .readiness { font-size: 1rem; margin-top: 1.5rem; }
  .readiness thead th:first-child { width: 27%; }
  .readiness thead th, .readiness td { padding: .8rem .55rem; }
  .readiness tbody th { font-size: .95rem; padding-right: .5rem; }
  .readiness th, .readiness td { overflow-wrap: anywhere; hyphens: auto; }
  .readiness tfoot a { flex-direction: column; gap: .5rem; }
  .program-results { grid-template-columns: 1fr; gap: 1.1rem; }
  .program-results li { font-size: 1.2rem; }
  .program-steps { grid-template-columns: 1fr 1fr; }
  .consulting-contact .contact-stars { right: 0; width: 60%; opacity: .55; }
  .d3-footer { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .button-book, .readiness tfoot a, .next-step-arrow, .program-details summary, .program-toggle-icon { transition: none; }
  .readiness tfoot a:hover .next-step-arrow, .readiness tfoot a:focus-visible .next-step-arrow { transform: none; }
}
@media (max-width: 480px) {
  .level { padding-left: .7rem; padding-right: .2rem; }
  .level-name { overflow-wrap: normal; }
  .readiness thead tr, .readiness tbody tr, .readiness tfoot tr { display: grid; grid-template-columns: 1fr 1fr; }
  .readiness thead th:first-child, .readiness tfoot td:first-child { display: none; }
  .readiness tbody th { grid-column: 1 / -1; padding: 1rem 0 .4rem; font-size: 1.1rem; }
  .readiness tbody td { border-top: 0; padding: .4rem .65rem 1rem 0; font-size: 1.05rem; }
  .readiness tbody td + td { padding-left: .7rem; }
  .readiness thead th { padding-left: 0; }
  .readiness thead th:last-child { padding-left: .7rem; }
  .readiness tfoot td { padding-left: 0; }
  .readiness tfoot td:last-child { padding-left: .7rem; }
}
