/* Custom styles for Wealth for Founders */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  --wff-primary: #1a1a1a;
  --wff-secondary: #343a40;
  --wff-accent: #4BBF73;
  --wff-accent-hover: #3da863;
  --wff-white: #fff;
  --wff-text: #333;
  --wff-text-light: #666;
  --wff-bg-light: #f8f9fa;
  --wff-transition: 0.3s ease;
}

/* ============================================
   Typography Improvements
   ============================================ */
body {
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.display-3 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--wff-text-light);
}

/* ============================================
   Smooth Scrolling & Transitions
   ============================================ */
html {
  scroll-behavior: smooth;
}

a {
  transition: color var(--wff-transition), background-color var(--wff-transition);
}

/* ============================================
   Button Enhancements
   ============================================ */
.btn {
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--wff-transition);
  border-radius: 0.375rem;
}

.btn-primary {
  background-color: var(--wff-accent);
  border-color: var(--wff-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(75, 191, 115, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--wff-accent-hover);
  border-color: var(--wff-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(75, 191, 115, 0.4);
}

.btn-primary:active {
  background-color: var(--wff-accent-hover);
  border-color: var(--wff-accent-hover);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
}

/* Buttons after jumbotron need spacing from navbar */
.jumbotron + .btn,
.jumbotron + a.btn {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================
   Card & Section Styling
   ============================================ */
.card-hover {
  transition: transform var(--wff-transition), box-shadow var(--wff-transition);
}

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

/* ============================================
   Hero / Jumbotron Enhancements
   ============================================ */

/* Full-width hero wrapper that connects with navbar */
.hero-wrapper {
  background: linear-gradient(180deg, var(--wff-primary) 0%, var(--wff-secondary) 100%);
  margin-top: -1px; /* Eliminate any gap with navbar */
  padding-top: 5rem; /* Account for fixed navbar */
}

.jumbotron {
  background: transparent;
  color: #fff;
  border-radius: 0;
  padding: 4rem 2rem 5rem;
}

.jumbotron .display-3 {
  color: #fff;
}

.jumbotron .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.jumbotron .btn-light {
  background-color: var(--wff-accent);
  border-color: var(--wff-accent);
  color: #fff;
}

.jumbotron .btn-light:hover {
  background-color: var(--wff-accent-hover);
  border-color: var(--wff-accent-hover);
  color: #fff;
}

.jumbotron .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.jumbotron .btn-outline-light:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--wff-primary);
}

/* Inner pages: hero inside container with rounded corners */
.container .jumbotron {
  background: linear-gradient(135deg, var(--wff-primary) 0%, var(--wff-secondary) 100%);
  border-radius: 0.5rem;
  padding: 3rem 2rem;
}

/* ============================================
   Blockquote / Testimonial Styling
   ============================================ */
blockquote.blockquote {
  font-size: 1.5rem;
  font-style: italic;
  border-left: 4px solid var(--wff-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--wff-bg-light);
  border-radius: 0 0.5rem 0.5rem 0;
}

blockquote.blockquote p {
  color: var(--wff-primary);
}

blockquote .blockquote-footer {
  font-size: 1rem;
  font-style: normal;
}

/* ============================================
   Section Spacing
   ============================================ */
section {
  padding: 4rem 0;
}

.container > .row + .row {
  margin-top: 2rem;
}

/* ============================================
   Footer Enhancements
   ============================================ */
footer {
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #e9ecef;
}

footer .text-muted {
  font-size: 0.9rem;
}

/* ============================================
   Navigation Bar Improvements
   ============================================ */
.navbar {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.navbar.bg-primary {
  background-color: var(--wff-primary) !important;
}

@media (min-width: 992px) {
  .navbar {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ============================================
   Navigation Dropdown Improvements
   ============================================ */
.dropdown-menu {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.625rem 1.25rem;
  transition: background-color var(--wff-transition);
}

.dropdown-item:hover {
  background-color: var(--wff-bg-light);
}

/* ============================================
   Form Improvements
   ============================================ */
.form-control {
  border-radius: 0.375rem;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: border-color var(--wff-transition), box-shadow var(--wff-transition);
}

.form-control:focus {
  border-color: var(--wff-accent);
  box-shadow: 0 0 0 3px rgba(75, 191, 115, 0.15);
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--wff-text);
}

/* ============================================
   Skip Link (Accessibility)
   ============================================ */
.skip-link:focus {
  position: fixed !important;
  left: 1rem !important;
  top: 1rem !important;
  z-index: 10000 !important;
  padding: 1rem 1.5rem !important;
  background: #fff !important;
  color: var(--wff-primary) !important;
  border: 2px solid var(--wff-accent) !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  .display-3 {
    font-size: 2rem;
  }

  .hero-wrapper {
    padding-top: 4rem;
  }

  .hero-wrapper .jumbotron {
    padding: 3rem 1.5rem 4rem;
  }

  .container .jumbotron {
    padding: 2rem 1.5rem;
  }

  section {
    padding: 2.5rem 0;
  }
}

/* ============================================
   Details/Summary (Disclosure) Styling
   ============================================ */
details {
  border: 2px solid var(--wff-accent);
  border-radius: 0.5rem;
  padding: 0;
  background: var(--wff-bg-light);
}

details summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--wff-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--wff-accent);
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--wff-transition), background-color var(--wff-transition);
}

details[open] summary::before {
  content: "−";
  background: var(--wff-accent-hover);
  transform: rotate(180deg);
}

details summary:hover {
  color: var(--wff-accent);
}

details summary:hover::before {
  background: var(--wff-accent-hover);
}

details summary:focus {
  outline: 2px solid var(--wff-accent);
  outline-offset: 2px;
}

details > div,
details > p {
  padding: 0 1.25rem 1rem;
}

details .table-responsive {
  padding: 0 1.25rem 1rem;
}

details .table {
  background: #fff;
}

/* ============================================
   Chart Container
   ============================================ */
#benchmarkChart {
  max-height: 400px;
  margin: 2rem 0;
}

/* ============================================
   Feature Icons (for future use)
   ============================================ */
.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--wff-primary) 0%, var(--wff-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
  color: #fff;
}
