/*
Theme Name: Medjay
Theme URI: https://medjay.io
Author: Medjay LLC
Description: Enterprise marketing theme for Medjay — organizational intelligence.
Version: 1.0.4
Requires at least: 6.4
Tested up to: 6.7
Text Domain: medjay
*/

:root {
  /* Tokens from medjay.io (Framer): gold + black + white, Cinzel / Inter */
  --bg: #ffffff;
  --bg-soft: #f2f2f2;
  --bg-dark: #000000;
  --bg-darker: #000000;
  --heading: #000000;
  --label: #333333;
  --body: #535353;
  --muted: #a1a1a1;
  --accent: #c9a227;
  --accent-hover: #b8960c;
  --accent-soft: #e6d7a0;
  --link: #0099ff;
  --link-hover: #136bc2;
  --border: #d6d6d6;
  --white: #ffffff;
  --voyager: #0099ff;
  --clarion: #c9a227;
  --sentinel: #3babc4;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: rgba(0, 0, 0, 0.18) 0 24px 40px -24px, rgba(0, 0, 0, 0.08) 0 12px 24px -12px;
  --shadow-sm: rgba(0, 0, 0, 0.06) 0 10px 24px 0;
  --nav-h: 72px;
  --max: 1120px;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--heading);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; color: var(--body); }
ul { color: var(--body); }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav {
  position: relative;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  text-decoration: none;
}
.wordmark:hover { opacity: 0.85; color: var(--heading); }
.wordmark img {
  height: 36px; width: auto; display: block;
}
.wordmark-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--heading); line-height: 1;
}
.nav-links { display: flex; gap: 22px; margin-left: 8px; list-style: none; padding: 0; }
.nav-links a {
  color: var(--heading); font-size: 14px; font-weight: 400;
}
.nav-links a:hover, .nav-links .current-menu-item > a { color: var(--accent); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px;
}
.lang-link {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--label); padding: 6px 8px; border-radius: 3px; line-height: 1;
}
.lang-link:hover { color: var(--heading); background: var(--bg-soft); }
.lang-link.is-active {
  background: var(--heading); color: #fff;
}
.lang-link.is-active:hover { color: #fff; background: var(--heading); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer;
  align-items: center; justify-content: center; line-height: 1;
  color: var(--heading); font-size: 18px;
}
.nav-overlay { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; line-height: 1; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); color: #000; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent-soft); }
.btn-ghost:hover { background: rgba(201, 162, 39, 0.08); color: var(--accent-hover); }
.btn-white { background: #fff; color: var(--heading); }
.btn-white:hover { background: var(--bg-soft); color: var(--heading); }
.btn-lg { padding: 14px 22px; font-size: 16px; }

/* Hero */
.hero { padding: 88px 0 72px; }
.eyebrow {
  font-family: var(--font); font-size: 13px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 56px); line-height: 1.12;
  letter-spacing: -0.02em; font-weight: 500; max-width: 18ch;
}
.hero .lede {
  font-size: 20px; line-height: 1.45; font-weight: 400;
  color: var(--body); max-width: 46ch; margin: 22px 0 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero-panel {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow); padding: 28px;
}
.hero-visual { position: relative; }
.hero-photo {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: 8px; box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.page-photo {
  width: 100%; height: 320px; object-fit: cover;
  border-radius: 8px; margin: 0 0 28px;
  box-shadow: var(--shadow-sm); background: var(--bg-soft);
}
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 8px 0; }
.stat b { display: block; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--heading); }
.stat span { font-size: 13px; color: var(--body); }
.panel-note { margin-top: 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p, .section-dark li { color: rgba(255,255,255,0.72); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.18; letter-spacing: -0.02em; max-width: 22ch; }
.section .sub { font-size: 18px; font-weight: 400; max-width: 52ch; margin: 12px 0 36px; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px;
  color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
  overflow: hidden;
}
.card img.card-media {
  width: calc(100% + 48px); max-width: none;
  margin: -24px -24px 8px; height: 168px;
  object-fit: cover; display: block; background: var(--bg-soft);
}
.card > br, .hero-visual > br { display: none; }
.card > p:has(> img.card-media) {
  width: calc(100% + 48px); margin: -24px -24px 8px; padding: 0; line-height: 0;
}
.card > p:has(> img.card-media) img.card-media { margin: 0; width: 100%; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-soft); color: inherit; }
.card .role { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; }
.card p { font-size: 15px; margin: 0; }
.card .more { margin-top: auto; padding-top: 12px; font-size: 14px; color: var(--accent); font-weight: 500; }

.product-card .swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 8px; }
.swatch-voyager { background: var(--voyager); }
.swatch-clarion { background: var(--clarion); }
.swatch-sentinel { background: var(--sentinel); }

