/* =========================================================================
   Avrexon Scientific — marketing site stylesheet
   Mobile-first. Brand system: Navy #1a2744 · Gold #C8B97A · Cream #F5F1EA
   Headings: Cormorant Garamond · Body: DM Sans
   ========================================================================= */

:root {
  --navy:        #1a2744;
  --navy-deep:   #141d33;
  --navy-soft:   #243254;
  --gold:        #c8b97a;
  --gold-dark:   #b3a263;
  --cream:       #f5f1ea;
  --white:       #ffffff;

  --ink:         #222a3d;   /* body text on light backgrounds */
  --muted:       #5c6479;   /* secondary text on light */
  --on-navy:     #eef1f6;   /* primary text on navy */
  --on-navy-dim: #aab2c6;   /* secondary text on navy */

  --line:        rgba(26, 39, 68, .12);
  --line-gold:   rgba(200, 185, 122, .45);

  --maxw: 1140px;
  --gut: 22px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(20,29,51,.06), 0 4px 14px rgba(20,29,51,.05);
  --shadow-md: 0 10px 30px rgba(20,29,51,.12);

  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: .2px;
}
h2 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1rem; }

/* Scroll-margin so sticky header never covers anchor targets */
section[id] { scroll-margin-top: 84px; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 .9rem;
}
.section--navy .eyebrow { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.lead { font-size: 1.12rem; color: var(--muted); }
.section--navy .lead { color: var(--on-navy-dim); }

.rule-gold {
  width: 64px; height: 2px; border: 0;
  background: var(--gold);
  margin: 0 0 1.4rem;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--navy);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .2s ease; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 10px; border: 1.5px solid transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(200,185,122,.35); }
.btn--primary:hover { background: var(--gold-dark); box-shadow: 0 10px 24px rgba(200,185,122,.45); }

.btn--ghost { background: transparent; border-color: var(--gold); color: var(--navy); }
.btn--ghost:hover { background: rgba(200,185,122,.14); }
.section--navy .btn--ghost, .hero .btn--ghost { color: var(--on-navy); border-color: var(--gold); }
.section--navy .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(200,185,122,.16); }

.btn .icon { width: 18px; height: 18px; flex: none; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,39,68,.96);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(200,185,122,.22);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { height: 38px; width: auto; }

.nav { display: none; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--on-navy); text-decoration: none; font-weight: 500; font-size: .96rem;
  padding: 6px 2px; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover, .nav a:focus-visible, .nav a.is-active { color: var(--gold); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: none; align-items: center; gap: 12px; }
.header-actions .link-catalogue {
  color: var(--on-navy); text-decoration: none; font-weight: 500; font-size: .94rem;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.header-actions .link-catalogue:hover { color: var(--gold); }
.header-actions .link-catalogue .icon { width: 16px; height: 16px; }

/* Hamburger */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; margin-left: auto;
  background: transparent; border: 1px solid rgba(200,185,122,.35); border-radius: 9px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--gold); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none; background: var(--navy-deep);
  border-top: 1px solid rgba(200,185,122,.18);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gut) 18px; }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-nav a { display: block; padding: 15px 4px; color: var(--on-navy); text-decoration: none; font-weight: 500; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .mobile-cta { display: flex; gap: 12px; padding: 16px 4px 4px; flex-wrap: wrap; }
.mobile-nav .mobile-cta .btn { flex: 1 1 auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 80% -10%, rgba(200,185,122,.14), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
  padding: clamp(64px, 12vw, 132px) 0 clamp(60px, 10vw, 116px);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .7;
}
.hero-grid { display: block; }
.hero-copy { max-width: 820px; }
.hero-media { display: none; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 8vw, 4.4rem);
  font-weight: 600; line-height: 1.04; margin-bottom: .25em;
}
.hero .tagline {
  color: var(--gold); font-weight: 500; letter-spacing: .04em;
  font-size: clamp(.95rem, 2.6vw, 1.15rem); margin-bottom: 1.1rem;
}
.hero .hero-line {
  color: var(--on-navy); font-size: clamp(1.08rem, 2.8vw, 1.4rem);
  max-width: 640px; margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 10px 22px;
  color: var(--on-navy-dim); font-size: .9rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; }
.about-media {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.about-media::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; background: var(--gold);
}
.about-media img { max-height: 420px; width: auto; object-fit: contain; }
.onestop {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; gap: 14px;
}
.onestop li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 14px 16px; font-weight: 500; color: var(--ink);
}
.onestop .num { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-dark); line-height: 1; font-weight: 700; }

