/* =========================================================
   Bonwyte Pharma — stylesheet
   ========================================================= */
:root {
  --ink: #0b2831;
  --heading: #0c3742;
  --muted: #566b72;
  --primary: #0e7c86;
  --primary-dark: #0a5e66;
  --accent: #16b79e;
  --accent-soft: #e6f6f2;
  --bg: #ffffff;
  --bg-soft: #f1f8f8;
  --line: #e2edee;
  --shadow-sm: 0 2px 10px rgba(12, 55, 66, .06);
  --shadow-md: 0 14px 40px rgba(12, 55, 66, .10);
  --shadow-lg: 0 30px 70px rgba(10, 94, 102, .18);
  --grad: linear-gradient(135deg, #0e7c86 0%, #17b79e 100%);
  --radius: 16px;
  --radius-lg: 22px;
  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--light { color: #eafffb; background: rgba(255, 255, 255, .16); }

.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 600;
  font-size: .96rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .875rem; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(14, 124, 134, .28); }
.btn--primary:hover { box-shadow: 0 16px 34px rgba(14, 124, 134, .38); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: #fff; color: var(--primary-dark); }
.btn--light { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: padding .3s var(--ease), background .3s, box-shadow .3s;
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 4px 24px rgba(12, 55, 66, .08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { display: inline-flex; filter: drop-shadow(0 6px 14px rgba(14, 124, 134, .25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.02; font-weight: 800; letter-spacing: -.01em; }
.brand__text strong { font-size: 1.32rem; color: var(--heading); }
.brand__text span { font-size: .82rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--primary); }

/* header text stays readable over hero before scroll */
.site-header:not(.scrolled) .brand__text strong { color: #fff; }
.site-header:not(.scrolled) .brand__text span { color: #d6fff6; }
.site-header:not(.scrolled) .nav__link { color: #eafcf9; }
.site-header:not(.scrolled) .nav__link:hover { color: #fff; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-weight: 600; font-size: .96rem; color: var(--heading); position: relative; transition: color .2s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--primary); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 6px; }
.nav__close { display: none; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 2.5px; border-radius: 2px; background: var(--heading); transition: .3s; }
.site-header:not(.scrolled) .nav__toggle span { background: #fff; }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(8, 40, 49, .5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: .3s; z-index: 99;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 96px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 120% at 80% 0%, #0e7c86 0%, #0a5e66 55%, #073f46 100%); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 18% 30%, rgba(255, 255, 255, .10) 0, transparent 38%),
                    radial-gradient(circle at 90% 70%, rgba(22, 183, 158, .35) 0, transparent 40%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero__content { color: #fff; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.025em; margin-bottom: .35em; }
.hero__title span { color: #8ff0dd; }
.hero__desc { color: rgba(255, 255, 255, .86); font-size: 1.1rem; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__chips li { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: rgba(255, 255, 255, .9); font-weight: 500; }
.hero__chips .dot { width: 8px; height: 8px; border-radius: 50%; background: #8ff0dd; box-shadow: 0 0 0 4px rgba(143, 240, 221, .2); }

/* Primary buttons sitting on the dark hero / transparent header must not show
   the light teal glow (it reads as an uneven light border). Use a dark, even
   shadow instead — invisible against the dark background = a crisp edge. */
.hero__actions .btn--primary,
.site-header:not(.scrolled) .nav__cta.btn--primary {
  box-shadow: 0 10px 24px rgba(4, 34, 39, .35);
}

.hero__media { position: relative; }
.hero__photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid rgba(255, 255, 255, .12);
}
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 94, 102, .05), rgba(10, 94, 102, .35)); }
.hero__photo img { width: 100%; height: 460px; object-fit: cover; }
.hero__badge {
  position: absolute; left: -22px; bottom: 34px; background: #fff; color: var(--heading);
  padding: 18px 22px; border-radius: 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px;
}
.hero__badge-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.hero__badge-label { font-size: .82rem; font-weight: 600; color: var(--muted); line-height: 1.25; }

/* ---------- Stats ---------- */
.stats { margin-top: -46px; position: relative; z-index: 2; }
.stats__grid {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 34px 20px;
}
.stat { text-align: center; padding: 8px 16px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: var(--line); }
.stat__num { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.stat__label { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about__photo img { width: 100%; height: 480px; object-fit: cover; }
.about__photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(14, 124, 134, .25), transparent 55%);
}
.about__card {
  position: absolute; right: -20px; bottom: -22px; z-index: 2; background: #fff;
  padding: 18px 22px; border-radius: 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px; color: var(--primary);
}
.about__card strong { display: block; color: var(--heading); font-size: 1rem; }
.about__card span { font-size: .82rem; color: var(--muted); }
.about__content p { color: var(--muted); }
.ticklist { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.ticklist li { position: relative; padding-left: 34px; color: var(--heading); font-weight: 500; }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230e7c86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Cards (specialties) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 14px; background: var(--accent-soft); color: var(--primary); margin-bottom: 18px;
  transition: background .3s, color .3s;
}
.card:hover .card__icon { background: var(--grad); color: #fff; }
.card__title { font-size: 1.16rem; margin-bottom: .35em; }
.card__text { color: var(--muted); font-size: .94rem; margin: 0; }
.card--cta { background: var(--grad); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.card--cta .card__title, .card--cta .card__text { color: #fff; }
.card--cta .card__text { opacity: .9; margin-bottom: 18px; }

/* ---------- Features (why) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature { padding: 30px; border-radius: var(--radius); background: var(--bg-soft); transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); background: #fff; }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 14px; background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.feature__title { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: 66px 0; background: var(--grad); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18) 0, transparent 45%);
}
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25em; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; right: -6%; top: 8%; width: 620px; max-width: 55%; aspect-ratio: 470 / 255;
  background: url("../images/textures/map.png") center / contain no-repeat;
  opacity: .5; pointer-events: none; z-index: 0;
}
.contact .container { position: relative; z-index: 1; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact__cards { display: grid; gap: 18px; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 18px; align-items: flex-start; transition: box-shadow .3s, transform .3s;
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.info-card__icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; background: var(--accent-soft); color: var(--primary);
}
.info-card h3 { font-size: 1.05rem; margin-bottom: .3em; }
.info-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.info-card a:hover { color: var(--primary); }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.contact__form h3 { font-size: 1.3rem; margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .85rem; font-weight: 600; color: var(--heading); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfdfd;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14, 124, 134, .12); background: #fff;
}

/* ---------- Footer ---------- */
.footer { background: #082f37; color: #cfe3e5; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding: 72px 24px 46px; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text span { color: #7fe4d3; }
.footer__about p { margin-top: 18px; color: #a7c6c9; font-size: .95rem; max-width: 34ch; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer__col a { color: #a7c6c9; font-size: .94rem; transition: color .2s, padding-left .2s; }
.footer__col a:hover { color: #fff; padding-left: 4px; }
.footer__contact p { color: #a7c6c9; font-size: .94rem; }
.footer__contact a { color: #cfe3e5; }
.footer__contact a:hover { color: #fff; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 24px; font-size: .86rem; color: #8fb0b3; }

/* ---------- Back to top ---------- */
#scrollTopBtn {
  position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: var(--grad); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: .3s var(--ease);
}
#scrollTopBtn.show { opacity: 1; visibility: visible; transform: none; }
#scrollTopBtn:hover { transform: translateY(-3px); }

/* ---------- Reveal animation (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__media { max-width: 520px; }
  .about__grid { grid-template-columns: 1fr; gap: 60px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav__toggle { display: flex; }
  .nav {
    position: fixed; top: 0; right: -100%; width: min(320px, 82vw); height: 100vh;
    flex-direction: column; align-items: flex-start; gap: 8px;
    background: #fff; padding: 84px 30px 30px; box-shadow: -20px 0 60px rgba(8, 40, 49, .2);
    transition: right .35s var(--ease); z-index: 100;
  }
  .nav.open { right: 0; }
  .nav__link { color: var(--heading) !important; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 14px; }
  .nav__close { display: block; position: absolute; top: 20px; right: 22px; font-size: 2rem; line-height: 1; background: none; border: 0; color: var(--heading); cursor: pointer; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stat:nth-child(3)::before { display: none; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__badge { left: 0; }
  .about__card { right: 0; }
  .hero__photo img { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
