/*
Theme Name:        DataPoints Wealthtech
Theme URI:         https://datapoints.com
Author:            DataPoints
Author URI:        https://datapoints.com
Description:       Official DataPoints brand theme for financial professionals. Behavioral assessments rooted in The Millionaire Next Door research.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           Proprietary
License URI:       https://datapoints.com/terms-of-use/
Text Domain:       datapoints
Tags:              finance, wealthtech, behavioral, custom-colors, custom-logo, full-width-template, blog
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colors */
  --dp-navy:        #0F1F3D;
  --dp-navy-2:      #192F55;
  --dp-navy-light:  #E8EDF5;
  --dp-gold:        #B8912A;
  --dp-gold-mid:    #D4A843;
  --dp-gold-light:  #F5EDD6;
  --dp-sage:        #2E6B5E;
  --dp-sage-light:  #E4F1EE;
  --dp-warm:        #F8F6F1;
  --dp-white:       #FFFFFF;
  --dp-muted:       #6B7280;
  --dp-border:      rgba(15, 31, 61, 0.10);

  /* Typography */
  --font-serif:  Georgia, 'Times New Roman', serif;
  --font-sans:   'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   40px;
  --space-xl:   60px;
  --space-2xl:  80px;

  /* Layout */
  --max-width:  1140px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--dp-navy);
  background-color: var(--dp-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--dp-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--dp-gold-mid); }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dp-navy);
}
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: clamp(20px, 3vw, 24px); }
h4 { font-size: 18px; }
h5 { font-size: 15px; font-family: var(--font-sans); font-weight: 700; }
h6 { font-size: 13px; font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dp-muted); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dp-gold-mid);
  display: block;
  margin-bottom: 14px;
}

blockquote {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--dp-navy);
  line-height: 1.5;
  border-left: 3px solid var(--dp-gold);
  padding-left: 24px;
  margin: 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { padding: var(--space-xl) 0; }
.section--warm { background: var(--dp-warm); }
.section--navy { background: var(--dp-navy); }
.section--white { background: var(--dp-white); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex--center { align-items: center; }
.flex--between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }
.text-muted { color: var(--dp-muted); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--dp-white);
  border: 0.5px solid var(--dp-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.card--featured { border: 2px solid var(--dp-gold); }
.card--navy {
  background: var(--dp-navy);
  border-color: transparent;
  color: var(--dp-white);
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.badge--gold   { background: var(--dp-gold-light); color: #854F0B; }
.badge--sage   { background: var(--dp-sage-light);  color: #0F6E56; }
.badge--navy   { background: var(--dp-navy-light);  color: #0C2147; }
.badge--10yr   {
  background: var(--dp-gold-light);
  color: var(--dp-gold);
  border: 0.5px solid var(--dp-gold-mid);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  line-height: 1;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--dp-gold); color: var(--dp-white); }
.btn--navy    { background: var(--dp-navy); color: var(--dp-white); }
.btn--ghost   {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  font-weight: 500;
}
.btn--ghost-navy {
  background: transparent;
  color: var(--dp-navy);
  border: 1px solid var(--dp-border);
}

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   SITE HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--dp-white);
  border-bottom: 0.5px solid var(--dp-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.site-logo__wordmark {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--dp-navy);
  line-height: 1;
}
.site-logo__wordmark span { color: var(--dp-gold); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--dp-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--dp-navy); }
.site-nav .btn { margin-left: 8px; padding: 9px 20px; font-size: 13px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dp-navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dp-white);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 0.5px solid var(--dp-border);
    gap: 16px;
  }
  .site-nav.is-open { display: flex; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--dp-warm);
  padding: var(--space-lg) 0 0;
}
.hero__inner {
  background: var(--dp-navy);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto 0;
}
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, #fff 0, #fff 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(90deg, #fff 0, #fff 1px, transparent 1px, transparent 130px);
}
.hero__content { position: relative; max-width: 620px; }
.hero__headline {
  font-size: clamp(34px, 5vw, 48px);
  color: var(--dp-white);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero__headline em { font-style: normal; color: var(--dp-gold-mid); }
.hero__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.58);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero__sub em { color: rgba(255,255,255,0.75); }

