/* KAIROVA BIOTECH — site styles */

:root {
  --ink: #14241b;
  --ink-soft: #4d5d52;
  --forest: #143525;
  --forest-deep: #0e2619;
  --leaf: #2f6b48;
  --honey: #c98a2b;
  --cream: #fbf8f2;
  --sand: #f1e9da;
  --white: #ffffff;
  --line: rgba(20, 36, 27, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px -32px rgba(20, 36, 27, 0.55);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--leaf); text-decoration-color: rgba(47, 107, 72, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--forest); }

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--cream);
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-mark { display: flex; flex: none; }
.brand-mark img {
  height: 42px;
  width: auto;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 1.09rem;
  letter-spacing: 0.08em;
}
.brand-text small {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  margin-top: 4px;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--honey); color: var(--forest); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  cursor: pointer;
  gap: 4px;
  flex-direction: column;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--forest);
  color: var(--cream);
  border: 1px solid var(--forest);
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--forest-deep); color: var(--cream); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: rgba(20, 53, 37, 0.35);
}
.btn-ghost:hover { background: var(--forest); color: var(--cream); }

.btn-small { padding: 9px 18px; font-size: 0.86rem; }
.btn-full { width: 100%; text-align: center; }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(32px, 4vw, 56px); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--honey);
  margin: 0 0 14px;
}

.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 54ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 24px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--honey);
  flex: none;
}

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  background: rgba(251, 248, 242, 0.94);
  color: var(--forest);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Strip ---------- */

.strip { background: var(--forest); color: var(--sand); }
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  padding: 16px 22px;
  font-size: 0.79rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.strip-inner span { display: flex; align-items: center; gap: 30px; }
.strip-inner span + span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--honey);
  margin-right: 0;
  display: inline-block;
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-alt { background: var(--sand); }

.section-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 46px); }
.section-intro { color: var(--ink-soft); font-size: 1.03rem; margin: 0; }

/* ---------- Products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-media { background: var(--sand); }
.product-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.product-body h3 { margin: 0; }
.product-body p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.tags li {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(47, 107, 72, 0.1);
  border-radius: 999px;
  padding: 4px 11px;
}

.also {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.also h3 { font-size: 1.02rem; letter-spacing: 0.02em; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.pills li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.87rem;
  color: var(--ink);
}
.section-alt .pills li { background: rgba(255, 255, 255, 0.75); }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.steps li {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.step-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: var(--honey);
  font-weight: 700;
  margin-bottom: 10px;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.steps p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Company ---------- */

.company-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.company-copy p { color: var(--ink-soft); max-width: 60ch; }
.company-copy .btn { margin-top: 14px; }

.company-panel {
  background: var(--forest);
  color: var(--sand);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.company-panel h3 { color: var(--white); font-size: 1.05rem; letter-spacing: 0.02em; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 2px; border-bottom: 1px solid rgba(241, 233, 218, 0.16); padding-bottom: 12px; }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--honey); }
.facts dd { margin: 0; font-size: 0.96rem; }
.panel-note { margin-top: 20px; font-size: 0.9rem; }
.panel-note a { color: var(--sand); }

/* ---------- Quality ---------- */

.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 20px;
}
.quality-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.quality-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.quality-card p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

.uses { margin-top: 44px; }
.uses h3 { font-size: 1rem; letter-spacing: 0.02em; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: start;
}

.contact-card,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}

.contact-email-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 6px 0 18px;
}
.contact-email-line a {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  word-break: break-word;
}
.copy-btn {
  background: rgba(47, 107, 72, 0.1);
  color: var(--forest);
  border: 1px solid rgba(47, 107, 72, 0.25);
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 13px;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(47, 107, 72, 0.18); }

.contact-address-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: -4px;
}

.contact-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; font-size: 0.93rem; color: var(--ink-soft); }
.contact-list li { border-left: 2px solid var(--honey); padding-left: 12px; }
.contact-list strong { color: var(--ink); }

.privacy-note {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 18px;
}
.privacy-note h4 { margin-bottom: 6px; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf); }
.privacy-note p { font-size: 0.87rem; color: var(--ink-soft); margin: 0; }

.contact-form h3 { margin-bottom: 18px; }

