/* ============================================
   Summit Investments & Financial Planning
   Modern, Clean Design System (Blue/White)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a56db;
  --primary-dark: #1342a8;
  --primary-light: #e8f0fe;
  --accent: #2563eb;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-white: #ffffff;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-section: #f1f5f9;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: var(--text-white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
}
.btn-white {
  background: var(--text-white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}
.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.nav-cta {
  background: var(--primary);
  color: var(--text-white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark); color: var(--text-white) !important; }

/* Mobile Nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); box-shadow: var(--shadow-lg); }
}

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #1a56db 0%, #2563eb 50%, #3b82f6 100%);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero h1 {
  color: var(--text-white);
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-section); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; margin-top: 12px; }
.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* --- Cards Grid --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: all 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; }
.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { gap: 10px; }

/* --- Features / Value Props --- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; max-width: 900px; margin: 0 auto; }
.feature { text-align: center; padding: 24px 16px; }
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; gap: 24px; }
}
.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-light); font-size: 0.95rem; }

/* --- Advisor Intro (Home Page) --- */
.advisor-intro {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
}
.advisor-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.advisor-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}
.advisor-text h2 { margin-bottom: 16px; }
.advisor-text p { color: var(--text-light); }
@media (max-width: 768px) {
  .advisor-intro {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .advisor-photo {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}
.two-col-text h2 { margin-bottom: 16px; }
.two-col-text p { color: var(--text-light); }
.two-col-text ul { list-style: none; margin: 20px 0; }
.two-col-text li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-light);
}
.two-col-text li::before {
  content: 'â';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* --- Stats Bar --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
  padding: 48px 0;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #1a56db, #2563eb);
  color: var(--text-white);
  padding: 64px 0;
  text-align: center;
  border-radius: 16px;
  margin: 0 24px;
}
.cta-banner h2 { color: var(--text-white); margin-bottom: 16px; }
.cta-banner p { opacity: 0.9; font-size: 1.1rem; margin-bottom: 28px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .about-intro { grid-template-columns: 1fr; text-align: center; }
}
.about-photo {
  width: 280px;
  height: 320px;
  background: var(--bg-section);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  border: 1px solid var(--border);
}
.credentials { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.credential-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-info-item h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-info-item p { color: var(--text-light); font-size: 0.95rem; margin: 0; }
.contact-info-item a { color: var(--primary); }
.map-embed {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* --- Footer --- */
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 48px 0 24px;
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { max-width: 360px; }
.footer-brand h3 { color: var(--text-white); font-size: 1.1rem; margin-bottom: 12px; }
.footer-links h4 { color: var(--text-white); font-size: 0.95rem; margin-bottom: 12px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #9ca3af; }
.footer-links a:hover { color: var(--text-white); }
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-disclosure {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 900px;
  margin-top: 24px;
}
.footer-adv-links a { color: #9ca3af; margin-left: 16px; font-size: 0.8rem; }
.footer-adv-links a:hover { color: var(--text-white); }

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 120px 0 48px;
  background: linear-gradient(135deg, #1a56db 0%, #2563eb 100%);
  color: var(--text-white);
}
.page-header h1 { color: var(--text-white); margin-bottom: 12px; }
.page-header p { opacity: 0.9; font-size: 1.1rem; max-width: 600px; }

/* --- Prose Content --- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 40px; margin-bottom: 16px; }
.prose h3 { margin-top: 28px; margin-bottom: 12px; }
.prose p { color: var(--text-light); }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 16px; color: var(--text-light); }
.prose li { margin-bottom: 8px; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Insights / Articles --- */
.insights-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
}
.insight-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--text);
}
.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--text);
}
.insight-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.insight-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 12px; }
.insight-card .card-link { font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.insight-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.insight-card-date { color: var(--text-light); font-size: 0.85rem; }
.article-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-tag-weekly {
  background: var(--primary-light);
  color: var(--primary);
}
.article-tag-monthly {
  background: #fef3c7;
  color: #92400e;
}

/* Article Page */
.article-meta-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.article-date-header {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}
/* Article Two-Column Layout */
.article-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-layout .article-body {
  max-width: none;
  flex: 1;
  min-width: 0;
}
.article-body h2 { margin-top: 32px; margin-bottom: 12px; }
.article-body p { color: var(--text-light); line-height: 1.8; margin-bottom: 1.25rem; }
.article-reading-time {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-back a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

/* Sidebar */
.article-sidebar {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

/* Performance Tables */
.perf-tables {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.perf-table-wrap h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-light);
}
.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.perf-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  padding: 6px 8px;
  border-bottom: 2px solid var(--border);
}
.perf-table thead th:not(:first-child) {
  text-align: right;
}
.perf-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.perf-table tbody tr:last-child {
  border-bottom: none;
}
.perf-table td {
  padding: 6px 8px;
}
.perf-name {
  font-weight: 500;
  color: var(--heading);
  white-space: nowrap;
}
.perf-cell {
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.perf-up { color: #16a34a; }
.perf-down { color: #dc2626; }
.perf-flat { color: var(--text-light); }

@media (max-width: 768px) {
  .article-layout {
    flex-direction: column-reverse;
  }
  .article-sidebar {
    width: 100%;
    position: static;
    max-width: 600px;
  }
  .perf-tables {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .perf-table-wrap {
    flex: 1;
    min-width: 260px;
  }
}
@media (max-width: 600px) {
  .perf-table { font-size: 0.8rem; }
  .perf-table td, .perf-table thead th { padding: 5px 4px; }
  .perf-tables { flex-direction: column; }
}
