/* ============================================================
   FREDNA VET DIAGNOSTICS — Premium Healthcare Design System
   ============================================================ */

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

/* ---- DESIGN TOKENS ---- */
:root {
  /* Colors */
  --primary: #1565C0;
  --primary-light: #1E88E5;
  --primary-dark: #0D47A1;
  --secondary: #1E88E5;
  --dark: #0D2137;
  --dark-light: #163A5C;
  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --accent: #C62828;
  --text: #163A5C;
  --text-secondary: #546E7A;
  --text-muted: #90A4AE;
  --border: #D6E4F0;
  --border-light: #EDF2F7;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(11,37,50,0.04);
  --shadow-sm: 0 2px 8px rgba(11,37,50,0.06);
  --shadow: 0 4px 24px rgba(11,37,50,0.08);
  --shadow-md: 0 8px 32px rgba(11,37,50,0.1);
  --shadow-lg: 0 16px 48px rgba(11,37,50,0.12);
  --shadow-glow: 0 0 40px rgba(21,101,192,0.15);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 100px;
  --space-6xl: 140px;

  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-w: 1200px;
  --max-w-lg: 1400px;

  /* Glass */
  --glass-bg: rgba(255,255,255,0.6);
  --glass-bg-strong: rgba(255,255,255,0.8);
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(255,255,255,0.5);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.container-lg { max-width: var(--max-w-lg); margin: 0 auto; padding: 0 32px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p { color: var(--text-secondary); line-height: 1.7; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8125rem; }
.text-muted { color: var(--text-muted); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(21,101,192,0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(21,101,192,0.35);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(21,101,192,0.04);
  transform: translateY(-1px);
}
.btn-white {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}
.btn-white:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 0.875rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-icon { padding: 10px; border-radius: var(--radius-sm); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(21,101,192,0.04);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 2px 12px rgba(11,37,50,0.25);
}
.btn-dark:hover {
  background: var(--dark-light);
  box-shadow: 0 4px 20px rgba(11,37,50,0.35);
  transform: translateY(-2px);
}

/* ---- HEADER ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w-lg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--dark);
}
.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.header.scrolled .logo-img { filter: none; }
.header:not(.scrolled) .logo-img { filter: brightness(0) invert(1); }
.header.scrolled .logo { color: var(--dark); }
.header:not(.scrolled) .logo { color: #fff; }
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.header:not(.scrolled) .nav a { color: rgba(255,255,255,0.75); }
.header:not(.scrolled) .nav a:hover,
.header:not(.scrolled) .nav a.active { color: #fff; }
.header.scrolled .nav a:hover,
.header.scrolled .nav a.active { color: var(--primary); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.header:not(.scrolled) .nav a.active::after { background: #fff; }
.header-ctas { display: flex; gap: 10px; align-items: center; }
.header:not(.scrolled) .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.header:not(.scrolled) .btn-primary:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 6px;
  transition: all 0.3s;
}
.header:not(.scrolled) .nav-toggle span { background: #fff; }
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 20px; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, #0a3a4a 40%, var(--primary-dark) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30,136,229,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(21,101,192,0.1) 0%, transparent 50%);
}
/* Decorative geometric shapes */
.hero::after {
  content: '';
  position: absolute;
  right: -5%;
  top: 10%;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.75rem, 5vw, 4rem);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-dots {
  display: flex;
  gap: 8px;
}
.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s;
}
.hero-dots .dot.active {
  background: var(--primary-light);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}
.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.875rem;
  font-weight: 500;
}
.hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Floating stat cards */
.hero-stats {
  position: absolute;
  bottom: -20px;
  left: -30px;
  right: -30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  z-index: 3;
}
.stat-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Hero booking bar */
.hero-booking {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: 900px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  z-index: 10;
}
.booking-field { flex: 1; }
.booking-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.booking-field select,
.booking-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.booking-field select:focus,
.booking-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
.booking-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235E7387' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ---- SECTION ---- */
.section {
  padding: var(--space-6xl) 0;
}
.section-sm { padding: var(--space-4xl) 0; }
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.section-header .overline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* ---- CARDS ---- */
.card-grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(21,101,192,0.08), rgba(21,101,192,0.03));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--primary);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.9375rem; }

