/* ============================================================================
   WLSA Proposal — Custom Styles
   Color Palette: Deep Blue (#1a237e) + Gold (#c9a96e)
   ============================================================================ */

/* --------------------------------------------------------------------------
   Color Overrides
   -------------------------------------------------------------------------- */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #1a237e;
  --md-primary-fg-color--light: #283593;
  --md-primary-fg-color--dark: #0d1642;
  --md-accent-fg-color: #c9a96e;
  --md-accent-fg-color--transparent: #c9a96e1a;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #7fa3d4;
  --md-accent-fg-color: #c9a96e;
}

/* --------------------------------------------------------------------------
   Hero Section (Homepage)
   -------------------------------------------------------------------------- */
.hero-section {
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  margin: -0.6rem -0.8rem 2rem;
  background: linear-gradient(135deg, #0d1642 0%, #1a237e 40%, #283593 100%);
  color: white;
  border-radius: 0 0 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section h1 {
  color: white !important;
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.hero-subtitle {
  color: #c9a96e;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   Accent Utility Classes
   -------------------------------------------------------------------------- */
.gold {
  color: #c9a96e;
  font-weight: 600;
}

.blue {
  color: #1a237e;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Impact Formula Card
   -------------------------------------------------------------------------- */
.formula-card {
  background: linear-gradient(135deg, #0d1642 0%, #1a237e 50%, #283593 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.formula-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.formula-card h2 {
  color: #c9a96e !important;
  border: none;
  margin-top: 0;
  font-size: 1.4rem;
}

.formula-card .formula {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin: 1rem 0;
  font-weight: 300;
}

.formula-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.formula-card a {
  color: #c9a96e !important;
}

/* --------------------------------------------------------------------------
   Navigation Cards (Homepage)
   -------------------------------------------------------------------------- */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.nav-card {
  padding: 1.5rem;
  background: var(--md-code-bg-color, #f8f9fa);
  border-radius: 1rem;
  border: 1px solid var(--md-default-fg-color--lightest, #e0e0e0);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-card:hover {
  border-color: #c9a96e;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav-card-number {
  display: inline-block;
  background: #1a237e;
  color: white;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.nav-card h3 {
  margin: 0.6rem 0 0.3rem;
  font-size: 1rem;
}

.nav-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light, #666);
}

/* --------------------------------------------------------------------------
   Stats Row
   -------------------------------------------------------------------------- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.stat-item {
  text-align: center;
  min-width: 110px;
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a237e;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light, #666);
  margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   Big Quote
   -------------------------------------------------------------------------- */
.big-quote {
  font-size: 1.25rem;
  font-style: italic;
  text-align: center;
  color: #1a237e;
  padding: 2rem 2.5rem;
  border-left: 4px solid #c9a96e;
  background: rgba(201, 169, 110, 0.06);
  border-radius: 0 1rem 1rem 0;
  margin: 2rem 0;
  line-height: 1.9;
}

.big-quote small {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--md-default-fg-color--light, #888);
}

/* --------------------------------------------------------------------------
   Section Divider
   -------------------------------------------------------------------------- */
.section-divider {
  text-align: center;
  margin: 2.5rem 0;
  color: #c9a96e;
  font-size: 1.5rem;
  letter-spacing: 0.5em;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Portfolio Grid
   -------------------------------------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.portfolio-card {
  background: var(--md-code-bg-color, #f8f9fa);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--md-default-fg-color--lightest, #e0e0e0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.portfolio-card h3 {
  margin-top: 0;
}

.tag {
  display: inline-block;
  background: #1a237e;
  color: white;
  padding: 0.15rem 0.65rem;
  border-radius: 1rem;
  font-size: 0.72rem;
  margin-right: 0.3rem;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   CTA Button
   -------------------------------------------------------------------------- */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #1a237e, #283593);
  color: white !important;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  text-decoration: none !important;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 0.5rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
}

/* --------------------------------------------------------------------------
   Dark Mode Adjustments
   -------------------------------------------------------------------------- */
[data-md-color-scheme="slate"] .hero-section {
  background: linear-gradient(135deg, #050a1a 0%, #0d1642 40%, #1a237e 100%);
}

[data-md-color-scheme="slate"] .stat-number {
  color: #7fa3d4;
}

[data-md-color-scheme="slate"] .big-quote {
  color: #b0c4de;
  background: rgba(201, 169, 110, 0.04);
}

[data-md-color-scheme="slate"] .blue {
  color: #7fa3d4;
}

[data-md-color-scheme="slate"] .nav-card-number {
  background: #283593;
}

[data-md-color-scheme="slate"] .tag {
  background: #283593;
}

[data-md-color-scheme="slate"] .formula-card {
  background: linear-gradient(135deg, #050a1a 0%, #0d1642 50%, #1a237e 100%);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 1rem 2rem;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .stats-row {
    gap: 1.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .formula-card .formula {
    font-size: 1.2rem;
  }

  .nav-cards {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .big-quote {
    font-size: 1.1rem;
    padding: 1.5rem;
  }
}
