/* ============================================
   CPAG — Crown Point Advisory Group
   Theme CSS v2.0
   ============================================ */

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

:root {
  --deep-navy:          #0A192F;
  --dark-navy:          #061018;
  --clinical-teal:      #2E7F7F;
  --wall-of-death-red:  #B22222;
  --bone-white:         #F5F5F0;
  --text-dark:          rgba(10, 25, 47, 0.8);
  --text-muted:         rgba(10, 25, 47, 0.6);
  --text-light:         rgba(245, 245, 240, 0.7);
  --text-light-muted:   rgba(245, 245, 240, 0.5);
  --border-light:       rgba(10, 25, 47, 0.1);
  --border-teal:        rgba(46, 127, 127, 0.2);
  --font-serif:         'Playfair Display', Georgia, serif;
  --font-sans:          'DM Sans', sans-serif;
  --font-mono:          'DM Mono', monospace;
  --max-width:          1200px;
  --content-width:      700px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bone-white);
  color: var(--deep-navy);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--clinical-teal); text-decoration: none; }
a:hover { opacity: 0.8; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 48px;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.nav-brand-text h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--bone-white);
}

.nav-brand-text span {
  display: block;
  font-size: 11px;
  color: var(--clinical-teal);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--bone-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--clinical-teal); }

/* HERO */
.hero {
  padding: 140px 48px 120px;
  background: var(--deep-navy);
  border-bottom: 1px solid var(--border-teal);
}

.hero-inner { max-width: var(--max-width); margin: 0 auto; }

.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clinical-teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 500;
  color: var(--bone-white);
  line-height: 1.05;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.hero-title-line2 { color: var(--clinical-teal); }

.hero-sub {
  font-size: 20px;
  color: var(--text-light);
  max-width: 520px;
  line-height: 1.6;
  font-style: italic;
}

/* SECTION COMMON */
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clinical-teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  color: var(--deep-navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title-light { color: var(--bone-white); }

.section-intro {
  font-size: 17px;
  color: var(--text-dark);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* METHODOLOGY */
.methodology {
  padding: 120px 48px;
  background: var(--bone-white);
  border-bottom: 1px solid var(--border-light);
}

.section-intro-light {
  color: var(--text-light);
}

.methodology-inner { max-width: var(--max-width); margin: 0 auto; }

.pillars {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

.pillar {
  background: var(--bone-white);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 24px;
  transition: background 0.3s ease;
}

.pillar:hover { background: rgba(46, 127, 127, 0.04); }

.pillar-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--clinical-teal);
  letter-spacing: 2px;
}

.pillar-content { flex: 1; }

.pillar-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--deep-navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.pillar-body {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

.pillar-metric {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clinical-teal);
  letter-spacing: 1px;
  white-space: nowrap;
  background: rgba(46, 127, 127, 0.08);
  padding: 4px 12px;
  border: 1px solid rgba(46, 127, 127, 0.2);
}

/* RECENT POSTS — dark */
.recent-posts {
  padding: 120px 48px;
  background: var(--deep-navy);
  border-bottom: 1px solid var(--border-teal);
}

.recent-posts-inner { max-width: var(--max-width); margin: 0 auto; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  background: var(--border-teal);
  border: 1px solid var(--border-teal);
  margin-bottom: 64px;
}

.post-card {
  background: var(--deep-navy);
  padding: 40px;
  transition: background 0.3s ease;
}

.post-card:hover { background: rgba(46, 127, 127, 0.05); }

.post-card-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clinical-teal);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 16px;
}

.post-card-title a { color: var(--bone-white); }
.post-card-title a:hover { color: var(--clinical-teal); opacity: 1; }

.post-card-excerpt {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.post-card-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clinical-teal);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.posts-cta { text-align: left; }

/* ARCHITECT — light */
.architect {
  padding: 120px 48px;
  background: var(--bone-white);
  border-bottom: 1px solid var(--border-light);
}

.architect-inner { max-width: var(--max-width); margin: 0 auto; }

.architect-tagline {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--clinical-teal);
  font-style: italic;
  margin-bottom: 32px;
}

.architect-body { max-width: 620px; margin-bottom: 40px; }

.architect-body p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 20px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary { background: var(--clinical-teal); color: var(--bone-white); }
.btn-primary:hover { background: var(--deep-navy); color: var(--bone-white); opacity: 1; }
.btn-secondary { background: transparent; color: var(--clinical-teal); border: 1px solid var(--clinical-teal); }
.btn-secondary:hover { background: var(--clinical-teal); color: var(--bone-white); opacity: 1; }

/* CONTACT — light */
.contact {
  padding: 120px 48px;
  background: var(--deep-navy);
  border-bottom: 1px solid var(--border-teal);
}

.contact-inner { max-width: var(--max-width); margin: 0 auto; }

.contact-intro {
  max-width: 560px;
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 48px;
}

.intake-form { max-width: 560px; }

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(245, 245, 240, 0.05);
  border: 1px solid rgba(245, 245, 240, 0.15);
  color: var(--bone-white);
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232E7F7F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--clinical-teal); }

.contact-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light-muted);
  font-style: italic;
}

/* POSTS INDEX */
.posts-index { padding-top: 0; min-height: 100vh; background: var(--deep-navy); }

.posts-index-header {
  padding: 140px 48px 80px;
  background: var(--deep-navy);
  border-bottom: 1px solid var(--border-teal);
}

.posts-index-header-inner { max-width: var(--content-width); margin: 0 auto; }

.posts-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  color: var(--bone-white);
  margin-bottom: 16px;
}

