/*
Theme Name: Biojiva Healthcare
Theme URI: https://www.biojivahealthcare.in
Author: Biojiva Healthcare
Description: A single-page, fully editable WordPress theme for Biojiva Healthcare — a veterinary tonics, therapeutics and nutraceuticals company. Light, dynamic, premium single-page layout: Banner, About, Why Biojiva, Products (slider, from a Products post type), Catalogue Download, split Contact section, and a one-line footer. Every heading, paragraph and contact detail is editable from Appearance > Customize; products are managed from their own admin screen like regular posts.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: biojiva-healthcare
*/

/* ============================================================
   DESIGN TOKENS — light, premium, dynamic
   ============================================================ */
:root {
  --navy: #10233F;
  --navy-2: #173a63;
  --blue: #2166B0;
  --gold: #C1922E;
  --gold-light: #E7B85B;
  --brick: #A6392B;
  --paper: #FAF8F3;       /* faint warm-white section tint */
  --white: #FFFFFF;
  --ink: #191A1E;
  --ink-soft: #5C5A52;
  --line: #E8E3D6;
  --shadow-sm: 0 8px 24px -12px rgba(16,35,63,0.14);
  --shadow-lg: 0 30px 70px -24px rgba(16,35,63,0.24);
  --radius: 14px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.mono { font-family: "IBM Plex Mono", monospace; }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brick); }
.eyebrow.light { color: var(--gold-light); }
.eyebrow.light::before { background: var(--gold-light); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section { position: relative; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 14px 30px -12px rgba(193,146,46,0.55); }
.btn-gold:hover { background: var(--navy); box-shadow: 0 18px 34px -12px rgba(16,35,63,0.4); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline.on-dark { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline.on-dark:hover { background: var(--white); color: var(--navy); }

/* -------------------- Seal / badge signature -------------------- */
.seal {
  --seal-size: 60px;
  width: var(--seal-size); height: var(--seal-size);
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.seal::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid currentColor; opacity: .5; }
.seal svg { width: 46%; height: 46%; }

.species { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.species span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(16,35,63,0.055); color: var(--navy); border: 1px solid rgba(16,35,63,0.1);
}

/* -------------------- Scroll-reveal -------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .20s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .36s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .44s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==================== TOP BAR ==================== */
.topbar { background: var(--navy); color: rgba(255,255,255,0.72); font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.03em; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 8px 32px; gap: 20px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ==================== HEADER / NAV ==================== */
header.site {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
header.site.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(16,35,63,0.3); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; flex-wrap: wrap; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 600;
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold);
  transition: right .3s var(--ease);
}
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--navy); cursor: pointer; padding: 6px; }

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: 110px 0 90px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
  overflow: hidden;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; z-index: 0;
  animation: floaty 14s ease-in-out infinite;
}
.hero-blob.b1 { width: 480px; height: 480px; background: var(--gold-light); top: -180px; right: -120px; }
.hero-blob.b2 { width: 360px; height: 360px; background: var(--blue); top: 220px; right: 340px; opacity: .18; animation-delay: -6s; }
@keyframes floaty { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-24px, 26px); } }
@media (prefers-reduced-motion: reduce) { .hero-blob { animation: none; } }

/* -------------------- Hero background video -------------------- */
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
}
.hero-video-wrap video {
  position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%;
  width: auto; height: auto; transform: translate(-50%, -50%);
  object-fit: cover;
}
.hero-video-scrim {
  /* soft, light wash so the video reads as an ambient backdrop rather
     than competing with the (dark-on-light) headline text */
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.86) 0%,
    rgba(255,255,255,0.72) 45%,
    rgba(250,248,243,0.88) 100%);
}
/* Background video is desktop/tablet only — muted autoplay video on a
   mobile data connection is a real cost for this audience, and mobile
   browsers are inconsistent about honouring autoplay anyway. Phones get
   the poster frame (or the gradient/blob fallback) instead. */
