/**
 * BeyondRxAid Shared Components CSS
 * Reusable component styles for new features
 * Import this file after styles.css
 */

/* ===== TRUST BAR (Client Logos) ===== */
.trust-bar {
  padding: 60px 24px;
  background: var(--dark-lighter);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar .container {
  text-align: center;
}

.trust-bar-label {
  font-size: 12px;
  color: var(--light-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

.trust-bar-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.trust-bar-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.trust-bar-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

@media (max-width: 768px) {
  .trust-bar { padding: 48px 24px; }
  .trust-bar-logos { gap: 32px; }
  .trust-bar-logo { height: 32px; max-width: 100px; }
}


/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  padding: 120px 60px;
  background: var(--dark-lighter);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 48px auto 0;
}

.testimonial-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  -webkit-transition: border-color 0.3s ease, transform 0.3s ease;
  -moz-transition: border-color 0.3s ease, transform 0.3s ease;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(46, 204, 113, 0.3);
  -webkit-transform: translateY(-4px);
  -moz-transform: translateY(-4px);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: #2ecc71;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--light-muted);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-quote::before {
  content: '"';
  color: #2ecc71;
  font-size: 24px;
  font-weight: 700;
  margin-right: 4px;
}

.testimonial-author {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.testimonial-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--light);
  margin: 0 0 4px 0;
}

.testimonial-info p {
  font-size: 13px;
  color: var(--light-muted);
  margin: 0;
}

.testimonial-info span {
  color: #2ecc71;
}

@media (max-width: 900px) {
  .testimonials-section { padding: 80px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}


/* ===== STICKY MOBILE CTA ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 999;
  -webkit-box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.sticky-cta-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.sticky-cta-text {
  font-size: 14px;
  color: var(--light);
  font-weight: 500;
}

.sticky-cta-btn {
  background: #2ecc71;
  color: #000;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  -webkit-transition: background 0.3s ease;
  -moz-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

.sticky-cta-btn:hover {
  background: #27ae60;
}

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 70px; } /* Account for sticky bar */
}

.sticky-cta {
  -webkit-transition: transform 0.3s ease;
  -moz-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
}

/* Testimonial avatar fallback */
.testimonial-avatar-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #000;
}

/* ========================================
   Case Study Pages
   ======================================== */
.case-study-page {
  padding-top: 80px;
}

.cs-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  text-align: center;
}

.cs-hero .cs-type {
  display: inline-block;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.cs-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cs-hero .cs-location {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
}

.cs-hero-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  margin-top: 40px;
}

.cs-nda-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 12px;
  vertical-align: middle;
}

.cs-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.cs-overview h2,
.cs-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.cs-overview p,
.cs-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 16px;
}

.cs-section {
  margin-top: 48px;
}

.cs-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-section ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.cs-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2ecc71;
  font-weight: 600;
}

.cs-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.cs-stat {
  text-align: center;
}

.cs-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #2ecc71;
  margin-bottom: 4px;
}

.cs-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.cs-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cs-tech-tags span {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Case Study Tech Grid */
.cs-section.cs-tech {
  background: rgba(46, 204, 113, 0.03);
  border: 1px solid rgba(46, 204, 113, 0.1);
  border-radius: 16px;
  padding: 32px;
  margin-top: 40px;
}

.cs-section.cs-tech h2 {
  color: #2ecc71;
  font-size: 18px;
  margin-bottom: 20px;
}

.cs-tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cs-tech-grid span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cs-tech-grid span:hover {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
}

/* Case Study CTA Section */
.cs-cta {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(46, 204, 113, 0.05) 100%);
  border: 1px solid rgba(46, 204, 113, 0.2);
  border-radius: 20px;
  padding: 48px;
  margin-top: 48px;
  text-align: center;
}

.cs-cta h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.cs-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.cs-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
}

/* NEW: Enhanced Tech Section */
.cs-tech-section {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(10, 10, 12, 0.8) 100%);
  border: 1px solid rgba(46, 204, 113, 0.15);
  border-radius: 20px;
  padding: 40px;
  margin-top: 48px;
}

.cs-tech-header {
  margin-bottom: 28px;
}

.cs-tech-label {
  display: inline-block;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.cs-tech-header h3 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.cs-tech-section .cs-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.cs-tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 16px;
  transition: all 0.3s ease;
}

.cs-tech-item:hover {
  border-color: rgba(46, 204, 113, 0.4);
  background: rgba(46, 204, 113, 0.05);
  transform: translateY(-2px);
}

.cs-tech-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 12px;
  color: #2ecc71;
}

