/* =============================================
   PRAMKI PHARMA - Main Stylesheet
   Brand Colors: Navy #1d2d50 | Steel Blue #4a90b8
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:        #1d2d50;
  --navy-dark:   #111d35;
  --navy-mid:    #243660;
  --blue:        #4a90b8;
  --blue-light:  #6bb5d8;
  --blue-pale:   #d6eaf8;
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --gray-light:  #edf2f7;
  --gray:        #94a3b8;
  --gray-dark:   #64748b;
  --text-dark:   #1e293b;
  --text-body:   #334155;
  --shadow-sm:   0 2px 8px rgba(29,45,80,0.08);
  --shadow-md:   0 8px 30px rgba(29,45,80,0.12);
  --shadow-lg:   0 20px 60px rgba(29,45,80,0.18);
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   40px;
  --transition:  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}

.display-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-dark);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 100px 0;
}

.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(29,45,80,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74,144,184,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(74,144,184,0.3);
}

.btn-blue:hover {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(29,45,80,0.35);
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 52px;
  width: auto;
  border-radius: 8px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  transition: color var(--transition);
}

.nav-logo-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color var(--transition);
}

/* When scrolled — switch to dark brand colors */
.navbar.scrolled .nav-logo-name { color: var(--navy); }
.navbar.scrolled .nav-logo-tagline { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

/* Scrolled state — dark links on white navbar */
.navbar.scrolled .nav-link {
  color: var(--text-dark);
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--blue);
}
.navbar.scrolled .nav-link::after {
  background: var(--blue);
}

.nav-cta {
  margin-left: 16px;
  /* transparent/white look when over the dark hero */
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.6) !important;
  color: var(--white) !important;
  box-shadow: none !important;
  backdrop-filter: blur(4px);
}

.nav-cta:hover {
  background: var(--white) !important;
  border-color: var(--white) !important;
  color: var(--navy) !important;
}

/* Once scrolled, use the original solid primary style */
.navbar.scrolled .nav-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%) !important;
  border-color: var(--navy) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 20px rgba(29,45,80,0.3) !important;
}

.navbar.scrolled .nav-cta:hover {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%) !important;
  border-color: var(--blue) !important;
  color: var(--white) !important;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--navy);
}

/* ── Page Hero Sections ── */
.page-hero {
  min-height: 420px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--blue) 100%);
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Ccircle cx='600' cy='100' r='300' fill='rgba(255,255,255,0.03)'/%3E%3Ccircle cx='100' cy='500' r='200' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.page-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a { color: rgba(255,255,255,0.8); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ── Feature Icons ── */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-box.navy {
  background: rgba(29,45,80,0.08);
}

.icon-box.navy svg {
  stroke: var(--navy);
}

/* ── Stats Strip ── */
.stats-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item { color: var(--white); }

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.stat-number span { color: var(--blue-light); }

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

/* ── Footer ── */
footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {}

.footer-logo {
  height: 56px;
  width: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.12);
}

.social-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--blue-light);
  padding-left: 4px;
}

.footer-links a::before {
  content: '→';
  font-size: 0.75rem;
  opacity: 0;
  transition: var(--transition);
}

.footer-links a:hover::before { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--white); }

/* ── Animations / Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ── Dividers ── */
.divider-wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.divider-wave svg { display: block; width: 100%; }

/* ── Tag/Badge ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tag-blue {
  background: var(--blue-pale);
  color: var(--blue);
}

.tag-navy {
  background: rgba(29,45,80,0.08);
  color: var(--navy);
}

/* ── Contact card ── */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--blue);
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--navy);
}

/* ── Form Styles ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-input {
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  background: var(--off-white);
  outline: none;
}

.form-input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(74,144,184,0.12);
}

.form-input::placeholder { color: var(--gray); }

textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .section-pad { padding: 70px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 16px; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 29, 53, 0.97);
  z-index: 999;
  padding: 80px 32px 40px;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(20px);
}

.mobile-nav.open { display: flex; }

.mobile-nav-link {
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}

.mobile-nav-link:hover { color: var(--blue-light); }

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: color var(--transition);
}

.mobile-nav-close:hover { color: var(--blue-light); }

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section BG variants ── */
.bg-off-white { background: var(--off-white); }
.bg-navy { background: var(--navy); }
.bg-gradient-navy { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); }
.bg-blue-pale { background: var(--blue-pale); }

/* ── Pill tabs ── */
.pill-tabs {
  display: inline-flex;
  background: var(--gray-light);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
}

.pill-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  color: var(--gray-dark);
  font-family: 'Inter', sans-serif;
}

.pill-tab.active, .pill-tab:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Accordion ── */
.accordion-item {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover { border-color: var(--blue); }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  background: var(--white);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  transition: var(--transition);
}

.accordion-header:hover { background: var(--off-white); }

.accordion-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
  font-size: 0.8rem;
  color: var(--blue);
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); background: var(--navy); color: var(--white); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion-item.open .accordion-body { max-height: 400px; }

.accordion-content {
  padding: 16px 24px 24px;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.8;
  background: var(--off-white);
}

/* Pulse animation */
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.float-anim { animation: float 4s ease-in-out infinite; }
