/* ==========================================================
   Fawkes Capital Management — site styles
   Brand colours and fonts are defined once here as variables.
   ========================================================== */
:root {
  --navy: #071941;
  --navy-soft: #1c2a5a;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: #d9d9de;
  --paper: #ffffff;
  --wash: #f5f5f7;
  --accent: #c9d9f5;          /* pale blue "Subscribe" button */
  --serif: "Merriweather", Georgia, serif;
  --sans-display: "Merriweather Sans", "Helvetica Neue", Arial, sans-serif;
  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #eee;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 16px;
}
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: #000; font-weight: 300; font-size: 15px;
  padding: 6px 14px; border-radius: 3px;
}
.nav a:hover, .nav a[aria-current="page"] { background: #f0ece8; }
.btn-login {
  background: var(--navy); color: #fff !important; font-weight: 500 !important;
  padding: 9px 20px !important; border-radius: 3px; margin-left: 10px;
}
.btn-login:hover { background: var(--navy-soft) !important; }
.menu-toggle {
  display: none; background: none; border: 1.5px solid #000; border-radius: 3px;
  width: 38px; height: 34px; cursor: pointer; padding: 0;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: #000; margin: 0 auto; position: relative; content: "";
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* ---------- Page hero (inner pages) ---------- */
.hero {
  position: relative; height: 300px;
  background: #555 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.18); }
.hero h1 {
  position: relative; z-index: 1; margin: 0; color: #fff;
  font-family: var(--serif); font-weight: 400; font-size: 56px; letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.intro {
  max-width: 900px; margin: 26px auto 18px; padding: 0 20px; text-align: center;
  font-family: var(--sans-display); font-style: italic; font-weight: 300; color: #333;
}

/* ---------- Home ---------- */
.home-hero {
  min-height: calc(100vh - 76px);
  background: #ddd url("../img/hero-home.jpg") center/cover no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center;
}
.home-hero .logo-stacked { width: min(420px, 80vw); }
.home-hero p {
  max-width: 820px; margin: 36px auto 0; font-size: 17px; line-height: 1.7; color: #1c1c1c;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: 15px; border-radius: 20px;
  padding: 8px 40px; border: 1px solid var(--navy);
  background: var(--accent); color: #000;
}
.btn:hover { background: #b6cbef; }
.btn-navy {
  background: var(--navy); color: #fff; border-radius: 3px; padding: 7px 22px; font-size: 14px; border: 0;
}
.btn-navy:hover { background: var(--navy-soft); }
.center { text-align: center; }

.section-title {
  font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--navy);
  text-decoration: underline; text-underline-offset: 4px; text-align: center; margin: 34px 0 20px;
}

/* ---------- Reports ---------- */
.report-buttons { display: grid; gap: 12px; max-width: 380px; margin: 0 auto; }
.report-buttons a {
  display: block; text-align: center; text-decoration: none; color: #333;
  border: 2px solid #111; background: var(--wash); padding: 10px 12px; font-size: 16px;
}
.report-buttons a:hover { background: #e8e8ec; }
.year-group { max-width: var(--maxw); margin: 16px auto; padding: 0 20px; }
.year-group details { border: 1px solid var(--line); background: #fff; }
.year-group details + details { border-top: 0; }
.year-group summary {
  cursor: pointer; list-style: none; padding: 10px 16px; font-size: 20px; font-weight: 500; color: var(--navy);
}
.year-group summary::-webkit-details-marker { display: none; }
.year-group summary::before { content: "›"; display: inline-block; margin-right: 10px; transition: transform .2s; }
.year-group details[open] summary::before { transform: rotate(90deg); }
.year-group ul { margin: 0; padding: 0 16px 14px 40px; }
.year-group li { margin: 3px 0; }
.year-group li a { text-decoration: none; color: #333; }
.year-group li a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Insights ---------- */
.insight-list { list-style: none; margin: 0 auto; padding: 0 20px; max-width: 820px; text-align: center; }
.insight-list li { margin: 7px 0; }
.insight-list .date { color: #888; }
.insight-list a { color: var(--navy); font-weight: 700; font-style: italic; text-decoration: none; font-size: 14px; }
.insight-list a:hover { text-decoration: underline; }
.insight-list li.more { display: none; }
.insight-list.expanded li.more { display: list-item; }

/* ---------- Library ---------- */
.library-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 40px;
  max-width: var(--maxw); margin: 0 auto 50px; padding: 0 20px;
}
.lib-cat { text-align: center; padding-bottom: 22px; }
.lib-cat h2 {
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--navy);
  text-decoration: underline; text-underline-offset: 4px; margin: 28px 0 14px;
}
.lib-cat ul { list-style: none; margin: 0 0 12px; padding: 0; }
.lib-cat li { margin: 0 0 8px; font-size: 15px; }
.lib-cat li a { color: #000; font-style: italic; font-weight: 500; text-decoration: none; }
.lib-cat li a:hover { text-decoration: underline; }
.lib-cat .by { color: var(--muted); font-family: var(--sans-display); font-weight: 300; }
.lib-cat li.more { display: none; }
.lib-cat.expanded li.more { display: list-item; }

/* ---------- Contact ---------- */
.contact { max-width: var(--maxw); margin: 50px auto 70px; padding: 0 20px; }
.contact .eyebrow { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); margin: 0; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 4px 0 14px; }
.contact .sub { font-family: var(--sans-display); font-style: italic; color: var(--muted); margin: 0 0 24px; }
.contact h3 { font-weight: 500; font-size: 17px; margin: 0 0 10px; }
.contact ul { list-style: none; padding: 0; margin: 0; }
.contact li { margin: 6px 0; }
.contact li a { color: var(--muted); text-decoration: none; }
.contact li a:hover { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; font-size: 13px; padding: 26px 0 22px; margin-top: 50px; }
.home .site-footer { margin-top: 0; }
.site-footer .row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .r { text-align: right; }
.site-footer .legal { text-align: center; margin-top: 18px; font-size: 12px; opacity: 0.9; }

/* ---------- Disclaimer modal ---------- */
.disclaimer-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.45);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.disclaimer-backdrop.show { display: flex; }
.disclaimer {
  background: #e9e9e9; max-width: 640px; width: 100%; max-height: 88vh; overflow: auto;
  padding: 22px 26px 26px; box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.disclaimer h2 {
  font-family: var(--sans); font-weight: 500; color: #2c3e70; font-size: 22px;
  margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--navy); text-align: center;
}
.disclaimer .body { background: #f7f7f7; border: 2px solid #888; padding: 12px 16px; color: #666; font-size: 14px; }
.disclaimer .body p { margin: 0 0 10px; }
.disclaimer .actions { text-align: center; margin-top: 18px; }
.disclaimer button {
  background: var(--navy); color: #fff; border: 0; border-radius: 3px; padding: 11px 30px;
  font: 500 15px var(--sans); cursor: pointer;
}
.disclaimer button:hover { background: var(--navy-soft); }
body.locked { overflow: hidden; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: #fff; border-bottom: 1px solid #eee; padding: 8px 16px 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 8px; text-transform: uppercase; font-size: 14px; }
  .btn-login { margin: 8px 0 0; text-align: center; text-transform: none !important; }
  .hero { height: 220px; }
  .hero h1 { font-size: 40px; }
  .library-grid { grid-template-columns: 1fr; }
  .site-footer .row { grid-template-columns: 1fr; text-align: center; }
  .site-footer .r { text-align: center; }
  .home-hero p { font-size: 15px; }
}
