/* ========================================
   Animal Health Nexus — Static Redesign
   ======================================== */

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

:root {
  --navy: #0B1D3A;
  --navy-light: #132B52;
  --teal: #008C83;
  --teal-dark: #007A72;
  --teal-glow: rgba(0, 168, 157, 0.15);
  --gold: #C5A55A;
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --gray-100: #EEF1F5;
  --gray-200: #D5DAE3;
  --gray-400: #8892A4;
  --gray-600: #5A6478;
  --gray-800: #2C3446;
  --text: #1E2A3E;
  --text-light: #5A6478;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(11,29,58,0.08);
  --shadow-md: 0 4px 16px rgba(11,29,58,0.1);
  --shadow-lg: 0 8px 32px rgba(11,29,58,0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
}

p { color: var(--text-light); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,168,157,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Top Bar --- */
.top-bar {
  background: var(--navy);
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--gray-200);
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.top-bar a {
  color: var(--gray-200);
  transition: color var(--transition);
}
.top-bar a:hover { color: var(--teal); }
.top-bar svg { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; }

/* --- Header / Nav --- */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo img {
  height: 50px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}
.nav-links a.btn-primary {
  color: var(--white);
}
.nav-links a.btn-primary:hover {
  color: var(--white);
}
.nav-links a.btn-primary::after {
  display: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--teal-glow), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero .subtitle { color: var(--gold); }
.hero h1 {
  color: var(--white);
  margin: 16px 0 24px;
  max-width: 700px;
}
.hero p {
  color: var(--gray-200);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 36px;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--off-white);
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-100);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 8px;
}

/* --- About Section --- */
.about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.about-content h2 { margin-bottom: 20px; }
.about-content > p { margin-bottom: 24px; }
.about-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-light);
}
.about-features li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--teal);
  margin-top: 2px;
}

/* --- Services Section --- */
.services { background: var(--off-white); }
.services-header {
  text-align: center;
  margin-bottom: 48px;
}
.services-header h2 { margin-top: 12px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.service-card .icon {
  width: 56px;
  height: 56px;
  background: var(--teal-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card .icon svg {
  width: 28px;
  height: 28px;
  color: var(--teal);
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.92rem; }

/* --- Team Section --- */
.team { background: var(--white); }
.team-header {
  text-align: center;
  margin-bottom: 48px;
}
.team-header h2 { margin-top: 12px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.team-card {
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); }
.team-card .photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--gray-100);
  transition: border-color var(--transition);
}
.team-card:hover .photo { border-color: var(--teal); }
.team-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card h4 { color: var(--navy); font-size: 1rem; }
.team-card .role {
  font-size: 0.85rem;
  color: var(--teal);
  margin-top: 4px;
}

/* --- Team Featured (Bernardo) --- */
.team-featured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 48px;
}
.team-featured .photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--teal);
}
.team-featured .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-featured h3 { margin-bottom: 4px; }
.team-featured .role {
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.team-featured p { font-size: 0.95rem; }

/* --- FAQ Section --- */
.faq { background: var(--off-white); }
.faq-header { text-align: center; margin-bottom: 40px; }
.faq-header h2 { margin-top: 12px; }
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--teal); }
.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 400px;
}
.faq-answer-inner {
  padding: 0 24px 18px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--teal-glow), transparent 70%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-banner p { color: var(--gray-200); margin-bottom: 28px; position: relative; }

/* --- Contact Section --- */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item .icon-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
}
.contact-item h4 { margin-bottom: 4px; }
.contact-item p { font-size: 0.92rem; }
.contact-item a { color: var(--teal); }

/* Netlify Form */
.contact-form {
  background: var(--off-white);
  padding: 36px;
  border-radius: var(--radius-lg);
}
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--gray-600);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Progress Bars --- */
.progress-section {
  background: var(--white);
  padding: 60px 0;
}
.progress-bars {
  max-width: 600px;
}
.progress-item { margin-bottom: 24px; }
.progress-item .progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.progress-item .progress-header span:last-child { color: var(--teal); }
.progress-track {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Blog Grid --- */
.blog-section { background: var(--off-white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-card .thumb {
  height: 200px;
  overflow: hidden;
}
.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.blog-card:hover .thumb img {
  transform: scale(1.05);
}
.blog-card .card-body {
  padding: 24px;
}
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card p { font-size: 0.9rem; }
.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 14px;
  transition: gap var(--transition);
}
.blog-card:hover .read-more { gap: 10px; }

/* --- Page Banner (inner pages) --- */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 60px 0 40px;
  text-align: center;
}
.page-banner h1 { color: var(--white); font-size: 2.4rem; }
.page-banner .breadcrumb {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-top: 8px;
}
.page-banner .breadcrumb a { color: var(--teal); }

/* --- Services Detail --- */
.services-detail { background: var(--white); }
.services-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.services-list-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.services-list-sidebar a {
  display: block;
  padding: 14px 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.services-list-sidebar a:hover,
.services-list-sidebar a.active {
  background: var(--teal-glow);
  border-left-color: var(--teal);
  color: var(--teal);
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  padding: 60px 0 24px;
  color: var(--gray-200);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 20px;
  font-size: 1rem;
}
.footer p { font-size: 0.9rem; color: var(--gray-400); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal); }
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  section { padding: 60px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-toggle { display: block; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .team-featured { grid-template-columns: 1fr; text-align: center; }
  .team-featured .photo { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-detail-grid { grid-template-columns: 1fr; }
}

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