/* ============================================================
   OPUS EMPLOYEE VOICE CONSULTING — Design tokens & shared styles
   ============================================================ */

:root {
  /* Color — pulled from the Opus logo blue */
  --blue-600: #2374F5;
  --blue-700: #1857C4;
  --blue-800: #123F94;
  --blue-50:  #F1F6FF;
  --blue-100: #E1EAF9;
  --navy-900: #10233F;
  --slate-600:#4B5A72;
  --slate-400:#8A96A8;
  --white:    #FFFFFF;

  /* Radius — generous, rounded, matches the logo's bubble shape */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Type — Verdana-family, screen-native humanist sans */
  --font: "Trebuchet MS", Verdana, Geneva, Tahoma, sans-serif;

  --shadow-soft: 0 20px 45px -25px rgba(16, 35, 63, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(16, 35, 63, 0.25);
}

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  color: var(--navy-900);
  font-family: var(--font);
  font-weight: bold;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: bold;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--blue-600); color: var(--white); box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--blue-600); color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-50); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--blue-100);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 46px; width: auto; border-radius: 10px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 auto;
}
.site-nav a {
  font-weight: bold;
  font-size: 0.96rem;
  color: var(--navy-900);
  position: relative;
  padding: 6px 2px;
}
.site-nav a.active,
.site-nav a:hover { color: var(--blue-700); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--blue-600);
  border-radius: var(--radius-pill);
}

.nav-toggle {
  display: none;
  background: var(--blue-50);
  border: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  color: var(--blue-700);
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 28px 22px;
    border-bottom: 1px solid var(--blue-100);
    box-shadow: var(--shadow-card);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero (speech-bubble motif) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 100px;
}
.hero-bg-shape {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 30% 30%, var(--blue-50), rgba(241,246,255,0));
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; }
.hero-sub { font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

.page-hero {
  padding: 64px 0 56px;
  background: var(--blue-50);
  border-bottom: 1px solid var(--blue-100);
}
.page-hero .eyebrow { background: var(--white); }
.page-hero h1 { max-width: 640px; }
.page-hero p { max-width: 600px; font-size: 1.08rem; }

/* ---------- Speech-bubble card (signature element) ---------- */
.bubble-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 6px;
  box-shadow: var(--shadow-card);
  padding: 34px 32px;
}
.bubble-card::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -14px;
  width: 26px;
  height: 20px;
  background: var(--white);
  border-right: 1px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
  border-radius: 0 0 0 16px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.bubble-card.on-tint { background: var(--blue-50); }
.bubble-card.on-tint::after { background: var(--blue-50); }
.bubble-card.on-navy { background: var(--navy-900); border-color: var(--navy-900); }
.bubble-card.on-navy::after { background: var(--navy-900); border-color: var(--navy-900); }

/* ---------- Sections & grids ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-tint { background: var(--blue-50); }
.section-navy { background: var(--navy-900); color: #C9D6EC; }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
}

.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--blue-600);
  color: var(--white);
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.pillar-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: var(--blue-700);
}
.pillar-link:hover { text-decoration: underline; }

/* ---------- Values / list rows ---------- */
.value-row {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--blue-100);
}
.value-row:last-child { border-bottom: 1px solid var(--blue-100); }
.value-mark {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: bold;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -60px; bottom: -80px;
  width: 260px; height: 260px;
  background: var(--blue-700);
  opacity: 0.4;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; position: relative; }
.cta-banner p { color: #C9D6EC; margin: 0; position: relative; max-width: 440px; }
.cta-banner .btn { position: relative; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: bold; font-size: 0.9rem; color: var(--navy-900); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 13px 18px;
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--navy-900);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-50);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--slate-400); margin-top: 14px; }

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

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #93A3BE; padding: 56px 0 26px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 38px; }
.footer-brand p { margin: 0; color: var(--white); font-weight: bold; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--white); }
.footer-contact a { font-weight: bold; color: var(--white); }
.footer-bottom { padding-top: 22px; font-size: 0.85rem; }

/* ---------- Scroll reveal ----------
   Default state is VISIBLE (progressive enhancement). Only once JS has
   confirmed it's running (html.js) do elements hide and wait to animate in.
   This means blocked/slow/failed JS never leaves content invisible. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
}