.posts-intro { font-size: 17px; color: var(--text-light); line-height: 1.7; }

.posts-list-wrapper {
  padding: 80px 0px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--bone-white);
}

.posts-list-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 48px;
}

.post-item {
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--border-light);
}

.post-item:last-child { border-bottom: none; }

.post-item-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clinical-teal);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.post-item-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 16px;
}

.post-item-title a { color: var(--deep-navy); }
.post-item-title a:hover { color: var(--clinical-teal); opacity: 1; }

.post-item-excerpt {
  font-size: 17px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 20px;
}

.post-item-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clinical-teal);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.post-item-link:hover { gap: 12px; opacity: 1; }

/* SINGLE POST */
.post-single { padding-top: 0; background: var(--bone-white); }

.post-header-section {
  padding: 140px 48px 80px;
  background: var(--deep-navy);
  border-bottom: 1px solid var(--border-teal);
}

.post-header-inner { max-width: var(--content-width); margin: 0 auto; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--clinical-teal);
  text-decoration: none;
  margin-bottom: 32px;
  transition: gap 0.3s ease;
}

.back-link:hover { gap: 12px; opacity: 1; }

.post-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clinical-teal);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 500;
  color: var(--bone-white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.post-excerpt { font-size: 18px; color: var(--text-light); line-height: 1.7; }

.post-content-body {
  padding: 80px 48px;
  max-width: var(--content-width);
  margin: 0 auto;
  background: var(--bone-white);
}

.post-content-body p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.post-content-body h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--deep-navy);
  margin: 48px 0 24px;
  line-height: 1.3;
}

.post-content-body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--deep-navy);
  margin: 40px 0 20px;
}

.post-content-body ul,
.post-content-body ol { margin: 24px 0 24px 24px; line-height: 1.9; }

.post-content-body li {
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.post-content-body strong { font-weight: 600; color: var(--deep-navy); }

.post-content-body blockquote {
  border-left: 3px solid var(--clinical-teal);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-muted);
}

.post-content-body hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 48px 0;
}

.post-content-body a {
  color: var(--clinical-teal);
  border-bottom: 1px solid rgba(46, 127, 127, 0.3);
}

.post-footer-section {
  padding: 60px 48px;
  max-width: var(--content-width);
  margin: 0 auto;
  border-top: 1px solid var(--border-light);
  background: var(--bone-white);
}

.post-footer-section a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--clinical-teal);
  font-weight: 500;
  letter-spacing: 1px;
  transition: gap 0.3s ease;
}

.post-footer-section a:hover { gap: 12px; opacity: 1; }

/* ABOUT PAGE */
.about-single { padding-top: 0; background: var(--deep-navy); }

.about-header {
  padding: 140px 48px 80px;
  background: var(--deep-navy);
  border-bottom: 1px solid var(--border-teal);
}

.about-header-inner { max-width: var(--content-width); margin: 0 auto; }

.about-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  color: var(--bone-white);
  line-height: 1.2;
}

.about-content {
  padding: 80px 48px;
  max-width: 100%;
  background: var(--bone-white);
}

.about-content-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.about-content h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--deep-navy);
  margin: 48px 0 24px;
  line-height: 1.3;
}

.about-content h2:first-child { margin-top: 0; }

.about-content p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.about-content hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 48px 0;
}

.about-content a { color: var(--clinical-teal); }

/* TERMS PAGE */
.terms-single { padding-top: 0; background: var(--deep-navy); }

.terms-header {
  padding: 140px 48px 80px;
  background: var(--deep-navy);
  border-bottom: 1px solid var(--border-teal);
}

.terms-header-inner { max-width: var(--content-width); margin: 0 auto; }

.terms-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  color: var(--bone-white);
  line-height: 1.2;
}

.terms-content {
  padding: 80px 48px;
  max-width: var(--content-width);
  margin: 0 auto;
  background: var(--bone-white);
}

.terms-content h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--deep-navy);
  margin: 48px 0 20px;
}

.terms-content h2:first-child { margin-top: 0; }

.terms-content p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.terms-content hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 40px 0;
}

/* AUTHOR BIO */
.post-author-bio {
  background: var(--bone-white);
  padding: 60px 48px;
  margin: 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.post-author-bio-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 48px;
}

.author-bio-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--clinical-teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.author-bio-text {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 20px;
}

.author-bio-text a {
  color: var(--clinical-teal);
  border-bottom: 1px solid rgba(46, 127, 127, 0.3);
}

.author-bio-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clinical-teal);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* FOOTER */
.footer {
  background: var(--dark-navy);
  padding: 48px;
  border-top: 1px solid var(--border-teal);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand span { font-size: 13px; color: var(--text-light-muted); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-x-link { display: flex; align-items: center; }
.footer-x-link:hover { opacity: 0.7; }

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(245, 245, 240, 0.4);
  letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { padding: 120px 24px 80px; }
  .methodology, .recent-posts, .contact, .architect { padding: 80px 24px; }
  .pillar {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }
  .pillar-metric { grid-column: 2; margin-top: 8px; }
  .posts-index-header { padding: 60px 24px; }
  .posts-list-wrapper { padding: 60px 24px; }
  .post-header-section { padding: 60px 24px; }
  .post-content-body { padding: 60px 24px; }
  .post-footer-section { padding: 40px 24px; }
  .about-header, .terms-header { padding: 60px 24px; }
  .about-content, .terms-content { padding: 60px 24px; }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .post-grid { grid-template-columns: 1fr; }
}
