:root {
  color-scheme: light;
  --ink: #173264;
  --ink-soft: #3b506e;
  --paper: #f2f2f0;
  --surface: #fff;
  --accent: #173d9b;
  --accent-dark: #12357f;
  --brand-green: #536e0b;
  --brand-text: #4f660c;
  --line: #d5dfdc;
  --focus: #b44d12;
  --content: 72rem;
  --radius: 1.2rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.7; }
a { color: var(--accent-dark); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: .2rem solid var(--focus); outline-offset: .2rem; }
.skip-link { position: absolute; left: .75rem; top: -5rem; z-index: 10; padding: .7rem 1rem; background: white; }
.skip-link:focus { top: .75rem; }
.demo-build-banner { padding: .45rem 1rem; background: #fff2cb; color: #4e3900; text-align: center; font-size: .82rem; }
.demo-build-banner strong { letter-spacing: .04em; }
.chat-demo-notice { padding: .65rem .75rem; border-radius: .5rem; background: #fff2cb; color: #4e3900; font-size: .9rem; font-weight: 700; }
.wrap { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .6rem; min-width: 0; padding-block: .8rem; }
.brand { display: grid; color: var(--brand-green); font-size: 1.45rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; text-decoration: none; }
.brand::after { content: "WE OPEN DOORS"; margin-top: .28rem; color: #5d6570; font-size: .5rem; letter-spacing: .08em; }
.nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: .35rem .8rem; width: 100%; max-width: 100%; min-width: 0; }
.nav a { min-width: 0; overflow-wrap: anywhere; font-size: .92rem; font-weight: 650; text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: .15em; }
.language-switch { justify-self: start; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .7rem; }
main { min-height: 65vh; }
.hero { padding-block: clamp(3rem, 7vw, 5rem) 3rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--brand-text); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; text-wrap: balance; }
h1 { max-width: 18ch; margin: 0; font-size: clamp(2.3rem, 6vw, 4.7rem); letter-spacing: -.055em; }
.lead { max-width: 62ch; margin: 1.5rem 0 0; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.button { display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; border: 2px solid var(--accent); border-radius: 999px; padding: .55rem 1.15rem; background: var(--accent); color: white; font-weight: 750; text-decoration: none; }
.button:hover { background: var(--accent-dark); color: white; }
.button.secondary { background: transparent; color: var(--accent-dark); }
.section { padding-block: 2rem 4rem; }
.section-heading { max-width: 56rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin-bottom: .5rem; font-size: clamp(1.65rem, 3vw, 2.3rem); }
.content-flow { display: grid; gap: 1rem; max-width: 74ch; }
.content-flow p { margin: 0; }
.service-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { min-height: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; background: var(--surface); }
.card h2, .card h3 { margin-top: 0; }
.contact-band { margin-block: 1rem 4rem; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); background: var(--ink); color: white; }
.contact-band h2 { color: white; }
.contact-band a { color: white; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.legal-note { border-left: .25rem solid var(--accent); padding-left: 1rem; color: var(--ink-soft); }
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.consent-panel { width: min(28rem, calc(100% - 2rem)); margin: 1.5rem auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: white; }
.consent-panel[hidden] { display: none; }
.consent-panel p { margin-top: 0; }
.consent-panel button { border: 0; border-radius: 999px; padding: .6rem 1rem; background: var(--ink); color: white; font: inherit; font-weight: 700; cursor: pointer; }
.not-found { padding-block: 5rem; }
.chat-control { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40; display: grid; justify-items: end; gap: .65rem; max-width: calc(100vw - 2rem); }
.chat-launcher { display: inline-flex; min-width: 3.5rem; min-height: 3.5rem; align-items: center; justify-content: center; gap: .55rem; border: 0; border-radius: 999px; padding: .75rem 1rem; background: var(--brand-green); color: white; font: inherit; font-weight: 750; box-shadow: 0 4px 16px rgb(19 43 54 / 24%); cursor: pointer; touch-action: manipulation; }
.chat-launcher:hover { background: var(--accent-dark); }
.chat-launcher:disabled { cursor: progress; opacity: .8; }
.chat-launcher svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.chat-launcher[aria-busy="true"]::after { width: .8rem; height: .8rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: chat-spin .8s linear infinite; }
.chat-panel { width: min(25rem, calc(100vw - 2rem)); max-height: min(42rem, calc(100dvh - 2rem)); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; background: var(--surface); color: var(--ink); box-shadow: 0 8px 32px rgb(19 43 54 / 20%); }
.chat-panel[hidden] { display: none; }
.chat-panel-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.chat-panel-header h2 { margin: 0; font-size: 1.3rem; }
.chat-panel-eyebrow { margin: 0 0 .2rem; color: var(--brand-text); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.chat-close { display: inline-grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font: inherit; font-size: 1.5rem; cursor: pointer; }
.chat-greeting { margin: .85rem 0; color: var(--ink-soft); line-height: 1.5; }
[data-chat-form] { display: grid; gap: .35rem; }
[data-chat-form] label { margin-top: .3rem; font-size: .9rem; font-weight: 700; }
[data-chat-form] input, [data-chat-form] textarea { width: 100%; min-width: 0; border: 1px solid #68798f; border-radius: .5rem; padding: .65rem .7rem; background: white; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4; }
[data-chat-form] textarea { resize: vertical; }
[data-chat-form] input:focus-visible, [data-chat-form] textarea:focus-visible { outline: .2rem solid var(--focus); outline-offset: .1rem; }
[data-chat-form] .button { justify-self: start; margin-top: .55rem; cursor: pointer; font: inherit; }
[data-chat-form] .button:disabled { cursor: progress; opacity: .72; }
.optional { color: var(--ink-soft); font-weight: 400; }
.contact-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.chat-status { min-height: 1.5em; margin: .6rem 0 0; font-size: .92rem; }
.chat-status[data-state="success"] { color: #315600; font-weight: 700; }
.chat-status[data-state="error"] { color: #8b1a13; font-weight: 700; }
.chat-direct { margin: .3rem 0 0; font-size: .82rem; }
@keyframes chat-spin { to { transform: rotate(360deg); } }
.chat-launcher[aria-busy="true"]::after { animation-duration: .8s; }
@media (prefers-reduced-motion: reduce) { .chat-launcher[aria-busy="true"]::after { animation: none; } }
@media (min-width: 48rem) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { flex-direction: row; flex-wrap: nowrap; align-items: center; }
  .nav { display: flex; width: auto; }
  .language-switch { justify-self: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
