/* District Bridge Capital — Global Stylesheet */
/* Modern, professional design for municipal finance */

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #0a192f;
  --navy-light: #112240;
  --slate: #8892b0;
  --light-slate: #a8b2d1;
  --lightest-slate: #ccd6f6;
  --white: #e6f1ff;
  --green: #64ffda;
  --green-dim: rgba(100, 255, 218, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background-color: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--lightest-slate);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { margin-bottom: 1rem; }
a {
  color: var(--green);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--green); text-decoration: underline; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 6rem 0;
}
.section-alt {
  background-color: var(--navy-light);
}

/* ===== NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lightest-slate);
  letter-spacing: -0.5px;
}
.logo span { color: var(--green); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  color: var(--lightest-slate);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links a:hover {
  color: var(--green);
  text-decoration: none;
}
.nav-cta {
  border: 1px solid var(--green);
  color: var(--green);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-cta:hover {
  background: var(--green-dim);
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-subtitle {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--lightest-slate);
  margin-bottom: 1.5rem;
}
.hero h1 .highlight {
  color: var(--green);
}
.hero-description {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
}
.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}
.btn-primary:hover {
  background: var(--green-dim);
  text-decoration: none;
}
.btn-secondary {
  background: var(--green);
  color: var(--navy);
}
.btn-secondary:hover {
  background: rgba(100, 255, 218, 0.8);
  text-decoration: none;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--navy-light);
  border-top: 1px solid rgba(100, 255, 218, 0.1);
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
}
.stat-label {
  color: var(--slate);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ===== SERVICES CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--navy-light);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--green);
}
.service-card h3 {
  color: var(--lightest-slate);
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--slate);
  font-size: 0.95rem;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step-card {
  text-align: center;
  padding: 2rem;
}
.step-number {
  width: 60px;
  height: 60px;
  background: var(--green-dim);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--green);
}
.step-card h3 {
  color: var(--lightest-slate);
  margin-bottom: 0.75rem;
}

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}
.team-card {
  background: var(--navy-light);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 218, 0.1);
}
.team-photo {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center top;
}
.team-info {
  padding: 2rem;
}
.team-name {
  font-size: 1.3rem;
  color: var(--lightest-slate);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.team-title {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.team-bio {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--navy-light);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
}
.blog-content {
  padding: 1.5rem;
}
.blog-date {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.blog-card h3 {
  color: var(--lightest-slate);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.blog-card p {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.read-more {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== ARTICLE/BLOG POST STYLES ===== */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}
.article-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
  padding-bottom: 2rem;
}
.article-title {
  color: var(--lightest-slate);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.article-meta {
  color: var(--slate);
  font-size: 0.9rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.article-content h2 {
  color: var(--lightest-slate);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.article-content h3 {
  color: var(--light-slate);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}
.article-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-content li {
  margin-bottom: 0.5rem;
}
.article-content blockquote {
  border-left: 3px solid var(--green);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--light-slate);
}
.article-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(100, 255, 218, 0.3);
}
.article-content a:hover {
  text-decoration-color: var(--green);
}
.article-content strong {
  color: var(--lightest-slate);
}

/* ===== CTA BOX ===== */
.cta-box {
  background: var(--navy-light);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}
.cta-box h3 {
  color: var(--lightest-slate);
  margin-bottom: 1rem;
}
.cta-box p {
  color: var(--slate);
  margin-bottom: 1.5rem;
}

/* ===== TABLE OF CONTENTS ===== */
.toc {
  background: var(--navy-light);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.toc h3 {
  color: var(--lightest-slate);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.toc ul {
  list-style: none;
  padding: 0;
}
.toc li {
  margin-bottom: 0.5rem;
}
.toc a {
  color: var(--slate);
  font-size: 0.9rem;
}
.toc a:hover {
  color: var(--green);
}

/* ===== RELATED POSTS ===== */
.related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
}
.related-posts h3 {
  color: var(--lightest-slate);
  margin-bottom: 1.5rem;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-item {
  margin-bottom: 1.5rem;
}
.contact-info-item h4 {
  color: var(--green);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.contact-info-item p {
  color: var(--lightest-slate);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background: var(--navy-light);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 4px;
  color: var(--lightest-slate);
  font-family: var(--font-sans);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy-light);
  border-top: 1px solid rgba(100, 255, 218, 0.1);
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lightest-slate);
  margin-bottom: 1rem;
}
.footer-brand span { color: var(--green); }
.footer-desc {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.footer-heading {
  color: var(--lightest-slate);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--slate);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--green);
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
  text-align: center;
  color: var(--slate);
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding: 6rem 0 4rem; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ===== CASE STUDIES ===== */
.case-study {
  background: var(--navy-light);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.case-study--featured {
  border-color: rgba(100, 255, 218, 0.2);
}
.case-study-label {
  display: inline-block;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.case-study h2 {
  color: var(--lightest-slate);
  margin-bottom: 0.75rem;
}
.case-study-subhead {
  color: var(--slate);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.case-study-body h3 {
  color: var(--lightest-slate);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}
.case-study-body p {
  color: var(--slate);
  margin-bottom: 1rem;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--green);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: var(--navy-light);
  border-left: 1px solid rgba(100, 255, 218, 0.1);
  padding: 4rem 2rem;
  z-index: 1001;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav a {
  color: var(--lightest-slate);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mobile-nav a:hover {
  color: var(--green);
}
.mobile-nav .nav-cta {
  border: 1px solid var(--green);
  color: var(--green);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-align: center;
}
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
}
.mobile-nav.active,
.mobile-overlay.active {
  display: flex;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding: 6rem 0 4rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.green { color: var(--green); }
.slate { color: var(--slate); }
