/* Core Investments — black & white theme */
:root {
  --black: #000000;
  --gray-900: #1a1a1a;
  --gray-700: #4d4d4d;
  --gray-500: #8c8c8c;
  --gray-300: #b8b8b8;
  --gray-100: #e8e8e8;
  --white: #ffffff;
  /* legacy aliases kept so nothing else breaks */
  --gray-200: #e8e8e8;
  --gray-800: #1a1a1a;
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- NAV ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 8px 24px -12px rgba(0,0,0,0.08);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--black);
}

.nav-links .btn { border: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--black); display: block; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 16px 34px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--white); color: var(--black); }

.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-light { border-color: var(--white); background: var(--white); color: var(--black); }
.btn-light:hover { background: transparent; color: var(--white); }

.btn-outline-light { border-color: var(--white); background: transparent; color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--black); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.58) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 60px 24px;
}

.hero-content img.hero-logo { height: 140px; margin: 0 auto 24px; }

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-content p.tagline {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 28px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 90px 24px 60px;
  text-align: center;
}
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.25; margin-bottom: 14px; }
.page-hero p { color: var(--gray-300); font-size: 17px; max-width: 640px; margin: 0 auto; font-weight: 300; }

/* ---------- PILLARS ---------- */
.pillars {
  padding: 120px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-heading p {
  color: var(--gray-700);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--gray-100);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.18);
}

.pillar-card {
  padding: 64px 40px;
  border-right: 1px solid var(--gray-100);
  text-align: center;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.pillar-card:last-child { border-right: none; }

.pillar-card .icon { font-size: 40px; margin-bottom: 20px; }

.pillar-card h3 {
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.pillar-card p {
  color: var(--gray-700);
  font-size: 15px;
  margin-bottom: 26px;
  min-height: 44px;
}

.pillar-card:hover { background: var(--black); color: var(--white); }
.pillar-card:hover p { color: var(--gray-300); }
.pillar-card:hover .btn-outline { border-color: var(--white); color: var(--white); }
.pillar-card:hover .btn-outline:hover { background: var(--white); color: var(--black); }

/* ---------- COVERAGE LIST (inner pages) ---------- */
.coverage-section { padding: 100px 0; }

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.coverage-item {
  border: 1px solid var(--gray-100);
  padding: 36px 32px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.coverage-item:hover {
  border-color: var(--gray-700);
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -24px rgba(0,0,0,0.22);
}

.coverage-item h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.coverage-item p { color: var(--gray-700); font-size: 14.5px; }

.coverage-note {
  background: var(--gray-100);
  padding: 40px;
  margin-top: 56px;
  text-align: center;
}
.coverage-note p { font-size: 16px; margin-bottom: 20px; }

/* ---------- FACT FINDER ---------- */
.fact-finder {
  background: var(--black);
  color: var(--white);
  padding: 120px 0;
}

.fact-finder .section-heading h2 { color: var(--white); }
.fact-finder .section-heading p { color: var(--gray-200); }

.ff-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.ff-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--gray-200);
}

.ff-field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  color: var(--white);
  font-size: 15px;
  font-family: var(--font);
}

.ff-field input:focus {
  outline: none;
  border-color: var(--white);
}

.ff-submit {
  margin-top: 8px;
  width: 100%;
}

.ff-disclaimer {
  font-size: 12.5px;
  color: var(--gray-500);
  text-align: center;
  margin-top: 4px;
}

.ff-thankyou {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 50px 24px;
  border: 1px solid #333;
}
.ff-thankyou h3 { font-size: 24px; margin-bottom: 12px; font-weight: 800; }
.ff-thankyou p { color: var(--gray-200); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid img { height: 56px; margin-bottom: 14px; }

.footer-grid p, .footer-grid a { font-size: 14.5px; color: var(--gray-700); }

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a:hover { color: var(--black); }

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { border-right: none; border-bottom: 1px solid var(--gray-100); }
  .pillar-card:last-child { border-bottom: none; }
  .coverage-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ff-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--gray-200);
  }
  .coverage-grid { grid-template-columns: 1fr; }
  .hero-content img.hero-logo { height: 100px; }
}

/* ================================================
   DARK THEME OVERRIDES — inverted body, same hero
   ================================================ */

body { background: var(--black); color: var(--white); }

.site-nav { background: var(--black); box-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 8px 24px -12px rgba(0,0,0,0.5); }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--white); }
.nav-toggle span { background: var(--white); }

.site-nav .btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.site-nav .btn-primary:hover { background: var(--black); color: var(--white); }

.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }

.section-heading p { color: var(--gray-300); }

.pillar-grid { border-color: var(--gray-700); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.pillar-card { border-right: 1px solid var(--gray-700); background: var(--gray-900); }
.pillar-card:last-child { border-right: none; }
.pillar-card p { color: var(--gray-300); }
.pillar-card:hover { background: var(--white); color: var(--black); }
.pillar-card:hover p { color: var(--gray-700); }
.pillar-card:hover .btn-outline { border-color: var(--black); color: var(--black); }
.pillar-card:hover .btn-outline:hover { background: var(--black); color: var(--white); }

.coverage-item { border: 1px solid var(--gray-700); background: var(--gray-900); }
.coverage-item:hover { border-color: var(--white); box-shadow: 0 24px 40px -24px rgba(0,0,0,0.6); }
.coverage-item p { color: var(--gray-300); }

.coverage-note { background: var(--gray-900); }

.site-footer { background: var(--black); border-top: 1px solid var(--gray-700); }
.footer-grid p, .footer-grid a { color: var(--gray-300); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--gray-700); color: var(--gray-500); }

@media (max-width: 620px) {
  .nav-links.open { background: var(--black); border-bottom: 1px solid var(--gray-700); }
  .pillar-card { border-bottom: 1px solid var(--gray-700); }
}
