/* ============ Hivet Animal Health — Global Styles ============ */
:root {
  --primary: #e60012;        /* Hivet red */
  --primary-dark: #b0000d;
  --primary-light: #fdecec;
  --accent: #ffffff;         /* white buttons on red */
  --dark: #221e1e;
  --gray: #6b5f5f;
  --light: #faf7f7;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(230, 0, 18, 0.08);
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #ece4e4;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  display: block;
}

.logo-text { line-height: 1.15; }

.logo-text .name {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}

.logo-text .tag {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

nav a:hover, nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--primary-dark);
  cursor: pointer;
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #8c000a 0%, var(--primary) 65%, #ff3040 100%);
  color: var(--white);
  padding: 90px 0;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
  max-width: 720px;
}

.hero p {
  margin-top: 18px;
  font-size: 18px;
  max-width: 620px;
  color: #ffd9dc;
}

.hero .btns { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: transform .15s, opacity .2s;
}

.btn:hover { transform: translateY(-2px); opacity: .92; }

.btn-primary { background: var(--white); color: var(--primary); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-solid { background: var(--primary); color: var(--white); }

/* ============ Page hero (inner pages) ============ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 56px 0;
}

.page-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.page-hero p { color: #ffd9dc; margin-top: 8px; max-width: 640px; }

/* ============ Sections ============ */
section { padding: 70px 0; }

.section-title {
  text-align: center;
  margin-bottom: 44px;
}

.section-title h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  color: var(--primary-dark);
}

.section-title p {
  color: var(--gray);
  margin-top: 8px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.bg-light { background: var(--light); }

/* ============ Cards / grids ============ */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid #ece4e4;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}

.card:hover { transform: translateY(-4px); }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.card h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--gray); }

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat h3 { font-size: 36px; color: var(--primary); }
.stat p { color: var(--gray); font-size: 14px; }

/* ============ Two-column ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col h2 { color: var(--primary-dark); font-size: 28px; margin-bottom: 14px; }
.two-col p { color: var(--gray); margin-bottom: 12px; }

.check-list { list-style: none; margin-top: 10px; }

.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
  color: var(--dark);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.img-block {
  background: var(--primary-light);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

/* ============ Solution pills ============ */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

/* ============ Product tables ============ */
.cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 18px;
}

.cat-head .icon-sm {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.cat-head h2 { color: var(--primary-dark); font-size: 24px; }
.cat-head span { color: var(--gray); font-size: 14px; }

.product-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-table th {
  background: var(--primary);
  color: var(--white);
  text-align: left;
  padding: 13px 18px;
  font-size: 14px;
}

.product-table td {
  padding: 13px 18px;
  border-bottom: 1px solid #f0e8e8;
  font-size: 15px;
  vertical-align: top;
}

.product-table tr:last-child td { border-bottom: none; }
.product-table .pname { font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.product-table .psrc { color: var(--gray); font-size: 13px; white-space: nowrap; }

@media (max-width: 640px) {
  .product-table .psrc, .product-table th:nth-child(3) { display: none; }
  .product-table .pname { white-space: normal; }
}

/* ============ CTA band ============ */
.cta-band {
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.cta-band h2 { font-size: 28px; }
.cta-band p { color: #ffc9cd; margin: 10px auto 26px; max-width: 560px; }

/* ============ Forms ============ */
form .field { margin-bottom: 18px; }

form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

form input, form textarea, form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfdcd7;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
}

form input:focus, form textarea:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

/* ============ Contact info ============ */
.info-line {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.info-line .ico {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.info-line h4 { font-size: 15px; color: var(--primary-dark); }
.info-line p { font-size: 15px; color: var(--gray); }

/* ============ Footer ============ */
footer {
  background: var(--dark);
  color: #c8b9b9;
  padding: 56px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  padding-bottom: 40px;
}

footer h4 { color: var(--white); margin-bottom: 14px; font-size: 15px; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
footer a { color: #c8b9b9; text-decoration: none; }
footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #423232;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

  nav ul {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px;
    border-bottom: 1px solid #ece4e4;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    z-index: 99;
  }

  nav ul.open { display: flex; }
  nav li { padding: 10px 0; }

  section { padding: 48px 0; }
  .hero { padding: 60px 0; }
  .page-hero { padding: 40px 0; }
  .cta-band { padding: 44px 0; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .two-col { gap: 28px; }
  .img-block { min-height: 200px; font-size: 56px; }
  .stat h3 { font-size: 28px; }
  .card { padding: 22px; }
  .hero .btns .btn { width: 100%; text-align: center; }
  .product-table td, .product-table th { padding: 11px 12px; font-size: 14px; }
  .info-line p { overflow-wrap: anywhere; }
}