.cs-tech-item span {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* NEW: Enhanced CTA Section */
.cs-cta-section {
  background: linear-gradient(135deg, #0d1f15 0%, #0a0a0c 100%);
  border: 1px solid rgba(46, 204, 113, 0.2);
  border-radius: 24px;
  padding: 56px 48px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

.cs-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2ecc71, transparent);
}

.cs-cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cs-cta-badge {
  display: inline-block;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.cs-cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cs-cta-section p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cs-cta-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.cs-cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.cs-cta-feature svg {
  color: #2ecc71;
}

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

.cs-cta-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.cs-cta-actions .btn-primary {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #0a0a0c;
  border: none;
}

.cs-cta-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.3);
}

.cs-cta-actions .btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cs-cta-actions .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .cs-tech-section {
    padding: 28px 20px;
  }
  
  .cs-tech-section .cs-tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .cs-tech-item {
    padding: 16px 12px;
  }
  
  .cs-cta-section {
    padding: 40px 24px;
  }
  
  .cs-cta-section h2 {
    font-size: 26px;
  }
  
  .cs-cta-features {
    gap: 16px;
  }
  
  .cs-cta-actions {
    flex-direction: column;
  }
  
  .cs-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.cs-testimonial {
  background: rgba(46, 204, 113, 0.05);
  border-left: 3px solid #2ecc71;
  padding: 24px 28px;
  margin: 16px 0;
  border-radius: 0 12px 12px 0;
}

.cs-testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.cs-testimonial cite {
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
  font-size: 14px;
}

.cs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.cs-result-card {
  background: rgba(46, 204, 113, 0.05);
  border: 1px solid rgba(46, 204, 113, 0.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.cs-result-card h3 {
  color: #2ecc71;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cs-result-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

/* Case Studies Grid (Index Page) */
.cs-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cs-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cs-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 204, 113, 0.3);
}

.cs-card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.cs-card-content {
  padding: 24px;
}

.cs-card-type {
  display: inline-block;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.cs-card-nda {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.cs-card h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cs-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.cs-card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.cs-card-stats span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.cs-card-link {
  color: #2ecc71;
  font-size: 14px;
  font-weight: 500;
}

.cs-card-nda-only {
  cursor: default;
}

.cs-card-nda-only:hover {
  transform: none;
}

@media (max-width: 900px) {
  .cs-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cs-quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cs-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .cs-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .cs-quick-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
  }
  
  .cs-results-grid {
    grid-template-columns: 1fr;
  }
  
  .cs-hero h1 {
    font-size: 1.75rem;
  }
  
  .cs-stat-value {
    font-size: 1.5rem;
  }
}

/* ========================================
   Performance & Accessibility
   ======================================== */

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate {
    opacity: 1 !important;
    transform: none !important;
  }
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}

/* Lazy loading placeholder */
img[data-src],
[data-bg] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[data-src].loaded,
[data-bg].loaded,
img:not([data-src]) {
  opacity: 1;
}

/* Image loading placeholder blur */
.img-placeholder {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
  filter: blur(10px);
  transform: scale(1.1);
}

.img-placeholder.loaded {
  filter: none;
  transform: scale(1);
}

/* Content visibility for off-screen sections */
.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* Will-change hints for animated elements */
.nav,
.sticky-cta,
.modal-overlay {
  will-change: transform, opacity;
}

/* Font loading optimization */
.fonts-loading body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fonts-loaded body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Print styles */
@media print {
  .nav,
  .sticky-cta,
  .chat-toggle,
  .modal-overlay,
  .hero-scroll {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}


/* ===== EXIT INTENT POPUP ===== */
.exit-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.exit-popup-overlay.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-popup {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  -webkit-animation: popupSlideIn 0.3s ease;
  animation: popupSlideIn 0.3s ease;
}

@-webkit-keyframes popupSlideIn {
  from { opacity: 0; -webkit-transform: translateY(-20px) scale(0.95); transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}

@keyframes popupSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.exit-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--light-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  -webkit-transition: color 0.2s ease;
  -moz-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

.exit-popup-close:hover {
  color: var(--light);
}

.exit-popup-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.exit-popup h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--light);
  margin: 0 0 12px 0;
}

.exit-popup p {
  font-size: 16px;
  color: var(--light-muted);
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.exit-popup-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}

.exit-popup-input {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 14px 16px;
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--light);
  font-size: 14px;
}

.exit-popup-input:focus {
  outline: none;
  border-color: #2ecc71;
}

.exit-popup-submit {
  background: #2ecc71;
  color: #000;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  -webkit-transition: background 0.3s ease;
  -moz-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

.exit-popup-submit:hover {
  background: #27ae60;
}

.exit-popup-note {
  font-size: 12px;
  color: var(--light-subtle);
  margin-top: 16px;
}

@media (max-width: 480px) {
  .exit-popup { padding: 32px 24px; }
  .exit-popup-form { flex-direction: column; }
  .exit-popup-submit { width: 100%; }
}


/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 16px 60px;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--light-muted);
  text-decoration: none;
  -webkit-transition: color 0.2s ease;
  -moz-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #2ecc71;
}