@media (max-width: 768px) {
  .hero__inner { padding: 40px 28px; border-radius: var(--radius-md); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--dp-white);
  border: 0.5px solid var(--dp-border);
  border-radius: var(--radius-md);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 0;
}
.trust-bar__item { flex: 1; text-align: center; }
.trust-bar__num {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--dp-navy);
  font-family: var(--font-sans);
  line-height: 1;
  margin-bottom: 6px;
}
.trust-bar__label { font-size: 11px; color: var(--dp-muted); line-height: 1.5; }
.trust-bar__divider { width: 1px; background: var(--dp-border); height: 48px; flex-shrink: 0; }
.trust-bar__quote {
  flex: 2;
  padding-left: 28px;
  font-size: 13px;
  color: var(--dp-muted);
  line-height: 1.7;
  font-style: italic;
}

@media (max-width: 768px) {
  .trust-bar { flex-wrap: wrap; gap: 20px; padding: 24px 20px; }
  .trust-bar__item { flex: 1 1 40%; }
  .trust-bar__divider { display: none; }
  .trust-bar__quote { flex: 1 1 100%; padding-left: 0; }
}

/* ============================================================
   ASSESSMENT CARDS
   ============================================================ */
.assess-card {
  display: flex;
  flex-direction: column;
  background: var(--dp-white);
  border: 0.5px solid var(--dp-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  height: 100%;
}
.assess-card--featured { border: 2px solid var(--dp-gold); }
.assess-card__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--dp-navy);
  margin-bottom: 10px;
  line-height: 1.25;
}
.assess-card__body {
  font-size: 13px;
  color: var(--dp-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
}
.assess-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--dp-gold);
  text-decoration: none;
}
.assess-card__link:hover { color: var(--dp-gold-mid); }

/* ============================================================
   SCIENCE / QUOTE BAND
   ============================================================ */
.science-band {
  background: var(--dp-warm);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.science-band__quote { flex: 1; }
.science-band__quote blockquote {
  font-size: 20px;
  margin-bottom: 16px;
}
.science-band__quote blockquote strong { font-style: normal; color: var(--dp-gold); }
.science-band__meta {
  flex-shrink: 0;
  width: 220px;
  border-left: 1px solid var(--dp-border);
  padding-left: 32px;
}
.science-band__meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dp-muted);
  margin-bottom: 10px;
  display: block;
}
.science-band__meta p { font-size: 13px; color: var(--dp-navy); line-height: 1.65; }

@media (max-width: 768px) {
  .science-band { flex-direction: column; padding: 28px 24px; }
  .science-band__meta { width: 100%; border-left: none; border-top: 1px solid var(--dp-border); padding-left: 0; padding-top: 20px; }
}

/* ============================================================
   PILLAR CARDS
   ============================================================ */
.pillar-card {
  background: var(--dp-white);
  border: 0.5px solid var(--dp-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.pillar-card__num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--dp-gold);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.pillar-card__title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--dp-navy);
  margin-bottom: 8px;
}
.pillar-card__body { font-size: 13px; color: var(--dp-muted); line-height: 1.65; }

/* ============================================================
   MISSION SECTION
   ============================================================ */
.mission-card {
  background: var(--dp-navy);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: var(--dp-white);
}
.mission-card__label { color: var(--dp-gold-mid); margin-bottom: 16px; }
.mission-card blockquote {
  color: var(--dp-white);
  border-left-color: rgba(255,255,255,0.2);
  font-size: 18px;
  margin-bottom: 24px;
}
.mission-card__byline {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}
.mission-card__byline strong { color: rgba(255,255,255,0.85); }

/* ============================================================
   RESEARCH STRIP
   ============================================================ */
