/* mgNova Pharmaceuticals LLP — site styles */

:root {
  --cream: #FFEDD5;
  --cream-deep: #FBE0BF;
  --navy: #1E3D51;
  --navy-soft: #33566C;
  --gold: #F4C85A;
  --gold-deep: #E8B733;
  --brick: #C4562A;
  --white: #FFFFFF;
  --ink: #142936;
  --muted: rgba(30, 61, 81, .68);
  --line: rgba(30, 61, 81, .14);
  --line-soft: rgba(30, 61, 81, .08);

  --serif: "Gloock", "Times New Roman", serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -22px rgba(20, 41, 54, .35);
  --shadow-sm: 0 8px 24px -14px rgba(20, 41, 54, .4);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h2, .section--navy h3 { color: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-deep); border-radius: 2px; }
.section--navy .eyebrow { color: rgba(255, 237, 213, .72); }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 62ch; }
.section--navy .lede { color: rgba(255, 237, 213, .78); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 500; text-decoration: none;
  cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-deep); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: var(--ink); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream); }
.section--navy .btn--ghost { border-color: rgba(255, 237, 213, .5); color: var(--cream); }
.section--navy .btn--ghost:hover { background: var(--cream); color: var(--navy); }
.btn--sm { padding: 10px 20px; font-size: .875rem; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 237, 213, .88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -26px rgba(20, 41, 54, .6); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { font-size: 1.32rem; font-weight: 700; letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; font-size: .95rem; color: var(--navy-soft);
  padding: 6px 0; position: relative; transition: color .18s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gold-deep); border-radius: 2px; transition: right .22s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

.header .btn { flex-shrink: 0; }

.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--navy); cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 108px); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% 55%; height: 460px;
  background: radial-gradient(closest-side, rgba(244, 200, 90, .38), transparent 72%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero h1 { max-width: 12ch; }
.hero__sub { margin-top: 20px; font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--navy-soft); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__art {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: #5A7E96; aspect-ratio: 4 / 3;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--cream); padding: 26px clamp(12px, 2vw, 26px); text-align: center; }
.stat__n { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; }
.stat__l { margin-top: 8px; font-size: .82rem; letter-spacing: .04em; color: var(--muted); }

/* ---------- generic layout helpers ---------- */
.head { max-width: 60ch; margin-bottom: clamp(34px, 4.4vw, 56px); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }
.head p { margin-top: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.6vw, 70px); align-items: center; }
.media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; background: var(--cream-deep); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--cream); color: var(--navy); margin-bottom: 18px;
}
.card__icon svg { width: 23px; height: 23px; }
.section--navy .card { background: rgba(255, 237, 213, .07); border-color: rgba(255, 237, 213, .16); }
.section--navy .card p { color: rgba(255, 237, 213, .74); }
.section--navy .card__icon { background: rgba(255, 237, 213, .14); color: var(--gold); }

.vm { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.vm__item { background: var(--white); border-radius: var(--radius); padding: 32px 30px; border: 1px solid var(--line-soft); }
.vm__item h3 { font-size: 1.35rem; margin-bottom: 12px; }
.vm__item p { color: var(--muted); }

/* ---------- products ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.chip {
  border: 1.5px solid var(--line); background: transparent; color: var(--navy-soft);
  padding: 8px 18px; border-radius: 999px; font: inherit; font-size: .86rem; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }

.product {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product__shot { position: relative; aspect-ratio: 1 / 1; background: #F3F1EE; overflow: hidden; }
.product__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product:hover .product__shot img { transform: scale(1.045); }
.product__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product__name { font-family: var(--serif); font-size: 1.34rem; line-height: 1.2; }
.product__comp { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.product__meta { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }

.tag {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; background: var(--cream); color: var(--navy-soft);
}
.tag--rx { background: var(--navy); color: var(--cream); }
.tag--pack { background: transparent; border: 1px solid var(--line); }

/* ---------- careers / cta band ---------- */
.band { background: var(--navy); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 66px); }
.band h2 { color: var(--cream); }
.band p { color: rgba(255, 237, 213, .78); margin-top: 16px; max-width: 52ch; }
.band__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn--ghost { border-color: rgba(255, 237, 213, .5); color: var(--cream); }
.band .btn--ghost:hover { background: var(--cream); color: var(--navy); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 66px); align-items: start; }
.contact__list { display: grid; gap: 18px; margin-top: 32px; }
.contact__row { display: flex; gap: 14px; align-items: flex-start; }
.contact__row svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--navy-soft); }
.contact__row a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__row a:hover { border-bottom-color: var(--navy); }
.contact__row small { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }

.form { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .84rem; font-weight: 500; letter-spacing: .03em; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--cream); font: inherit; font-size: .95rem; color: var(--navy);
  transition: border-color .16s ease, background .16s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); background: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req { color: var(--brick); }
.form__note { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.form__status { margin-top: 16px; font-size: .92rem; padding: 12px 15px; border-radius: 12px; display: none; }
.form__status.is-ok { display: block; background: rgba(30, 61, 81, .07); color: var(--navy); }
.form__status.is-err { display: block; background: rgba(196, 86, 42, .1); color: var(--brick); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: var(--cream); padding-block: clamp(48px, 6vw, 76px) 30px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 36px; }
.footer__brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-bottom: 16px; }
.footer__brand img { width: 40px; height: 40px; object-fit: contain; }
.footer__brand span { font-size: 1.25rem; font-weight: 700; }
.footer p { color: rgba(255, 237, 213, .7); font-size: .93rem; max-width: 34ch; }
.footer h4 { font-size: .76rem; letter-spacing: .17em; text-transform: uppercase; color: rgba(255, 237, 213, .55); margin: 0 0 16px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { text-decoration: none; font-size: .95rem; color: rgba(255, 237, 213, .82); transition: color .16s ease; }
.footer ul a:hover { color: var(--gold); }
.footer__bottom {
  margin-top: clamp(36px, 5vw, 58px); padding-top: 22px; border-top: 1px solid rgba(255, 237, 213, .16);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .84rem; color: rgba(255, 237, 213, .6);
}
.social { display: flex; gap: 10px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 237, 213, .24); color: var(--cream);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.social svg { width: 17px; height: 17px; }

.footer .disclaimer { font-size: .78rem; color: rgba(255, 237, 213, .5); line-height: 1.6; margin-top: 18px; max-width: 92ch; }
.disclaimer { font-size: .78rem; line-height: 1.6; margin-top: 18px; max-width: 92ch; }

/* ---------- page hero (inner pages) ---------- */
.phero { padding-block: clamp(46px, 6vw, 84px) clamp(30px, 4vw, 50px); }
.phero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
.phero p { margin-top: 18px; }
.crumb { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.crumb a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .product:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 880px) {
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 22px;
    box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .burger { display: flex; }
  .header .btn--gold { display: none; }
  .hero__grid, .split, .contact { grid-template-columns: 1fr; }
  .hero__art { order: -1; aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards--2, .cards--3, .cards--4, .vm { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .product__body { padding: 15px 16px 18px; }
  .product__name { font-size: 1.08rem; }
  .product__comp { font-size: .8rem; }
  .field--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
}
