/* ==========================================================================
   PharmXa – The Pharmaceutical Exchange
   ========================================================================== */

/* =========================
   Fonts
========================= */

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette sampled from the PharmXa logo */
  --px-white: #ffffff;
  --px-navy: #12314f;
  --px-navy-700: #0d2540;
  --px-navy-050: #eef3f8;
  --px-teal: #17a5a5;
  --px-green: #14a86a;
  --px-accent: #1fb3a6;
  --px-gradient: linear-gradient(90deg, #17a5a5 0%, #14a86a 100%);
  --px-gradient-soft: linear-gradient(135deg, #eaf7f5 0%, #eef3f8 100%);
  --px-body: #4b5b6b;
  --px-radius: 18px;
  --px-shadow: 0 18px 45px -22px rgba(18, 49, 79, 0.35);
  --px-shadow-sm: 0 10px 26px -18px rgba(18, 49, 79, 0.45);

  --bs-body-font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  --bs-body-color: var(--px-body);
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--px-body);
  background: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.display-1,
.display-2 {
  font-family: "Sora", system-ui, sans-serif;
  color: var(--px-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
}

.text-brand {
  color: var(--px-teal) !important;
}

.text-navy {
  color: var(--px-navy) !important;
}

.a-hover-teal:hover {
  color: var(--px-teal) !important;
}

.bg-brand {
  background-color: var(--px-teal) !important;
}

.bg-navy {
  background-color: var(--px-navy) !important;
}

.bg-soft {
  background: var(--px-gradient-soft) !important;
}

.bg-mint {
  background-color: #f2faf8 !important;
}

.section {
  padding: 84px 0;
}

@media (max-width: 767.98px) {
  .section {
    padding: 56px 0;
  }
}

.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--px-teal);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.lead-muted {
  color: var(--px-navy);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: .7rem 1.6rem;
}

.btn-brand {
  background: var(--px-gradient);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 26px -14px rgba(20, 168, 106, .9);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  filter: brightness(1.06);
}

.btn-outline-navy {
  border: 1.5px solid rgba(18, 49, 79, .2);
  color: var(--px-navy);
  background: #fff;
}

.btn-outline-navy:hover {
  background: var(--px-navy);
  color: #fff;
  border-color: var(--px-navy);
}

.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, .55);
  color: #fff;
  background: transparent;
}

.btn-ghost-light:hover {
  background: #fff;
  color: var(--px-navy);
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--px-navy);
  color: #fff;
  font-size: .82rem;
  padding: .5rem 0;
}

.topbar a {
  color: #fff;
}

.topbar a:hover {
  color: rgba(255, 255, 255, .82);
}

.topbar .social a {
  width: 22px;
  border-radius: 50%; 
  display: inline-grid !important;
  place-items: center;
  margin-right: .5rem;
  color: #fff;
}

.topbar .social a:hover {
  color: var(--px-teal);
}

/* ---------- Navbar ---------- */
.navbar-px {
  background: #fff;
  backdrop-filter: blur(12px);
  transition: box-shadow .25s ease, padding .25s ease;
  padding: .85rem 0;
}

.navbar-px.is-stuck {
  box-shadow: 0 10px 30px -20px rgba(18, 49, 79, .6);
  padding: .5rem 0;
}

.navbar-px .navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-px .nav-link {
  color: var(--px-navy);
  font-weight: 600;
  font-size: .93rem;
  padding: .5rem .9rem !important;
  position: relative;
}

.navbar-px .nav-link::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .25rem;
  height: 2px;
  background: var(--px-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.navbar-px .nav-link:hover::after,
.navbar-px .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

/* Login popover form in the navbar */
.login-pop {
  min-width: 360px;
  border: 0;
  border-radius: var(--px-radius);
  box-shadow: var(--px-shadow);
  padding: 1.25rem;
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid #dfe6ee;
  padding: .7rem .95rem;
  font-size: .93rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--px-accent);
  box-shadow: 0 0 0 .2rem rgba(31, 179, 166, .15);
}

.form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--px-navy);
  margin-bottom: .35rem;
}


