/* OCHP base stylesheet — design tokens and primitives shared across all pages.
 * Page-specific styles live in /assets/styles/<page>.css.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --bg-0: #fbfbfd;
  --bg-1: #ffffff;
  --bg-2: #f4f5f8;
  --bg-3: #e8eaef;
  --border-1: rgba(15,23,42,.07);
  --border-2: rgba(15,23,42,.12);
  --border-3: rgba(15,23,42,.20);
  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --purple: #7c3aed;
  --blue: #2563eb;
  --cyan: #0891b2;
  --emerald: #059669;
  --amber: #d97706;
  --pink: #db2777;
  --rose: #e11d48;
  --lime: #65a30d;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #0891b2 100%);
  --gradient-warm: linear-gradient(135deg, #d97706 0%, #db2777 100%);
  --shadow-md: 0 4px 16px rgba(15,23,42,.07);
  --shadow-lg: 0 16px 40px rgba(15,23,42,.10);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}

/* --- Layout primitives --- */
.container { position: relative; max-width: 1100px; margin: 0 auto; }

/* --- Hero shell (background, grid overlay, gradient halo) --- */
.hero { position: relative; padding: 6rem 1.5rem 4rem; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 1400px; height: 900px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,.14), rgba(37,99,235,.08) 35%, transparent 65%);
  pointer-events: none; filter: blur(20px);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 70%);
  pointer-events: none;
}

.hero-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.hero-logo-link {
  display: inline-block; line-height: 0;
  max-width: 75%;
  transition: transform .2s ease, opacity .2s ease;
}
.hero-logo-link:hover { transform: translateY(-1px); opacity: .85; }
.hero-logo-img { width: 200px; max-width: 100%; height: auto; display: block; }

/* --- Centered hero text wrapper ---
 * Wrap the eyebrow + h1 + hero-sub + hero-meta in <div class="hero-text">
 * to share the same centered layout across pages.
 */
.hero-text { text-align: center; max-width: 680px; margin: 0 auto; }

/* --- Eyebrow pill --- */
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  width: fit-content; margin: 0 auto 1.5rem;
  font-size: 11px; font-weight: 600; color: var(--text-2);
  letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 14px; border: 1px solid var(--border-2); border-radius: 100px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 8px var(--emerald);
}

/* --- Display headings --- */
h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  margin: 1.5rem 0 1.25rem;
  background: linear-gradient(180deg, #0f172a 0%, #0f172a 50%, #475569 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

.hero-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  justify-content: center;
  font-size: 13px; color: var(--text-3); align-items: center;
}
.hero-meta b { color: var(--text-2); font-weight: 500; }
.hero-meta .sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--border-3);
}