/* Exec / inner */
.page-hero { padding: 64px 0 24px; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; }
.breadcrumbs { margin: 0 0 16px; }
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: var(--border);
  font-weight: 400;
}
.breadcrumbs a { color: var(--label); }
.breadcrumbs a:hover { color: var(--heading); }
.breadcrumbs [aria-current="page"] { color: var(--muted); }
.page-hero .lede { font-size: 20px; font-weight: 400; max-width: 48ch; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table th { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label); font-weight: 600; }
.legal-table td { color: var(--body); }
.content { padding: 24px 0 88px; }
.content h2 { font-size: 32px; letter-spacing: -0.02em; margin-top: 1.4em; }
.content h3 { font-size: 22px; letter-spacing: -0.02em; margin-top: 1.2em; }
.content .narrow { max-width: 720px; }
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--border);
  color: var(--label);
}
.checklist li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* Clarion Ground Truth — manifesto, not cards (matches medjay.io) */
.manifesto {
  max-width: 760px;
  margin: 72px auto 56px;
  text-align: center;
}
.manifesto .kicker {
  margin-bottom: 18px;
}
.manifesto .kicker::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 1px;
}
.manifesto h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: none;
  margin: 0 auto 28px;
}
.manifesto .pull {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  color: var(--accent);
  line-height: 1.3;
  margin: 0 0 28px;
}
.manifesto p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  margin: 0 auto 18px;
  max-width: 62ch;
}
.manifesto .close {
  font-size: 18px;
  color: var(--heading);
  margin-top: 28px;
}

/* Solutions store */
.store { margin: 28px 0 48px; }
.store-search-label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.store-search {
  font: inherit; font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--heading); background: #fff; width: 100%; max-width: 420px;
}
.store-facets, .store-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.store-chip {
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--label); cursor: pointer;
}
.store-chip.is-active, .store-chip:hover { border-color: var(--accent); color: var(--heading); background: rgba(201, 162, 39, 0.08); }
.store-count { font-size: 14px; color: var(--muted); margin: 8px 0 20px; }
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.uc-card h3 { font-size: 20px; line-height: 1.3; }
a.uc-card { color: inherit; }
a.uc-card:hover { color: inherit; }
.uc-sub { font-weight: 500; color: var(--heading); }
.uc-meta { font-size: 13px; color: var(--accent); font-weight: 600; }
.uc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.uc-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--label); background: var(--bg-soft); border-radius: 999px; padding: 4px 8px;
}
.partner-logo {
  width: 72px; height: 72px; object-fit: contain; display: block;
  margin: 0 0 16px; background: #fff; border-radius: 12px;
  border: 1px solid var(--border);
}
@media (max-width: 800px) { .store-grid { grid-template-columns: 1fr; } }

/* Forms */
.email-cta { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; max-width: 560px; }
.email-cta h3 { margin: 0 0 8px; }
.email-cta p { margin: 0; color: var(--muted); }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.faq summary { cursor: pointer; font-size: 18px; font-weight: 400; color: var(--heading); }
.faq details p { margin: 10px 0 4px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.person h3 { font-size: 22px; margin-bottom: 2px; }
.person .title { color: var(--accent); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.person p { font-size: 15px; }

/* Footer */
.site-footer { background: var(--bg-darker); color: rgba(255,255,255,0.72); padding: 56px 0 28px; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.foot-brand img { height: 40px; width: auto; display: block; }
.foot-brand .wordmark-name { color: #fff; }
.foot-col h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin: 8px 0; font-size: 14px; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .foot-grid, .team-grid { grid-template-columns: 1fr; }
  .site-header { overflow-x: clip; }
  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: auto;
    min-height: var(--nav-h);
    gap: 0;
  }
  .wordmark {
    grid-column: 1; grid-row: 1;
    min-width: 0;
    gap: 8px;
  }
  .site-header .wordmark img { height: 28px; }
  .site-header .wordmark-name {
    display: inline;
    font-size: 18px;
    white-space: nowrap;
  }
  .nav-toggle {
    display: inline-flex;
    grid-column: 2; grid-row: 1;
    margin-left: 0;
    flex-shrink: 0;
  }
  .nav-links, .nav-cta { display: none; }
  .nav.is-open .nav-links,
  .nav.is-open .nav-cta {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
  }
  .nav.is-open .nav-links {
    flex-direction: column;
    margin: 0;
    padding: 16px 0 8px;
    gap: 4px;
    border-top: 1px solid var(--border);
  }
  .nav.is-open .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }
  .nav.is-open .nav-cta {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 8px 0 20px;
    gap: 10px;
  }
  .nav.is-open .nav-cta .btn { width: 100%; }
  .nav.is-open .lang-switch { align-self: flex-start; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: rgba(0, 0, 0, 0.35);
    z-index: 40;
  }
  body.is-nav-open { overflow: hidden; }
  body.is-nav-open .nav-overlay { display: block; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
}
