/* Project America — Custom styles (works with Tailwind CDN) */

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: #255940;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(13, 33, 25, 0.2);
  transition: background-color 0.2s;
}
.btn-primary:hover { background-color: #1f4735; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 2px solid #255940;
  background: transparent;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f4735;
  transition: background-color 0.2s;
}
.btn-secondary:hover { background-color: #f0f7f3; }

.btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: #c9a227;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d2119;
  box-shadow: 0 10px 15px -3px rgba(201, 162, 39, 0.3);
  transition: background-color 0.2s;
}
.btn-amber:hover { background-color: #e8c84a; }

/* Section utilities */
.section-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a227;
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: #1a3c2e;
}

/* Cards */
.card {
  border-radius: 1rem;
  border: 1px solid #dceee3;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.card-featured {
  border-radius: 1rem;
  border: 1px solid #bbddc9;
  background: linear-gradient(135deg, #fff 0%, #f0f7f3 100%);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Nav */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f4735;
  transition: color 0.2s;
}
.nav-link:hover { color: #2d6f4e; }
.nav-link-active {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d6f4e;
}

/* Main navbar */
.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: #1f4735;
  transition: color 0.15s, background-color 0.15s;
}
@media (min-width: 1280px) {
  .nav-link-item { font-size: 0.875rem; padding: 0.5rem 0.875rem; }
}
.nav-link-item:hover {
  color: #2d6f4e;
  background-color: #f0f7f3;
}
.nav-link-item-active {
  font-weight: 600;
  color: #1a3c2e;
  box-shadow: inset 0 -2px 0 #c9a227;
  border-radius: 0.375rem 0.375rem 0 0;
  background-color: transparent;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.5rem;
  background-color: #255940;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  box-shadow: 0 4px 10px -2px rgba(13, 33, 25, 0.2);
  transition: background-color 0.2s;
}
.btn-nav-cta:hover { background-color: #1f4735; }

/* Programs dropdown */
.nav-dropdown-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.5rem);
  z-index: 60;
  min-width: 15rem;
  border-radius: 0.75rem;
  border: 1px solid #dceee3;
  background: #fff;
  padding: 0.375rem;
  box-shadow: 0 10px 30px -5px rgba(13, 33, 25, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-trigger { cursor: pointer; background: transparent; border: none; }
.nav-dropdown-chevron { transition: transform 0.15s; }
.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown.is-open .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-link {
  display: block;
  white-space: nowrap;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1f4735;
  transition: background-color 0.15s, color 0.15s;
}
.nav-dropdown-link:hover {
  background-color: #f0f7f3;
  color: #2d6f4e;
}
.mesh-comparison-card {
  transition: box-shadow 0.2s, transform 0.2s;
}
.mesh-comparison-card:hover {
  box-shadow: 0 12px 32px -8px rgba(13, 33, 25, 0.12);
  transform: translateY(-2px);
}
.mesh-comparison-retail {
  background: linear-gradient(135deg, #fff 0%, #fef8f8 100%);
}
.mesh-comparison-shield {
  background: linear-gradient(135deg, #f0f7f3 0%, #e8f4ec 100%);
  border-top: 2px solid #c9a227;
}

/* Image overlay */
.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,33,25,0.92) 0%, rgba(13,33,25,0.45) 50%, rgba(13,33,25,0.25) 100%);
}

/* Stat card */
.stat-card {
  border-radius: 0.75rem;
  background-color: #1a3c2e;
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: #fff;
}

/* Grid pattern background */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(26,60,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,60,46,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Hero pattern */
.bg-hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,162,39,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(45,111,78,0.12) 0%, transparent 40%);
}

/* Prose */
.prose-custom h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a3c2e;
}
.prose-custom p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #64748b;
}

/* Professional gradient panels */
.panel-dark {
  background: linear-gradient(135deg, #0d2119 0%, #1a3c2e 50%, #1f4735 100%);
}

.glass-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
}

/* Timeline */
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c9a227;
  box-shadow: 0 0 0 4px rgba(201,162,39,0.25);
}

/* Partner logo strip */
.partner-strip {
  background: linear-gradient(90deg, #f8f6f1 0%, #fff 50%, #f8f6f1 100%);
}

/* Image fallback */
.prose img { border-radius: 0.75rem; margin: 1.5rem 0; }
.prose h2 { font-family: 'Fraunces', Georgia, serif; color: #1a3c2e; margin-top: 2rem; }
.prose p { line-height: 1.75; color: #475569; margin-bottom: 1rem; }
.prose a { color: #255940; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* Image fallback */
img { background-color: #dceee3; }