.research-strip {
  border-top: 1px solid var(--dp-border);
  border-bottom: 1px solid var(--dp-border);
  padding: var(--space-lg) 0;
}
.research-strip h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}
.research-strip p { font-size: 13px; color: var(--dp-muted); line-height: 1.7; }

/* ============================================================
   CTA FOOTER BAND
   ============================================================ */
.cta-band {
  background: var(--dp-navy-2);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.cta-band .eyebrow { color: var(--dp-gold-mid); justify-content: center; display: block; }
.cta-band h2 {
  color: var(--dp-white);
  font-style: italic;
  margin-bottom: 10px;
}
.cta-band h2 strong { font-style: normal; color: var(--dp-gold-mid); }
.cta-band p { color: rgba(255,255,255,0.50); margin-bottom: 32px; font-size: 14px; }
.cta-band .btn-group { justify-content: center; }

@media (max-width: 640px) {
  .cta-band { padding: 36px 24px; }
  .cta-band .btn-group { flex-direction: column; align-items: center; }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--dp-white);
  border-top: 1px solid var(--dp-border);
  padding: var(--space-xl) 0 var(--space-lg);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.site-footer__col-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dp-muted);
  margin-bottom: 12px;
  display: block;
}
.site-footer__col a {
  display: block;
  font-size: 13px;
  color: var(--dp-muted);
  text-decoration: none;
  margin-bottom: 7px;
  transition: color 0.2s;
}
.site-footer__col a:hover { color: var(--dp-navy); }
.site-footer__address { font-size: 12px; color: var(--dp-muted); line-height: 1.65; }
.site-footer__bottom {
  border-top: 1px solid var(--dp-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--dp-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__bottom a { color: var(--dp-muted); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--dp-navy); }
.site-footer__legal { display: flex; gap: 16px; }

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   WORDPRESS CORE COMPATIBILITY
   ============================================================ */
.wp-block-image img { border-radius: var(--radius-md); }
.wp-block-quote { font-family: var(--font-serif); font-style: italic; border-left: 3px solid var(--dp-gold); padding-left: 20px; }
.wp-block-button__link { border-radius: var(--radius-sm) !important; }
.wp-block-separator { border-color: var(--dp-border); }

/* Gutenberg alignment */
.alignfull { max-width: 100%; }
.alignwide { max-width: var(--max-width); margin-left: auto; margin-right: auto; }

/* Screen reader text */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--dp-navy); color: #fff; padding: 8px 16px; z-index: 9999; }
.skip-link:focus { top: 0; }

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */
.elementor-widget-heading .elementor-heading-title { font-family: var(--font-serif); }
.elementor-widget-text-editor { font-family: var(--font-sans); }
.elementor-section.dp-section-warm { background: var(--dp-warm) !important; }
.elementor-section.dp-section-navy { background: var(--dp-navy) !important; }

/* ============================================================
   CUSTOM POST TYPE: ASSESSMENTS
   ============================================================ */
.assessment-archive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.assessment-entry { background: var(--dp-white); border: 0.5px solid var(--dp-border); border-radius: var(--radius-lg); padding: 28px; }
.assessment-entry__title { font-size: 20px; margin-bottom: 10px; }
.assessment-entry__excerpt { font-size: 13px; color: var(--dp-muted); line-height: 1.7; margin-bottom: 16px; }

/* ============================================================
   BLOG / SINGLE POST
   ============================================================ */
.single-post__header { padding: var(--space-xl) 0 var(--space-lg); background: var(--dp-warm); }
.single-post__meta { font-size: 12px; color: var(--dp-muted); margin-bottom: 12px; }
.single-post__content { max-width: 740px; margin: 0 auto; padding: var(--space-xl) 0; }
.single-post__content p { font-size: 16px; line-height: 1.8; margin-bottom: 1.25em; }
.single-post__content h2 { margin: 2em 0 0.75em; }
.single-post__content h3 { margin: 1.5em 0 0.5em; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .cta-band { display: none; }
  body { color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}
