/* ============================================================
   COMPROMISE SOLUTIONS — Design tokens
   Palette: warm ivory + deep navy + champagne gold
   Signature motif: two overlapping circles meeting at a shared
   "common ground" — echoed in the mark, hero, and dividers.
   ============================================================ */

:root {
  --navy: #1c2b3a;
  --navy-deep: #121d28;
  --navy-mid: #2e4258;
  --gold: #c6a664;
  --gold-soft: #e8d9b5;
  --ivory: #faf7f2;
  --light-grey: #e9e5dc;
  --white: #ffffff;
  --ink: #23282d;
  --ink-soft: #5b6470;
  --line: #d9d2c2;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.8rem, 5.6vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.9em;
  display: inline-block;
}

/* ---------- Signature mark: overlapping circles ---------- */
.mark {
  width: 34px;
  height: 22px;
  flex-shrink: 0;
}
.mark circle:first-child { fill: var(--navy); }
.mark circle:last-child { fill: var(--gold); opacity: 0.85; mix-blend-mode: multiply; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo-mark {
  height: 46px;
  width: auto;
  display: block;
}
.logo-mark-footer {
  height: 40px;
  background: var(--ivory);
  padding: 6px 10px;
  border-radius: 4px;
}
nav.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 500;
}
nav.main-nav a {
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a.active { color: var(--navy); font-weight: 700; }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
}
nav.main-nav a:hover { color: var(--navy); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(198,166,100,0.35); }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }

/* ---------- Hero (common-ground motif) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 24px 110px;
  background: var(--navy);
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1, .hero .eyebrow { color: var(--white); }
.hero h1 { color: var(--white); }
.hero p.lede {
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.common-ground-svg { width: 100%; height: auto; }

.hero-photo-frame {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(198,166,100,0.35);
  aspect-ratio: 4/5;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.session-photo-frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(28,43,58,0.18);
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
}
.session-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* soft ambient circles behind hero content */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}
.hero::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(198,166,100,0.16), transparent 70%);
  top: -160px; left: -120px;
}
.hero::after {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(198,166,100,0.10), transparent 70%);
  bottom: -220px; right: -160px;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-white { background: var(--light-grey); }
.bg-ivory { background: var(--ivory); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.75); }

/* Divider using the mark motif instead of numbered badges */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 56px;
  max-width: 200px;
}
.divider .line { flex: 1; height: 1px; background: var(--line); }

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--light-grey);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
}
.card .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.card .card-icon {
  display: block;
  margin-bottom: 14px;
}

/* ---------- Approach flow (Listen/Understand/Align/Resolve) ---------- */
.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}
.flow-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 28px 20px;
  position: relative;
}
.flow-step h3 { margin-bottom: 8px; }
.flow-step .connector {
  display: none;
}
.flow-orbit {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: var(--navy);
  background: var(--ivory);
  position: relative;
}
.flow-track {
  position: relative;
  height: 2px;
  background: var(--line);
  margin: 0 20px 40px;
}
.flow-track::before, .flow-track::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.flow-track::before { left: -2px; }
.flow-track::after { right: -2px; }

/* ---------- List with check marks ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}

/* ---------- Mediator / people block ---------- */
.person {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}
.person-photo {
  aspect-ratio: 4/5;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--navy-mid), var(--navy));
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 1;
}
.person-photo .initials {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold-soft);
}
.person-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(198,166,100,0.18), transparent 60%);
  z-index: 2;
  pointer-events: none;
}

/* ---------- Membership strip ---------- */
.membership-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ivory);
}
.membership-strip .badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.membership-strip .sja-logo {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.contact-team-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ivory);
}
.contact-team-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 76px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-contacts {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 1.05rem;
}
.cta-contacts a, .cta-contacts span { display: flex; align-items: center; gap: 8px; }
.cta-contacts svg { flex-shrink: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  color: var(--gold-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.footer-col a, .footer-col p { display: block; margin-bottom: 8px; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-tagline {
  text-align: center;
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}
.footer-registration {
  text-align: center;
  margin-top: 10px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Page hero (secondary pages) ---------- */
.page-hero {
  background: var(--navy);
  padding: 64px 0 84px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 56ch; }
.page-hero::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,166,100,0.14), transparent 70%);
  top: -140px; right: -100px;
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--gold-soft);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 20px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 22px; margin: 0; max-width: 65ch; }

/* ---------- Timeline (How Mediation Works) ---------- */
.timeline { position: relative; padding-left: 44px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 10px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -44px; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ivory);
  border: 3px solid var(--gold);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--ivory);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { resize: vertical; min-height: 130px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 52px;
}
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 38px 34px;
  height: fit-content;
}
.contact-info-card h3 { color: var(--white); }
.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-line svg { flex-shrink: 0; margin-top: 2px; }
.contact-line a, .contact-line span { color: rgba(255,255,255,0.85); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Mediation quiz ---------- */
.quiz-card {
  background: var(--light-grey);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 44px;
  max-width: 640px;
  margin: 0 auto;
}
.quiz-q { padding: 20px 0; border-bottom: 1px solid var(--line); }
.quiz-q:first-of-type { padding-top: 8px; }
.quiz-q-text { color: var(--navy); font-weight: 600; margin: 0 0 12px; }
.quiz-options { display: flex; gap: 24px; }
.quiz-options label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; color: var(--ink-soft); cursor: pointer;
}
.quiz-options input { width: auto; accent-color: var(--gold); }
#quizForm button { margin-top: 28px; }
.quiz-result {
  text-align: center;
  padding: 12px 0 4px;
}
.quiz-result h3 { margin-bottom: 10px; }
.quiz-result .btn { margin-top: 6px; }
/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-inner { position: relative; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(18,29,40,0.12);
    padding: 6px 24px 10px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  nav.main-nav a:last-child { border-bottom: none; }
  nav.main-nav a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero .hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person-photo { max-width: 220px; margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-track { display: none; }
  .footer-inner { flex-direction: column; }
}

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