/* FairSettlement — Shared Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy:    #003078;
  --teal:    #007b72;
  --link:    #1d70b8;
  --green:   #00703c;
  --red:     #d4351c;
  --amber:   #f47738;
  --yellow:  #ffdd00;
  --bg:      #ffffff;
  --bg-alt:  #f3f2f1;
  --bg-dark: #0b0c0c;
  --border:  #b1b4b6;
  --text:    #0b0c0c;
  --text-2:  #505a5f;
  --font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:   1200px;
  --radius:  4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* ── Typography ── */
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }
a  { color: var(--link); text-decoration: underline; }
a:hover { text-decoration: none; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 600; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header / Nav ── */
.site-header {
  background: var(--navy);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.site-logo span { color: var(--yellow); }
.site-nav { display: flex; align-items: center; gap: 0.2rem; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(255,255,255,0.12);
  color: white;
}
.site-nav a.active { font-weight: 700; }
.nav-cta {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 0.4rem 1rem !important;
}
.nav-cta:hover { background: #ffe033 !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: white;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 5px solid var(--yellow);
}
.hero h1 { color: white; margin-bottom: 1rem; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 640px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

/* ── Page header (non-hero) ── */
.page-header {
  background: var(--navy);
  color: white;
  padding: 2rem 0;
  border-bottom: 4px solid var(--yellow);
}
.page-header h1 { color: white; font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.85); margin: 0; }
.page-header .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}
.page-header .breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.page-header .breadcrumb a:hover { color: white; }

/* ── Calculator layout ── */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
}
@media (max-width: 768px) { .calc-layout { grid-template-columns: 1fr; } }

.calc-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.calc-panel__header {
  background: var(--bg-alt);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.calc-panel__header h2 { font-size: 1rem; margin: 0; }
.calc-panel__body { padding: 1.25rem; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.form-group .hint {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 0.35rem;
  display: block;
}
.form-group input[type="number"],
.form-group input[type="text"],
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: var(--font);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  transition: border-color 0.15s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 0;
  border-color: var(--text);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23505a5f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.form-group .prefix-wrap { position: relative; }
.form-group .prefix-wrap::before {
  content: attr(data-prefix);
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
}
.form-group .prefix-wrap input { padding-left: 1.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font);
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: white; }
.btn--primary:hover { background: #005a30; color: white; }
.btn--navy { background: var(--navy); color: white; }
.btn--navy:hover { background: #001f52; color: white; }
.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: white; }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: #ffe033; color: var(--navy); }
.btn--full { width: 100%; justify-content: center; }

/* ── Results box ── */
.results-box { display: none; }
.results-box.visible { display: block; }

.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--bg-alt);
  font-size: 0.95rem;
}
.result-line:last-child { border-bottom: none; }
.result-line__label { color: var(--text-2); }
.result-line__value { font-weight: 700; color: var(--text); }
.result-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  margin-top: 0.75rem;
}
.result-total__label { font-weight: 600; font-size: 1rem; }
.result-total__value { font-size: 1.4rem; font-weight: 700; }

