/* ============================================================
   Raxplore LTD — corporate site styles
   Light theme, mobile-first, no external dependencies.
   ============================================================ */

:root {
  --navy:      #0b2545;
  --navy-2:    #13315c;
  --navy-3:    #1d4e89;
  --blue:      #1d6fb8;
  --blue-dark: #155a94;
  --teal:      #0a7d76;
  --teal-soft: #e6f4f3;

  --bg:        #ffffff;
  --bg-alt:    #f4f7fb;
  --surface:   #ffffff;
  --border:    #e3e9f0;
  --border-2:  #d3dde8;

  --text:      #17242e;
  --muted:     #55697a;
  --heading:   #0f2231;

  --ok-bg:     #e8f6ee;
  --ok-fg:     #1c6b3f;
  --ok-bd:     #b7e2c7;
  --err-bg:    #fdecec;
  --err-fg:    #a12727;
  --err-bd:    #f2c2c2;
  --warn-bg:   #fff7e6;
  --warn-fg:   #8a5a00;
  --warn-bd:   #f3dfae;

  --focus:     #2b7de9;
  --shadow-sm: 0 1px 2px rgba(15, 34, 49, .06), 0 1px 3px rgba(15, 34, 49, .08);
  --shadow-md: 0 6px 24px rgba(15, 34, 49, .10);
  --radius:    12px;
  --radius-sm: 8px;
  --container:  1120px;
  --header-h:  70px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: .35rem 0; }
strong { color: var(--heading); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tight { padding: 40px 0; }
.narrow { max-width: 820px; }
.lead { font-size: 1.15rem; color: var(--muted); }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: .6rem;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; display: grid; place-items: center; font-size: .95rem; font-weight: 800;
}
.brand small { display: block; font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-list a:not(.btn) {
  display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--heading);
  font-weight: 600; font-size: .95rem;
}
.nav-list a:not(.btn):hover { background: var(--bg-alt); text-decoration: none; }
.nav-list a:not(.btn)[aria-current="page"] { color: var(--blue-dark); background: #eef4fb; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle { display: inline-flex; border: 1px solid var(--border-2); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-toggle button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 700; color: var(--muted);
  padding: .35rem .6rem; line-height: 1;
}
.lang-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none; appearance: none; border: 1px solid var(--border-2); background: #fff;
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1;
  padding: .8rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
  text-align: center; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-on-dark { background: #fff; color: var(--navy); }
.btn-on-dark:hover { background: #eef4fb; color: var(--navy); }
.btn-ghost-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-sm { padding: .55rem .9rem; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(29,111,184,.35), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: #fff; padding: 72px 0 64px;
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero p { color: #d7e3f1; font-size: 1.2rem; max-width: 58ch; }
.hero .eyebrow { color: #8fd3cf; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.15); }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; color: #dbe7f4; font-size: .92rem; font-weight: 600; }
.hero-badge svg { color: #8fd3cf; flex: none; }

/* ---------- Page header (interior) ---------- */
.page-header { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 40px 0 34px; }
.page-header h1 { margin-bottom: .3rem; }
.page-header p { color: var(--muted); font-size: 1.1rem; max-width: 70ch; margin: 0; }

.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 .4rem; opacity: .6; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: .2rem; }
.card .ico {
  width: 44px; height: 44px; border-radius: 10px; background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card p:last-child { margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { position: relative; padding-left: 56px; margin: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 32px; margin: 0; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px;
  background: var(--teal); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 15px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---------- Notes / callouts ---------- */
.note {
  border: 1px solid var(--border); border-left: 4px solid var(--blue);
  background: #f7fafd; border-radius: 8px; padding: 16px 18px; margin: 1.2rem 0;
}
.note.warn { border-left-color: var(--warn-fg); background: var(--warn-bg); }
.note.info { border-left-color: var(--teal); background: var(--teal-soft); }
.note p:last-child { margin-bottom: 0; }
.note strong { display: block; margin-bottom: .2rem; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700;
  padding: .25rem .6rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal);
}

/* Placeholder marker: helps locate values to replace before launch */
.ph {
  border-bottom: 1px dotted rgba(85,105,122,.6);
  background: rgba(255, 214, 102, .16);
  padding: 0 2px; border-radius: 2px;
}

/* ---------- Definition / info blocks ---------- */
.info-grid { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; }
.info-grid dt { font-weight: 700; color: var(--heading); }
.info-grid dd { margin: 0; color: var(--text); }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line .ico { width: 38px; height: 38px; flex: none; border-radius: 9px; background: #eef4fb; color: var(--blue-dark); display: grid; place-items: center; }
.contact-line .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.contact-line a { font-weight: 600; }

/* ---------- Forms ---------- */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--heading); }
.field .req { color: var(--err-fg); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--border-2); border-radius: 9px; padding: .7rem .8rem;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,111,184,.15); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err-fg); box-shadow: 0 0 0 3px rgba(161,39,39,.12); }
.field .error-text { display: none; color: var(--err-fg); font-size: .85rem; margin-top: .3rem; }
.field.has-error .error-text { display: block; }

.checkbox { display: flex; gap: .6rem; align-items: flex-start; }
.checkbox input { margin-top: .25rem; width: 18px; height: 18px; flex: none; }
.checkbox label { font-weight: 500; margin: 0; color: var(--text); }

.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { display: none; border-radius: 9px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.form-alert.show { display: block; }
.form-alert.ok  { background: var(--ok-bg);  color: var(--ok-fg);  border: 1px solid var(--ok-bd); }
.form-alert.err { background: var(--err-bg); color: var(--err-fg); border: 1px solid var(--err-bd); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { background: var(--bg-alt); font-weight: 700; color: var(--heading); }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Prose (legal pages) ---------- */
.prose h2 { margin-top: 2.2rem; padding-top: .4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.3rem; }
.prose .meta { color: var(--muted); font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: 16px; padding: 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e3f1; max-width: 60ch; margin: 0 auto 1.4rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfdcea; padding: 52px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: #cfdcea; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .5rem 0; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { background: linear-gradient(135deg, #1d4e89, #1d6fb8); }
.footer-brand p { color: #a9bcd0; font-size: .95rem; max-width: 34ch; }
.footer-contact { font-size: .95rem; font-style: normal; line-height: 1.9; }
.footer-contact a { font-weight: 600; }
.site-footer strong { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  font-size: .88rem; color: #9fb3c9;
}
.footer-bottom .footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-bottom a { color: #9fb3c9; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- i18n visibility ---------- */
html[data-lang="en"] .t-fr { display: none !important; }
html[data-lang="fr"] .t-en { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; margin: 0; transition: max-height .25s ease;
  }
  .nav.open { max-height: 80vh; overflow: auto; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 2px; }
  .nav-list a:not(.btn) { padding: .75rem .6rem; border-radius: 8px; font-size: 1rem; }
  .header-inner { position: relative; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 44px 0; }
  .cta-band { padding: 28px 20px; }
  .info-grid { grid-template-columns: 1fr; gap: .1rem 0; }
  .info-grid dd { margin-bottom: .7rem; }
  .hero { padding: 52px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
