/* ── Cornerstone AI Partners — Resource Pages Shared CSS ── */
@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-light:  #1a4070;
  --gold:        #DEB241;
  --gold-light:  #e8c46a;
  --white:       #FFFFFF;
  --grey:        #F8F9FC;
  --text:        #1a2740;
  --muted:       #5a6a80;
  --border:      #e2e8f0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-wordmark {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--grey);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.breadcrumb a { color: var(--navy); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* ── Page Header ── */
.page-header {
  background: linear-gradient(135deg, #f0f4fb 0%, var(--white) 60%, #fdf8ed 100%);
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
}
.page-header-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,47,88,0.07);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(16,47,88,0.12);
}
.page-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.page-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.page-title em { font-style: normal; color: var(--gold); }
.page-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.page-header-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(16,47,88,0.2);
}
.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,47,88,0.28);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 7px;
  text-decoration: none;
  border: 2px solid var(--navy);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Sections ── */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ── Content Prose ── */
.content-section { background: var(--white); }
.prose {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}
.prose h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.prose p { margin-bottom: 1.25rem; color: var(--muted); }
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--navy); font-weight: 500; }
.prose a:hover { color: var(--gold); }

/* ── Highlight Box ── */
.highlight-box {
  background: rgba(16,47,88,0.04);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.highlight-box p { color: var(--text); margin: 0; font-weight: 500; }

/* ── Services Grid ── */
.services-section { background: var(--grey); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(16,47,88,0.1);
}
.service-accent {
  width: 28px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 0.9rem;
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Related Pages ── */
.related-section { background: var(--white); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.related-card {
  background: var(--grey);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.related-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.related-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.related-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* ── CTA Section ── */
.cta-section { background: var(--navy); }
.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.cta-copy .section-label { color: var(--gold); }
.cta-copy .section-title { color: var(--white); }
.cta-copy .section-sub { color: rgba(255,255,255,0.65); }
.cta-copy .btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(222,178,65,0.3);
}
.cta-copy .btn-primary:hover { background: var(--gold-light); }

.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 2.25rem;
  border: 1px solid var(--border);
}
.contact-form h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.925rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16,47,88,0.08);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--navy-light); transform: translateY(-1px); }
.form-success {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: #d4edda;
  color: #155724;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* ── Resources Hub Grid ── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.hub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(16,47,88,0.1);
  border-color: var(--gold);
}
.hub-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.hub-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.hub-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}
footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .footer-brand {
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.4rem;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .services-grid,
  .hub-grid,
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 640px) {
  .services-grid,
  .hub-grid,
  .related-grid { grid-template-columns: 1fr; }
  .page-header { padding: 3.5rem 1.5rem 3rem; }
  section { padding: 3.5rem 1.5rem; }
  .nav-links { display: none; }
}
