/* ============================================
   PC&H Design System - v2.0 (Premium)
   Pharmaceutical Care & Health
   ============================================ */

/* -------- CSS Variables -------- */
:root {
  /* Colors - Kept your original palette but refined the alphas */
  --bg-primary: #fafaf9;
  --bg-secondary: #f5f5f4;
  --bg-card: rgba(255, 255, 255, 0.65); /* More transparent for glass effect */
  --text-primary: #1c1917;
  --text-secondary: #44403c; /* Slightly darker for better readability */
  --text-muted: #a8a29e;
  --border: rgba(28, 25, 23, 0.06);
  
  /* Brand Colors */
  --accent-teal: #0d9488;
  --accent-cyan: #0891b2;
  --gradient-start: #0d9488;
  --gradient-mid: #0891b2;
  --gradient-end: #7c3aed;
}

.dark {
  --bg-primary: #050505; /* Deeper black for premium feel */
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(20, 20, 20, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --border: rgba(255, 255, 255, 0.08);
}

/* -------- Reset & Base -------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

/* -------- Typography (Editorial Update) -------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.03em; /* Tighter tracking for "Finance" look */
}

h1 { font-weight: 700; letter-spacing: -0.04em; }

.page-label, .section-label, .logo-sub, .stat-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em; /* Wide spacing for small caps */
  font-size: 0.7rem;
}

a { color: inherit; text-decoration: none; transition: all 0.2s ease; }

/* -------- Premium Glassmorphism Cards -------- */
/* Applies to all cards across the site */
.card, .featured-article, .portfolio-card, .focus-card, .info-card, .form-card, .stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 24px;
  
  /* The "Expensive" Inner Glow */
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4), /* Top white lip */
    0 10px 40px -10px rgba(0, 0, 0, 0.05);
  
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dark .card, .dark .featured-article, .dark .portfolio-card, .dark .focus-card, .dark .info-card, .dark .stat-card {
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Hover Effects */
.featured-article:hover, .portfolio-card:hover, .focus-card:hover, .stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-teal);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    0 30px 60px -15px rgba(13, 148, 136, 0.2); /* Teal ambient glow */
}

/* -------- Header & Nav -------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.dark header.scrolled { background: rgba(10, 10, 10, 0.8); }

.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo Styles */
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark { display: flex; align-items: center; } /* SVG handles size */

/* Nav Links */
nav { display: flex; gap: 2rem; }
nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
}
nav a:hover, nav a.active { color: var(--text-primary); }

/* Buttons */
.btn-primary {
  padding: 0.8rem 1.75rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 100px; /* Pill shape is more modern */
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* -------- Hero Section -------- */
.hero {
  min-height: 90vh;
  display: flex; align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------- Visual Placeholder -------- */
.visual-gradient {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background-image: url('hero-dna.png');
  background-size: cover;
  background-position: center;
}

/* -------- Footer -------- */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  margin-top: 6rem;
  background: var(--bg-secondary);
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-text { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }

/* -------- Page Layout -------- */
.page-content {
  padding-top: 120px;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Page Headers */
.page-header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.page-label {
  color: var(--accent-teal);
  margin-bottom: 1rem;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* -------- Badges -------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-teal);
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* -------- Buttons -------- */
.btn-secondary {
  padding: 0.8rem 1.75rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* -------- Form Elements -------- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  background: var(--bg-card);
}

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

/* -------- Logo Text -------- */
.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* -------- Theme Toggle -------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  transform: scale(1.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* -------- Animations -------- */
.fade-up { animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }

/* Responsive */
@media (max-width: 1024px) {
  nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .focus-highlight { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .focus-grid { grid-template-columns: 1fr; }
  .criteria-grid { grid-template-columns: 1fr; }
}

/* -------- Focus Section -------- */
.focus-highlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(8, 145, 178, 0.05));
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 28px;
  margin-bottom: 3rem;
  align-items: center;
}

.dark .focus-highlight {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(8, 145, 178, 0.1));
}

.focus-highlight-visual {
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
}

.focus-areas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.focus-area-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.focus-area-item:hover {
  transform: translateX(8px);
  border-color: var(--accent-teal);
}

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

.focus-card {
  padding: 2rem;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.criteria-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 0.7rem;
}