/* ================================================
   PURVANCHAL BIOMEDICAL SOLUTIONS
   Typography & Theme Sync Layer
   Applies AFTER style.css, pages.css, modern-homepage.css
   Only fixes what's broken — never overrides intentional green gradient text
   ================================================ */

/* ── Font imports ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ── Font variables ───────────────────────────── */
:root {
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ── Apply fonts globally ─────────────────────── */
body {
  font-family: var(--font-body) !important;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p, li, span, a, td, th, label, input, textarea, select, button {
  font-family: var(--font-body) !important;
}

/* ── Navbar ───────────────────────────────────── */
.nav-link, .mobile-link {
  font-family: var(--font-heading) !important;
  font-weight: 500 !important;
}
.navbar {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* ── Page header (green banner on inner pages) ── */
.page-header {
  /* Upgrade the green gradient to be more premium */
  background: linear-gradient(135deg,
    #064e3b 0%,
    #065f46 20%,
    #047857 45%,
    #059669 70%,
    #10b981 100%) !important;
  position: relative;
  overflow: hidden;
}
/* Subtle wave overlay inside page header */
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,40 C360,80 1080,0 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  z-index: 2;
  pointer-events: none;
}
.page-header h1 {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
}
.page-header p {
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
}

/* ── Content section h2 — keep green gradient ─── */
.content-text h2 {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  /* Preserve the green gradient — do NOT override with color */
}

/* ── Section description text ─────────────────── */
.content-text p,
.section-description,
.about-text p {
  font-family: var(--font-body) !important;
  font-size: 1.0625rem !important;
  line-height: 1.85 !important;
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
}

/* ── Mission/Vision cards ─────────────────────── */
.mv-card h3 {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  color: #0c2340 !important;
  -webkit-text-fill-color: #0c2340 !important;
}

/* ── Stats section (dark green bg — white text) ── */
.stats-section,
.stats-section * {
  font-family: var(--font-heading) !important;
}
.stats-section h2,
.stats-section h3,
.stats-section .stat-number {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 800 !important;
}
.stats-section p {
  color: rgba(255,255,255,0.8) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.8) !important;
  font-family: var(--font-body) !important;
}

/* ── CTA boxes ────────────────────────────────── */
.cta-box h2 {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  color: #0c2340 !important;
  -webkit-text-fill-color: #0c2340 !important;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
}
.cta-box p {
  color: #4b5563 !important;
  -webkit-text-fill-color: #4b5563 !important;
}

/* ── Contact info box ─────────────────────────── */
.contact-info-box h2,
.location-info h2,
.section-header-center h2 {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  color: #0c2340 !important;
  -webkit-text-fill-color: #0c2340 !important;
}

/* ── Buttons — unified ────────────────────────── */
.btn-primary, .btn-secondary, .btn-quote,
.btn-primary.modern, .btn-secondary.modern,
[class*="btn-"] {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  border-radius: 10px !important;
}
.btn-primary, .btn-primary.modern {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%) !important;
  box-shadow: 0 4px 14px rgba(14,165,233,0.3) !important;
  color: #fff !important;
  border: none !important;
}
.btn-primary:hover, .btn-primary.modern:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(14,165,233,0.4) !important;
}
.btn-quote {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 4px 14px rgba(16,185,129,0.3) !important;
  color: #fff !important;
  border: none !important;
}
.btn-quote:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(16,185,129,0.4) !important;
}

/* ── Cards ────────────────────────────────────── */
.mv-card, .service-feature-card, .contact-method,
.product-display-card, .product-card {
  border-radius: 18px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.mv-card:hover, .service-feature-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px rgba(16,185,129,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;
}

/* ── Footer ───────────────────────────────────── */
footer h3, footer h4, .footer h3, .footer h4 {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
}
footer p, footer a, .footer p, .footer a {
  font-family: var(--font-body) !important;
}

/* ── Form inputs ──────────────────────────────── */
input, textarea, select {
  font-family: var(--font-body) !important;
  border-radius: 10px !important;
}
input:focus, textarea:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15) !important;
  outline: none !important;
}

/* ── Homepage hero section (index.html) ──────── */
.hero-title {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
}
.hero-description {
  font-family: var(--font-body) !important;
  font-size: clamp(1rem, 1.5vw, 1.15rem) !important;
  line-height: 1.8 !important;
  color: #4b5563 !important;
  -webkit-text-fill-color: #4b5563 !important;
}

/* ── Homepage about section (light bg) ──────── */
.about:not(.dark-bg) h2,
.about:not(.dark-bg) .section-title {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  color: #0c2340 !important;
  -webkit-text-fill-color: #0c2340 !important;
  background: none !important;
}
.about:not(.dark-bg) p {
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
}

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f0fdf4; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #34d399, #10b981);
  border-radius: 4px;
}

/* ── Selection ────────────────────────────────── */
::selection {
  background: rgba(16,185,129,0.2);
  color: #064e3b;
}

/* ── Mobile ───────────────────────────────────── */
@media (max-width: 640px) {
  .page-header { padding: 140px 0 80px !important; }
  .page-header h1 { font-size: 2rem !important; }
}

/* ── Reduced motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── Navbar mobile logo fix ───────────────────── */
.nav-content {
  overflow: hidden;
}

.logo {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.logo-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .nav-content {
    height: 70px !important;
  }
  .logo-image {
    height: 55px !important;
    max-width: 220px !important;
    width: auto !important;
  }
}

@media (max-width: 480px) {
  .logo-image {
    height: 48px !important;
    max-width: 180px !important;
  }
  .nav-content {
    height: 65px !important;
  }
}

@media (max-width: 360px) {
  .logo-image {
    height: 42px !important;
    max-width: 150px !important;
  }
}