.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label { font-size: 0.84rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.req { color: #b4451f; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: 0.78rem; }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(20, 36, 27, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: #93a096; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 107, 72, 0.16);
}

.field input:user-invalid,
.field textarea:user-invalid { border-color: #b4451f; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--forest);
  background: rgba(47, 107, 72, 0.1);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, padding 0.2s ease;
}
.form-status.is-shown { max-height: 240px; padding: 12px 14px; }
.form-status.is-error { color: #8f2f14; background: rgba(180, 69, 31, 0.1); }

.btn[disabled] { opacity: 0.62; cursor: progress; transform: none; }

.form-fine { font-size: 0.78rem; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- About page ---------- */

.site-nav a[aria-current="page"] { border-bottom-color: var(--honey); color: var(--forest); }

.page-hero {
  padding: clamp(34px, 5vw, 68px) 0 clamp(30px, 4vw, 48px);
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 64ch; margin-bottom: 0; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); }

.story-inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.story p { color: var(--ink-soft); max-width: 62ch; }

.story-media { margin: 0; position: sticky; top: 100px; }
.story-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.story-media figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.vision-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.vision-card h3 { font-size: 1.1rem; }
.vision-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

.vision-card-lead {
  grid-column: 1 / -1;
  background: var(--forest);
  border-color: var(--forest);
}
.vision-card-lead h3 { color: var(--honey); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; }
.vision-card-lead p {
  color: var(--sand);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  max-width: 46ch;
}

.tick-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.tick-list li {
  position: relative;
  padding-left: 25px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--honey);
}
.tick-list strong { color: var(--ink); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--honey);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cert-card h3 { margin: 0; font-size: 1.12rem; }
.cert-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

.cert-tag {
  font-size: 0.68rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--leaf) !important;
}

.cert-note {
  margin-top: auto !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem !important;
  color: var(--ink-soft);
}

.cert-foot {
  margin-top: 40px;
  background: var(--sand);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: 760px;
}
.cert-foot h3 { margin: 0; }
.cert-foot p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.cert-foot .btn { margin-top: 8px; }

.cta-band {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
  background: var(--forest);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(241, 233, 218, 0.82); margin: 0; font-size: 0.98rem; max-width: 52ch; }
.cta-band .eyebrow { color: var(--honey); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-band .btn { background: var(--honey); border-color: var(--honey); color: var(--forest-deep); }
.cta-band .btn:hover { background: var(--white); border-color: var(--white); color: var(--forest-deep); }
.cta-band .btn-ghost { background: transparent; color: var(--sand); border-color: rgba(241, 233, 218, 0.45); }
.cta-band .btn-ghost:hover { background: rgba(241, 233, 218, 0.12); color: var(--white); border-color: var(--sand); }

/* ---------- Footer ---------- */

.site-footer { background: var(--forest-deep); color: var(--sand); padding: 46px 0 34px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.footer-brand strong { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.07em; color: var(--white); display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; color: rgba(241, 233, 218, 0.75); max-width: 40ch; }

.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a,
.footer-contact a { color: var(--sand); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover,
.footer-contact a:hover { color: var(--white); text-decoration: underline; }

.footer-address {
  font-size: 0.9rem;
  color: rgba(241, 233, 218, 0.9);
  line-height: 1.55;
  margin-bottom: 12px;
}

.footer-small { font-size: 0.79rem; color: rgba(241, 233, 218, 0.6); margin-top: 12px; }

.cta-address {
  margin-top: 14px !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.03em;
  color: rgba(241, 233, 218, 0.7) !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .story-inner { grid-template-columns: 1fr; }
  .story-media { position: static; order: -1; }
  .vision-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .hero-media { order: -1; }
  .company-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }

  .brand-mark img { height: 38px; }
  .brand-text strong { font-size: 1rem; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 22px 18px;
    display: none;
    box-shadow: 0 18px 24px -22px rgba(20, 36, 27, 0.5);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; margin-top: 12px; text-align: center; }

  .header-inner { position: relative; }
  .strip-inner { justify-content: flex-start; gap: 8px 18px; font-size: 0.72rem; }
  .strip-inner span + span::before { display: none; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-caption { position: static; margin-top: 12px; display: inline-block; }
  .product-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .page-hero h1 { max-width: none; }
  .cta-actions .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
