/* ==========================================================================
   C&J IT — design tokens
   ========================================================================== */
:root {
  --navy: #0B2540;
  --navy-soft: #123456;
  --blue: #1D5B96;
  --blue-strong: #124378;
  --blue-tint: #E8F1FA;
  --ink: #16202B;
  --slate: #4A5568;
  --slate-light: #7C8798;
  --line: #DCE4EC;
  --white: #FFFFFF;
  --green: #2F9E64;
  --amber: #C88A1E;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { color: var(--slate); margin: 0 0 1em; }

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

img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo span { color: var(--blue); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--blue); text-decoration: none; }
nav.main-nav a.active { color: var(--blue); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--blue-strong); text-decoration: none; }

.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-light);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 20px;
}
.lang-switch a { color: var(--slate-light); }
.lang-switch a.active { color: var(--navy); font-weight: 600; }
.lang-switch a:hover { color: var(--blue); text-decoration: none; }
.lang-switch .sep { color: var(--line); }

.header-right { display: flex; align-items: center; }

.menu-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 88px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8FB4D9;
  margin-bottom: 16px;
  display: block;
}

.hero h1 { color: var(--white); }
.hero p.lead {
  color: #C7D6E5;
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #2A6DB0; text-decoration: none; }
.btn-outline { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.btn-outline.dark { border-color: var(--line); color: var(--navy); }
.btn-outline.dark:hover { background: var(--blue-tint); }

/* Signature element: supervision console */
.console {
  background: #0E2E4E;
  border: 1px solid #1D4A72;
  border-radius: 8px;
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.console-head {
  display: flex;
  justify-content: space-between;
  color: #6F93B8;
  border-bottom: 1px solid #1D4A72;
  padding-bottom: 12px;
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  color: #DCE8F2;
}
.console-row .name { display: flex; align-items: center; gap: 10px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47,158,100,0.18);
  flex-shrink: 0;
}
.status-ok { color: #6FCB9A; }

@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 72px 0; }
.section-alt { background: var(--blue-tint); }

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}
.section-head .eyebrow { color: var(--blue); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.icon-badge {
  width: 42px; height: 42px;
  border-radius: 6px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stat {
  font-family: var(--font-mono);
}
.stat .num {
  font-size: 2.1rem;
  color: var(--navy);
  font-weight: 600;
}
.stat .label {
  color: var(--slate-light);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tables (contract / SLA style) */
table.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.plan-table th, table.plan-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.plan-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-light);
  font-weight: 500;
}
table.plan-table td:first-child, table.plan-table th:first-child { color: var(--navy); font-weight: 500; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #C7D6E5; max-width: 50ch; margin: 0 auto 24px; }
.cta-band .hero-actions { justify-content: center; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
}
textarea { resize: vertical; min-height: 120px; }

/* Contact info list */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list.tight li { gap: 6px; }
.contact-list.tight .k { width: auto; }
.contact-list .k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-light);
  width: 90px;
  flex-shrink: 0;
  padding-top: 3px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--navy);
  color: #9FB6CC;
  padding: 48px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1D4A72;
  margin-bottom: 20px;
}
footer h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer a { color: #9FB6CC; }
footer a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6F8AA3;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
}
