/* ============================================
   SUNSPOT MEDICAL GROUP - Main Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --sun-50: #fffbeb;
  --sun-100: #fef3c7;
  --sun-200: #fde68a;
  --sun-300: #fcd34d;
  --sun-400: #fbbf24;
  --sun-500: #f59e0b;
  --sun-600: #b45309;
  --sun-700: #92400e;
  --sun-800: #78350f;
  --sun-900: #78350f;

  --navy-50: #f0f4f8;
  --navy-100: #d9e2ec;
  --navy-200: #bcccdc;
  --navy-300: #9fb3c8;
  --navy-400: #829ab1;
  --navy-500: #627d98;
  --navy-600: #486581;
  --navy-700: #334e68;
  --navy-800: #243b53;
  --navy-900: #102a43;

  --teal-500: #0d9488;
  --teal-600: #0f766e;
  --teal-700: #115e59;

  --coral: #ef6351;
  --sage: #87a878;

  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #5a6777;
  --bg-primary: #ffffff;
  --bg-secondary: #f7f8fa;
  --bg-warm: #fffdf7;
  --border-light: #e2e8f0;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 40px rgba(245,158,11,0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sun-600); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--sun-700); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-secondary); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow { max-width: 900px; }
.container-wide { max-width: 1400px; }

.section {
  padding: 5rem 0;
}

.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-900);
  text-decoration: none;
}

.nav-logo .sun-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--sun-400), var(--sun-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245,158,11,0.3);
}

.nav-logo .sun-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}

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

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sun-700);
  background: var(--sun-50);
}

.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, var(--sun-500), var(--sun-600));
  color: white !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
  transition: var(--transition);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--sun-400), var(--sun-500));
  box-shadow: 0 4px 14px rgba(245,158,11,0.45);
  transform: translateY(-1px);
  color: white !important;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-800);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-home {
  background: var(--navy-900);
  color: white;
}

.hero-home .hero-video {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
}

.hero-home::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(16,42,67,0.85) 0%, rgba(36,59,83,0.7) 50%, rgba(16,42,67,0.9) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-home::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-content h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--sun-400), var(--sun-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sun-300);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--sun-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

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

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-orb {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, rgba(245,158,11,0.04) 40%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

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

/* Page Hero (interior pages) */
.hero-page {
  min-height: 45vh;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: white;
  padding-top: 72px;
  display: flex;
  align-items: center;
}

.hero-page h1 { color: white; }
.hero-page p { color: rgba(255,255,255,0.85); font-size: 1.15rem; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--sun-400); }
.breadcrumb span { color: rgba(255,255,255,0.75); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sun-500), var(--sun-600));
  color: white;
  box-shadow: 0 2px 10px rgba(245,158,11,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--sun-400), var(--sun-500));
  box-shadow: 0 4px 16px rgba(245,158,11,0.45);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--sun-600);
  border: 2px solid var(--sun-500);
}

.btn-outline:hover {
  background: var(--sun-500);
  color: white;
}

.btn-dark {
  background: var(--navy-800);
  color: white;
}

.btn-dark:hover {
  background: var(--navy-900);
  color: white;
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* --- Cards --- */
.card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--sun-50), var(--sun-100));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card-product {
  position: relative;
  overflow: hidden;
}

.card-product .card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy-50), var(--sun-50));
  margin: -2rem -2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--sun-50);
  color: var(--sun-700);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Grid Systems --- */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sun-600);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header .overline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sun-600);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --- Feature Blocks --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}

.feature-row.reversed { direction: rtl; }
.feature-row.reversed > * { direction: ltr; }

.feature-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-50), var(--sun-50));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.feature-text h3 { margin-bottom: 1rem; }
.feature-text p { margin-bottom: 1.5rem; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '✦';
  color: var(--sun-500);
  font-size: 0.7rem;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

/* --- Accordion / FAQ --- */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }

.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--sun-300);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.08);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: white;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-800);
  text-align: left;
  transition: var(--transition);
}

.accordion-header:hover { background: var(--sun-50); }

.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-body-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Testimonials --- */
.testimonial-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.testimonial-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--sun-400);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun-200), var(--sun-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--sun-800);
  font-size: 0.9rem;
}

.testimonial-name { font-weight: 600; color: var(--navy-800); font-size: 0.95rem; }
.testimonial-title { font-size: 0.85rem; color: var(--text-muted); }

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 1rem 1.25rem;
  background: var(--navy-50);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-700);
  text-align: left;
  border-bottom: 2px solid var(--border-light);
}

td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.93rem;
  color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--sun-50); }

