/* ===================================
   Continuum Search Group - Complete Styles
   Professional design for financial advisors
   =================================== */

/* ============= ROOT VARIABLES ============= */
:root {
  /* Color Palette - Professional Financial Services */
  --primary: #1e40af;        /* Strong, trustworthy blue */
  --primary-dark: #1e3a8a;   /* Darker blue for depth */
  --primary-light: #3b82f6;  /* Lighter blue for accents */
  --secondary: #0ea5e9;      /* Bright, modern cyan */
  --accent: #06b6d4;         /* Clean teal accent */

  /* Gray Scale */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Typography - Clean and Modern */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 80px 0;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

/* ============= GLOBAL RESET ============= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============= TYPOGRAPHY ============= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 { font-size: 56px; font-weight: 800; }
h2 { font-size: 42px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

/* ============= HEADER ============= */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.99);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.logo:hover {
  color: var(--primary);
}

.logo img {
  height: 150px;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  position: relative;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.btn-header {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}

.btn-header:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* ============= HERO SECTION ============= */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, white 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
  transition: all 0.3s;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

.hero h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust svg {
  color: var(--secondary);
}

/* ============= BUTTONS ============= */
.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: white;
  color: var(--primary);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  background: var(--gray-50);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ============= TRUST BAR ============= */
.trust-bar {
  background: white;
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.trust-item {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s;
}

.trust-item:hover {
  transform: translateY(-4px);
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.trust-label {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trust-sublabel {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ============= SECTION STYLES ============= */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.section-header p {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============= PILLARS SECTION ============= */
.pillars {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar-card {
  background: white;
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: translateY(-4px);
  transition: transform 0.3s;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

.pillar-card:hover::before {
  transform: translateY(0);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  color: var(--navy);
  transition: all 0.3s;
}

.pillar-card:hover .pillar-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.pillar-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.pillar-card p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 15px;
  flex-grow: 1;
}

.pillar-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.pillar-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* ============= PROCESS SECTION ============= */
.process {
  padding: 90px 0;
  background: white;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.process-step {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.process-step:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.process-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ============= RESOURCES SECTION ============= */
.resources {
  padding: 90px 0;
  background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.resource-card {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.resource-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
  transition: all 0.3s;
}

.resource-card:hover .resource-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.resource-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.resource-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ============= CTA SECTION ============= */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  color: white;
  margin-bottom: 20px;
}

.cta p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: white;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary {
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

.cta-phone {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-phone p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.cta-phone a {
  color: white;
  font-size: 28px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.cta-phone a:hover {
  opacity: 0.8;
}

/* ============= FOOTER ============= */
footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-column h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
}

.footer-bottom a {
  color: inherit;
  transition: opacity 0.2s;
}

.footer-bottom a:hover {
  opacity: 0.8;
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Navigation */
  nav {
    display: none;
  }

  /* Typography */
  h1 { font-size: 36px; }
  h2 { font-size: 32px; }

  /* Hero */
  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-trust {
    flex-direction: column;
    gap: 16px;
  }

  /* Grids */
  .trust-grid,
  .pillars-grid,
  .resources-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Process Timeline */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* CTA */
  .cta-buttons {
    flex-direction: column;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  .pillars,
  .process,
  .resources {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 28px; }

  .hero {
    padding: 100px 0 50px;
  }

  .pillar-card,
  .resource-card {
    padding: 24px 20px;
  }

  .cta {
    padding: 60px 0;
  }

  .cta h2 {
    font-size: 32px;
  }

  .cta p {
    font-size: 18px;
  }
}

/* ============= UTILITY CLASSES ============= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ============= 6C CONTINUUM SECTION ============= */
.sixc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.sixc-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.sixc-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12);
  transform: translateY(-2px);
}

.sixc-card.expanded {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(30, 64, 175, 0.15);
}

.sixc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.sixc-card.expanded::before {
  transform: scaleX(1);
}

.sixc-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(30, 64, 175, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.sixc-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.sixc-summary {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

.sixc-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin-top 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.sixc-card.expanded .sixc-details {
  max-height: 500px;
  opacity: 1;
  margin-top: 16px;
}

.sixc-details p {
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
}

.sixc-details strong {
  color: var(--gray-900);
  font-weight: 600;
}

.sixc-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s;
}

.sixc-card:hover .sixc-toggle {
  color: var(--primary-dark);
  gap: 8px;
}

.sixc-chevron {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-left: none;
  border-top: none;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-top: -4px;
}

.sixc-card.expanded .sixc-chevron {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.sixc-conclusion {
  max-width: 900px;
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.04) 0%, rgba(59, 130, 246, 0.06) 100%);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
}

.sixc-conclusion p {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Responsive design for 6C grid */
@media (max-width: 1024px) {
  .sixc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sixc-grid {
    grid-template-columns: 1fr;
  }

  .sixc-card {
    padding: 24px;
  }
}

/* ============= ANIMATIONS ============= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
