/* ==========================================================================
   SSJ Partners — Design tokens
   Brand orange sampled directly from the company logo mark.
   ========================================================================== */
:root {
  /* Color — dark theme */
  --bg:        #0A1424; /* page background, deep navy */
  --surface:   #111D30; /* card / panel background, one step up from bg */
  --surface-2: #182842; /* hover elevation */
  --text:      #EDEFEC; /* primary text */
  --text-muted:#96A1AE; /* secondary text */
  --line:      rgba(255, 255, 255, 0.09); /* hairline borders on dark */

  --orange:      #F88536; /* brand accent — from the logo */
  --orange-soft: rgba(248, 133, 54, 0.18);
  --teal:        #2BB0A0; /* secondary accent, used sparingly (sector icons) */

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Work Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Layout */
  --container-w: 1180px;
  --radius: 4px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-intro {
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 16px;
}

/* Focus visibility (accessibility floor) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ==========================================================================
   Scroll progress indicator — a thin line of "signal" travelling as you read
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), #FFB067);
  z-index: 100;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.2s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--bg);
}
.btn-primary:hover {
  background: #FFA35E;
  box-shadow: 0 0 28px var(--orange-soft);
  transform: translateY(-1px);
}

.btn-text {
  color: var(--text);
  padding-inline: 4px;
  border-bottom: 1px solid transparent;
}
.btn-text:hover { border-color: var(--orange); color: var(--orange); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 20, 36, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  transition: opacity 0.15s ease;
}
.logo:hover { opacity: 0.85; }

.logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo--footer .logo-mark {
  width: 32px;
  height: 32px;
}
.logo--footer { font-size: 1.1rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a { position: relative; padding-block: 4px; }
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--orange);
  transition: right 0.2s ease;
}
.nav a:not(.nav-cta):hover::after { right: 0; }
.nav a:hover { color: var(--orange); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 9px 16px;
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  background: var(--orange);
  color: var(--bg);
  box-shadow: 0 0 20px var(--orange-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* ==========================================================================
   Hero + Bridge diagram (signature element)
   ========================================================================== */
.hero {
  padding-top: 96px;
  position: relative;
  overflow: hidden;
}

/* subtle brand-coloured glow for depth on the dark background */
.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-60%);
  width: 900px;
  height: 700px;
  background: radial-gradient(closest-side, var(--orange-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 16ch;
  margin-top: 6px;
}

.hero-sub {
  max-width: 56ch;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.bridge-wrap {
  margin-top: 96px;
  padding-block: 64px 88px;
  position: relative;
  z-index: 1;
}

.bridge {
  position: relative;
  height: 90px;
}

.bridge__rail {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.bridge__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px var(--orange-soft), 0 0 18px rgba(248, 133, 54, 0.5);
  transform: translate(-50%, -50%);
  animation: travel 7s ease-in-out infinite;
}

@keyframes travel {
  0%   { left: 0%; }
  50%  { left: 100%; }
  100% { left: 0%; }
}

.bridge__shore {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}
.bridge__shore--right { transform: translate(-100%, -50%); }
.bridge__shore-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.bridge__node {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.bridge__node--low { flex-direction: column-reverse; }

.bridge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-muted);
}

.bridge__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .bridge__pulse { animation: none; left: 50%; }
}

/* ==========================================================================
   Card icons
   ========================================================================== */
.card-icon {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--orange);
}
.card--sector .card-icon { color: var(--teal); }
.card-icon svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   Cards (services + sectors)
   ========================================================================== */
.services, .sectors, .culture { padding-block: 100px; }
.services h2, .sectors h2, .culture h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 22ch;
  margin-top: 6px;
}

.card-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.card-grid--services { grid-template-columns: repeat(5, 1fr); }
.card-grid--sectors  { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  padding: 32px 26px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.card:hover {
  background: var(--surface-2);
  transform: translateY(-3px);
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card--sector h3 { font-size: 1.3rem; }

/* ==========================================================================
   Approach band
   ========================================================================== */
.approach {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: 110px;
}
.approach-statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 22ch;
}
.approach-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange);
}
.approach-pillars span {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ==========================================================================
   Closing CTA (homepage)
   ========================================================================== */
.closing-cta { padding-block: 110px; }
.closing-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 6px;
  max-width: 20ch;
}

/* ==========================================================================
   Page banner — reusable header band for secondary pages (Contact, Careers)
   ========================================================================== */
.page-banner {
  position: relative;
  overflow: hidden;
  padding-block: 72px 56px;
  border-bottom: 1px solid var(--line);
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -160px;
  right: -120px;
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, var(--orange-soft), transparent 70%);
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-top: 6px;
}
.page-banner-sub {
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 18px;
}

/* faint bridge line motif running through the banner, echoing the homepage hero */
.page-banner-rail {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}
.page-banner-rail::after {
  content: '';
  position: absolute;
  top: -3px; left: 8%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(248, 133, 54, 0.6);
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-page { padding-block: 88px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}

.contact-info {
  background: var(--surface);
  padding: 44px 36px;
}
.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.contact-info > p {
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 40px;
}

.info-block { margin-bottom: 32px; }
.info-block:last-child { margin-bottom: 0; }
.info-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.info-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}
.info-value a:hover { color: var(--orange); }
.info-offices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form-wrap {
  background: var(--surface);
  padding: 44px 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 26px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 2px;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.field input::placeholder,
.field textarea::placeholder { color: #566171; }

.form-submit {
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
}

.form-status {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { color: var(--orange); }
.form-status.is-error { color: #E8635B; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-nav { display: flex; gap: 24px; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--orange); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 100%;
  order: 3;
  margin-top: 8px;
}
@media (min-width: 700px) {
  .footer-copy { width: auto; order: 0; margin-top: 0; }
}

/* ==========================================================================
   Scroll reveal (subtle, respects reduced motion via script.js check)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .card-grid--services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .card-grid--sectors  { grid-template-columns: 1fr; }
  .bridge__tag { display: none; } /* keep the rail readable on small screens */
}

@media (max-width: 640px) {
  .header-inner { height: 76px; }
  .logo { font-size: 1.1rem; }
  .logo-mark { width: 32px; height: 32px; }

  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: flex; }

  .card-grid--services { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
}
