/* Unity Legal — Ink Navy / Heritage Gold / Warm Ivory
   Palette per Unity_legal/design/brand-and-colors.md. Gold is never text on
   light backgrounds (fails contrast) — gold buttons carry navy text. */

:root {
  --navy-deep: #0E1F33;
  --navy: #16304F;
  --navy-lt: #214069;
  --navy-tint: #E8EDF3;
  --gold: #C6A968;
  --gold-deep: #9A7A4E;
  --gold-tint: #F6EFE1;
  --ivory: #FAF6EF;
  --ink: #1C2733;
  --slate: #5A6B7E;
  --hair: #E4E0D8;
  --white: #FFFFFF;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(14, 31, 51, .07);
  --shadow-lg: 0 10px 30px rgba(14, 31, 51, .12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-lt); text-decoration: none; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: var(--navy-tint); }

.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.gold-bar { width: 56px; height: 3px; background: var(--gold); margin: 18px 0 22px; border: 0; }
.center { text-align: center; }
.center .gold-bar { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; color: var(--slate); max-width: 720px; }
.center .lead { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #D2B87C; color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-lt); color: var(--white); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { border-color: var(--gold); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: var(--gold); color: var(--navy-deep); }

/* Topbar */
.topbar { background: var(--navy-deep); color: var(--navy-tint); font-size: .8rem; padding: 8px 0; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--gold); }

/* Header / nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { line-height: 1.1; }
.brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 700; color: var(--navy);
  letter-spacing: .04em;
}
.brand .brand-sub {
  display: block; font-size: .62rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: .88rem; font-weight: 500; color: var(--navy);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--gold); color: var(--navy); }
.nav .btn { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* Hero */
.hero { padding: 96px 0 88px; background:
  linear-gradient(180deg, var(--ivory) 0%, #F4EDE0 100%); }
.hero .kicker { font-size: .82rem; }
.hero h1 { max-width: 800px; }
.hero .lead { margin: 8px 0 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.trustbar { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--hair); }
.trustbar div strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.trustbar div span { font-size: .8rem; color: var(--slate); }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .93rem; }
.card .card-link { display: inline-block; margin-top: 14px; font-size: .85rem; font-weight: 600; color: var(--navy); }
.card .card-link::after { content: ' →'; color: var(--gold-deep); }
.card-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold-tint); border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 18px; color: var(--navy);
}

/* Article cards */
.article-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.article-card .article-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.article-card time { font-size: .78rem; color: var(--slate); letter-spacing: .06em; text-transform: uppercase; }
.article-card h3 { margin: 8px 0 10px; font-size: 1.3rem; }
.article-card p { flex: 1; }

/* Prose (article + service bodies, terms) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.65rem; margin: 40px 0 14px; }
.prose h3 { margin: 30px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--navy); }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 18px; color: var(--slate); margin: 0 0 18px; }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item { border: 1px solid var(--hair); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold-deep); font-size: 1.2rem; font-weight: 400; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-answer { padding: 0 22px 18px; color: var(--slate); font-size: .95rem; }

/* Forms */
.form-grid { display: grid; gap: 16px; max-width: 620px; }
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=number], select, textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--hair); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: .95rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
label { font-size: .82rem; font-weight: 600; color: var(--navy); }
.errorlist { color: #8C2F39; font-size: .85rem; list-style: none; }
.helptext { font-size: .78rem; color: var(--slate); }

/* Inline subscribe */
.subscribe-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-inline input[type=email] { flex: 1; min-width: 220px; }

/* Messages */
.flash { padding: 14px 20px; border-radius: var(--radius); margin: 18px 0; font-size: .92rem; }
.flash-success { background: #EAF3EA; color: #2F5D34; border: 1px solid #BFD9C0; }
.flash-error { background: #F7E9EA; color: #8C2F39; border: 1px solid #E4C1C5; }

/* CTA band */
.cta-band { background: var(--navy); border-top: 3px solid var(--gold); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: var(--navy-tint); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--navy-tint); font-size: .88rem; }
.site-footer .footer-rule { height: 3px; background: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 44px; padding: 56px 0 40px; }
.site-footer h4 {
  font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600;
}
.site-footer a { color: var(--navy-tint); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); }
.footer-tagline { color: var(--gold); font-style: italic; font-family: var(--font-display); margin: 4px 0 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }
.social-row { display: flex; gap: 14px; margin-top: 16px; }
.social-row a {
  width: 34px; height: 34px; border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .72rem;
  font-weight: 700; color: var(--gold);
}
.social-row a:hover { background: var(--gold); color: var(--navy-deep); }

/* Page hero (interior pages) */
.page-hero { background: var(--navy); padding: 64px 0 56px; border-bottom: 3px solid var(--gold); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--navy-tint); max-width: 700px; margin-top: 10px; }
.breadcrumbs { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.breadcrumbs a { color: var(--gold); }

/* Team */
.team-card { text-align: left; }
.team-card .role { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }

/* Tables (dashboard) */
table.data { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
table.data th { background: var(--navy); color: var(--white); text-align: left; padding: 12px 16px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
table.data td { padding: 12px 16px; border-top: 1px solid var(--hair); font-size: .9rem; }
table.data tr:hover td { background: var(--gold-tint); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; }
.pill-on { background: #EAF3EA; color: #2F5D34; }
.pill-off { background: var(--navy-tint); color: var(--slate); }

/* Dashboard shell */
.dash-body { background: var(--navy-tint); min-height: 100vh; }
.dash-shell { display: flex; min-height: 100vh; }
.dash-side { width: 230px; background: var(--navy-deep); padding: 28px 0; flex-shrink: 0; }
.dash-side .footer-brand { padding: 0 24px 20px; display: block; }
.dash-side a.dash-link { display: block; padding: 11px 24px; color: var(--navy-tint); font-size: .88rem; border-left: 3px solid transparent; }
.dash-side a.dash-link:hover, .dash-side a.dash-link.active { background: rgba(255,255,255,.05); border-left-color: var(--gold); color: var(--white); }
.dash-main { flex: 1; padding: 36px 40px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.stat { background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px; }
.stat strong { font-family: var(--font-display); font-size: 2rem; color: var(--navy); display: block; }
.stat span { font-size: .8rem; color: var(--slate); }

@media (max-width: 900px) {
  .grid-3, .grid-2, .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         background: var(--white); flex-direction: column; align-items: flex-start;
         padding: 18px 24px; gap: 14px; border-bottom: 1px solid var(--hair); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .dash-shell { flex-direction: column; }
  .dash-side { width: 100%; }
  .dash-main { padding: 24px 20px; }
}
@media (max-width: 580px) {
  .grid-3, .grid-2, .stat-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 64px 0 56px; }
}