@media (max-width: 780px) {
  .hero-video-wrap video { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap video { display: none; }
}

.hero .wrap { position: relative; z-index: 1; max-width: 880px; }
.hero h1 { font-size: clamp(36px, 5vw, 62px); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 58ch; margin: 0 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-badges { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-badges .item { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.hero-badges .seal { --seal-size: 38px; color: var(--brick); border-width: 1.5px; }

/* ==================== TRUST STRIP (animated counters) ==================== */
.trust { background: var(--navy); padding: 40px 0; }
.trust .wrap { display: flex; flex-wrap: wrap; }
.trust .stat { flex: 1; min-width: 200px; text-align: center; padding: 10px 18px; border-left: 1px solid rgba(255,255,255,0.14); }
.trust .stat:first-child { border-left: none; }
.trust .stat b { display: block; font-family: "Archivo", sans-serif; font-size: 34px; color: var(--gold-light); }
.trust .stat span { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ==================== SECTION HEADS ==================== */
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head.left { text-align: left; margin: 0 0 50px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p { color: var(--ink-soft); font-size: 16.5px; margin: 0; }
.section-head.on-dark h2, .section-head.on-dark .eyebrow { color: var(--white); }
.section-head.on-dark .eyebrow { color: var(--gold-light); }
.section-head.on-dark .eyebrow::before { background: var(--gold-light); }
.section-head.on-dark p { color: rgba(255,255,255,0.68); }

/* ==================== ABOUT ==================== */
.about { padding: 100px 0; }
.about .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.about-copy { flex: 1.15; min-width: 320px; }
.about-copy p { color: var(--ink-soft); font-size: 16px; margin: 0 0 18px; max-width: 60ch; }
.about-pillars { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.about-pillars div { flex: 1; min-width: 190px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.about-pillars div:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.about-pillars b { display: block; font-family: "Archivo", sans-serif; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.about-pillars span { font-size: 13.5px; color: var(--ink-soft); }

.factsheet {
  flex: 0.85; min-width: 300px;
  background: var(--navy); color: var(--white);
  border-radius: 20px; padding: 34px 36px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.factsheet::before { content: ""; position: absolute; top: -70px; right: -70px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(231,184,91,0.25); }
.factsheet h3 { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 24px; }
.factsheet dl { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; margin: 0; position: relative; z-index: 2; }
.factsheet dt { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,0.5); white-space: nowrap; padding-top: 2px; }
.factsheet dd { margin: 0; font-size: 14.5px; color: rgba(255,255,255,0.94); border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 13px; }

/* ==================== WHY ==================== */
.why { padding: 100px 0; background: var(--paper); }
.why-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.why-card {
  flex: 1 1 250px; padding: 32px 26px; background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.why-card .seal { color: var(--brick); margin-bottom: 20px; }
.why-card h4 { font-size: 17.5px; margin-bottom: 8px; }
.why-card p { font-size: 13.75px; color: var(--ink-soft); margin: 0; }

/* ==================== PRODUCTS SLIDER ==================== */
.products { padding: 100px 0 110px; overflow: hidden; }
.product-slider-shell { position: relative; }
.product-slider-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 6px 26px; margin: 0 -6px; scrollbar-width: none;
}
.product-slider-track::-webkit-scrollbar { display: none; }
.product-card {
  scroll-snap-align: start; flex: 0 0 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .cat-tag {
  align-self: flex-start; font-family: "IBM Plex Mono", monospace; font-size: 9.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: rgba(166,57,43,0.08); color: var(--brick); margin-bottom: 16px;
}
.product-card .seal { --seal-size: 46px; color: var(--gold); margin-bottom: 14px; }
.product-card h3 { font-size: 18px; margin-bottom: 6px; }
.product-card .tagline { font-size: 13px; font-weight: 600; color: var(--navy); margin: 0 0 10px; line-height: 1.4; }
.product-card .desc { font-size: 13px; color: var(--ink-soft); margin: 0 0 16px; flex: 1; }
.product-card .foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px dashed var(--line); font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: var(--navy); font-weight: 600; }
.product-card .foot span.label { display: block; font-weight: 400; text-transform: uppercase; letter-spacing: .05em; font-size: 9px; color: var(--ink-soft); margin-bottom: 2px; }

.slider-controls { display: flex; justify-content: center; gap: 14px; margin-top: 10px; }
.slider-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white);
  display: grid; place-items: center; cursor: pointer; color: var(--navy); transition: all .25s ease;
}
.slider-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.slider-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }

/* ==================== CATALOGUE DOWNLOAD ==================== */
.catalogue-download { padding: 90px 0; background: var(--navy); position: relative; overflow: hidden; }
.catalogue-download::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(231,184,91,0.18), transparent 70%); top: -220px; left: -160px; }
.catalogue-download .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 54px; align-items: center; }
.catalogue-text { flex: 1.1; min-width: 300px; }
.catalogue-text h2 { color: var(--white); font-size: clamp(26px, 3.2vw, 36px); }
.catalogue-text p { font-size: 16px; color: rgba(255,255,255,0.72); max-width: 50ch; margin: 0 0 20px; }
.catalogue-text ul { margin: 0; padding-left: 20px; color: rgba(255,255,255,0.78); font-size: 14.5px; }
.catalogue-text li { margin-bottom: 6px; }

.catalogue-form-card { flex: 1; min-width: 320px; background: var(--white); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-lg); }
.catalogue-form-card h3 { font-size: 19px; margin-bottom: 6px; }
.catalogue-form-card .form-sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px; }

/* ==================== FORMS (shared) ==================== */
.form-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.form-row > div { flex: 1; min-width: 160px; }
.form-row .full { flex-basis: 100%; }
form label { display: block; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  font-family: "IBM Plex Sans", sans-serif; font-size: 14.5px; color: var(--ink); transition: border-color .2s ease;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--gold); }
form textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 12px; color: var(--ink-soft); margin-top: 14px; }
.form-success { background: #e9f5ec; border: 1px solid #b7ddc0; color: #2c6b3d; padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.form-error { background: #fbeceb; border: 1px solid #eab7b2; color: #8a2e26; padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ==================== CONTACT (split) ==================== */
.contact { padding: 100px 0; }
.contact-split { display: flex; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-info { flex: 0.85; min-width: 300px; background: var(--navy); color: var(--white); padding: 54px 44px; }
.contact-info h2 { color: var(--white); font-size: 28px; margin-bottom: 30px; }
.contact-info .item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-info .item:first-of-type { padding-top: 0; }
.contact-info .seal { --seal-size: 44px; color: var(--gold-light); }
.contact-info h4 { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin: 0 0 4px; font-weight: 600; }
.contact-info p { margin: 0; font-size: 15px; color: rgba(255,255,255,0.94); }
.contact-info .placeholder { color: var(--gold-light); font-style: italic; font-size: 13px; }
.contact-form-wrap { flex: 1.15; min-width: 320px; background: var(--white); padding: 54px 48px; }
.contact-form-wrap h3 { font-size: 22px; margin-bottom: 24px; }

/* ==================== FOOTER (one line) ==================== */
footer.site { background: var(--navy); padding: 26px 0; }
footer.site .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
footer.site p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.6); }
footer.site a { color: var(--gold-light); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 980px) {
  .contact-split { flex-direction: column; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .why-grid { flex-direction: column; }
  .catalogue-download .wrap { flex-direction: column; }
}

/* Mobile nav drawer */
.mobile-nav { position: fixed; inset: 0; background: var(--navy); z-index: 300; display: none; flex-direction: column; padding: 24px 28px; }
.mobile-nav.open { display: flex; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav-top img { height: 34px; }
.mobile-nav a { color: var(--white); text-decoration: none; font-family: "Archivo", sans-serif; font-size: 26px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.mobile-nav .close-btn { background: none; border: none; color: var(--white); cursor: pointer; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