/* Feature card (image top) */
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-card-img {
  height: 200px;
  background: linear-gradient(135deg, rgba(21,101,192,0.08), rgba(30,136,229,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-card-img svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
  opacity: 0.4;
}
.feature-card-body {
  padding: var(--space-xl);
}
.feature-card-body h3 { margin-bottom: 8px; }
.feature-card-body p { font-size: 0.9375rem; margin-bottom: 16px; }
.feature-card-body .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}
.feature-card-body .btn-link:hover { gap: 10px; }
.feature-card-body .btn-link svg { width: 16px; height: 16px; }

/* Department cards */
.dept-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.dept-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(21,101,192,0.1), rgba(21,101,192,0.04));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--primary);
}
.dept-card-icon svg { width: 28px; height: 28px; }
.dept-card h3 { font-size: 1.0625rem; margin-bottom: 6px; }

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  position: relative;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: #F59E0B;
}
.testimonial-stars svg { width: 16px; height: 16px; }
.testimonial-quote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(21,101,192,0.1), rgba(30,136,229,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
}
.testimonial-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
}
.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---- PARTNERS ---- */
.partner-slider {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.partner-track {
  display: flex;
  gap: 60px;
  animation: scroll-partners 30s linear infinite;
  width: max-content;
}
.partner-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  opacity: 0.35;
  transition: opacity 0.3s;
  filter: grayscale(100%);
}
.partner-item:hover {
  opacity: 0.7;
  filter: grayscale(0%);
}
.partner-item span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  white-space: nowrap;
}
@keyframes scroll-partners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- TESTIMONIAL CENTERED ---- */
.testimonial-card-center {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  text-align: center;
}
.testimonial-quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.testimonial-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.testimonial-line {
  height: 10px;
  background: var(--border-light);
  border-radius: 4px;
  width: 80%;
}
.testimonial-line.short {
  width: 50%;
}
.testimonial-author-center {
  text-align: center;
}
.testimonial-author-center .testimonial-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
}
.testimonial-author-center .testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---- PARTNER CAROUSEL ---- */
.partner-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.partner-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.partner-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.partner-arrow svg {
  width: 20px;
  height: 20px;
}
.partner-logos {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.partner-logo-placeholder {
  width: 80px;
  height: 80px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.partner-logo-placeholder svg {
  width: 32px;
  height: 32px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: var(--space-5xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 {
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer p, .footer li { font-size: 0.875rem; line-height: 1.8; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--primary-light); }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--primary); }
.footer-social a svg { width: 16px; height: 16px; color: rgba(255,255,255,0.7); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.06);
  color: #fff;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ---- SOCIAL BAR ---- */
.social-bar {
  background: rgba(11,37,50,0.98);
  padding: 20px 0;
  border-top: 3px solid var(--primary);
}
.social-bar .container {
  display: flex;
  justify-content: center;
  gap: 48px;
  align-items: center;
}
.social-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.social-bar-item:hover { color: var(--primary-light); }
.social-bar-icon {
  width: 36px;
  height: 36px;
  background: rgba(21,101,192,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-bar-icon svg { width: 16px; height: 16px; }
.social-bar-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: 2px;
}

/* ---- CTA BAR ---- */
.cta-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: var(--max-w);
  background: rgba(11,37,50,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  z-index: 99;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
}
.cta-bar .container {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0;
}
.cta-bar .btn { font-size: 0.875rem; padding: 10px 20px; }
body { padding-bottom: 80px; }

/* ---- DIAGNOSTICS PAGE ---- */
.diagnostics-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}
.sidebar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.sidebar h3 {
  font-size: 0.9375rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.sidebar ul li { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.sidebar ul li:last-child { border: none; }
.sidebar ul li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar ul li a:hover,
.sidebar ul li a.active { color: var(--primary); font-weight: 600; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar svg { color: var(--text-muted); width: 18px; height: 18px; flex-shrink: 0; }
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* Diag main content */
.diag-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.diag-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.diag-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.diag-info-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.diag-info-box:last-child { border-right: none; }
.diag-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.diag-info-icon svg { width: 28px; height: 28px; }
.diag-description {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.desc-line {
  height: 12px;
  width: 100%;
  background: var(--border);
  border-radius: 4px;
}
.desc-line.short { width: 60%; }

/* ---- TEST DIRECTORY ---- */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-bar select, .filter-bar input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: var(--surface);
  min-width: 180px;
  color: var(--text);
  transition: border-color 0.2s;
}
.filter-bar select:focus, .filter-bar input:focus {
  outline: none;
  border-color: var(--primary);
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.data-table th, .data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}
.data-table th {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(21,101,192,0.02); }
.tat-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.tat-fast { background: rgba(198,40,40,0.1); color: #C62828; }
.tat-normal { background: rgba(245,158,11,0.1); color: #B45309; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group label .required { color: #EF4444; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 4px;
  border: 1px solid var(--border-light);
}
.tab {
  padding: 10px 20px;
  background: transparent;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  font-family: var(--font-body);
  color: var(--text-secondary);
}
.tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}
.tab:hover:not(.active) { color: var(--text); }
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.upload-zone:hover { border-color: var(--primary); background: rgba(21,101,192,0.02); }

/* ---- ABOUT PAGE ---- */
.about-hero {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(30,136,229,0.12) 0%, transparent 60%);
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero h1 { color: #fff; margin-bottom: 16px; }
.about-hero p { max-width: 600px; margin: 0 auto; opacity: 0.75; font-size: 1.0625rem; color: #fff; }

/* Full width hero image (no container) */
.about-hero-full {
  margin-top: 72px;
  width: 100%;
}
.about-hero-image-full {
  width: 100%;
  height: 400px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-hero-image-full svg {
  width: 100%;
  height: 100%;
}

/* Mission horizontal cards */
.mission-card-horizontal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.mission-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.mission-card-icon svg {
  width: 32px;
  height: 32px;
}
.mission-card-content h4 {
  margin-bottom: 8px;
}
.mission-card-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: transparent;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
}
.team-card:hover {
  transform: translateY(-4px);
}
.team-avatar {
  width: 100px;
  height: 100px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.team-avatar svg {
  width: 48px;
  height: 48px;
  opacity: 0.35;
}
.team-card h4 {
  margin-bottom: 4px;
  font-size: 0.9375rem;
}
.team-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Infrastructure grid */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.infra-placeholder {
  aspect-ratio: 1;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.infra-placeholder svg {
  width: 48px;
  height: 48px;
}

/* Certifications grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cert-item {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.cert-icon svg {
  width: 48px;
  height: 48px;
}

.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mission-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary);
}
.mission-card h3 { margin-bottom: 10px; }
.mission-card p { font-size: 0.9375rem; }

.leadership-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.leader-card {
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--border-light);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.leader-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(21,101,192,0.1), rgba(30,136,229,0.05));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.leader-avatar svg { width: 32px; height: 32px; }
.leader-card h4 { margin-bottom: 4px; }
.leader-card p { font-size: 0.8125rem; color: var(--text-muted); }

/* ---- EDUCATION HUB ---- */
.edu-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 120px 0 60px;
}
.edu-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}
.edu-tabs-bar {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.edu-tab-item {
  flex: 1;
  padding: 16px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-right: 1px solid var(--border);
  font-family: var(--font-heading);
  transition: all 0.2s;
  text-align: center;
}
.edu-tab-item:last-child { border-right: none; }
.edu-tab-item.active {
  background: var(--primary);
  color: #fff;
}
.edu-tab-item:not(.active):hover {
  background: var(--bg);
}
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.edu-list-item {
  display: flex;
  gap: 24px;
  align-items: stretch;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}
.edu-list-item:first-child { padding-top: 0; }
.edu-list-item:last-child { border-bottom: none; }
.edu-list-img {
  width: 140px;
  min-width: 140px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.edu-list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.edu-list-content .btn {
  align-self: flex-end;
  margin-top: auto;
}
.edu-list-title {
  height: 14px;
  width: 75%;
  background: var(--border);
  border-radius: 4px;
}
.edu-list-desc {
  height: 10px;
  width: 100%;
  background: var(--border-light);
  border-radius: 4px;
}
.edu-list-desc.short {
  width: 55%;
}

/* ---- PAWCAST ---- */
.pawcast-hero {
  display: flex;
  gap: 40px;
  align-items: center;
}
.pawcast-hero-img {
  flex-shrink: 0;
  width: 440px;
  height: 340px;
}
.pawcast-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pawcast-hero-info {
  flex: 1;
}
.pawcast-hero-info h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
}
.pawcast-hero-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0 0 24px;
}
.pawcast-header {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
}
.pawcast-img {
  flex-shrink: 0;
  width: 260px;
  height: 200px;
}
.pawcast-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pawcast-info {
  flex: 1;
}
.pawcast-info h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}

.pawcast-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}
.pawcast-episodes {
  display: flex;
  flex-direction: column;
}
.pawcast-episode {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pawcast-episode:hover {
  background: var(--surface);
  border-color: var(--primary);
}
.pawcast-play {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--text);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s ease;
}
.pawcast-play:hover {
  background: var(--text);
  color: var(--surface);
}
.pawcast-ep-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pawcast-ep-line {
  height: 10px;
  background: var(--border);
  border-radius: 4px;
  width: 100%;
}
.pawcast-ep-line.short {
  width: 60%;
}
.pawcast-duration {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ---- RESOURCE TABS (connected boxes) ---- */
.resource-tabs {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.resource-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-decoration: none;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
  transition: all 0.25s ease;
  gap: 12px;
}
.resource-tab:last-child {
  border-right: none;
}
.resource-tab:hover {
  background: var(--primary);
  color: #fff;
}
.resource-tab:hover .resource-tab-icon svg {
  stroke: #fff;
}
.resource-tab-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.resource-tab-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--text-secondary);
  transition: stroke 0.25s ease;
}
.resource-tab span {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- CONTACT ---- */
.contact-map {
  margin-top: 72px;
}
.contact-map .map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.contact-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.contact-info-col {
  text-align: center;
  border-right: 1px solid var(--border);
}
.contact-info-col:last-child { border-right: none; }
.contact-info-col strong {
  font-size: 0.9375rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.contact-info-col p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 4px 0;
}
.contact-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}
.whatsapp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: fit-content;
}
.whatsapp-icon {
  width: 72px;
  height: 72px;
  background: rgba(37,211,102,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
  margin-bottom: 8px;
}
.whatsapp-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
}
.whatsapp-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover {
  background: var(--dark-light);
}

/* ---- REFERRAL PORTAL LAYOUT ---- */
.referral-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.referral-left, .referral-right {
  display: flex;
  flex-direction: column;
}
.referral-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 28px;
}
.referral-tab {
  padding: 12px 28px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}
.referral-tab:hover {
  color: var(--primary);
}
.referral-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.referral-panel .form-group {
  margin-bottom: 18px;
}
.referral-panel .form-group:last-child {
  margin-bottom: 0;
}
.referral-panel .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.referral-right > div {
  margin-bottom: 20px;
}
.referral-right > div:last-child {
  margin-bottom: 0;
}
.referral-right h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

/* Case History focus effect */
.referral-history {
  position: relative;
}
.referral-history h4 {
  margin-bottom: 12px;
}
.referral-history textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  resize: vertical;
}
.referral-history textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12), 0 4px 16px rgba(21, 101, 192, 0.08);
  background: #fff;
}
.referral-history textarea::placeholder {
  color: var(--text-muted);
  transition: opacity 0.3s ease;
}
.referral-history textarea:focus::placeholder {
  opacity: 0.5;
}

