/* ============================================
   DIVORCE-MEDIATORS.ORG — Global Stylesheet
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #FAF8F5;
  --bg-card:   #FFFFFF;
  --green:     #1B6B4A;
  --green-lt:  #E8F0EC;
  --green-dk:  #145236;
  --text:      #1A1A1A;
  --text-mid:  #4A4A4A;
  --text-lt:   #717171;
  --border:    #E0DDD8;
  --gold:      #C9A84C;
  --shadow:    0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --radius:    12px;
  --max-w:     1140px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .78; }

img { max-width: 100%; height: auto; display: block; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.subtitle {
  font-size: 1.15rem;
  color: var(--text-mid);
  max-width: 620px;
  line-height: 1.7;
}

.section-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo svg { width: 28px; height: 28px; fill: var(--green); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .2s;
}
.nav-links a:hover { color: var(--green); opacity: 1; }

.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
}
.nav-cta:hover { background: var(--green-dk); opacity: 1; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 72px;
  text-align: center;
}

.hero h1 { margin-bottom: 18px; }

.hero .subtitle {
  margin: 0 auto 40px;
}

/* Search box */
.search-box {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 18px 24px;
  padding-right: 130px;
  border: 2px solid var(--border);
  border-radius: 60px;
  font-size: 1.05rem;
  font-family: var(--font);
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.search-box input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(27,107,74,.12);
}

.search-box input::placeholder { color: #aaa; }

.search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 60px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background .2s;
}

.search-box button:hover { background: var(--green-dk); }

.search-hint {
  font-size: .82rem;
  color: var(--text-lt);
  margin-top: 12px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  text-align: center;
  padding: 28px 0 0;
}

.trust-strip p {
  font-size: .82rem;
  color: var(--text-lt);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
  margin-bottom: 14px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  opacity: .45;
}

.trust-logos span {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* ---------- Section spacing ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-card); }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head .subtitle { margin: 12px auto 0; }

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 36px 28px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-lt);
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--text-mid); font-size: .95rem; }

/* ---------- Methodology ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .3s;
}

.method-card:hover { box-shadow: var(--shadow); }

.method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
}

.method-card h4 { margin-bottom: 8px; }

.method-card p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.method-weight {
  display: inline-block;
  margin-top: 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-lt);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---------- Metro grid ---------- */
.metro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.metro-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: box-shadow .3s, transform .2s;
}

.metro-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.metro-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.metro-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.metro-card .metro-count {
  font-size: .82rem;
  color: var(--text-lt);
}

/* ---------- Mediator profile cards ---------- */
.mediators-list { display: flex; flex-direction: column; gap: 28px; }

.mediator-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow .3s;
}

.mediator-card:hover { box-shadow: var(--shadow-lg); }

.mediator-photo {
  width: 200px;
  height: 240px;
  border-radius: 10px;
  background: var(--green-lt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: .05em;
  flex-shrink: 0;
}

.mediator-photo img { width: 100%; height: 100%; object-fit: cover; }

.mediator-info { display: flex; flex-direction: column; }

.mediator-rank {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-lt);
  margin-bottom: 4px;
}

.mediator-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.mediator-firm {
  font-size: .95rem;
  color: var(--text-mid);
  margin-bottom: 14px;
}

.mediator-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-lt);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 16px;
  width: fit-content;
}

.score-bar {
  width: 80px;
  height: 6px;
  background: #d4e5db;
  border-radius: 3px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
}

.mediator-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.badge {
  font-size: .75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f3f1ed;
  color: var(--text-mid);
}

.badge--gold { background: #fdf5e3; color: #8B6914; }

.mediator-bio {
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
  flex-grow: 1;
}

.mediator-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.mediator-details dt { font-weight: 600; color: var(--text); }
.mediator-details dd { margin: 0; }

.mediator-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all .2s;
}

.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover { background: var(--green-dk); }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--green); color: var(--green); }

