/* Richiest Home + Connected Marketing Pages */
:root {
  --dark: #393B44;
  --slate: #8D93AB;
  --mist: #D6E0F0;
  --offwhite: #F1F3F8;
  --white: #ffffff;
  --green: #4C9A6A;
  --ink: #1a1c22;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
  margin: 0;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; margin: 0; }
p { margin: 0; }
img { display: block; }

/* Backward-compatible hero target for current index markup */
.dark-div.py-5 {
  background: var(--dark) !important;
  position: relative;
  overflow: hidden;
}
.dark-div.py-5::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(141,147,171,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.dark-div.py-5 > * { position: relative; z-index: 1; }

.container-1280 { max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 24px; }

.site-nav { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid #e2e5ec; }

.hero { background: var(--dark); position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(141,147,171,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 520px;
  position: relative; z-index: 1;
}
.hero-copy { padding: 80px 60px 80px 0; display: flex; flex-direction: column; justify-content: center; }
.hero-eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--white); font-weight: 900; margin-bottom: 24px; }
.hero h1 em { color: var(--mist); font-style: italic; }
.hero-sub { color: rgba(255,255,255,.72); line-height: 1.6; max-width: 500px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary-hero, .btn-ghost-hero {
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .9rem;
  padding: 14px 28px; border-radius: 6px; text-decoration: none; display: inline-block;
}
.btn-primary-hero { background: var(--white); color: var(--dark); }
.btn-primary-hero:hover { text-decoration: none; color: var(--dark); background: var(--offwhite); }
.btn-ghost-hero { border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.85); }
.btn-ghost-hero:hover { color: var(--white); text-decoration: none; border-color: rgba(255,255,255,.7); }

.hero-panel {
  background: rgba(255,255,255,.06);
  border-left: 1px solid rgba(255,255,255,.1);
  padding: 60px 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.stat-label { font-size: .7rem; letter-spacing: .12em; color: var(--slate); text-transform: uppercase; }
.stat-value { font-family: 'Playfair Display', serif; color: var(--white); font-size: 2rem; }
.stat-note { color: rgba(255,255,255,.5); font-size: .78rem; }
.stat-divider { height: 1px; background: rgba(255,255,255,.1); }

.section-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem,3vw,2.4rem); color: var(--dark); margin-bottom: 8px; }
.section-sub { color: #666; line-height: 1.6; max-width: 560px; }

.pillars { padding: 80px 0; }
.pillars-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--dark); border-radius: 10px; overflow: hidden;
}
.pillar { padding: 40px 32px; border-right: 2px solid var(--dark); }
.pillar:last-child { border-right: none; }
.pillar-number { font-size: 3rem; color: var(--mist); margin-bottom: 16px; }
.pillar h3 { font-size: 1.25rem; margin-bottom: 14px; color: var(--dark); }
.pillar p { color: #555; line-height: 1.65; }

.guides-section, .news-section { padding: 80px 0; }
.guides-section { background: var(--white); }
.news-section { background: var(--offwhite); border-top: 1px solid #e2e5ec; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.75); }

#return-to-top {
  position: fixed; right: 24px; bottom: 24px; display: none;
  width: 44px; height: 44px; border-radius: 8px;
  justify-content: center; align-items: center;
  background: var(--dark); color: white; text-decoration: none; z-index: 1000;
}

/* Match footer rows to hero dark tone for current shared-footer markup */
.row.dark-div,
.site-footer {
  background: var(--dark) !important;
  color: rgba(255,255,255,.8);
}
.row.dark-div a,
.site-footer a { color: rgba(255,255,255,.8); }
.row.dark-div a:hover,
.site-footer a:hover { color: #fff; }

@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 60px 0 40px; }
  .hero-panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); flex-direction: row; flex-wrap: wrap; }
  .stat-divider { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 2px solid var(--dark); }
  .pillar:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
}
