/* ── Cornerstone AI Partners — Resource Pages Dark Theme ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --navy:        #102F58;
  --navy-deep:   #0A1E3A;
  --navy-darker: #07152B;
  --gold:        #DEB241;
  --gold-light:  #F0D77A;
  --gold-dark:   #B8942F;
  --white:       #FFFFFF;
  --grey-300:    #CBD5E1;
  --grey-400:    #94A3B8;
  --grey-500:    #64748B;
  --grey-600:    #475569;
  --grey-700:    #334155;
  --grey-800:    #1E293B;
  --glass-bg:    rgba(255,255,255,0.04);
  --glass-border:rgba(255,255,255,0.08);
  --border:      rgba(255,255,255,0.08);
  --text:        #CBD5E1;
  --muted:       #94A3B8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy-darker);
  color: var(--grey-300);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;
}

/* ── Old nav styles (now overridden by inline nav) ── */
nav { display: none; }
.nav-inner, .nav-brand, .nav-wordmark, .nav-links, .nav-cta { display: none; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.6rem 0;
}
.breadcrumb-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--grey-500);
}
.breadcrumb-inner a {
  color: var(--grey-500);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-inner a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--grey-600); }

/* ── Page Header ── */
.page-header {
  background: radial-gradient(ellipse at 50% 0%, var(--navy) 0%, var(--navy-deep) 40%, var(--navy-darker) 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}
.page-header-inner {
  max-width: 760px;
  margin: 0 auto;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.page-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-title em {
  font-style: normal;
  color: var(--gold);
}
.page-subtitle {
  font-size: 1.05rem;
  color: var(--grey-400);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 1.75rem;
}
.page-header-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-darker);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 4px 20px rgba(222,178,65,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(222,178,65,0.45); }
.btn-outline {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1.5px solid var(--glass-border);
  transition: all 0.15s ease;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── Content Sections ── */
.content-section {
  padding: 3.5rem 2rem;
}
.section-inner, .prose-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Prose ── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--grey-300);
}
.prose h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}
.prose h2:first-child { border-top: none; margin-top: 0; }
.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--grey-300);
  margin: 1.75rem 0 0.6rem;
}
.prose p { margin-bottom: 1.1rem; color: var(--grey-400); line-height: 1.8; }
.prose ul, .prose ol { margin: 1rem 0 1.25rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; color: var(--grey-400); line-height: 1.7; }
.prose a { color: var(--gold); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--white); font-weight: 600; }

/* ── Highlight Box ── */
.highlight-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.highlight-box p { color: var(--grey-300); margin: 0; }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(180deg, var(--navy-darker) 0%, var(--navy-deep) 100%);
  border-top: 1px solid var(--glass-border);
  padding: 3.5rem 2rem;
  text-align: center;
}
.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.cta-section p {
  color: var(--grey-400);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* ── Form ── */
.resource-form-section { padding: 3rem 2rem; }
.resource-form-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}
form {
  max-width: 500px;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-300);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.925rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(222,178,65,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey-600); }
.form-submit {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-darker);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 16px rgba(222,178,65,0.25);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(222,178,65,0.4); }
#form-success {
  display: none;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid rgba(222,178,65,0.2);
  border-radius: 8px;
  color: var(--gold);
  font-weight: 500;
}

/* ── Resource Hub Cards ── */
.resource-hub { padding: 3rem 2rem; }
.hub-inner { max-width: 1100px; margin: 0 auto; }
.hub-section { margin-bottom: 3rem; }
.hub-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.hub-section-label-icon { font-size: 1rem; }
.hub-section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.hub-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: all 0.25s ease;
  display: block;
}
.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(222,178,65,0.25);
  box-shadow: 0 8px 24px rgba(222,178,65,0.1);
  background: rgba(255,255,255,0.06);
}
.hub-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.hub-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.hub-card-desc {
  font-size: 0.85rem;
  color: var(--grey-500);
  line-height: 1.6;
}

/* ── Hero (hub page) ── */
.hub-hero {
  background: radial-gradient(ellipse at 50% 0%, var(--navy) 0%, var(--navy-deep) 40%, var(--navy-darker) 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}
.hub-hero-inner { max-width: 700px; margin: 0 auto; }
.hub-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hub-hero h1 em { font-style: normal; color: var(--gold); }
.hub-hero p {
  font-size: 1.05rem;
  color: var(--grey-400);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* ── Footer ── */
footer {
  background: var(--navy-darker) !important;
  border-top: 1px solid var(--glass-border);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { color: var(--grey-400); font-size: 0.9rem; }
footer a { color: var(--grey-400); text-decoration: none; font-size: 0.9rem; }
footer a:hover { color: var(--gold); }
footer span { color: var(--grey-600); font-size: 0.8rem; }

/* ── Related Links ── */
.related-links { padding: 2.5rem 2rem; border-top: 1px solid var(--glass-border); }
.related-links-inner { max-width: 900px; margin: 0 auto; }
.related-links h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-400);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.related-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.related-links li a {
  display: inline-block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--grey-300);
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s;
}
.related-links li a:hover {
  border-color: rgba(222,178,65,0.3);
  color: var(--gold);
  background: rgba(222,178,65,0.05);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-header { padding: 3rem 1.25rem 2rem; }
  .content-section { padding: 2.5rem 1.25rem; }
  .hub-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 2.5rem 1.25rem; }
  footer { flex-direction: column; text-align: center; }
}
