/* OPEX Alliance – static site. One stylesheet, no JavaScript. */

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ef8534;
  --orange-dark: #d46d1d;
  --blue: #003ea8;
  --navy: #0b1d4a;
  --sky: #62bae0;
  --text: #222;
  --muted: #5b6475;
  --bg: #fff;
  --bg-soft: #f4f7fb;
  --line: #e2e8f0;
  --radius: 14px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 100; }

/* Header: CSS-only mobile menu (no JS) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-dark); }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; }
.menu-toggle { display: none; }
.menu-btn { display: none; cursor: pointer; padding: .5rem; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 24px; height: 2px; background: var(--navy); position: relative; content: "";
}
.menu-btn span::before { position: absolute; top: -7px; }
.menu-btn span::after { position: absolute; top: 7px; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem;
  }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .75rem; text-align: center; border-bottom: 0; }
  .menu-toggle:checked ~ .nav { display: flex; }
}

/* Buttons */
.btn {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 999px;
  background: var(--orange); color: #fff; font-weight: 700; text-decoration: none;
  border: 2px solid var(--orange); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn.outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn.outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Hero */
.hero {
  position: relative; color: #fff; isolation: isolate;
  padding: clamp(5rem, 14vw, 10rem) 0;
  background: var(--navy);
}
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11, 29, 74, .94) 0%, rgba(0, 62, 168, .72) 60%, rgba(11, 29, 74, .55) 100%);
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero p.lead { font-size: 1.3rem; max-width: 40ch; opacity: .95; margin-bottom: 2rem; }
.hero .actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.page-hero { padding: clamp(3rem, 8vw, 5.5rem) 0; background: var(--navy); color: #fff; }
.page-hero h1 { color: #fff; max-width: none; margin: 0; }
.page-hero p { margin: .75rem 0 0; opacity: .9; font-size: 1.15rem; max-width: 55ch; }

/* Sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.soft { background: var(--bg-soft); }
.eyebrow { color: var(--orange-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin-bottom: .5rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.rounded { border-radius: var(--radius); box-shadow: 0 12px 40px rgba(11, 29, 74, .15); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; border-top: 4px solid var(--orange); counter-increment: step;
}
.step::before {
  content: "Step " counter(step); display: block; color: var(--orange-dark);
  font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: .5rem;
}
.step p { color: var(--muted); font-size: .98rem; }
.step p:last-child { margin-bottom: 0; }

/* Clients */
.clients { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem 3.5rem; }
.clients img { height: 48px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.clients img:hover { filter: none; opacity: 1; }
.clients-label { text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 1.5rem; }

/* Cards (news, team, values) */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card time { color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.value { border-left: 4px solid var(--sky); padding-left: 1.1rem; }
.value h3 { margin-bottom: .3rem; }
.value p { margin: 0; color: var(--muted); }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); gap: 2rem; }
.person { text-align: left; }
.person img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 4px solid var(--bg-soft); }
.person h3 { margin: 0; }
.person p { color: var(--muted); margin: 0; }

/* CTA band */
.cta { background: var(--blue); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { opacity: .92; max-width: 50ch; margin-inline: auto; margin-bottom: 1.75rem; }

/* Contact */
.contact-card { max-width: 640px; }
.contact-card .mail { font-size: clamp(1.3rem, 3.5vw, 1.9rem); font-weight: 800; word-break: break-all; }

/* Footer */
.site-footer { background: var(--navy); color: #c7d0e4; padding: 2.5rem 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.site-footer img { height: 44px; width: auto; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