/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--px-gradient-soft);
  padding: 72px 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--px-gradient-soft);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -220px;
  background: radial-gradient(circle at center, rgba(31, 179, 166, .22), transparent 65%);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid rgba(31, 179, 166, .28);
  color: var(--px-navy);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: var(--px-shadow-sm);
}

.hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--px-shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-quick {
  background: #fff;
  border-radius: var(--px-radius);
  box-shadow: var(--px-shadow);
  padding: 5px;
}

.hero-quick .quick-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  transition: background .2s ease;
}

.quick-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: var(--px-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.animating-item:hover {
  background: #f2faf8;
}

.animating-icon {
  position: relative;
  overflow: hidden; /* clips icons as they slide in/out */
  transition: all 0.2s;
}

.animating-item:hover .animating-icon {
  background: #fff;
  border: 1px solid #17a5a5;
}

.animating-icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .35s ease;
}

/* Hover icon starts stacked above, hidden */
.animating-icon .icon-hover {
  transform: translate(-50%, -180%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .35s ease;
  color: var(--px-accent);
  opacity: 0;
}

/* On hover: default icon slides down and fades out */
.animating-item:hover .animating-icon .icon-default {
  transform: translate(-50%, 180%);
  opacity: 0;
}

/* On hover: new icon slides down into center */
.animating-item:hover .animating-icon .icon-hover {
  transform: translate(-50%, -50%);
  opacity: 1;
}

/* ---------- Feature / compliance cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid #eaf0f6;
  border-radius: var(--px-radius);
  padding: 1.6rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--px-shadow);
  border-color: rgba(31, 179, 166, .35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eaf7f5;
  color: var(--px-teal);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h5 {
  font-size: 1.03rem;
  margin-bottom: .5rem;
}

.feature-card p {
  font-size: .92rem;
  margin: 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
  font-size: .95rem;
}

.check-list li i {
  position: absolute;
  left: 0;
  top: .18rem;
  color: var(--px-green);
}

/* ---------- Stats ---------- */
.stat-card {
  
  border-radius: var(--px-radius);
  padding: 1.9rem 1.2rem;
  text-align: center;
  box-shadow: var(--px-shadow-sm);
  border: 1px solid #eef3f8;
  height: 100%;
}

.stat-card .stat-ico {
  width: 62px;
  height: 62px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--px-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.stat-num {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--px-navy);
  line-height: 1;
}

.stat-label {
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .4rem;
}

/* ---------- Steps ---------- */
.step {
  position: relative;
  background: #fff;
  border-radius: var(--px-radius);
  padding: 1.8rem 1.4rem;
  border: 1px solid #eaf0f6;
  height: 100%;
}

.step-num {
  font-family: "Sora", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  background: var(--px-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .6rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--px-navy);
  color: #fff;
  border-radius: 26px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: #fff;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(31, 179, 166, .45), transparent 65%);
  border-radius: 50%;
}

.cta-band>* {
  position: relative;
  z-index: 2;
}

/* ---------- Disclaimer ---------- */
.disclaimer {
  border-left: 4px solid var(--px-accent);
  background: #f7fafc;
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  font-size: .86rem;
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-panel {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--px-shadow);
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.contact-info-item .ci-ico {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: grid;
  place-items: center;
}
.contact-panel form .btn[type=submit] i {
  display: inline-block;
    transition: all 0.4s;
}

.contact-panel form .btn[type=submit]:hover i {
    transform: translate(250%, -30%) rotate(30deg);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--px-white);
  color: rgba(18, 49, 79, 0.80);
  padding: 68px 0 0;
}

.footer h6 {
  color: var(--px-navy);
  font-family: "Sora", sans-serif;
  font-size: .95rem;
  margin-bottom: 1.1rem;
}

.footer a {
  color: var(--px-navy);
  font-size: .9rem;
  display: inline-block;
  padding: .22rem 0;
}

.footer a:hover {
  color: rgba(18, 49, 79, 0.80);
}

.footer img.footer-logo {
  height: 38px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--px-navy);
  display: inline-grid !important;
  place-items: center;
  margin-right: .5rem;
  color: #fff !important;
  transition: background .2s ease;
}

.social-link:hover {
  background: var(--px-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, .1);
  padding: 1.2rem 0;
  font-size: .82rem;
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--px-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--px-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
  z-index: 1030;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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