.breadcrumbs-sep {
  color: var(--light-subtle);
}

.breadcrumbs-current {
  color: var(--light);
}

@media (max-width: 768px) {
  .breadcrumbs { padding: 12px 24px; }
  .breadcrumbs-inner { font-size: 12px; }
}


/* ===== PHONE NUMBER IN NAV ===== */
.nav-phone {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--light-muted);
  font-size: 14px;
  text-decoration: none;
  margin-right: 16px;
  -webkit-transition: color 0.2s ease;
  -moz-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

.nav-phone:hover {
  color: #2ecc71;
}

.nav-phone svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1100px) {
  .nav-phone { display: none; }
}


/* ===== ROI CALCULATOR ===== */
.calculator-section {
  padding: 120px 60px;
  background: var(--dark);
}

.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
}

.calculator-form {
  display: grid;
  gap: 24px;
}

.calculator-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calculator-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--light);
}

.calculator-select,
.calculator-input {
  padding: 14px 16px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--light);
  font-size: 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.calculator-select:focus,
.calculator-input:focus {
  outline: none;
  border-color: #2ecc71;
}

.calculator-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.calculator-checkbox {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--light-muted);
  cursor: pointer;
}

.calculator-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #2ecc71;
}

.calculator-results {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: none;
}

.calculator-results.visible {
  display: block;
}

.calculator-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.calculator-option {
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.calculator-option.diy {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.calculator-option.beyondrxaid {
  background: rgba(46, 204, 113, 0.1);
  border: 2px solid #2ecc71;
}

.calculator-option h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--light-muted);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calculator-option .price {
  font-size: 32px;
  font-weight: 700;
  color: var(--light);
}

.calculator-option.diy .price { color: #ef4444; }
.calculator-option.beyondrxaid .price { color: #2ecc71; }

.calculator-option .timeline {
  font-size: 14px;
  color: var(--light-muted);
  margin-top: 8px;
}

.calculator-savings {
  text-align: center;
  margin-top: 24px;
  padding: 16px;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 8px;
}

.calculator-savings span {
  font-size: 20px;
  font-weight: 700;
  color: #2ecc71;
}

@media (max-width: 768px) {
  .calculator-section { padding: 80px 24px; }
  .calculator-container { padding: 24px; }
  .calculator-checkboxes { grid-template-columns: 1fr; }
  .calculator-comparison { grid-template-columns: 1fr; }
}


/* ===== LANDING PAGE SHARED STYLES ===== */
.landing-hero {
  padding: 160px 60px 80px;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-lighter) 100%);
  text-align: center;
}

.landing-hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--light);
  max-width: 900px;
  line-height: 1.2;
  margin: 0 auto 24px auto;
}

.landing-hero .highlight {
  color: #2ecc71;
}

.landing-hero p {
  font-size: 18px;
  color: var(--light-muted);
  max-width: 700px;
  line-height: 1.7;
  margin: 0 auto 32px auto;
}

.landing-content {
  padding: 80px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.landing-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--light);
  margin: 48px 0 24px 0;
}

.landing-content h2:first-child {
  margin-top: 0;
}

.landing-content p {
  font-size: 16px;
  color: var(--light-muted);
  line-height: 1.8;
  margin: 0 0 16px 0;
}

.landing-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.landing-content li {
  font-size: 16px;
  color: var(--light-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.landing-cta-box {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(46, 204, 113, 0.05) 100%);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 16px;
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}

.landing-cta-box h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--light);
  margin: 0 0 12px 0;
}

.landing-cta-box p {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .landing-hero { padding: 120px 24px 60px; }
  .landing-hero h1 { font-size: 32px; }
  .landing-hero p { font-size: 16px; }
  .landing-content { padding: 60px 24px; }
  .landing-content h2 { font-size: 24px; }
}


/* ===== GLOSSARY PAGE STYLES ===== */
.glossary-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.glossary-nav a {
  padding: 8px 14px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--light-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.glossary-nav a:hover,
.glossary-nav a.active {
  background: #2ecc71;
  color: #000;
  border-color: #2ecc71;
}

.glossary-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.glossary-item:last-child {
  border-bottom: none;
}

.glossary-term {
  font-size: 20px;
  font-weight: 600;
  color: var(--light);
  margin: 0 0 12px 0;
}

.glossary-definition {
  font-size: 16px;
  color: var(--light-muted);
  line-height: 1.7;
  margin: 0 0 12px 0;
}

.glossary-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.glossary-category {
  color: #2ecc71;
}

.glossary-related {
  color: var(--light-subtle);
}

.glossary-related a {
  color: var(--light-muted);
  text-decoration: none;
}

.glossary-related a:hover {
  color: #2ecc71;
}