/* ---------- Product cards ---------- */
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
.card {
  position: relative; background: var(--white); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.card-media {
  margin: -22px -24px 18px; height: 188px; background: var(--white);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 18px;
  transition: transform .35s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.card:hover::before { transform: scaleX(1); }

.card .card-icon {
  width: 46px; height: 46px; margin-bottom: 16px; color: var(--gold-dark);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(200,185,122,.14); border-radius: 10px;
}
.card .card-icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--navy); margin-bottom: .35rem; font-size: 1.3rem; }
.card .card-desc { color: var(--muted); font-size: .97rem; margin-bottom: 14px; }
.card .examples { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.card .examples li { font-size: .82rem; color: var(--ink); background: var(--cream); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.card .quote-note { display: inline-block; margin-top: 12px; font-size: .8rem; color: var(--gold-dark); font-weight: 600; letter-spacing: .03em; }

/* ---------- Why / benefits ---------- */
.why-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.benefit {
  background: var(--navy-soft); border: 1px solid rgba(200,185,122,.18);
  border-radius: var(--radius); padding: 26px 24px;
}
.benefit .b-icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 14px; }
.benefit .b-icon svg { width: 32px; height: 32px; }
.benefit h3 { color: var(--white); font-size: 1.25rem; margin-bottom: .35rem; }
.benefit p { color: var(--on-navy-dim); margin: 0; font-size: .97rem; }

.stats {
  margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 1px;
  background: rgba(200,185,122,.22); border: 1px solid rgba(200,185,122,.22);
  border-radius: var(--radius); overflow: hidden;
}
.stats .stat { background: var(--navy); padding: 26px 20px; text-align: center; }
.stats .stat .n { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stats .stat .l { display: block; margin-top: 8px; color: var(--on-navy-dim); font-size: .9rem; letter-spacing: .03em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.contact-card {
  background: var(--navy); color: var(--on-navy); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-md);
}
.contact-card h3 { color: var(--white); }
.contact-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { width: 38px; height: 38px; flex: none; border-radius: 9px; background: rgba(200,185,122,.16); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.contact-list .ci svg { width: 19px; height: 19px; }
.contact-list .lbl { display: block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-dim); margin-bottom: 2px; }
.contact-list a, .contact-list .val { color: var(--on-navy); text-decoration: none; font-weight: 500; word-break: break-word; }
.contact-list a:hover { color: var(--gold); }
.gstin-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  background: rgba(200,185,122,.12); border: 1px solid var(--line-gold);
  border-radius: 8px; padding: 8px 12px; font-size: .82rem; color: var(--on-navy);
}
.gstin-badge b { color: var(--gold); letter-spacing: .04em; }
.contact-card .btn { width: 100%; margin-top: 4px; }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--cream); }
.map-wrap iframe { display: block; width: 100%; height: 280px; border: 0; }
.map-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-weight: 600; color: var(--navy); text-decoration: none; font-size: .92rem; }
.map-link:hover { color: var(--gold-dark); }

/* Form */
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.contact-form h3 { color: var(--navy); }
.form-note { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--cream);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(200,185,122,.25); }
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 14px; font-size: .92rem; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: #1f7a4d; }
.form-status.err { color: #b23b3b; }
.contact-form .btn { width: 100%; }
.contact-form .alt-cta { text-align: center; margin: 16px 0 0; font-size: .88rem; color: var(--muted); }
.contact-form .alt-cta a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-dim); padding: 56px 0 28px; }
.footer-top { display: grid; gap: 30px; grid-template-columns: 1fr; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--on-navy-dim); font-size: .92rem; max-width: 360px; margin: 0; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--on-navy-dim); text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: var(--gold); }
.footer-col .gstin { font-size: .9rem; color: var(--on-navy-dim); }
.footer-col .gstin b { color: var(--on-navy); letter-spacing: .03em; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between;
  font-size: .85rem; color: var(--on-navy-dim);
}
.footer-bottom a { color: var(--on-navy-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Floating WhatsApp (mobile reach) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.25); text-decoration: none;
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal animation ---------- */
/* Progressive enhancement: content is fully visible by default.
   Only when JS is confirmed running (html.js) do we hide-then-fade-in.
   This guarantees the page never renders blank if JS fails to fire. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .wa-float { transition: none; }
  .btn:hover, .card:hover, .wa-float:hover { transform: none; }
}

/* ======================= Responsive ======================= */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .onestop { grid-template-columns: repeat(2, 1fr); }
  .hero-cta .btn { min-width: 200px; }
}

@media (min-width: 880px) {
  .nav { display: block; }
  .header-actions { display: flex; }
  .nav-toggle { display: none; }
  .hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
  .hero-media {
    display: block; height: 430px; border-radius: 16px;
    background: var(--white) url(../assets/products/hero-feature.jpg) no-repeat center;
    background-size: contain; background-origin: content-box; padding: 28px;
    border: 1px solid rgba(200,185,122,.5);
    box-shadow: 0 26px 60px rgba(0,0,0,.38);
  }
  .about-grid { grid-template-columns: 1.15fr .85fr; align-items: stretch; gap: 56px; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
  .map-wrap iframe { height: 320px; }
}

@media (min-width: 1040px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