/* ---------- Score breakdown table ---------- */
.score-breakdown {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.score-breakdown h4 {
  font-size: .9rem;
  margin-bottom: 14px;
  color: var(--text);
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.score-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-lt);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.score-table td {
  padding: 8px 0;
  border-bottom: 1px solid #f2f0ec;
}

.score-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--green);
}

.score-table tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  color: var(--text);
}

.score-table tr:last-child td:last-child {
  color: var(--green);
  font-size: 1rem;
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  line-height: 1.45;
}

.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-lt);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform .2s;
}

.faq-item.open .faq-q::after {
  content: '−';
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-a-inner {
  padding: 0 0 20px;
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 600px;
}

/* ---------- CTA section ---------- */
.cta-section {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}

.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 28px; font-size: 1.05rem; }

.cta-section .btn {
  background: #fff;
  color: var(--green);
  font-weight: 700;
  padding: 14px 32px;
  font-size: 1rem;
}

.cta-section .btn:hover { background: #f0f0f0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.6);
  padding: 48px 0 32px;
  font-size: .85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo svg { fill: #fff; }
.footer-brand p { line-height: 1.6; max-width: 280px; }

.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: .8rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------- Metro page hero ---------- */
.metro-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}

.metro-hero .section-label { margin-bottom: 6px; }
.metro-hero h1 { margin-bottom: 10px; }
.metro-hero .subtitle { margin-bottom: 0; }

.metro-stats {
  display: flex;
  gap: 32px;
  margin-top: 20px;
}

.metro-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.metro-stat strong {
  font-size: 1.3rem;
  color: var(--green);
}

.metro-stat span {
  font-size: .88rem;
  color: var(--text-lt);
}

/* ---------- Score comparison summary ---------- */
.comparison-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 36px;
}

.comparison-bar h3 {
  font-size: 1rem;
  margin-bottom: 18px;
}

.comp-row {
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.comp-name { font-size: .92rem; font-weight: 600; }

.comp-bar-track {
  height: 10px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}

.comp-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--green);
  transition: width .6s ease;
}

.comp-score {
  font-size: .9rem;
  font-weight: 700;
  color: var(--green);
  text-align: right;
}

/* ---------- Narrow container ---------- */
.container-narrow { max-width: 720px; margin: 0 auto; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: .84rem;
  color: var(--text-lt);
}

.breadcrumb a {
  color: var(--text-lt);
  font-weight: 500;
}

.breadcrumb a:hover { color: var(--green); }

/* ---------- Blog article ---------- */
.article-header {
  padding: 48px 0 0;
}

.article-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-lt);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 640px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .88rem;
  color: var(--text-lt);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.article-meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-lt);
}

/* Article body prose */
.article-body {
  padding-bottom: 48px;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 1.45rem;
  margin-top: 44px;
  margin-bottom: 18px;
  padding-top: 8px;
}

.article-body h3 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 14px;
}

.article-body a {
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(27,107,74,.3);
  text-underline-offset: 3px;
}

.article-body a:hover {
  text-decoration-color: var(--green);
  opacity: 1;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  color: var(--text-mid);
  line-height: 1.85;
}

.article-body li { margin-bottom: 8px; }

/* Related posts section */
.related-posts {
  padding: 56px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.related-posts h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.related-posts > .container-narrow > p:first-of-type {
  color: var(--text-lt);
  font-size: .95rem;
  margin-bottom: 24px;
}

.related-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}

.related-link:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  color: var(--green);
  opacity: 1;
}

.related-link .arrow {
  font-size: 1.1rem;
  color: var(--text-lt);
  transition: color .2s, transform .2s;
}

.related-link:hover .arrow {
  color: var(--green);
  transform: translateX(3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero { padding: 56px 0 48px; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .metro-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .mediator-card { grid-template-columns: 1fr; }
  .mediator-photo { width: 100%; height: 200px; }
  .mediator-details { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .comp-row { grid-template-columns: 120px 1fr 50px; }
  .search-box input { padding-right: 110px; font-size: .95rem; }
  .search-box button { padding: 10px 18px; font-size: .85rem; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .method-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
