/* Jeevasa Biologics — custom styles layered on top of Tailwind */

:root {
  --brand-teal: #99d5cd;
  --brand-navy: #204483;
  --brand-blue: #3d6bb1;
  --brand-dark: #0c2033;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', ui-sans-serif, system-ui, sans-serif;
  color: #334155;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .font-serif {
  font-family: Georgia, Cambria, 'Times New Roman', serif;
  letter-spacing: -0.01em;
}

/* Body copy scale — paragraphs read at 16px throughout (was 14px in places).
   p.text-sm has higher specificity than .text-sm, so this lifts small
   paragraph copy to 1rem site-wide without touching nav / buttons / badges. */
p {
  font-size: 1rem;
  line-height: 1.7;
}
p.text-sm { font-size: 1rem; }
p.text-xs { font-size: 0.8125rem; } /* keep fine-print disclaimers subtle */

/* Refined section eyebrow with leading tick */
.eyebrow-tick {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.72rem;
}
.eyebrow-tick::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.6;
}

/* Pill badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(153, 213, 205, 0.15);
  color: #204483;
  border: 1px solid rgba(153, 213, 205, 0.5);
}
.pill-light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Headline gradient accent */
.text-gradient {
  background: linear-gradient(90deg, #99d5cd 0%, #3d6bb1 60%, #204483 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Hero background — deep biotech gradient with subtle molecular pattern */
.hero-bg {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(153, 213, 205, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(61, 107, 177, 0.28), transparent 55%),
    linear-gradient(135deg, #0c2033 0%, #16305a 55%, #204483 100%);
}

.section-mesh {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(153, 213, 205, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #eef6f5 100%);
}

/* Animated peptide chain divider dots */
.dot-chain {
  background-image: radial-gradient(circle, rgba(153, 213, 205, 0.9) 2px, transparent 2px);
  background-size: 18px 18px;
}

/* Card hover lift */
.lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lift:hover {
  transform: translateY(-6px);
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--brand-teal);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 0.85rem;
  padding: 0.8rem 1.6rem;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  line-height: 1;
}
.btn-primary {
  background: var(--brand-teal);
  color: #0c2033;
  box-shadow: 0 8px 20px -8px rgba(153, 213, 205, 0.7);
}
.btn-primary:hover {
  background: #b6e2dc;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(153, 213, 205, 0.8);
}
.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #99d5cd;
  color: #99d5cd;
}
.btn-navy {
  background: var(--brand-navy);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(32, 68, 131, 0.6);
}
.btn-navy:hover {
  background: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(32, 68, 131, 0.6);
}
.btn-ghost {
  border: 1.5px solid rgba(32, 68, 131, 0.2);
  color: var(--brand-navy);
  background: #fff;
}
.btn-ghost:hover {
  border-color: var(--brand-navy);
  background: #f8fafc;
  transform: translateY(-2px);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Image hero with dark biotech overlay.
   Stacking (bottom -> top): background image (0) -> gradient overlay (1) -> content (2).
   The image is pinned in CSS (not relying on Tailwind's .absolute) so the overlay
   never fights it regardless of stylesheet load order. */
.img-overlay {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.img-overlay > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.img-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(12, 32, 51, 0.92) 0%, rgba(22, 48, 90, 0.82) 45%, rgba(32, 68, 131, 0.55) 100%);
}
.img-overlay > :not(img) { position: relative; z-index: 2; }

/* Clamp text to N lines */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Zoom on hover for image cards */
.zoom-img { overflow: hidden; }
.zoom-img img { transition: transform 0.6s ease; }
.zoom-img:hover img { transform: scale(1.06); }

/* Eyebrow label */
.eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ============================================================
   Modern / professional components (Regen-inspired polish)
   ============================================================ */

/* Subtle dotted grid background for light sections */
.grid-pattern {
  background-image:
    linear-gradient(rgba(32, 68, 131, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 68, 131, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Hero glow accents */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* Refined feature card */
.feature-card {
  background: #fff;
  border: 1px solid rgba(32, 68, 131, 0.08);
  border-radius: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(32, 68, 131, 0.28);
  border-color: rgba(153, 213, 205, 0.7);
}

/* Icon tile */
.icon-tile {
  height: 3.25rem;
  width: 3.25rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #204483, #3d6bb1);
  box-shadow: 0 10px 20px -10px rgba(32, 68, 131, 0.6);
}
.icon-tile-teal {
  background: linear-gradient(135deg, #99d5cd, #6fbdb3);
  box-shadow: 0 10px 20px -10px rgba(153, 213, 205, 0.8);
}

/* Numbered process connector */
.step-node {
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #204483, #16305a);
  position: relative;
  z-index: 1;
}

/* FAQ accordion */
.faq-item { border-bottom: 1px solid rgba(32, 68, 131, 0.1); }
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e293b;
  cursor: pointer;
}
.faq-icon { transition: transform 0.3s ease; color: #3d6bb1; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a > div { padding-bottom: 1.35rem; color: #64748b; }

/* Testimonial card */
.quote-mark {
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 0.7;
  color: #99d5cd;
}

/* Logo / trust marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 32s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Stat count-up figure */
.stat-num { font-variant-numeric: tabular-nums; }

/* Section top/bottom soft dividers */
.divider-fade-top { -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }

/* Rich text output (from the WYSIWYG editor) */
.rich-content > * + * { margin-top: 1.15rem; }
.rich-content p { line-height: 1.75; }
.rich-content h1 { font-family: Georgia, serif; font-size: 1.7rem; font-weight: 700; color: #204483; margin-top: 1.6rem; }
.rich-content h2 { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; color: #204483; margin-top: 1.4rem; }
.rich-content ul { list-style: disc; padding-left: 1.4rem; }
.rich-content ol { list-style: decimal; padding-left: 1.4rem; }
.rich-content li { margin-top: .4rem; }
.rich-content a { color: #3d6bb1; text-decoration: underline; }
.rich-content strong { color: #1e293b; font-weight: 700; }
.rich-content blockquote { border-left: 4px solid #99d5cd; padding-left: 1rem; font-style: italic; color: #475569; }
.rich-content pre { background: #0c2033; color: #e2e8f0; padding: 1rem; border-radius: .6rem; overflow-x: auto; }

/* Shared form field styles (address blocks, account forms) */
.lblf { display:block; font-size:.8rem; font-weight:600; color:#204483; margin-bottom:.35rem; }
.inpf { width:100%; border:1px solid #d1d5db; border-radius:.5rem; padding:.7rem .9rem; outline:none; background:#fff; }
.inpf:focus { border-color:#3d6bb1; box-shadow:0 0 0 2px rgba(153,213,205,.4); }