/* Fairness indicator */
.fairness {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.fairness--green { background: #e8f5ee; color: #00452a; border-left: 4px solid var(--green); }
.fairness--amber { background: #fef5e7; color: #6b3a00; border-left: 4px solid var(--amber); }
.fairness--red   { background: #fce8e6; color: #6a0c00; border-left: 4px solid var(--red); }

/* ── Callout / notification ── */
.callout {
  padding: 1rem 1.25rem;
  border-left: 5px solid;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.callout--info    { background: #e8f4fc; border-color: var(--link); }
.callout--warning { background: #fef5e7; border-color: var(--amber); }
.callout--danger  { background: #fce8e6; border-color: var(--red); }
.callout--success { background: #e8f5ee; border-color: var(--green); }
.callout--teal    { background: #e6f5f4; border-color: var(--teal); }
.callout h4 { margin-bottom: 0.4rem; font-size: 0.95rem; }
.callout p { font-size: 0.9rem; margin-bottom: 0; }

/* Jan 2027 banner */
.banner-2027 {
  background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}
.banner-2027 h4 { color: white; margin-bottom: 0.35rem; font-size: 1rem; }
.banner-2027 p { color: rgba(255,255,255,0.9); font-size: 0.875rem; margin: 0; }
.banner-2027 a { color: var(--yellow); font-weight: 600; }

/* ── Calculator cards (homepage) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.calc-card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: 6px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.15s;
}
.calc-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}
.calc-card__kw {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.calc-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--navy); }
.calc-card p { font-size: 0.875rem; color: var(--text-2); margin-bottom: 1rem; }
.calc-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-2);
}
.pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.pill--red { background: #fce8e6; color: #d4351c; }
.pill--amber { background: #fef5e7; color: #b45309; }

/* ── Guide cards ── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.guide-card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s;
}
.guide-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.1); text-decoration: none; }
.guide-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--link);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.guide-card h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 0.4rem; }
.guide-card p { font-size: 0.82rem; color: var(--text-2); margin: 0; }

/* ── Article (guide pages) ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  padding: 2.5rem 0;
  align-items: start;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

.article-body h2 { margin-top: 1.75rem; margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--bg-alt); }
.article-body h3 { margin-top: 1.25rem; margin-bottom: 0.5rem; }
.article-body ul, .article-body ol { margin-bottom: 1rem; }

/* Sidebar */
.sidebar { position: sticky; top: 80px; }
.sidebar__block {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar__block h4 { font-size: 0.9rem; margin-bottom: 0.75rem; color: var(--navy); }
.sidebar__block ul { list-style: none; padding: 0; margin: 0; }
.sidebar__block ul li { border-bottom: 1px solid var(--border); }
.sidebar__block ul li:last-child { border-bottom: none; }
.sidebar__block ul li a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.85rem;
  color: var(--link);
  text-decoration: none;
}
.sidebar__block ul li a:hover { text-decoration: underline; }

/* ── Solicitor referral CTA ── */
.solicitor-cta {
  background: var(--navy);
  color: white;
  border-radius: 8px;
  padding: 1.75rem;
  margin-top: 2rem;
}
.solicitor-cta h3 { color: white; margin-bottom: 0.5rem; }
.solicitor-cta p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 1rem; }
.solicitor-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.solicitor-card__info h4 { color: white; margin-bottom: 0.2rem; font-size: 0.95rem; }
.solicitor-card__info p { color: rgba(255,255,255,0.7); font-size: 0.8rem; margin: 0; }
.solicitor-card .btn { flex-shrink: 0; font-size: 0.875rem; padding: 0.5rem 1rem; }

/* ── Section wrapper ── */
.section { padding: 2.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__title { margin-bottom: 1.5rem; }
.section__title h2 { margin-bottom: 0.35rem; }
.section__title p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* ── Trust strip ── */
.trust-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
}
.trust-item svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

/* ── Stats ── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.stat-box {
  flex: 1;
  min-width: 140px;
  background: var(--navy);
  color: white;
  border-radius: 6px;
  padding: 1.25rem;
  text-align: center;
}
.stat-box__num { font-size: 1.8rem; font-weight: 700; color: var(--yellow); }
.stat-box__label { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-top: 0.2rem; }

/* ── FAQ accordion ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--teal);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__body { padding: 0 0 1rem; }
.faq-item__body p { font-size: 0.9rem; color: var(--text-2); }

/* ── Table ── */
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--navy); color: white; padding: 0.6rem 0.75rem; text-align: left; font-weight: 600; }
td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); }
tr:nth-child(even) td { background: var(--bg-alt); }

/* ── Footer ── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { color: white; font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 0.4rem; }
.footer-grid ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.85rem; }
.footer-grid ul li a:hover { color: white; }
.footer-brand { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.footer-brand span { color: var(--yellow); }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-disclaimer {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--amber);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}

/* ── Disclaimer notice ── */
.disclaimer-notice {
  background: #fff9e6;
  border: 1px solid #f0c040;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #5a4200;
  margin-bottom: 1.5rem;
}
.disclaimer-notice strong { color: #3d2e00; }

/* ── Glossary terms ── */
.glossary-term { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.glossary-term dt { font-weight: 700; color: var(--navy); font-size: 1rem; }
.glossary-term dd { color: var(--text-2); font-size: 0.9rem; margin-left: 0; margin-top: 0.25rem; }

/* ── Solicitor directory ── */
.solicitor-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.solicitor-listing {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.solicitor-listing__logo {
  width: 60px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.solicitor-listing h4 { font-size: 0.95rem; color: var(--navy); }
.solicitor-listing p { font-size: 0.82rem; color: var(--text-2); margin: 0; }
.solicitor-listing__rating { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; }
.stars { color: #f59e0b; letter-spacing: -1px; }

/* ── Ad slots ── */
.ad-slot { text-align: center; margin: 1.25rem 0; }
.ad-slot--leaderboard .ad-slot__inner {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 728px; height: 90px;
  background: #eef0f2; border: 1px dashed #b1b4b6; border-radius: var(--radius);
  color: #999; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ad-slot--rectangle .ad-slot__inner {
  display: inline-flex; align-items: center; justify-content: center;
  width: 336px; height: 280px;
  background: #eef0f2; border: 1px dashed #b1b4b6; border-radius: var(--radius);
  color: #999; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ad-slot--sidebar .ad-slot__inner {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 250px;
  background: #eef0f2; border: 1px dashed #b1b4b6; border-radius: var(--radius);
  color: #999; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--text-2); }
.fw-bold { font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--navy); padding: 1rem; border-top: 1px solid rgba(255,255,255,.15); z-index: 99; }
  .nav-toggle { display: block; }
  .hero { padding: 2rem 0 1.5rem; }
  .stats-row { gap: 0.75rem; }
}
