/* Clarté & proximité — shared tokens, components, then responsive adaptations. */
:root {
  color-scheme: light;
  --color-bg: #FAFAF7;
  --color-bg-alt: #EEF2F4;
  --color-surface: #FFFFFF;
  --color-surface-2: #E5EBEE;
  --color-primary: #F2CD4B;
  --color-primary-strong: #EFAB39;
  --color-text: #162331;
  --color-text-soft: #445462;
  --color-text-muted: #526171;
  --color-border: #D5DDE1;
  --ink: var(--color-text);
  --ink-2: var(--color-text-soft);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --soft: var(--color-bg-alt);
  --brand: var(--color-primary);
  --brand-dark: var(--color-primary-strong);
  --radius: 10px;
  --shadow: 0 10px 24px rgb(22 35 49 / 7%);
  --focus: #315F82;
  --container: min(1180px, calc(100% - 48px));
}
/* Dark surfaces own their text tokens; gold is reserved for accents and actions. */
.site-header, .site-footer, .section-dark {
  color-scheme: dark;
  --color-bg: #0C1218;
  --color-bg-alt: #162331;
  --color-surface: #162331;
  --color-surface-2: #253543;
  --color-text: #F5F7FA;
  --color-text-soft: #C7D0D9;
  --color-text-muted: #B8C5CF;
  --color-border: #425361;
  --ink: var(--color-text);
  --ink-2: var(--color-text-soft);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --soft: var(--color-bg-alt);
  --focus: #F2CD4B;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body { margin: 0; font-family: "Segoe UI", Arial, system-ui, sans-serif; color: var(--ink); background: var(--color-bg); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--color-bg-alt); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.035em; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 4.2vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); }
h3 { font-size: 1.18rem; }
p { margin: 0; color: var(--muted); }
h1, h2, h3, p, a, label { overflow-wrap: break-word; }
:where(.container, .hero-grid, .service-grid, .contact-grid, .form-row, .footer-grid) > * { min-width: 0; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: -9999px; padding: 12px 16px; background: #FFF; color: #162331; z-index: 9999; }
.skip-link:focus { left: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .73rem; font-weight: 600; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; flex-shrink: 0; background: var(--brand); }
.eyebrow-light { color: var(--ink-2); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px 20px; border-radius: 6px; border: 1px solid var(--brand); background: var(--brand); color: #0C1218; font-weight: 650; font-size: .92rem; cursor: pointer; text-align: center; transition: background .2s ease, border-color .2s ease; }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button-small { min-height: 44px; padding: 10px 16px; font-size: .86rem; }
.button-secondary { background: transparent; color: var(--ink); border-color: #8B9BA6; }
.button-secondary:hover { background: var(--color-surface-2); border-color: var(--ink-2); }
.button-full { width: 100%; }
.button:disabled { opacity: .65; cursor: not-allowed; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* Shared navigation: details works without JavaScript. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); }
.nav-wrap { min-height: 96px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand-logo { display: block; position: relative; width: 176px; height: 88px; overflow: hidden; }
.brand-logo img { position: absolute; max-width: none; width: 210px; height: 105px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.main-nav a:hover, .services-menu > summary:hover { color: var(--brand); }
.main-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 6px; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; display: block; margin: 5px 0; background: var(--ink); }
.services-menu { position: relative; }
.services-menu > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.services-menu > summary::-webkit-details-marker { display: none; }
.services-menu > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.services-menu[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.services-submenu { position: absolute; top: 100%; left: 0; width: 310px; max-width: calc(100vw - 40px); margin: 0; padding: 12px; list-style: none; border: 1px solid var(--line); border-radius: 8px; background: var(--color-bg-alt); box-shadow: var(--shadow); max-height: calc(100dvh - 116px); overflow-y: auto; }
.services-submenu a { width: 100%; padding: 10px 12px; line-height: 1.4; }
.main-nav .nav-mobile-cta { display: none; color: #0C1218; }
.main-nav .nav-mobile-cta:hover { color: #0C1218; }
.site-header[data-home-header] .nav-wrap, .site-header[data-home-header] .main-nav { gap: 16px; }
.site-header .header-phone { white-space: nowrap; gap: 8px; flex-shrink: 0; color: #0C1218; }
.header-phone img { filter: brightness(0); flex-shrink: 0; }
.site-header .phone-mobile { display: none; }
@media (max-width: 1150px) {
  .site-header .phone-desktop { display: none; }
  .site-header .main-nav .phone-mobile { display: inline-flex; color: #0C1218; }
  .site-header[data-home-header] .nav-wrap { gap: 0; }
  .site-header[data-home-header] .main-nav { gap: 4px; }
}

/* Homepage: equal prominence for the six activities. */
.hero { padding-block: 64px 40px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero-lead { font-size: 1.05rem; margin-top: 26px; max-width: 660px; color: var(--ink-2); }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.hero-note { font-size: .83rem; margin-top: 16px; }
.prediagnostic-panel { background: #F0F2EC; border: 1px solid #D9DFDE; padding: 30px; border-radius: 12px; }
.prediagnostic-panel h2 { font-size: clamp(1.55rem, 2.3vw, 1.9rem); margin-bottom: 18px; }
.prediagnostic-panel p { font-size: .9rem; }
.prediagnostic-panel ol { list-style: none; padding: 0; margin: 24px 0 8px; counter-reset: prediag; }
.prediagnostic-panel li { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid #CDD6D4; font-size: .86rem; counter-increment: prediag; }
.prediagnostic-panel li::before { content: "0" counter(prediag); color: var(--muted); font-size: .75rem; }
.audience-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; border-block: 1px solid var(--line); padding-block: 26px; color: var(--ink); font-size: 1rem; font-weight: 600; }
.audience-strip span { display: flex; align-items: center; justify-content: center; text-align: center; }
.section-heading { max-width: 820px; margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 18px; }
.section-heading-row, #services .section-heading { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px 40px; align-items: end; }
#services .section-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
#services .section-heading h2 { margin: 0; }
.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
#services .service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.service-card { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--color-surface); display: flex; flex-direction: column; align-items: flex-start; }
.service-card:hover { border-color: #8B9BA6; }
.service-card h3 { margin-bottom: 16px; }
.service-card p { font-size: .92rem; }
.service-card .text-link { margin-top: auto; padding-top: 20px; }
#services .service-card h3 { min-height: 44px; }
#services .service-card p { margin-bottom: 20px; }
#services .service-card .text-link { width: 100%; border-top: 1px solid var(--line); justify-content: space-between; text-decoration: none; }
.service-number { position: absolute; right: 26px; top: 26px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; }
.icon { width: 28px; height: 28px; flex: 0 0 auto; }
/* Existing gold SVGs retain their source; a dark surface keeps their contrast. */
.service-media { margin-bottom: 22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: #162331; }
.service-media .icon { width: 26px; height: 26px; }
.service-media:has(.service-photo) { width: 100%; height: 150px; overflow: hidden; }
.service-photo { width: 100%; height: 100%; object-fit: cover; }
.timeline { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 24px; }
.timeline-item { border-top: 1px solid var(--line); padding-top: 18px; }
.timeline-item > span { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 14px; }
.section-dark .timeline-item > span { color: var(--brand); }
.timeline-item h3 { font-size: 1rem; margin-bottom: 12px; }
.timeline-item p { font-size: .86rem; }
.recharge-summary { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.recharge-summary h2 { font-size: 1.85rem; margin-bottom: 16px; }
.recharge-summary p { max-width: 720px; }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.project-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--color-surface); }
.project-visual { min-height: 96px; display: flex; align-items: flex-end; padding: 20px; background: var(--color-bg-alt); }
.project-visual span { color: var(--ink-2); font-size: .8rem; }
.project-copy { padding: 22px; }
.project-copy > span { color: var(--muted); font-size: .75rem; }
.project-copy h3 { margin: 8px 0 14px; }
.project-copy p { font-size: .88rem; }
.trust-section { border-top: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.trust-grid h2 { margin-bottom: 22px; }
.trust-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.trust-cards div { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--color-surface); display: flex; flex-direction: column; }
.trust-cards span { font-size: .86rem; color: var(--muted); margin-top: 8px; }

/* Contact remains explicitly simulated until a delivery service is connected. */
.contact-section { background: var(--color-bg-alt); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-intro h2 { margin-bottom: 20px; }
.contact-note { margin-top: 28px; padding: 18px; border-radius: 8px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.contact-note strong { font-size: .88rem; }
.contact-note span { font-size: .86rem; color: var(--muted); }
.contact-form { padding: 30px; border-radius: 12px; background: var(--color-surface); border: 1px solid var(--line); display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
label { display: grid; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid #647583; border-radius: 6px; background: #FFF; padding: 12px; color: var(--ink); font-size: 1rem; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border: 2px solid #a32222; }
.field-error { display: block; color: #a32222; font-size: .875rem; font-weight: 500; }
.field-error:empty { display: none; }
.message-count { display: block; color: #465564; font-size: .875rem; font-weight: 400; }
input::placeholder, textarea::placeholder { color: #596876; opacity: 1; }
textarea { resize: vertical; min-height: 130px; }
.file-field input::file-selector-button { border: 1px solid #8B9BA6; border-radius: 4px; padding: 10px; background: var(--soft); color: var(--ink); cursor: pointer; margin-right: 10px; }
.file-field > span { color: var(--muted); font-weight: 400; }
.check-field { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.check-field input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; accent-color: #315F82; }
.form-status { min-height: 20px; font-size: .9rem; color: var(--ink); }

/* Footer and service pages share the same light/dark surface system. */
.site-footer { background: var(--color-bg); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3,minmax(0,1fr)); gap: 32px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-grid p, .footer-grid a, .footer-grid span { color: var(--ink-2); font-size: .86rem; }
.footer-grid a:not(.brand) { min-height: 32px; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid strong { font-size: .9rem; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .8rem; }
.breadcrumb { padding-top: 24px; font-size: .85rem; color: var(--ink-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 12px; }
.breadcrumb a { display: inline-block; padding-block: 8px; text-decoration: underline; text-underline-offset: 4px; }
.service-hero { padding-top: 40px; }
.service-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.service-copy { max-width: 860px; }
.service-copy > h2 { margin-bottom: 24px; }
.service-copy > p { font-size: 1.05rem; }
.media-placeholder { margin: 0; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--color-bg-alt); text-align: center; }
.media-placeholder .icon { width: 64px; height: 64px; padding: 14px; background: #162331; border-radius: 10px; }
.media-placeholder figcaption { color: var(--ink-2); }
.media-placeholder figcaption span { font-size: .85rem; color: var(--muted); }
.media-placeholder img:not(.icon) { width: 100%; height: auto; object-fit: cover; border-radius: 8px; }
.service-hero-media { min-height: 300px; }
.service-steps { padding: 0; margin: 0; list-style: none; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; background: var(--color-surface); padding: 0 22px; }
.faq summary { cursor: pointer; padding-block: 20px; font-weight: 600; }
.faq p { padding-bottom: 22px; }
.source-note { margin-top: 24px; }
.source-note a { font-size: .85rem; text-decoration: underline; }
.related-services { padding-block: 40px 64px; }
.related-services h2 { font-size: 1.3rem; margin-bottom: 18px; }
.related-services ul { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0; list-style: none; }
.reveal { opacity: 1; transform: none; }
.legal-content { max-width: 860px; }
.legal-content h1 { margin: 24px 0 40px; }
.legal-content section + section { margin-top: 36px; }
.legal-content h2 { font-size: 1.5rem; margin-bottom: 16px; }
.legal-content p + p { margin-top: 14px; }
.legal-content p a, .privacy-notice a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.privacy-notice, .form-required-note { font-size: .88rem; }

@media (max-width: 1150px) {
  .site-header { position: relative; }
  .site-header.nav-ready { position: sticky; }
  .nav-wrap { flex-wrap: wrap; gap: 0; }
  .main-nav { width: 100%; margin: 0; padding: 12px 0 20px; flex-wrap: wrap; }
  .nav-ready .main-nav { display: none; position: absolute; top: 100%; left: 24px; right: 24px; width: auto; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--color-bg-alt); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 4px; max-height: calc(100dvh - 112px); overflow-y: auto; flex-wrap: nowrap; }
  .nav-ready .main-nav.is-open { display: flex; }
  .nav-ready .menu-toggle { display: block; min-width: 48px; min-height: 48px; }
  .nav-cta { display: none; }
  .main-nav .nav-mobile-cta { display: inline-flex; margin-top: 12px; flex-shrink: 0; }
  .services-menu { width: 100%; }
  .services-menu > summary { padding-block: 10px; }
  .services-submenu { position: static; width: 100%; max-width: 100%; max-height: none; box-shadow: none; margin-block: 4px 12px; }
  .hero-grid { gap: 32px; }
  .timeline { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .contact-grid, .trust-grid { gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .trust-grid, .recharge-summary { grid-template-columns: 1fr; }
  .prediagnostic-panel { max-width: none; }
  #services .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .recharge-summary .button { justify-self: start; }
}
@media (max-width: 720px) {
  :root { --container: calc(100% - 32px); }
  .section { padding-block: 48px; }
  .hero { padding-block: 36px 28px; }
  h1 { font-size: clamp(2rem, 7.5vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .text-link { justify-content: center; }
  .prediagnostic-panel { padding: 24px; }
  .audience-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-heading-row, #services .section-heading, .service-grid, .timeline, .project-grid, .form-row { grid-template-columns: 1fr; }
  #services .service-grid { grid-template-columns: 1fr; }
  #services .service-card h3 { min-height: 0; }
  .service-card { padding: 24px; }
  .section-heading-row { gap: 16px; }
  .contact-form { padding: 24px 18px; }
  .footer-bottom { flex-direction: column; }
  .service-hero-media { min-height: 220px; }
  .faq details { padding-inline: 16px; }
  .recharge-summary .button { justify-self: stretch; }
}
@media (max-width: 480px) {
  .footer-grid, .trust-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Country search stays local; the number remains the primary field on small screens. */
.phone-field { min-width: 0; }
.phone-field > label { display: block; margin-bottom: 6px; }
.phone-row { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 8px; align-items: start; }
.phone-number { min-width: 0; }
.phone-number input { width: 100%; }
.phone-country { position: relative; }
.phone-country summary { cursor: pointer; padding: 12px 8px; border: 1px solid #647583; border-radius: 8px; background: white; color: #172532; font-size: 14px; white-space: nowrap; }
.phone-country summary:focus-visible, .phone-country-list button:focus-visible { outline: 3px solid #826400; outline-offset: 2px; }
.phone-country-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(310px, calc(100vw - 64px)); padding: 12px; border: 1px solid #647583; border-radius: 8px; background: white; box-shadow: 0 8px 24px #17253226; }
.phone-country-list { max-height: 220px; overflow-y: auto; margin: 8px 0; }
.phone-country-list button { display: block; width: 100%; padding: 10px 8px; text-align: left; border: 0; border-radius: 4px; background: white; color: #172532; font: inherit; cursor: pointer; }
.phone-country-list button:hover, .phone-country-list button[aria-pressed=true] { background: #fff2b8; }
