/* Clinivora UI Components */

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-teal);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-700);
}

.nav-links a:hover {
  color: var(--color-blue);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(11, 31, 77, 0.2);
}

.btn-primary:hover {
  background: var(--color-blue);
  box-shadow: var(--shadow-blue-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--slate-100);
  color: var(--color-navy);
  border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
  background: var(--color-white);
  border-color: var(--color-blue);
  color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-teal {
  background: var(--color-teal);
  color: var(--color-white);
  box-shadow: var(--shadow-teal-glow);
}

.btn-teal:hover {
  background: var(--color-teal-dark);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(20, 184, 166, 0.06), transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.05), transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-teal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-teal);
}

.hero-headline {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.hero-subheadline {
  font-size: 1.2rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-visual-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(12px);
}

.hero-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--slate-100);
}

.visual-dots {
  display: flex;
  gap: 6px;
}

.visual-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-300);
}
.visual-dots span:nth-child(1) { background: #FF5F56; }
.visual-dots span:nth-child(2) { background: #FFBD2E; }
.visual-dots span:nth-child(3) { background: #27C93F; }

.visual-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  background: var(--color-teal-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.ai-dashboard-mockup {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.patient-stream-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.avatar-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.patient-details h5 {
  font-size: 0.9rem;
  color: var(--color-navy);
}

.patient-details p {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.tag-automated {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-blue);
}

.tag-whatsapp {
  background: rgba(20, 184, 166, 0.15);
  color: var(--color-teal-dark);
}

/* Floating AI badge overlay */
.hero-floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.88rem;
}

.floating-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-teal);
}

/* ==========================================================================
   Trust Section
   ========================================================================== */
.trust-section {
  background: var(--color-bg-light);
  padding: 3.5rem 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.trust-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 1.8rem;
}

.trust-badges-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.4rem;
  background: var(--color-white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy);
  transition: all 0.25s ease;
}

.trust-pill:hover {
  border-color: var(--color-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-pill svg {
  width: 18px;
  height: 18px;
  color: var(--color-teal);
}

/* ==========================================================================
   Problem Section
   ========================================================================== */
.problem-section {
  background: var(--color-white);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.problem-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  position: relative;
  transition: all 0.3s ease;
}

.problem-card:hover {
  background: var(--color-white);
  border-color: rgba(225, 29, 72, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(225, 29, 72, 0.08);
  color: #E11D48;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.problem-card h3 {
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-bottom: 0.6rem;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
}

/* ==========================================================================
   Our Solution Section
   ========================================================================== */
.solution-section {
  background: var(--color-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.solution-section .section-title {
  color: var(--color-white);
}

.solution-section .section-subtitle {
  color: var(--slate-400);
}

.solution-diagram-wrapper {
  margin-top: 3.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  backdrop-filter: blur(10px);
}

.solution-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.central-core {
  background: var(--grad-teal);
  padding: 1.5rem 3rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 40px rgba(20, 184, 166, 0.4);
  text-align: center;
}

.central-core h3 {
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 800;
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  width: 100%;
}

@media (max-width: 900px) {
  .nodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.solution-node {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.solution-node:hover, .solution-node.active {
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--color-teal);
  box-shadow: var(--shadow-teal-glow);
  transform: translateY(-3px);
}

.node-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.2);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-node h4 {
  color: var(--color-white);
  font-size: 0.98rem;
  font-weight: 600;
}

.solution-footer-text {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-teal);
  font-weight: 600;
}

/* ==========================================================================
   Why Clinivora
   ========================================================================== */
.why-section {
  background: var(--color-bg-light);
}

.why-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .why-card-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.why-card-traditional {
  background: var(--color-white);
  border: 1px solid var(--slate-200);
}

.why-card-clinivora {
  background: var(--color-navy);
  color: var(--color-white);
  border: 1px solid var(--color-navy-light);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.why-card-clinivora h3 {
  color: var(--color-white);
}

.why-card-clinivora p {
  color: var(--slate-300);
}

.why-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.98rem;
}

.why-list .icon-cross {
  color: #E11D48;
  font-weight: bold;
}

.why-list .icon-check {
  color: var(--color-teal);
  font-weight: bold;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-section {
  background: var(--color-white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
}

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.process-step-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  position: relative;
  transition: all 0.3s ease;
}

.process-step-card:hover {
  background: var(--color-white);
  border-color: var(--color-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: rgba(37, 99, 235, 0.25);
  margin-bottom: 0.6rem;
  line-height: 1;
}

.process-step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process-step-card p {
  font-size: 0.85rem;
  color: var(--slate-600);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  background: var(--color-bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3.5rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  background: var(--color-white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-blue-light);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
  background: var(--color-teal);
  color: var(--color-white);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
}

/* ==========================================================================
   Results Section
   ========================================================================== */
.results-section {
  background: var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.stat-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.6rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.stat-value {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.6rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-700);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background: var(--color-bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--color-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.8rem;
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.4rem;
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */
.final-cta-section {
  background: var(--color-white);
  padding: 5rem 0;
}

.cta-box {
  background: var(--grad-primary);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-box h2 {
  color: var(--color-white);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--slate-300);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--slate-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-brand h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--slate-400);
  max-width: 320px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--slate-400);
}

.footer-col a:hover {
  color: var(--color-teal);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 31, 77, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 550px;
  width: 90%;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