/* --- Forms --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
}

.form-label .required { color: var(--coral); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--sun-400);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23627d98' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* --- Citation Blocks --- */
.citation-block {
  background: var(--navy-50);
  border-left: 4px solid var(--teal-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.citation-block .citation-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

.citation-block .citation-source {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: normal;
}

.citation-block .citation-source a {
  color: var(--teal-600);
}

/* --- Disclaimer Banners --- */
.disclaimer {
  background: var(--sun-50);
  border: 1px solid var(--sun-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.88rem;
  color: var(--sun-800);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.disclaimer-icon { flex-shrink: 0; font-size: 1.2rem; }

/* --- CTA Banners (dark/colored backgrounds) --- */
.cta-banner p,
.cta-banner h2,
.bg-navy p,
.bg-navy h2,
section[style*="color: white"] p,
section[style*="color: white"] h2 {
  color: rgba(255,255,255,0.95) !important;
}

/* --- Footer --- */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

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

.footer-brand { max-width: 300px; }

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.footer h4 {
  color: white;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.footer-links a:hover {
  color: var(--sun-400);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: white; }
.text-muted { color: var(--text-muted); }
.text-sun { color: var(--sun-600); }
.text-sm { font-size: 0.88rem; }
.text-lg { font-size: 1.15rem; }
.font-serif { font-family: var(--font-serif); }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.bg-warm { background: var(--bg-warm); }
.bg-light { background: var(--bg-secondary); }
.bg-navy { background: var(--navy-900); color: white; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reversed { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
  }

  .nav-links .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-links .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero-page { min-height: 35vh; }
  .section { padding: 3rem 0; }
  .section-lg { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* --- Study Cards (Evidence Library) --- */
.study-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

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

.study-card.fish-skin { border-top: 3px solid #0d9488; }
.study-card.spider-silk { border-top: 3px solid #f97316; }
.study-card.dfu { border-left: 3px solid #ec4899; }
.study-card.burns { border-left: 3px solid #f59e0b; }
.study-card.mechanism { border-left: 3px solid #3b82f6; }

.study-header {
  margin-bottom: 1rem;
}

.study-header h4 {
  color: var(--navy-900);
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
}

.study-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.study-authors {
  font-weight: 600;
  color: var(--text-secondary);
}

.study-journal {
  font-style: italic;
}

.study-finding {
  background: var(--navy-50);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border-left: 3px solid var(--teal-500);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.study-finding strong {
  color: var(--navy-900);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.study-doi {
  margin-top: 1rem;
}

.study-doi a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(15,118,110,0.08));
  border: 1px solid rgba(13,148,136,0.2);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--teal-700);
  font-weight: 500;
  transition: var(--transition);
}

.study-doi a:hover {
  background: linear-gradient(135deg, rgba(13,148,136,0.15), rgba(15,118,110,0.15));
  border-color: var(--teal-500);
  color: var(--teal-600);
}

/* --- Filter Buttons --- */
.filter-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.filter-btn:hover {
  border-color: var(--sun-400);
  background: var(--sun-50);
  color: var(--sun-700);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--sun-500), var(--sun-600));
  border-color: var(--sun-600);
  color: white;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}

/* ============================================
   BLOG ARTICLE STYLES
   ============================================ */

/* Blog breadcrumb - compact, no giant hero */
.blog-breadcrumb-bar {
  background: var(--navy-50);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-top: 72px;
}

.blog-breadcrumb-bar .breadcrumb {
  margin: 0;
  font-size: 0.85rem;
}

.blog-container {
  padding: 2rem 0 4rem;
}

.blog-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1.25;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-meta .author {
  font-weight: 600;
  color: var(--navy-700);
}

.article-meta .publish-date::before,
.article-meta .reading-time::before {
  content: "·";
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy-800);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body strong {
  color: var(--navy-900);
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 3px solid var(--sun-500);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--sun-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--navy-800);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  text-align: left;
}

.article-body th {
  background: var(--navy-50);
  font-weight: 600;
  color: var(--navy-800);
}

.article-body tr:nth-child(even) {
  background: var(--bg-subtle, #f8fafc);
}

/* Related Articles */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.related-articles h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.related-articles ul {
  list-style: none;
  padding: 0;
}

.related-articles li {
  margin-bottom: 0.75rem;
}

.related-articles a {
  color: var(--navy-700);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.related-articles a:hover {
  color: var(--sun-600);
}

/* Blog article responsive */
@media (max-width: 768px) {
  .article-header h1 {
    font-size: 1.8rem;
  }
  .article-body h2 {
    font-size: 1.35rem;
  }
  .article-meta {
    gap: 0.75rem;
  }
}

/* --- Print --- */
@media print {
  .nav, .footer, .btn, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
  .hero { min-height: auto; padding: 2rem 0; }
  .section { padding: 1rem 0; }
}
