:root {
  --deep: #005b9e;
  --masthead: #061f30;
  --light-text: #d0e0e8;
  --surface: var(--whml-surface);
  --soft-surface: var(--whml-surface-soft);
  --accent: var(--blue-deep);
  --focus: #e59424;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
body { min-width: 0; }
h1, h2, h3 { line-height: 1.1; font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(2.05rem, 3.5vw, 3.35rem); letter-spacing: -.025em; }
h3 { font-size: 1.45rem; }
p { color: var(--muted); font-size: 1.125rem; }
a { color: inherit; }
button, select { font: inherit; }
button, summary, select { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 1500; transform: translateY(-180%); background: var(--surface); padding: .75rem 1rem; }
.skip:focus { transform: none; }

whml-visitor-header .brand { flex-shrink: 1; }
.masthead .brand .brand-type { display: grid; width: max-content; max-width: 100%; }
.brand-wordmark { white-space: nowrap; }
.brand .brand-wordmark, .footer-wordmark,
html[data-whml-contrast='high'] .brand .brand-wordmark,
html[data-whml-contrast='high'] .footer-intro .footer-wordmark { color: #fff !important; }
.brand-name { contain: inline-size; display: block; text-wrap: pretty; overflow-wrap: anywhere; }
.masthead .brand-type > .brand-name { font-size: .875rem; }
.utility-controls, .visitor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; }
.masthead .utility-controls .language-picker { margin-block-end: 0; }
.navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(.8rem, 2.2vw, 1.8rem); }
.navigation a { display: inline-flex; align-items: center; min-height: 44px; color: #cfe0ea; }
.navigation a:hover { color: #fff; text-decoration: underline; }
.module { font-size: .9375rem; font-weight: 700; letter-spacing: .14em; }
.visitor-search { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: .65rem; border: 1px solid #385469; border-radius: .2rem; background: transparent; color: white; }
.visitor-search:hover { text-decoration: underline; }

.hero { position: relative; isolation: isolate; background: var(--masthead); color: white; }
.consult-hero-layout { min-height: 510px; display: grid; align-items: center; }
.hero-text { width: min(100%, 39rem); padding-block: clamp(3rem, 7vw, 6.5rem); }
.eyebrow { font-size: .875rem; text-transform: uppercase; letter-spacing: .105em; font-weight: 700; color: var(--accent); margin-block-end: .9rem; }
.intro { margin-block: 1.15rem 1.65rem; max-width: 35ch; font-size: 1.225rem; }
.hero .eyebrow { color: #b9ddf6; }
.hero .intro { color: var(--light-text); }
.hero-photo, .hero-photo::after { position: absolute; inset: 0; }
.hero-photo { z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 48%; }
.hero-photo::after {
  content: '';
  --shade-direction: to right;
  background: linear-gradient(180deg, var(--masthead), transparent 23%, transparent 68%, #061f30d9),
    linear-gradient(var(--shade-direction), #041b2bf7 0%, #041b2bf0 34%, #041b2b9e 64%, #041b2b26);
}
[dir='rtl'] .hero-photo::after { --shade-direction: to left; }
.hero .whml-particle-network { pointer-events: none; }
.hero.whml-particle-stage { user-select: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; border: 1px solid var(--deep); background: var(--deep); color: white; padding: .65rem 1.15rem; font-size: 1.0625rem; line-height: 1.25; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--masthead); border-color: var(--masthead); }
.hero .button { color: var(--deep); background: white; border-color: white; }
.hero .button:hover { background: var(--ice); }
.button.secondary { background: var(--surface); color: var(--accent); border-color: var(--line); }
.button.secondary:hover { background: var(--ice); }

.section { padding-block: clamp(2.8rem, 6vw, 5.5rem); scroll-margin-block-start: 1rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block-start: 1.6rem; }
.card-grid > * { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.15rem, 2.6vw, 2.1rem); }
.service-grid article { background: linear-gradient(160deg, var(--soft-surface), var(--surface) 58%); border-block-start: 3px solid var(--blue); }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; background: var(--ice); color: var(--accent); margin-block-end: 1.25rem; }
.service-icon svg { width: 25px; height: 25px; }
.service-grid p, .process p { margin-block-start: .45rem; }
.process { background: linear-gradient(180deg, var(--ice), var(--soft-surface)); border-block: 1px solid var(--line); }
.faq, .request-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.2rem, 5vw, 4rem); }
.process ol { padding: 0; list-style: none; }
.process li span { display: grid; place-items: center; width: 46px; height: 46px; margin-block-end: 1rem; border: 1px solid #a9c9df; border-radius: 50%; color: var(--accent); font-weight: 700; }
.faq details { border-block-end: 1px solid var(--line); }
.faq details:first-child { border-block-start: 1px solid var(--line); }
.faq summary { padding: .85rem .4rem; font-size: 1.2rem; font-weight: 600; }
.faq details p { padding: 0 .4rem 1rem; }
.request { background: linear-gradient(135deg, var(--ice), var(--soft-surface)); }
.request h2 + p { margin-block-start: .8rem; }
.form-panel { background: var(--surface); border: 1px solid var(--line); border-block-start: 3px solid var(--blue); padding: clamp(1rem, 3vw, 2rem); min-width: 0; }
.field { margin-block-end: 1rem; }
.field label, dt { display: block; font-weight: 700; margin-block-end: .25rem; }
.field select { display: block; background: var(--surface); color: var(--ink); border: 1px solid var(--muted); border-radius: 0; width: 100%; min-height: 46px; padding: .45rem .6rem; }
.form-panel dl { margin-block: 1rem; display: grid; gap: .6rem; }
.form-panel dl > div { padding: .65rem .85rem; border-inline-start: 2px solid var(--blue); background: var(--soft-surface); }
.form-panel dd { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
#complete-text { margin-block-end: 1rem; color: var(--ink); font-weight: 600; }
.site-footer .footer-main { grid-template-columns: 1.2fr 1fr; }
.site-footer .footer-intro { display: grid; width: max-content; max-width: 100%; grid-column: auto; }
.site-footer .footer-intro .brand-name { margin-block: .7rem 0; font-size: .875rem; }
.footer-links { align-self: center; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.25rem; }
.footer-links a { display: flex; align-items: center; min-height: 44px; color: var(--light-text); text-decoration: none; border-block-end: 1px solid #ffffff29; padding-block: .4rem; }
.footer-links a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.consult-footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: .75rem; color: var(--light-text); }
.consult-footer-meta strong { letter-spacing: .12em; }
/* Keep the legal links above the two fixed page controls at the scroll limit. */
.site-footer { padding-block-end: calc(2.75rem + env(safe-area-inset-bottom)); }
@media (min-width: 48.01rem) {
  .site-footer { padding-block-end: calc(7.25rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 43rem) {
  .card-grid, .faq, .request-grid, .site-footer .footer-main { grid-template-columns: minmax(0, 1fr); }
  .brand { padding-block: .2rem .5rem; }
  .navigation { border-block-start: 1px solid #ffffff29; }
  .consult-hero-layout { min-height: 0; }
  .hero-text { padding-block: clamp(7rem, 40vw, 12rem) 2.75rem; }
  .hero-photo img { object-position: center top; }
  .hero-photo::after { background: linear-gradient(180deg, var(--masthead), #061f3038 17%, #061f30df 37%, var(--masthead) 95%); }
}

@media (prefers-reduced-motion: reduce) {
  .whml-a11y-launcher:hover { transform: none; }
}