/* ---- CASE CARDS ---- */
.case-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.case-card-img {
  height: 180px;
  background: linear-gradient(135deg, rgba(21,101,192,0.08), rgba(30,136,229,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.case-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.case-card-body { padding: var(--space-xl); }
.case-card-body h3 { margin-bottom: 8px; }
.case-card-body p { font-size: 0.9375rem; margin-bottom: 16px; }

/* Horizontal case card (image left, content right) */
.case-card-horizontal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: stretch;
}
.case-card-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.case-card-horizontal .case-card-img {
  width: 200px;
  min-height: 160px;
  height: auto;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(21,101,192,0.08), rgba(30,136,229,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-card-horizontal .case-card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-card-horizontal .case-card-body h4 {
  margin-bottom: 8px;
}
.case-card-horizontal .case-card-body p {
  font-size: 0.9375rem;
  margin-bottom: 16px;
  flex: 1;
}
.case-card-horizontal .case-card-body .btn {
  align-self: flex-start;
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ---- RESPONSIVE ---- */

/* Tablet */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-booking { position: relative; bottom: auto; left: auto; transform: none; width: 100%; max-width: 100%; margin-top: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .diagnostics-layout { grid-template-columns: 1fr; }
  .diag-info-row { grid-template-columns: 1fr; }
  .diag-info-box { border-right: none; border-bottom: 1px solid var(--border); }
  .diag-info-box:last-child { border-bottom: none; }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav */
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px 32px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    gap: 12px;
    z-index: 200;
  }
  .nav.open a { color: var(--text) !important; font-size: 1rem; padding: 8px 0; }

  /* Header */
  .header { padding: 0 16px; }
  .header .container { height: 64px; }
  .logo { font-size: 1rem; gap: 8px; }
  .logo-img { height: 48px; }

  /* Hero */
  .hero { min-height: auto; padding: 100px 0 40px; }
  .hero .container { padding-top: 0; padding-bottom: 0; }
  .hero h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .hero-subtitle { font-size: 1rem; margin-bottom: 28px; }
  .hero-ctas { flex-direction: column; margin-bottom: 32px; }
  .hero-ctas .btn { width: 100%; }
  .hero-booking { flex-direction: column; gap: 12px; padding: 20px; margin-top: 24px; }
  .hero-stats { position: relative; bottom: auto; left: auto; right: auto; margin-top: 24px; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-card { padding: 14px 8px; }
  .stat-number { font-size: 1.25rem; }

  /* About hero */
  .about-hero { padding: var(--space-4xl) 0; }
  .about-hero h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .contact-info-row { grid-template-columns: 1fr; gap: 24px; }
  .contact-info-col { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
  .contact-info-col:last-child { border-bottom: none; }
  .contact-two-col { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .referral-layout { grid-template-columns: 1fr; }
  .referral-panel .form-row { grid-template-columns: 1fr; }

  /* About page */
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero-image-full { height: 250px; }

  /* Section */
  .section { padding: var(--space-4xl) 0; }
  .container { padding: 0 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .newsletter-form { flex-direction: column; }

  /* Social bar */
  .social-bar .container { flex-direction: column; gap: 12px; }
  .social-bar-item { justify-content: center; }

  /* CTA bar */
  .cta-bar { width: calc(100% - 32px); bottom: 10px; }
  .cta-bar .container { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .cta-bar .btn { font-size: 0.8125rem; padding: 10px 14px; }

  /* Education hub */
  .edu-tabs-bar { flex-wrap: wrap; }
  .edu-tab-item { flex: 1 1 30%; font-size: 0.8125rem; padding: 12px 8px; }
  .edu-list-item { flex-direction: column; gap: 16px; }
  .edu-list-img { width: 100%; min-width: 0; height: 140px; }
  .pawcast-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .pawcast-hero { flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px; }
  .pawcast-hero-img { width: 100%; height: 200px; }
  .pawcast-img { width: 100%; height: 180px; }
  .resource-tabs { flex-wrap: wrap; }
  .resource-tab { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--border); }
  .resource-tab:nth-child(odd) { border-right: 1px solid var(--border); }
  .resource-tab:nth-last-child(-n+2) { border-bottom: none; }

  /* Upload zone */
  .upload-zone { padding: 24px 16px; }

  /* Tabs */
  .tabs { flex-wrap: wrap; }
  .tab { flex: 1; min-width: 0; text-align: center; font-size: 0.8125rem; padding: 10px 12px; }

  /* Filter bar */
  .filter-bar { flex-direction: column; }
  .filter-bar select, .filter-bar input { min-width: 0; width: 100%; }

  /* Data table */
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Testimonials & Partners */
  .partner-logos { gap: 10px; }
  .partner-logo-placeholder { width: 60px; height: 60px; }
  .partner-arrow { width: 32px; height: 32px; }
  .partner-arrow svg { width: 16px; height: 16px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-badge { font-size: 0.75rem; padding: 6px 12px; }
  .hero-stats { grid-template-columns: 1fr; gap: 8px; }
  .stat-card { display: flex; align-items: center; gap: 12px; text-align: left; }
  .hero-booking { padding: 16px; }
  .booking-field label { font-size: 0.6875rem; }

  .leadership-grid { grid-template-columns: 1fr; }
  .leader-card { padding: var(--space-lg); }

  .section { padding: var(--space-3xl) 0; }
  .about-hero { padding: var(--space-3xl) 0; }
  .container { padding: 0 16px; }

  .footer { padding: var(--space-3xl) 0 var(--space-md); }
  .footer h4 { font-size: 0.875rem; margin-bottom: 12px; }

  .btn { padding: 12px 20px; font-size: 0.875rem; }
  .btn-sm { padding: 8px 16px; font-size: 0.8125rem; }

  .edu-tab-item { flex: 1 1 45%; font-size: 0.75rem; padding: 10px 6px; }
  .resource-tab { padding: 16px 12px; }
  .resource-tab-icon svg { width: 24px; height: 24px; }
  .resource-tab span { font-size: 0.75rem; }

  .case-card-img { height: 140px; }
  .case-card-horizontal { flex-direction: column; }
  .case-card-horizontal .case-card-img { width: 100%; min-height: 140px; }
  .map-placeholder { height: 200px; }
  .testimonial-card-center { padding: 24px 16px; }
  .testimonial-quote-mark { font-size: 3rem; }
  .partner-logos { gap: 8px; }
  .partner-logo-placeholder { width: 50px; height: 50px; }
  .partner-logo-placeholder svg { width: 24px; height: 24px; }
  .team-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero-image-full { height: 180px; }
}
