/* ============================================================
   OneFirewall Alliance — Corporate Site Design System
   ============================================================ */

:root {
  --navy-900: #0a1628;
  --navy-800: #0e1f38;
  --navy-700: #16304f;
  --brand-blue: #1c4a85;
  --brand-blue-dark: #123561;
  --brand-blue-light: #eaf1fa;
  --accent-orange: #d9631f;
  --accent-orange-dark: #b84f17;
  --ink: #14202f;
  --ink-soft: #3d4c5e;
  --ink-mute: #6b7787;
  --line: #dfe4ea;
  --line-soft: #edf0f4;
  --surface: #ffffff;
  --surface-alt: #f6f8fa;
  --surface-navy: var(--navy-900);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 42, 0.06), 0 1px 1px rgba(15, 26, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 26, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 26, 42, 0.12);
  --container: 1180px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 96px 0; }
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin: 0 0 20px;
}
h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { color: var(--ink-soft); margin: 0 0 16px; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent-orange);
  display: inline-block;
}
.eyebrow.on-dark { color: #9cc2f0; }

.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent-orange); color: #fff; }
.btn-primary:hover { background: var(--accent-orange-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-navy { background: var(--brand-blue); color: #fff; }
.btn-navy:hover { background: var(--brand-blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: #fff; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Header / Nav ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a.mobile-cta { display: none; }
.nav-links > .lang-switch-mobile { display: none; }
.nav-links > a, .nav-item > button {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links > a:hover, .nav-item > button:hover { color: var(--brand-blue); }
.nav-item { position: relative; }
.nav-item .chev { font-size: 0.6rem; opacity: 0.6; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}
.nav-dropdown a span { display: block; font-weight: 400; color: var(--ink-mute); font-size: 0.78rem; margin-top: 2px; }
.nav-dropdown a:hover { background: var(--surface-alt); color: var(--brand-blue); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; margin-right: 4px; }
.lang-switch a { color: var(--ink-mute); text-decoration: none; padding: 4px 6px; border-radius: 4px; }
.lang-switch a:hover { background: var(--surface-alt); color: var(--navy-900); }
.lang-switch a.active { color: var(--accent-orange); }
.lang-switch span { color: var(--line); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); }

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line-soft);
    padding: 12px; box-shadow: var(--shadow-md);
  }
  .nav-links.mobile-open .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 16px; }
  .nav-links.mobile-open .nav-item.mobile-open .nav-dropdown { display: block; }
  .nav-links.mobile-open > a.mobile-cta { display: flex; justify-content: center; margin-top: 10px; }
  .nav-links.mobile-open > .lang-switch-mobile { display: flex; justify-content: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 540px) {
  .nav-wrap { padding: 0 20px; }
  .nav-cta { display: none; }
}

/* ---------- Hero (navy) ---------- */
.hero-navy {
  background: radial-gradient(ellipse at top right, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.78) 55%), url('../img/hero.webp') center 40%/cover no-repeat;
  color: #fff;
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-navy::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 75%);
  pointer-events: none;
}
.hero-navy .container { position: relative; z-index: 1; }
.hero-navy h1 { color: #fff; max-width: 800px; }
.hero-navy p.lede { color: #b9c6d9; }
.hero-grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid-2 { grid-template-columns: 1fr; } }

.hero-stats-strip {
  display: flex; flex-wrap: wrap; gap: 40px;
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stats-strip .stat b { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-stats-strip .stat b span { font-size: inherit; font-weight: inherit; color: inherit; }
.hero-stats-strip .stat > span { font-size: 0.78rem; color: #8fa2ba; text-transform: uppercase; letter-spacing: 0.06em; }

/* generic page header (non-home) */
.page-header {
  background: linear-gradient(180deg, rgba(10,22,40,0.55), rgba(10,22,40,0.75)), url('../img/hero.webp') center 35%/cover no-repeat;
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
}
.page-header h1 { color: #fff; max-width: 760px; }
.page-header p.lede { color: #b9c6d9; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.74rem; color: #7f93ad; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }

/* ---------- Logo strip ---------- */
.logo-strip-section { padding: 56px 0; border-bottom: 1px solid var(--line-soft); }
.logo-strip-label { text-align: center; font-size: 0.8rem; color: var(--ink-mute); margin-bottom: 32px; font-weight: 600; letter-spacing: 0.02em; }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 64px; }
.logo-strip img { height: 44px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: all 0.2s ease; }
.logo-strip img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line); }
.card .icon-badge { margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { font-size: 0.94rem; margin-bottom: 12px; }
.card a.card-link { font-size: 0.86rem; font-weight: 700; color: var(--brand-blue); text-decoration: none; }
.card a.card-link:hover { text-decoration: underline; }

.icon-badge {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-blue-light);
  border-radius: var(--radius-sm);
  color: var(--brand-blue);
  font-size: 1.1rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Stat bar (light) ---------- */
.stat-bar { background: var(--surface-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stat-bar .grid-4 { text-align: center; }
.stat-bar b { display: block; font-size: 2.1rem; font-weight: 800; color: var(--navy-900); }
.stat-bar b span { font-size: inherit; font-weight: inherit; color: inherit; }
.stat-bar div > span { font-size: 0.8rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Section variants ---------- */
.section-alt { background: var(--surface-alt); }
.section-navy { background: linear-gradient(180deg, rgba(10,22,40,0.55), rgba(10,22,40,0.75)), url('../img/hero.webp') center/cover no-repeat; color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #aebdd2; }

/* ---------- Split feature row ---------- */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
@media (max-width: 980px) { .split-row, .split-row.reverse { grid-template-columns: 1fr; direction: ltr; } }
.split-visual {
  background: var(--surface-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li { display: flex; gap: 12px; padding: 10px 0; font-size: 0.95rem; color: var(--ink-soft); border-top: 1px solid var(--line-soft); }
.feature-list li:first-child { border-top: none; }
.feature-list li::before { content: "\2713"; color: var(--accent-orange); font-weight: 800; flex-shrink: 0; }

/* ---------- Quote / testimonial ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 28px 32px;
}
.quote-card p { font-size: 1.05rem; color: var(--ink); font-style: italic; }
.quote-card .attribution { font-size: 0.84rem; color: var(--ink-mute); font-style: normal; margin-top: 12px; }
.quote-card .attribution b { color: var(--navy-900); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -32px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-orange); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent-orange); }
.timeline-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--brand-blue); font-weight: 700; letter-spacing: 0.05em; }

/* ---------- Table ---------- */
table.clean-table { width: 100%; border-collapse: collapse; }
.clean-table th, .clean-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.clean-table th { color: var(--ink-mute); font-weight: 600; text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.05em; }
.clean-table td { color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(180deg, rgba(10,22,40,0.6), rgba(10,22,40,0.78)), url('../img/hero.webp') center/cover no-repeat;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; font-size: 1.7rem; }
.cta-banner p { color: #aebdd2; margin: 0; }

/* ---------- Office cards ---------- */
.office-card { border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 24px; background: #fff; }
.office-card .tag { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-orange); font-weight: 700; }
.office-card h3 { margin: 8px 0 10px; font-size: 1.05rem; }
.office-card p { font-size: 0.88rem; margin-bottom: 4px; }

/* ---------- Footer ---------- */
#site-footer { background: var(--navy-900); color: #b9c6d9; padding: 72px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.2fr repeat(5, 1fr); gap: 32px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 980px) { .footer-top { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { color: #8296b1; font-size: 0.88rem; max-width: 280px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.06); color: #9cabc2; font-size: 0.9rem; transition: background 0.2s ease, color 0.2s ease; }
.footer-social a:hover { background: var(--accent-orange); color: #fff; }
.footer-col h3 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #9cabc2; text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 24px 0; font-size: 0.8rem; color: #74839a;
}
.footer-bottom a { color: #9cabc2; text-decoration: none; margin-left: 18px; }
.footer-legal-line { color: #5e6d84; font-size: 0.76rem; padding-bottom: 28px; line-height: 1.7; }

/* ---------- Utility ---------- */
.text-orange { color: var(--accent-orange); }
.text-blue { color: var(--brand-blue); }
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.tag-pill {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px;
  background: var(--brand-blue-light); color: var(--brand-blue);
}
