/* ==========================================================
   Senov Life Science
   ========================================================== */

:root {
  --theme: #612f55;       /* plum: headings, active menu, bands */
  --gold: #fcdd92;        /* active menu text */
  --gold-text: #b7994f;   /* feature box titles */
  --text: #555;
  --border: #eee;
  --header-h: 100px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--theme); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: #222; }

h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
  margin: 0 0 30px;
}

p { margin: 0 0 30px; line-height: 1.8; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

section[id] { scroll-margin-top: var(--header-h); }

.i { width: 12px; height: 12px; fill: currentColor; flex-shrink: 0; }

/* ---------- Top bar ---------- */
.top-bar { border-bottom: 1px solid var(--border); }
.top-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.top-links li + li { border-left: 1px solid var(--border); }
.top-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
}
.top-links a:hover { background: var(--border); color: #666; }
.top-links .nott { text-transform: none; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #f5f5f5;
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 0 10px rgba(0, 0, 0, .1); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.logo img { width: auto; height: 60px; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}
.main-nav a {
  display: block;
  padding: 11px 15px;
  border-radius: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #444;
}
.main-nav a:hover { background: #f5f5f5; color: #444; }
.main-nav a.current {
  background: var(--theme);
  color: var(--gold);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: #333;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Section band (old page-title style) ---------- */
.section-band {
  background: var(--theme);
  padding: 32px 0;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
}
.section-band h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}

/* ---------- Content ---------- */
.content-wrap { padding: 80px 0; }

.heading-block { margin-bottom: 50px; }
.heading-block.center { text-align: center; }
.heading-block h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--theme);
}
.heading-block .lead {
  max-width: 700px;
  margin: 10px auto 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: #777;
}

.list-title {
  margin: 0 0 30px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--theme);
}

/* ---------- Home slider ---------- */
.boxed-slider { padding-top: 40px; }
.slider {
  position: relative;
  aspect-ratio: 1140 / 500;
  overflow: hidden;
  background: #f5f5f5;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .45s ease, transform .45s ease;
}
.slide.is-active { opacity: 1; transform: none; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  opacity: .8;
  cursor: pointer;
}
.slider-dots button.is-active { background: #fff; opacity: 1; }

/* ---------- About: vision & mission ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 30px;
  margin-top: 50px;
}
.feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 40px;
  align-items: start;
}
.feature-icon { width: 48px; height: 48px; fill: var(--theme); }
.feature h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold-text);
}
.feature p { margin: 8px 0 0; color: #999; }

/* ---------- Products table ---------- */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: #212529;
}
.table th,
.table td {
  padding: 12px;
  border: 1px solid #dee2e6;
  text-align: left;
  vertical-align: top;
}
.table thead th { border-bottom-width: 2px; font-weight: 700; vertical-align: bottom; }
.table tbody tr:nth-child(odd) { background: rgba(0, 0, 0, .05); }

/* ---------- Contact ---------- */
.contact-hero {
  position: relative;
  padding: 110px 0;
  background: url('../images/contact-banner.jpg') center 90% / cover no-repeat;
  text-align: center;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
}
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(222, 98, 98, .85);
}
.contact-hero .container { position: relative; }
.contact-hero a { color: #fff; }
.contact-hero a:hover { color: #fff; opacity: .85; }

.hero-title {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
}
.hero-email {
  display: inline-block;
  margin-bottom: 7px;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 20px;
  font-style: italic;
}
.hero-phone {
  margin: 0 0 9px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -2px;
}
.hero-address {
  display: block;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #eee;
}

.contact-hero .button-outline {
  display: inline-block;
  margin-top: 36px;
  padding: 10px 28px;
  border: 2px solid #fff;
  border-radius: 3px;
  font: 700 14px/24px 'Lato', Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.contact-hero .button-outline:hover {
  opacity: 1;
  background: #fff;
  color: var(--theme);
  text-shadow: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #f5f5f5;
  border-top: 2px solid rgba(0, 0, 0, .06);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 30px;
  padding-block: 40px;
  font-size: 14px;
  line-height: 1.8;
}
.footer-row p { margin: 0; }
.footer-row p a:hover { color: var(--theme); }
.site-footer a { color: #333; }
.footer-menu a { margin: 0 10px; }
.footer-menu a:first-child { margin-left: 0; }
.footer-menu a:last-child { margin-right: 0; }
.footer-menu a:hover { color: var(--theme); }

/* ---------- Back to top ---------- */
.go-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 599;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, background-color .2s;
}
.go-top.is-visible { opacity: 1; visibility: visible; }
.go-top:hover { background: var(--theme); }
.go-top svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 12px rgba(0, 0, 0, .08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0 15px 10px; }
  .main-nav a { padding: 14px 5px; border-top: 1px solid var(--border); border-radius: 0; }
  .main-nav a:hover { background: none; color: var(--theme); }
  .main-nav a.current { background: none; color: var(--theme); text-shadow: none; }

  .features { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --header-h: 80px; }

  .top-links { justify-content: center; }
  .top-links a { padding: 8px 10px; }
  .logo img { height: 48px; }

  .section-band h2 { font-size: 26px; }

  .content-wrap { padding: 50px 0; }
  .heading-block h1 { font-size: 24px; }
  .heading-block .lead { font-size: 17px; }
  .list-title { font-size: 18px; }

  .feature { gap: 20px; }

  .table { min-width: 0; }
  .table th,
  .table td { white-space: nowrap; }

  .contact-hero { padding: 70px 0; }
  .hero-email { font-size: 17px; }
  .hero-phone { font-size: clamp(30px, 9vw, 64px); letter-spacing: -1px; }
  .hero-address { font-size: 15px; }

  .footer-row { flex-direction: column; text-align: center; }
  .go-top { right: 15px; bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
}
